RequestedSubnet

class aws_cdk.aws_ec2.RequestedSubnet(*, availability_zone, configuration, subnet_construct_id)

Bases: object

Subnet requested for allocation.

Parameters:
  • availability_zone (str) – The availability zone for the subnet.

  • configuration (Union[SubnetConfiguration, Dict[str, Any]]) – Specify configuration parameters for a single subnet group in a VPC.

  • subnet_construct_id (str) – Id for the Subnet construct.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

requested_subnet = ec2.RequestedSubnet(
    availability_zone="availabilityZone",
    configuration=ec2.SubnetConfiguration(
        name="name",
        subnet_type=ec2.SubnetType.PRIVATE_ISOLATED,

        # the properties below are optional
        cidr_mask=123,
        ipv6_assign_address_on_creation=False,
        map_public_ip_on_launch=False,
        reserved=False
    ),
    subnet_construct_id="subnetConstructId"
)

Attributes

availability_zone

The availability zone for the subnet.

configuration

Specify configuration parameters for a single subnet group in a VPC.

subnet_construct_id

Id for the Subnet construct.