CfnSubnetProps

class aws_cdk.aws_ec2.CfnSubnetProps(*, cidr_block, vpc_id, assign_ipv6_address_on_creation=None, availability_zone=None, ipv6_cidr_block=None, map_public_ip_on_launch=None, tags=None)

Bases: object

__init__(*, cidr_block, vpc_id, assign_ipv6_address_on_creation=None, availability_zone=None, ipv6_cidr_block=None, map_public_ip_on_launch=None, tags=None)

Properties for defining a AWS::EC2::Subnet.

Parameters
  • cidr_block (str) – AWS::EC2::Subnet.CidrBlock.

  • vpc_id (str) – AWS::EC2::Subnet.VpcId.

  • assign_ipv6_address_on_creation (Union[bool, None, IResolvable]) – AWS::EC2::Subnet.AssignIpv6AddressOnCreation.

  • availability_zone (Optional[str]) – AWS::EC2::Subnet.AvailabilityZone.

  • ipv6_cidr_block (Optional[str]) – AWS::EC2::Subnet.Ipv6CidrBlock.

  • map_public_ip_on_launch (Union[bool, None, IResolvable]) – AWS::EC2::Subnet.MapPublicIpOnLaunch.

  • tags (Optional[List[CfnTag]]) – AWS::EC2::Subnet.Tags.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html

Attributes

assign_ipv6_address_on_creation

AWS::EC2::Subnet.AssignIpv6AddressOnCreation.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-assignipv6addressoncreation

Return type

Union[bool, None, IResolvable]

availability_zone

AWS::EC2::Subnet.AvailabilityZone.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-availabilityzone

Return type

Optional[str]

cidr_block

AWS::EC2::Subnet.CidrBlock.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-cidrblock

Return type

str

ipv6_cidr_block

AWS::EC2::Subnet.Ipv6CidrBlock.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-ipv6cidrblock

Return type

Optional[str]

map_public_ip_on_launch

AWS::EC2::Subnet.MapPublicIpOnLaunch.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-mappubliciponlaunch

Return type

Union[bool, None, IResolvable]

tags

AWS::EC2::Subnet.Tags.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-tags

Return type

Optional[List[CfnTag]]

vpc_id

AWS::EC2::Subnet.VpcId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-awsec2subnet-prop-vpcid

Return type

str