![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.containerinstance.kotlin.inputs.IpAddressArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.containerinstance.kotlin.inputs
import com.pulumi.azurenative.containerinstance.inputs.IpAddressArgs.builder
import com.pulumi.azurenative.containerinstance.kotlin.enums.ContainerGroupIpAddressType
import com.pulumi.azurenative.containerinstance.kotlin.enums.DnsNameLabelReusePolicy
import com.pulumi.core.Either
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* IP address for the container group.
* @property autoGeneratedDomainNameLabelScope The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.
* @property dnsNameLabel The Dns name label for the IP.
* @property ip The IP exposed to the public internet.
* @property ports The list of ports exposed on the container group.
* @property type Specifies if the IP is exposed to the public internet or private VNET.
*/
public data class IpAddressArgs(
public val autoGeneratedDomainNameLabelScope: Output>? =
null,
public val dnsNameLabel: Output? = null,
public val ip: Output? = null,
public val ports: Output>,
public val type: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerinstance.inputs.IpAddressArgs =
com.pulumi.azurenative.containerinstance.inputs.IpAddressArgs.builder()
.autoGeneratedDomainNameLabelScope(
autoGeneratedDomainNameLabelScope?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.dnsNameLabel(dnsNameLabel?.applyValue({ args0 -> args0 }))
.ip(ip?.applyValue({ args0 -> args0 }))
.ports(ports.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.type(
type.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [IpAddressArgs].
*/
@PulumiTagMarker
public class IpAddressArgsBuilder internal constructor() {
private var autoGeneratedDomainNameLabelScope: Output>? =
null
private var dnsNameLabel: Output? = null
private var ip: Output? = null
private var ports: Output>? = null
private var type: Output>? = null
/**
* @param value The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.
*/
@JvmName("mrmetonjjersfhga")
public suspend fun autoGeneratedDomainNameLabelScope(`value`: Output>) {
this.autoGeneratedDomainNameLabelScope = value
}
/**
* @param value The Dns name label for the IP.
*/
@JvmName("puccsdbjpmjfefcv")
public suspend fun dnsNameLabel(`value`: Output) {
this.dnsNameLabel = value
}
/**
* @param value The IP exposed to the public internet.
*/
@JvmName("jppqdsgumamfccnm")
public suspend fun ip(`value`: Output) {
this.ip = value
}
/**
* @param value The list of ports exposed on the container group.
*/
@JvmName("aolldbmxpgxucxee")
public suspend fun ports(`value`: Output>) {
this.ports = value
}
@JvmName("emdyfjcvuousdyfb")
public suspend fun ports(vararg values: Output) {
this.ports = Output.all(values.asList())
}
/**
* @param values The list of ports exposed on the container group.
*/
@JvmName("wbftvwwrmtttjafg")
public suspend fun ports(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy