getSubnet

Specifies a subnet for the specified VPC. For an IPv4 only subnet, specify an IPv4 CIDR block. If the VPC has an IPv6 CIDR block, you can create an IPv6 only subnet or a dual stack subnet instead. For an IPv6 only subnet, specify an IPv6 CIDR block. For a dual stack subnet, specify both an IPv4 CIDR block and an IPv6 CIDR block. For more information, see Subnets for your VPC in the Amazon VPC User Guide.

Return

null

Parameters

argument

null


suspend fun getSubnet(subnetId: String): GetSubnetResult

Return

null

Parameters

subnetId

The ID of the subnet.

See also


suspend fun getSubnet(argument: suspend GetSubnetPlainArgsBuilder.() -> Unit): GetSubnetResult

Return

null

Parameters

argument

Builder for com.pulumi.awsnative.ec2.kotlin.inputs.GetSubnetPlainArgs.

See also