La ressource ALIYUN::PVTZ::ZoneVpcBinder associe une zone à une liste de Virtual Private Cloud (VPC) ou la dissocie de celle-ci.
Syntaxe
{
"Type": "ALIYUN::PVTZ::ZoneVpcBinder",
"Properties": {
"Vpcs": List,
"ZoneId": String
}
}
Propriétés
| Nom de la propriété | Type | Obligatoire | Mise à jour autorisée | Description | Contraintes |
| Vpcs | List | Oui | Oui | Liste des VPC. |
10 VPC au maximum. Pour plus d'informations, consultez les propriétés Vpcs. |
| ZoneId | String | Oui | Non | ID de la zone. | Aucune |
Syntaxe Vpcs
"Vpcs": [
{
"VpcId": String,
"RegionId": String
}
]
Propriétés Vpcs
| Nom de la propriété | Type | Obligatoire | Mise à jour autorisée | Description | Contraintes |
| VpcId | String | Oui | Non | ID du VPC. | Aucune |
| RegionId | String | Oui | Non | ID de la région. | Aucune |
Valeurs de retour
Fn::GetAtt
ZoneId : ID de la zone.
Vpcs : VPC associés.
Exemples
-
Format
YAMLROSTemplateFormatVersion: '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: {} -
Format
JSON{ "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": { } }
Pour des exemples combinés illustrant la création d'une zone PrivateZone, l'ajout d'un enregistrement DNS ainsi que l'association ou la dissociation de VPC, consultez l'exemple JSON et l'exemple YAML.