SCP::VPC::Subnet

SCP::VPC::Subnet

SCP::VPC::Subnet

Description

A subnet of a VPC that provides an IP address range for network resources.

Version

1.3.0

Syntax

To declare this entity in your Infrastructure Builder template, use the following syntax:

JSON

{
  "Type" : "SCP::VPC::Subnet",
  "Properties" : {
    "Name" : "String",
    "VpcId" : "String",
    "Cidr" : "String",
    "Type" : "String",
    "Category" : "String",
    "Description" : "String",
    "DhcpIpAddress" : "String",
    "AllocationPools" : [AllocationPools, ...],
    "HostRoutes" : [HostRoutes, ...],
    "GatewayIpAddress" : "String",
    "DnsNameservers" : "String",
    "PrimarySubnetId" : "String"
  }
}

YAML

Type: SCP::VPC::Subnet
Properties:
  Name: String
  VpcId: String
  Cidr: String
  Type: String
  Category: String
  Description: String
  DhcpIpAddress: String
  AllocationPools: 
    - AllocationPools
  HostRoutes: 
    - HostRoutes
  GatewayIpAddress: String
  DnsNameservers: String
  PrimarySubnetId: String

Properties

Name

The name of the subnet. It must be 3 to 20 characters long and match the pattern ^[a-zA-Z0-9-]*$, for example subnetName.

AttributeValue
RequiredYes
TypeString
Pattern^[a-zA-Z0-9-]*$
Length constraints3–20
Update requiresReplacement

VpcId

The identifier of the VPC that the subnet belongs to.

AttributeValue
RequiredYes
TypeString
Update requiresReplacement

Cidr

The IP address range of the subnet in CIDR notation.

AttributeValue
RequiredYes
TypeString
Update requiresReplacement

Type

The type of the subnet.

AttributeValue
RequiredYes
TypeString
Update requiresReplacement

Category

The category of the subnet.

AttributeValue
RequiredYes
TypeString
Update requiresReplacement

Description

A brief explanation or note that identifies the purpose or usage of the subnet, up to 50 characters.

AttributeValue
RequiredNo
TypeString
Length constraintsMax: 50
Update requiresNo interruption

DhcpIpAddress

The IP address automatically assigned by DHCP.

AttributeValue
RequiredNo
TypeString
Update requiresNo interruption

AllocationPools

The ranges of IP addresses available for allocation within the subnet.

AttributeValue
RequiredNo
TypeArray of AllocationPools
Update requiresReplacement

For more information, see AllocationPools.

HostRoutes

The static host routes configured for the subnet.

AttributeValue
RequiredNo
TypeArray of HostRoutes
Update requiresReplacement

For more information, see HostRoutes.

GatewayIpAddress

The gateway IP address of the subnet.

AttributeValue
RequiredNo
TypeString
Update requiresReplacement

DnsNameservers

The DNS name server address of the subnet, up to one address.

AttributeValue
RequiredNo
TypeString
Update requiresReplacement

PrimarySubnetId

The identifier of the primary subnet of the VPC to which the subnet belongs.

AttributeValue
RequiredNo
TypeString
Update requiresReplacement

Return Values

Ref

When you pass the logical ID of this resource to the Ref function, Ref returns the value of the Id.

Fn::GetAtt

AttributeDescription
NameThe name of the subnet. It must be 3 to 20 characters long and match the pattern ^[a-zA-Z0-9-]*$, for example subnetName.
VpcIdThe identifier of the VPC that the subnet belongs to.
CidrThe IP address range of the subnet in CIDR notation.
TypeThe type of the subnet.
CategoryThe category of the subnet.
DescriptionA brief explanation or note that identifies the purpose or usage of the subnet, up to 50 characters.
DhcpIpAddressThe IP address automatically assigned by DHCP.
AllocationPoolsThe ranges of IP addresses available for allocation within the subnet.
HostRoutesThe static host routes configured for the subnet.
GatewayIpAddressThe gateway IP address of the subnet.
DnsNameserversThe DNS name server address of the subnet, up to one address.
PrimarySubnetIdThe identifier of the primary subnet of the VPC to which the subnet belongs.
AccountIdThe identifier of the account that owns the subnet.
StateThe current lifecycle state of the subnet.
VpcNameThe name of the VPC that the subnet belongs to.
SecondarySubnetIdsThe list of secondary subnet IDs of the VPC to which the subnet belongs.
ZonesThe list of availability zones where the subnet is located.