Class: Subnet

EC2.Subnet

new Subnet()

Properties:
Name Type Description
AvailabilityZone String Required: No. The availability zone in which you want the subnet. Default: AWS selects a zone for you (recommended). Update requires: Replacement NoteIf you update this property, you must also update the CidrBlock property.
CidrBlock String Required: Yes. The CIDR block that you want the subnet to cover (for example, "10.0.0.0/24"). Update requires: Replacement NoteIf you update this property, you must also update the AvailabilityZone property.
MapPublicIpOnLaunch Boolean Required: No. Indicates whether instances that are launched in this subnet receive a public IP address. By default, the value is false.Update requires: No interruption.
Tags AWSCloudFormationResourceTags Required: No. An arbitrary set of tags (key–value pairs) for this subnet.Update requires: No interruption.
VpcId String Required: Yes. A Ref structure that contains the ID of the VPC on which you want to create the subnet. The VPC ID is provided as the value of the "Ref" property, as: { "Ref": "VPCID" }. Update requires: Replacement NoteIf you update this property, you must also update the CidrBlock property.
Source:

Extends

  • WKResource

EC2.Subnet

new Subnet()

Properties:
Name Type Description
AvailabilityZone String Required: No. The availability zone in which you want the subnet. Default: AWS selects a zone for you (recommended). Update requires: Replacement NoteIf you update this property, you must also update the CidrBlock property.
CidrBlock String Required: Yes. The CIDR block that you want the subnet to cover (for example, "10.0.0.0/24"). Update requires: Replacement NoteIf you update this property, you must also update the AvailabilityZone property.
MapPublicIpOnLaunch Boolean Required: No. Indicates whether instances that are launched in this subnet receive a public IP address. By default, the value is false.Update requires: No interruption.
Tags AWSCloudFormationResourceTags Required: No. An arbitrary set of tags (key–value pairs) for this subnet.Update requires: No interruption.
VpcId String Required: Yes. A Ref structure that contains the ID of the VPC on which you want to create the subnet. The VPC ID is provided as the value of the "Ref" property, as: { "Ref": "VPCID" }. Update requires: Replacement NoteIf you update this property, you must also update the CidrBlock property.
Source:

Extends

  • WKResource