ALIYUN::PVTZ::ZoneVpcBinder digunakan untuk mengikat zona privat ke atau melepas zona privat dari virtual private cloud (VPC).
Sintaks
{
"Type": "ALIYUN::PVTZ::ZoneVpcBinder",
"Properties": {
"Vpcs": List,
"ZoneId": String
}
}Properti
| Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Kendala |
| Vpcs | List | Ya | Ya | Daftar VPC. | Anda dapat menentukan hingga 10 VPC. Untuk informasi lebih lanjut, lihat properti Vpcs. |
| ZoneId | String | Ya | Tidak | ID zona privat. | Tidak ada |
Sintaks Vpcs
"Vpcs": [
{
"VpcId": String,
"RegionId": String
}
]Properti Vpcs
| Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Kendala |
| VpcId | String | Ya | Tidak | ID VPC. | Tidak ada |
| RegionId | String | Ya | Tidak | ID wilayah VPC. | Tidak ada |
Parameter respons
Fn::GetAtt
- ZoneId: ID zona privat.
- Vpcs: VPC tempat zona privat diikat.
Contoh
Format 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": { } }
Untuk lebih banyak contoh, lihat PVTZ.json dan PVTZ.yml. Dalam contoh-contoh tersebut, tipe sumber daya ALIYUN::PVTZ::Zone, ALIYUN::PVTZ::ZoneRecord, dan ALIYUN::PVTZ::ZoneVpcBinder terlibat.