ALIYUN::PVTZ::ZoneVpcBinder

更新时间:
复制 MD 格式

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 nameTypeRequiredUpdate allowedDescriptionConstraints
VpcsListYesYesThe list of VPCs.A maximum of 10 VPCs are supported.

For more information, see Vpcs properties.

ZoneIdStringYesNoThe ID of the zone.None

Vpcs syntax

"Vpcs": [
  {
    "VpcId": String,
    "RegionId": String
  }
]

Vpcs properties

Property nameTypeRequiredUpdate allowedDescriptionConstraints
VpcIdStringYesNoThe ID of the VPC.None
RegionIdStringYesNoThe ID of the region.None

Return values

Fn::GetAtt

  • ZoneId: The ID of the zone.
  • Vpcs: The attached VPCs.

Examples

  • YAML format

    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: {}
  • JSON format

    {
      "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.