com.pulumi.awsnative.elasticloadbalancingv2.kotlin.outputs.LoadBalancerSubnetMapping.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.elasticloadbalancingv2.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* Specifies a subnet for a load balancer.
* @property allocationId [Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer.
* @property iPv6Address [Network Load Balancers] The IPv6 address.
* @property privateIPv4Address [Network Load Balancers] The private IPv4 address for an internal load balancer.
* @property subnetId The ID of the subnet.
*/
public data class LoadBalancerSubnetMapping(
public val allocationId: String? = null,
public val iPv6Address: String? = null,
public val privateIPv4Address: String? = null,
public val subnetId: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.elasticloadbalancingv2.outputs.LoadBalancerSubnetMapping): LoadBalancerSubnetMapping = LoadBalancerSubnetMapping(
allocationId = javaType.allocationId().map({ args0 -> args0 }).orElse(null),
iPv6Address = javaType.iPv6Address().map({ args0 -> args0 }).orElse(null),
privateIPv4Address = javaType.privateIPv4Address().map({ args0 -> args0 }).orElse(null),
subnetId = javaType.subnetId(),
)
}
}