com.pulumi.awsnative.ec2.kotlin.outputs.GetNatGatewayResult.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.ec2.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property natGatewayId The ID of the NAT gateway.
* @property secondaryAllocationIds Secondary EIP allocation IDs. For more information, see [Create a NAT gateway](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-creating) in the *Amazon VPC User Guide*.
* @property secondaryPrivateIpAddressCount [Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway. For more information about secondary addresses, see [Create a NAT gateway](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-creating) in the *Amazon Virtual Private Cloud User Guide*.
* ``SecondaryPrivateIpAddressCount`` and ``SecondaryPrivateIpAddresses`` cannot be set at the same time.
* @property secondaryPrivateIpAddresses Secondary private IPv4 addresses. For more information about secondary addresses, see [Create a NAT gateway](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-creating) in the *Amazon Virtual Private Cloud User Guide*.
* ``SecondaryPrivateIpAddressCount`` and ``SecondaryPrivateIpAddresses`` cannot be set at the same time.
* @property tags The tags for the NAT gateway.
*/
public data class GetNatGatewayResult(
public val natGatewayId: String? = null,
public val secondaryAllocationIds: List? = null,
public val secondaryPrivateIpAddressCount: Int? = null,
public val secondaryPrivateIpAddresses: List? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.GetNatGatewayResult): GetNatGatewayResult = GetNatGatewayResult(
natGatewayId = javaType.natGatewayId().map({ args0 -> args0 }).orElse(null),
secondaryAllocationIds = javaType.secondaryAllocationIds().map({ args0 -> args0 }),
secondaryPrivateIpAddressCount = javaType.secondaryPrivateIpAddressCount().map({ args0 ->
args0
}).orElse(null),
secondaryPrivateIpAddresses = javaType.secondaryPrivateIpAddresses().map({ args0 -> args0 }),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
)
}
}