Skip to content

CreateSubnetRequest

Source code in docs_src/capo_ec2/types/create_subnet_request.py
class CreateSubnetRequest(TypedDict, closed=True):
    tag_specifications: NotRequired[
        "capo_ec2.types.tag_specification_list.TagSpecificationList"
    ]
    """<p>The tags to assign to the subnet.</p>"""
    availability_zone: NotRequired["capo_ec2.types.string.String"]
    """<p>The Availability Zone or Local Zone for the subnet.</p> <p>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.</p> <p>To create a subnet in a Local Zone, set this value to the Local Zone ID, for example <code>us-west-2-lax-1a</code>. For information about the Regions that support Local Zones, see <a href="https://docs.aws.amazon.com/local-zones/latest/ug/available-local-zones.html">Available Local Zones</a>.</p> <p>To create a subnet in an Outpost, set this value to the Availability Zone for the Outpost and specify the Outpost ARN.</p>"""
    availability_zone_id: NotRequired["capo_ec2.types.string.String"]
    """<p>The AZ ID or the Local Zone ID of the subnet.</p>"""
    cidr_block: NotRequired["capo_ec2.types.string.String"]
    """<p>The IPv4 network range for the subnet, in CIDR notation. For example, <code>10.0.0.0/24</code>. We modify the specified CIDR block to its canonical form; for example, if you specify <code>100.68.0.18/18</code>, we modify it to <code>100.68.0.0/18</code>.</p> <p>This parameter is not supported for an IPv6 only subnet.</p>"""
    ipv6_cidr_block: NotRequired["capo_ec2.types.string.String"]
    """<p>The IPv6 network range for the subnet, in CIDR notation. This parameter is required for an IPv6 only subnet.</p>"""
    outpost_arn: NotRequired["capo_ec2.types.string.String"]
    """<p>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.</p>"""
    vpc_id: NotRequired["capo_ec2.types.vpc_id.VpcId"]
    """<p>The ID of the VPC.</p>"""
    ipv6_native: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Indicates whether to create an IPv6 only subnet.</p>"""
    ipv4_ipam_pool_id: NotRequired["capo_ec2.types.ipam_pool_id.IpamPoolId"]
    """<p>An IPv4 IPAM pool ID for the subnet.</p>"""
    ipv4_netmask_length: NotRequired["capo_ec2.types.netmask_length.NetmaskLength"]
    """<p>An IPv4 netmask length for the subnet.</p>"""
    ipv6_ipam_pool_id: NotRequired["capo_ec2.types.ipam_pool_id.IpamPoolId"]
    """<p>An IPv6 IPAM pool ID for the subnet.</p>"""
    ipv6_netmask_length: NotRequired["capo_ec2.types.netmask_length.NetmaskLength"]
    """<p>An IPv6 netmask length for the subnet.</p>"""
    dry_run: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"""

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.

vpc_id instance-attribute

vpc_id: NotRequired[VpcId]

The ID of the VPC.