Optional Readonlyassign(OPTIONAL) Indicates whether a network interface created in this subnet receives an IPv6 address on creation.
Optional ReadonlyavailabilityThe Availability Zone (AZ) the subnet resides in.
CAUTION: changing this property after initial deployment will cause a subnet recreation. Please be aware that any downstream dependencies may cause this property update to fail.
Include only the letter of the AZ name (i.e. 'a' for 'us-east-1a') to have the subnet created in a specific AZ. Use an integer (i.e. 1) for a physical mapping ID to an AZ. Please reference the documentation Availability Zone IDs for your AWS resources for more information.
Optional Readonlyenable(OPTIONAL) Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
For more information, see DNS64 and NAT64 in the Amazon Virtual Private Cloud User Guide.
Optional ReadonlyipamThe IPAM pool configuration for the subnet.
Optional Readonlyipv4The IPv4 CIDR block to associate with the subnet.
Optional Readonlyipv6(OPTIONAL) The IPv6 CIDR block to associate with the subnet.
Use IPv6 CIDR notation, i.e. fd00::/64. Possible IPv6 netmask lengths are between /44 and /64 in increments of /4.
Note: Only providing an IPv6 CIDR block or IPv6 IPAM allocation will create an IPv6-only subnet. You must also specify an IPv4 CIDR or IPAM allocation to create a dual-stack subnet. See Subnet basics for more information.
Optional ReadonlylocalThe Zone ID of the local zone.
Optional Readonlymap(OPTIONAL) Configure automatic mapping of public IPs.
ReadonlynameA friendly name for the VPC subnet.
Optional Readonlyoutpost(OPTIONAL) The friendly name for the outpost to attach to the subnet
Optional Readonlyprivate(OPTIONAL) Private DNS name options for the subnet.
Optional ReadonlyrouteThe friendly name of the route table to associate with the subnet.
Optional Readonlyshare(OPTIONAL) Resource Access Manager (RAM) share targets.
NOTE: When sharing subnets, security groups created in this VPC will be automatically replicated to the share target accounts. If tags are configured for the VPC and/or subnet, they are also replicated.
Targets can be account names and/or organizational units.
Optional Readonlytags(OPTIONAL) An array of tag objects for the VPC subnet.
NetworkConfig / VpcConfig | VpcTemplatesConfig / SubnetConfig
Virtual Private Cloud (VPC) subnet configuration.
Description
Use this configuration to define subnets for your VPC. A subnet is a range of IP addresses in your VPC that can be used to create AWS resources, such as EC2 instances.
Example
Static IPv4 CIDR:
Using the Physical ID for an Availability Zone
IPAM allocation:
Static IPv6 CIDR: