The ALIYUN::PVTZ::ZoneVpcBinder resource attaches a zone to or detaches a zone from a list of Virtual Private Clouds (VPCs).
Syntax
{
"Type": "ALIYUN::PVTZ::ZoneVpcBinder",
"Properties": {
"Vpcs": List,
"ZoneId": String
}
}Properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| Vpcs | List | Yes | Yes | The list of VPCs. | A maximum of 10 VPCs are supported. For more information, see Vpcs properties. |
| ZoneId | String | Yes | No | The ID of the zone. | None |
Vpcs syntax
"Vpcs": [
{
"VpcId": String,
"RegionId": String
}
]Vpcs properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| VpcId | String | Yes | No | The ID of the VPC. | None |
| RegionId | String | Yes | No | The ID of the region. | None |
Return values
Fn::GetAtt
- ZoneId: The ID of the zone.
- Vpcs: The attached VPCs.
Examples
JSONformat{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "VpcId": { "Type": "String", "AssociationProperty": "ALIYUN::ECS::VPC::VPCId" }, "ZoneId": { "Type": "String", "Description": "The ID of the PrivateZone zone" } }, "Resources": { "ZoneVpcBinder": { "Type": "ALIYUN::PVTZ::ZoneVpcBinder", "Properties": { "Vpcs": [ { "VpcId": { "Ref": "VpcId" }, "RegionId": { "Ref": "ALIYUN::Region" } } ], "ZoneId": { "Ref": "ZoneId" } } } }, "Outputs": { } }
For combined examples that show how to create a PrivateZone zone, add a DNS record, and attach or detach VPCs, see the JSON example and the YAML example.
该文章对您有帮助吗?