
com.pulumi.awsnative.lightsail.kotlin.inputs.InstanceLocationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.lightsail.kotlin.inputs
import com.pulumi.awsnative.lightsail.inputs.InstanceLocationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Location of a resource.
* @property availabilityZone The Availability Zone in which to create your instance. Use the following format: us-east-2a (case sensitive). Be sure to add the include Availability Zones parameter to your request.
* @property regionName The Region Name in which to create your instance.
*/
public data class InstanceLocationArgs(
public val availabilityZone: Output? = null,
public val regionName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lightsail.inputs.InstanceLocationArgs =
com.pulumi.awsnative.lightsail.inputs.InstanceLocationArgs.builder()
.availabilityZone(availabilityZone?.applyValue({ args0 -> args0 }))
.regionName(regionName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceLocationArgs].
*/
@PulumiTagMarker
public class InstanceLocationArgsBuilder internal constructor() {
private var availabilityZone: Output? = null
private var regionName: Output? = null
/**
* @param value The Availability Zone in which to create your instance. Use the following format: us-east-2a (case sensitive). Be sure to add the include Availability Zones parameter to your request.
*/
@JvmName("tetjcqjxaauyceyi")
public suspend fun availabilityZone(`value`: Output) {
this.availabilityZone = value
}
/**
* @param value The Region Name in which to create your instance.
*/
@JvmName("orklhlqtgitmqvqx")
public suspend fun regionName(`value`: Output) {
this.regionName = value
}
/**
* @param value The Availability Zone in which to create your instance. Use the following format: us-east-2a (case sensitive). Be sure to add the include Availability Zones parameter to your request.
*/
@JvmName("aprrflloheswjeks")
public suspend fun availabilityZone(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.availabilityZone = mapped
}
/**
* @param value The Region Name in which to create your instance.
*/
@JvmName("dqmkgihvludjwqom")
public suspend fun regionName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.regionName = mapped
}
internal fun build(): InstanceLocationArgs = InstanceLocationArgs(
availabilityZone = availabilityZone,
regionName = regionName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy