全部产品
Search
文档中心

Resource Orchestration Service:ALIYUN::PVTZ::ZoneVpcBinder

更新时间:Jun 26, 2025

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

PropertiTipeDiperlukanDapat DieditDeskripsiKendala
VpcsListYaYaDaftar VPC. Anda dapat menentukan hingga 10 VPC.

Untuk informasi lebih lanjut, lihat properti Vpcs.

ZoneIdStringYaTidakID zona privat. Tidak ada

Sintaks Vpcs

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

Properti Vpcs

PropertiTipeDiperlukanDapat DieditDeskripsiKendala
VpcIdStringYaTidakID VPC. Tidak ada
RegionIdStringYaTidakID wilayah VPC. Tidak ada

Parameter respons

Fn::GetAtt

  • ZoneId: ID zona privat.
  • Vpcs: VPC tempat zona privat diikat.

Contoh

  • Format YAML

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