com.pulumi.gcp.container.kotlin.inputs.AzureClusterControlPlaneReplicaPlacementArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.AzureClusterControlPlaneReplicaPlacementArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property azureAvailabilityZone For a given replica, the Azure availability zone where to provision the control plane VM and the ETCD disk.
* @property subnetId For a given replica, the ARM ID of the subnet where the control plane VM is deployed. Make sure it's a subnet under the virtual network in the cluster configuration.
*/
public data class AzureClusterControlPlaneReplicaPlacementArgs(
public val azureAvailabilityZone: Output,
public val subnetId: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.AzureClusterControlPlaneReplicaPlacementArgs =
com.pulumi.gcp.container.inputs.AzureClusterControlPlaneReplicaPlacementArgs.builder()
.azureAvailabilityZone(azureAvailabilityZone.applyValue({ args0 -> args0 }))
.subnetId(subnetId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AzureClusterControlPlaneReplicaPlacementArgs].
*/
@PulumiTagMarker
public class AzureClusterControlPlaneReplicaPlacementArgsBuilder internal constructor() {
private var azureAvailabilityZone: Output? = null
private var subnetId: Output? = null
/**
* @param value For a given replica, the Azure availability zone where to provision the control plane VM and the ETCD disk.
*/
@JvmName("prqwkapontiskhyd")
public suspend fun azureAvailabilityZone(`value`: Output) {
this.azureAvailabilityZone = value
}
/**
* @param value For a given replica, the ARM ID of the subnet where the control plane VM is deployed. Make sure it's a subnet under the virtual network in the cluster configuration.
*/
@JvmName("edjkfqlujbjkwerx")
public suspend fun subnetId(`value`: Output) {
this.subnetId = value
}
/**
* @param value For a given replica, the Azure availability zone where to provision the control plane VM and the ETCD disk.
*/
@JvmName("odldaasglpmgnind")
public suspend fun azureAvailabilityZone(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.azureAvailabilityZone = mapped
}
/**
* @param value For a given replica, the ARM ID of the subnet where the control plane VM is deployed. Make sure it's a subnet under the virtual network in the cluster configuration.
*/
@JvmName("fvlqsaylxlijapen")
public suspend fun subnetId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.subnetId = mapped
}
internal fun build(): AzureClusterControlPlaneReplicaPlacementArgs =
AzureClusterControlPlaneReplicaPlacementArgs(
azureAvailabilityZone = azureAvailabilityZone ?: throw
PulumiNullFieldException("azureAvailabilityZone"),
subnetId = subnetId ?: throw PulumiNullFieldException("subnetId"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy