PublicSubnetProps¶
-
class
aws_cdk.aws_ec2.
PublicSubnetProps
(*, availability_zone, cidr_block, vpc_id, map_public_ip_on_launch=None)¶ Bases:
aws_cdk.aws_ec2.SubnetProps
- Parameters
availability_zone (
str
) – The availability zone for the subnet.cidr_block (
str
) – The CIDR notation for this subnet.vpc_id (
str
) – The VPC which this subnet is part of.map_public_ip_on_launch (
Optional
[bool
]) – Controls if a public IP is associated to an instance at launch. Default: true in Subnet.Public, false in Subnet.Private or Subnet.Isolated.
Attributes
-
availability_zone
¶ The availability zone for the subnet.
- Return type
str
-
cidr_block
¶ The CIDR notation for this subnet.
- Return type
str
-
map_public_ip_on_launch
¶ Controls if a public IP is associated to an instance at launch.
- Default
true in Subnet.Public, false in Subnet.Private or Subnet.Isolated.
- Return type
Optional
[bool
]
-
vpc_id
¶ The VPC which this subnet is part of.
- Return type
str