CreateSubnetRequest
¶
Source code in docs_src/capo_ec2/types/create_subnet_request.py
availability_zone
instance-attribute
¶
availability_zone: NotRequired[String]
The Availability Zone or Local Zone for the subnet.
Default: Amazon Web Services selects one for you. If you create more than one subnet in your VPC, we do not necessarily select a different zone for each subnet.
To create a subnet in a Local Zone, set this value to the Local Zone ID, for example us-west-2-lax-1a. For information about the Regions that support Local Zones, see Available Local Zones.
To create a subnet in an Outpost, set this value to the Availability Zone for the Outpost and specify the Outpost ARN.
availability_zone_id
instance-attribute
¶
availability_zone_id: NotRequired[String]
The AZ ID or the Local Zone ID of the subnet.
cidr_block
instance-attribute
¶
cidr_block: NotRequired[String]
The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.
This parameter is not supported for an IPv6 only subnet.
dry_run
instance-attribute
¶
dry_run: NotRequired[Boolean]
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
ipv4_ipam_pool_id
instance-attribute
¶
ipv4_ipam_pool_id: NotRequired[IpamPoolId]
An IPv4 IPAM pool ID for the subnet.
ipv4_netmask_length
instance-attribute
¶
ipv4_netmask_length: NotRequired[NetmaskLength]
An IPv4 netmask length for the subnet.
ipv6_cidr_block
instance-attribute
¶
ipv6_cidr_block: NotRequired[String]
The IPv6 network range for the subnet, in CIDR notation. This parameter is required for an IPv6 only subnet.
ipv6_ipam_pool_id
instance-attribute
¶
ipv6_ipam_pool_id: NotRequired[IpamPoolId]
An IPv6 IPAM pool ID for the subnet.
ipv6_native
instance-attribute
¶
ipv6_native: NotRequired[Boolean]
Indicates whether to create an IPv6 only subnet.
ipv6_netmask_length
instance-attribute
¶
ipv6_netmask_length: NotRequired[NetmaskLength]
An IPv6 netmask length for the subnet.
outpost_arn
instance-attribute
¶
outpost_arn: NotRequired[String]
The Amazon Resource Name (ARN) of the Outpost. If you specify an Outpost ARN, you must also specify the Availability Zone of the Outpost subnet.
tag_specifications
instance-attribute
¶
tag_specifications: NotRequired[TagSpecificationList]
The tags to assign to the subnet.