SCP::VPC::Port

SCP::VPC::Port

SCP::VPC::Port

Description

A network port within a VPC subnet, with optional static IP and security group bindings.

Version

1.3.0

Syntax

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

JSON

{
  "Type" : "SCP::VPC::Port",
  "Properties" : {
    "Name" : "String",
    "SubnetId" : "String",
    "Description" : "String",
    "FixedIpAddress" : "String",
    "SecurityGroups" : [SecurityGroups, ...]
  }
}

YAML

Type: SCP::VPC::Port
Properties:
  Name: String
  SubnetId: String
  Description: String
  FixedIpAddress: String
  SecurityGroups: 
    - SecurityGroups

Properties

Name

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

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

SubnetId

The identifier of the subnet that the port belongs to, for example 023c57b14f11483689338d085e061492.

AttributeValue
RequiredYes
TypeString
Update requiresReplacement

Description

A brief explanation or note about this resource that identifies the purpose or usage of the resource, up to 50 characters, for example Port Description.

AttributeValue
RequiredNo
TypeString
Length constraintsMax: 50
Update requiresNo interruption

FixedIpAddress

The fixed IP address assigned to the port, for example 172.24.4.2.

AttributeValue
RequiredNo
TypeString
Update requiresReplacement

SecurityGroups

The list of security groups associated with the port.

AttributeValue
RequiredNo
TypeArray of SecurityGroups
Update requiresNo interruption

For more information, see SecurityGroups.

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 port. It must be 3 to 20 characters long and match the pattern ^[a-zA-Z0-9-]+$, for example portName.
SubnetIdThe identifier of the subnet that the port belongs to, for example 023c57b14f11483689338d085e061492.
DescriptionA brief explanation or note about this resource that identifies the purpose or usage of the resource, up to 50 characters, for example Port Description.
FixedIpAddressThe fixed IP address assigned to the port, for example 172.24.4.2.
SecurityGroupsThe list of security groups associated with the port.
AccountIdThe identifier of the account that owns the port, for example f1e6c81a2b054582878cb9724dc2ce9f.
AttachedResourceIdThe identifier of the resource that this port is attached to, for example 7df8abb4912e4709b1cb237daccca7a8.
AttachedResourceTypeThe type of the resource that this port is attached to, for example VM.
MacAddressThe MAC address of the port, for example fa:16:3e:5c:9b:7a.
StateThe current lifecycle state of the port, for example ACTIVE.
SubnetNameThe name of the subnet that the port belongs to, for example subnetName.
VpcIdThe identifier of the VPC that the port belongs to, for example 7df8abb4912e4709b1cb237daccca7a8.
VpcNameThe name of the VPC that the port belongs to, for example vpcName.
VirtualIpAddressesThe list of virtual IP addresses assigned to the port, for example [192.168.1.100].