GetSubnetResult

data class GetSubnetResult(val assignIpv6AddressOnCreation: Boolean? = null, val enableDns64: Boolean? = null, val ipv6CidrBlock: String? = null, val ipv6CidrBlocks: List<String>? = null, val mapPublicIpOnLaunch: Boolean? = null, val networkAclAssociationId: String? = null, val privateDnsNameOptionsOnLaunch: PrivateDnsNameOptionsOnLaunchProperties? = null, val subnetId: String? = null, val tags: List<Tag>? = null)

Constructors

Link copied to clipboard
constructor(assignIpv6AddressOnCreation: Boolean? = null, enableDns64: Boolean? = null, ipv6CidrBlock: String? = null, ipv6CidrBlocks: List<String>? = null, mapPublicIpOnLaunch: Boolean? = null, networkAclAssociationId: String? = null, privateDnsNameOptionsOnLaunch: PrivateDnsNameOptionsOnLaunchProperties? = null, subnetId: String? = null, tags: List<Tag>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Indicates whether a network interface created in this subnet receives an IPv6 address. The default value is `false`. If you specify `AssignIpv6AddressOnCreation`, you must also specify an IPv6 CIDR block.

Link copied to clipboard
val enableDns64: Boolean? = null

Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations. You must first configure a NAT gateway in a public subnet (separate from the subnet containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a `0.0.0.0/0` route pointing to the internet gateway. For more information, see Configure DNS64 and NAT64 in the User Guide.

Link copied to clipboard
val ipv6CidrBlock: String? = null

The IPv6 CIDR block. If you specify `AssignIpv6AddressOnCreation`, you must also specify an IPv6 CIDR block.

Link copied to clipboard
val ipv6CidrBlocks: List<String>? = null

The IPv6 CIDR blocks that are associated with the subnet.

Link copied to clipboard

Indicates whether instances launched in this subnet receive a public IPv4 address. The default value is `false`. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the VPC pricing page.

Link copied to clipboard

The ID of the network ACL that is associated with the subnet's VPC, such as acl-5fb85d36 .

Link copied to clipboard

The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries to the instances should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide. Available options:

Link copied to clipboard
val subnetId: String? = null

The ID of the subnet.

Link copied to clipboard
val tags: List<Tag>? = null

Any tags assigned to the subnet.