ALIYUN::ECS::VSwitch is used to create a vSwitch.
Syntax
{
"Type": "ALIYUN::ECS::VSwitch",
"Properties": {
"VSwitchName": String,
"VpcId": String,
"Description": String,
"Tags": List,
"Ipv6CidrBlock": Integer,
"ZoneId": String,
"CidrBlock": String,
"VpcIpv6CidrBlock": String,
"ZoneType": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
| String | Yes | No | The ID of the virtual private cloud (VPC) in which you want to create the vSwitch. | None. |
| String | Yes | No | The zone ID. | None. |
| String | No | Yes | The vSwitch name. | The name must be 2 to 128 characters in length. It must start with a letter and cannot start with |
| String | Yes | No | The CIDR block of the vSwitch. | The CIDR block of a vSwitch must be a subset of the CIDR block of the VPC to which the vSwitch belongs and cannot be used by other vSwitches. |
| String | No | Yes | The description of the vSwitch. | The description must be 2 to 256 characters in length. It cannot start with |
| Integer | No | No | The IPv6 CIDR block of the vSwitch. | Valid values: 0 to 255. The value must be a decimal integer. By default, the mask of the IPv6 CIDR block of the vSwitch is 64 bits in length. You can specify a custom value for the last eight bits of the mask of the IPv6 CIDR block of the VPC. |
| List | No | Yes | The tags. | You can add up to 20 tags. For more information, see Tags properties. |
| String | No | No | The IPv6 CIDR block of the VPC. | None. |
ZoneType | String | No | No | The zone type. | Default value: |
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags properties
Property | Type | Required | Editable | Description | Constraint |
| String | Yes | No | The tag key. | The tag key must be 1 to 128 characters in length, and cannot contain |
| String | No | No | The tag value. | The tag value can be up to 128 characters in length, and cannot contain |
Return values
Fn::GetAtt
CidrBlock: the IPv4 CIDR block of the vSwitch.
Ipv6CidrBlock: the IPv6 CIDR block of the vSwitch.
VSwitchId: the vSwitch ID.
VSwitchName: the vSwitch name.