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.
| Attribute | Value |
|---|---|
| Required | Yes |
| Type | String |
| Pattern | ^[a-zA-Z0-9-]*$ |
| Length constraints | 3–20 |
| Update requires | Replacement |
SubnetId
The identifier of the subnet that the port belongs to, for example 023c57b14f11483689338d085e061492.
| Attribute | Value |
|---|---|
| Required | Yes |
| Type | String |
| Update requires | Replacement |
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.
| Attribute | Value |
|---|---|
| Required | No |
| Type | String |
| Length constraints | Max: 50 |
| Update requires | No interruption |
FixedIpAddress
The fixed IP address assigned to the port, for example 172.24.4.2.
| Attribute | Value |
|---|---|
| Required | No |
| Type | String |
| Update requires | Replacement |
SecurityGroups
The list of security groups associated with the port.
| Attribute | Value |
|---|---|
| Required | No |
| Type | Array of SecurityGroups |
| Update requires | No 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
| Attribute | Description |
|---|---|
| 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. |
| SubnetId | The identifier of the subnet that the port belongs to, for example 023c57b14f11483689338d085e061492. |
| 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. |
| FixedIpAddress | The fixed IP address assigned to the port, for example 172.24.4.2. |
| SecurityGroups | The list of security groups associated with the port. |
| AccountId | The identifier of the account that owns the port, for example f1e6c81a2b054582878cb9724dc2ce9f. |
| AttachedResourceId | The identifier of the resource that this port is attached to, for example 7df8abb4912e4709b1cb237daccca7a8. |
| AttachedResourceType | The type of the resource that this port is attached to, for example VM. |
| MacAddress | The MAC address of the port, for example fa:16:3e:5c:9b:7a. |
| State | The current lifecycle state of the port, for example ACTIVE. |
| SubnetName | The name of the subnet that the port belongs to, for example subnetName. |
| VpcId | The identifier of the VPC that the port belongs to, for example 7df8abb4912e4709b1cb237daccca7a8. |
| VpcName | The name of the VPC that the port belongs to, for example vpcName. |
| VirtualIpAddresses | The list of virtual IP addresses assigned to the port, for example [192.168.1.100]. |