ALIYUN::PVTZ::ZoneVpcBinder用于绑定或者解绑Zone与专有网络列表。
语法
{
  "Type": "ALIYUN::PVTZ::ZoneVpcBinder",
  "Properties": {
    "Vpcs": List,
    "ZoneId": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
|---|---|---|---|---|---|
| Vpcs | List | 是 | 是 | 专有网络列表。 | 最多支持10个专有网络。 更多信息,请参见Vpcs属性。 | 
| ZoneId | String | 是 | 否 | 可用区ID。 | 无 | 
Vpcs语法
"Vpcs": [
  {
    "VpcId": String,
    "RegionId": String
  }
]Vpcs属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
|---|---|---|---|---|---|
| VpcId | String | 是 | 否 | 专有网络ID。 | 无 | 
| RegionId | String | 是 | 否 | 地域ID。 | 无 | 
返回值
Fn::GetAtt
- ZoneId:可用区ID。
- Vpcs:绑定的VPC。
示例
- JSON格式- { "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "VpcId": { "Type": "String", "AssociationProperty": "ALIYUN::ECS::VPC::VPCId" }, "ZoneId": { "Type": "String", "Description": "PVTZ Zone Id" } }, "Resources": { "ZoneVpcBinder": { "Type": "ALIYUN::PVTZ::ZoneVpcBinder", "Properties": { "Vpcs": [ { "VpcId": { "Ref": "VpcId" }, "RegionId": { "Ref": "ALIYUN::Region" } } ], "ZoneId": { "Ref": "ZoneId" } } } }, "Outputs": { } }
更多示例,请参见创建PrivateZone、添加PrivateZone解析记录和绑定或解绑Zone与专有网络列表的组合示例:JSON示例和YAML示例。