ALIYUN::PVTZ::ZoneVpcBinder is used to bind a private zone to or unbind a private zone from a virtual private cloud (VPC).
Syntax
{
"Type": "ALIYUN::PVTZ::ZoneVpcBinder",
"Properties": {
"Vpcs": List,
"ZoneId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Vpcs | List | Yes | Yes | The list of VPCs. | You can specify up to 10 VPCs. For more information, see Vpcs properties. |
ZoneId | String | Yes | No | The ID of the private zone. | None |
Vpcs syntax
"Vpcs": [
{
"VpcId": String,
"RegionId": String
}
]
Vpcs properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
VpcId | String | Yes | No | The ID of the VPC. | None |
RegionId | String | Yes | No | The region ID of the VPC. | None |
Response parameters
Fn::GetAtt
- ZoneId: the ID of the private zone.
- Vpcs: the VPC to which the private zone is bound.
Examples
JSON
format{ "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": { } }
For more examples, see PVTZ.json and PVTZ.yml. In the examples, the ALIYUN::PVTZ::Zone, ALIYUN::PVTZ::ZoneRecord, and ALIYUN::PVTZ::ZoneVpcBinder resource types are involved.