PrivateSubnetAttributes

class aws_cdk.aws_ec2.PrivateSubnetAttributes(*, subnet_id, availability_zone=None, ipv4_cidr_block=None, route_table_id=None)

Bases: SubnetAttributes

Parameters:
  • subnet_id (str) – The subnetId for this particular subnet.

  • availability_zone (Optional[str]) – The Availability Zone the subnet is located in. Default: - No AZ information, cannot use AZ selection features

  • ipv4_cidr_block (Optional[str]) – The IPv4 CIDR block associated with the subnet. Default: - No CIDR information, cannot use CIDR filter features

  • route_table_id (Optional[str]) – The ID of the route table for this particular subnet. Default: - No route table information, cannot create VPC endpoints

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

private_subnet_attributes = ec2.PrivateSubnetAttributes(
    subnet_id="subnetId",

    # the properties below are optional
    availability_zone="availabilityZone",
    ipv4_cidr_block="ipv4CidrBlock",
    route_table_id="routeTableId"
)

Attributes

availability_zone

The Availability Zone the subnet is located in.

Default:
  • No AZ information, cannot use AZ selection features

ipv4_cidr_block

The IPv4 CIDR block associated with the subnet.

Default:
  • No CIDR information, cannot use CIDR filter features

route_table_id

The ID of the route table for this particular subnet.

Default:
  • No route table information, cannot create VPC endpoints

subnet_id

The subnetId for this particular subnet.