All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.compute.kotlin.inputs.SharedImageVersionTargetRegionArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.SharedImageVersionTargetRegionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property diskEncryptionSetId The ID of the Disk Encryption Set to encrypt the Image Version in the target region. Changing this forces a new resource to be created.
 * @property excludeFromLatestEnabled Specifies whether this Shared Image Version should be excluded when querying for the `latest` version. Defaults to `false`.
 * @property name The Azure Region in which this Image Version should exist.
 * @property regionalReplicaCount The number of replicas of the Image Version to be created per region.
 * @property storageAccountType The storage account type for the image version. Possible values are `Standard_LRS`, `Premium_LRS` and `Standard_ZRS`. Defaults to `Standard_LRS`. You can store all of your image version replicas in Zone Redundant Storage by specifying `Standard_ZRS`.
 */
public data class SharedImageVersionTargetRegionArgs(
    public val diskEncryptionSetId: Output? = null,
    public val excludeFromLatestEnabled: Output? = null,
    public val name: Output,
    public val regionalReplicaCount: Output,
    public val storageAccountType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.SharedImageVersionTargetRegionArgs =
        com.pulumi.azure.compute.inputs.SharedImageVersionTargetRegionArgs.builder()
            .diskEncryptionSetId(diskEncryptionSetId?.applyValue({ args0 -> args0 }))
            .excludeFromLatestEnabled(excludeFromLatestEnabled?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .regionalReplicaCount(regionalReplicaCount.applyValue({ args0 -> args0 }))
            .storageAccountType(storageAccountType?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SharedImageVersionTargetRegionArgs].
 */
@PulumiTagMarker
public class SharedImageVersionTargetRegionArgsBuilder internal constructor() {
    private var diskEncryptionSetId: Output? = null

    private var excludeFromLatestEnabled: Output? = null

    private var name: Output? = null

    private var regionalReplicaCount: Output? = null

    private var storageAccountType: Output? = null

    /**
     * @param value The ID of the Disk Encryption Set to encrypt the Image Version in the target region. Changing this forces a new resource to be created.
     */
    @JvmName("edjcpnhmsdaforft")
    public suspend fun diskEncryptionSetId(`value`: Output) {
        this.diskEncryptionSetId = value
    }

    /**
     * @param value Specifies whether this Shared Image Version should be excluded when querying for the `latest` version. Defaults to `false`.
     */
    @JvmName("cyxahmnvncpmyrxx")
    public suspend fun excludeFromLatestEnabled(`value`: Output) {
        this.excludeFromLatestEnabled = value
    }

    /**
     * @param value The Azure Region in which this Image Version should exist.
     */
    @JvmName("fhbynwordkwwuixj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The number of replicas of the Image Version to be created per region.
     */
    @JvmName("jutqdmcwnxptkblb")
    public suspend fun regionalReplicaCount(`value`: Output) {
        this.regionalReplicaCount = value
    }

    /**
     * @param value The storage account type for the image version. Possible values are `Standard_LRS`, `Premium_LRS` and `Standard_ZRS`. Defaults to `Standard_LRS`. You can store all of your image version replicas in Zone Redundant Storage by specifying `Standard_ZRS`.
     */
    @JvmName("roontgdhqkfgylip")
    public suspend fun storageAccountType(`value`: Output) {
        this.storageAccountType = value
    }

    /**
     * @param value The ID of the Disk Encryption Set to encrypt the Image Version in the target region. Changing this forces a new resource to be created.
     */
    @JvmName("tvkrqctajjhaphhn")
    public suspend fun diskEncryptionSetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskEncryptionSetId = mapped
    }

    /**
     * @param value Specifies whether this Shared Image Version should be excluded when querying for the `latest` version. Defaults to `false`.
     */
    @JvmName("lfdqyqmsvkmrfxew")
    public suspend fun excludeFromLatestEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludeFromLatestEnabled = mapped
    }

    /**
     * @param value The Azure Region in which this Image Version should exist.
     */
    @JvmName("bullgutilcrbujpu")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The number of replicas of the Image Version to be created per region.
     */
    @JvmName("vafpfporbodtnous")
    public suspend fun regionalReplicaCount(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.regionalReplicaCount = mapped
    }

    /**
     * @param value The storage account type for the image version. Possible values are `Standard_LRS`, `Premium_LRS` and `Standard_ZRS`. Defaults to `Standard_LRS`. You can store all of your image version replicas in Zone Redundant Storage by specifying `Standard_ZRS`.
     */
    @JvmName("vgghakdljhjrnwgb")
    public suspend fun storageAccountType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageAccountType = mapped
    }

    internal fun build(): SharedImageVersionTargetRegionArgs = SharedImageVersionTargetRegionArgs(
        diskEncryptionSetId = diskEncryptionSetId,
        excludeFromLatestEnabled = excludeFromLatestEnabled,
        name = name ?: throw PulumiNullFieldException("name"),
        regionalReplicaCount = regionalReplicaCount ?: throw
            PulumiNullFieldException("regionalReplicaCount"),
        storageAccountType = storageAccountType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy