ALIYUN::PVTZ::ZoneVpcBinder is used to associate a zone with a VPC or disassociate the zone from the VPC.

Syntax

{
  "Type": "ALIYUN::PVTZ::ZoneVpcBinder",
  "Properties": {
    "Vpcs": List,
    "ZoneId": String
  }
}

Properties

Name Type Required Editable Description Validity
Vpcs List Yes Yes The list of VPCs. A list can include a maximum of 10 VPCs.
ZoneId String Yes No The unique ID that identifies a zone. None

Vpcs syntax

"Vpcs": [
  {
    "VpcId": String,
    "RegionId": String
  }
]

Vpcs properties

Name Type Required Editable Description Validity
VpcId String Yes No The ID of a VPC. None
RegionId String Yes No The ID of the region where the VPC resides. None

Response parameters

FN::GetAtt

None

Examples

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "ZoneVpcBinder": {
      "Type": "ALIYUN::PVTZ::ZoneVpcBinder",
      "Properties": {
        "Vpcs": {
          "Fn::Split": [",", {
            "Ref": "Vpcs"
          }, {
            "Ref": "Vpcs"
          }]
        },
        "ZoneId": {
          "Ref": "ZoneId"
        }
      }
    }
  },
  "Parameters": {
    "Vpcs": {
      "MinLength": 0,
      "Type": "CommaDelimitedList",
      "Description": "",
      "MaxLength": 10
    },
    "ZoneId": {
      "Type": "String",
      "Description": "Zone Id"
    }
  },
  "Outputs": {}
}