Menu
Amazon Elastic Compute Cloud
API Reference (API Version 2016-11-15)

Subnet

Describes a subnet.

Contents

assignIpv6AddressOnCreation

Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives an IPv6 address.

Type: Boolean

Required: No

availabilityZone

The Availability Zone of the subnet.

Type: String

Required: No

availableIpAddressCount

The number of unused private IPv4 addresses in the subnet. Note that the IPv4 addresses for any stopped instances are considered unavailable.

Type: Integer

Required: No

cidrBlock

The IPv4 CIDR block assigned to the subnet.

Type: String

Required: No

defaultForAz

Indicates whether this is the default subnet for the Availability Zone.

Type: Boolean

Required: No

ipv6CidrBlockAssociationSet

Information about the IPv6 CIDR blocks associated with the subnet.

Type: Array of SubnetIpv6CidrBlockAssociation objects

Required: No

mapPublicIpOnLaunch

Indicates whether instances launched in this subnet receive a public IPv4 address.

Type: Boolean

Required: No

state

The current state of the subnet.

Type: String

Valid Values: pending | available

Required: No

subnetId

The ID of the subnet.

Type: String

Required: No

tagSet

Any tags assigned to the subnet.

Type: Array of Tag objects

Required: No

vpcId

The ID of the VPC the subnet is in.

Type: String

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

On this page: