ALIYUN::SLB::LoadBalancer类型用于创建负载均衡实例。

语法

{
  "Type": "ALIYUN::SLB::LoadBalancer",
  "Properties": {
    "DeletionProtection": Boolean,
    "AddressType": String,
    "Tags": List,
    "InternetChargeType": String,
    "Bandwidth": Integer,
    "SlaveZoneId": String,
    "ResourceGroupId": String,
    "AutoPay": Boolean,
    "VpcId": String,
    "PricingCycle": String,
    "LoadBalancerName": String,
    "Duration": Number,
    "VSwitchId": String,
    "LoadBalancerSpec": String,
    "MasterZoneId": String,
    "PayType": String,
    "ModificationProtectionReason": String,
    "ModificationProtectionStatus": String,
    "AddressIPVersion": String,
    "AutoRenewPeriod": Integer,
    "AutoRenew": Boolean
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
ResourceGroupId String 资源组ID。
DeletionProtection Boolean 是否开启删除保护。 取值:
  • true:开启删除保护。
  • false(默认值):不开启删除保护。
VpcId String 专有网络ID。
SlaveZoneId String 负载均衡实例的可用区ID。
Bandwidth Integer 按固定带宽计费方式的公网类型实例的带宽峰值。

取值范围:1~10000。

单位:Mbps。

默认值:1。

专有网络实例系统会统一按流量计费设置该参数。

  • 针对按固定带宽计费方式的公网类型实例,需要将当前设定值通过Listener中的Bandwidth参数进行分配后才能生效。
  • 针对按使用流量计费方式的公网类型实例的带宽峰值,请直接通过Listener上Bandwidth参数进行设定,此时该参数会被忽略。
AddressType String 负载均衡实例的地址类型。
取值:
  • internet(默认值):负载均衡具有公网IP地址,DNS域名被解析到公网IP,因此可以在公网环境访问。
  • intranet:负载均衡只有私网IP地址,DNS域名被解析到私网IP,因此只能被负载均衡所在VPC的内网环境访问。
VSwitchId String 交换机ID。
LoadBalancerName String 负载均衡实例的名称。 长度为1~80个字符。可包含英文字母、数字、短划线(-)、正斜线(/)、半角句号(.)和下划线(_)。

不指定该参数时,默认由系统分配一个实例名称。

InternetChargeType String 公网类型实例付费方式。
取值:
  • paybybandwidth:按带宽计费。
  • paybytraffic(默认值):按流量计费。
MasterZoneId String 实例的主可用区ID。
Tags List 负载均衡实例的标签。 最多支持5个标签。

更多信息,请参见Tags属性

LoadBalancerSpec String 负载均衡实例的规格。 取值:
  • slb.s1.small(默认值)
  • slb.s2.small
  • slb.s2.medium
  • slb.s3.small
  • slb.s3.medium
  • slb.s3.large
  • slb.s3.xlarge
  • slb.s3.xxlarge

每个地域支持的规格不同。关于每种规格的说明,参见性能保障型实例

AutoPay Boolean 是否自动支付预付费公网实例的账单。 取值:
  • true:自动支付预付费公网实例的账单。
  • false(默认值):不自动支付预付费公网实例的账单。
PayType String 实例的计费类型。 取值:
  • PayOnDemand:按量付费。
  • PrePay:预付费。
PricingCycle String 预付费公网实例的计费周期。 取值:
  • month:月。
  • year:年。
Duration Number 预付费公网实例的购买时长。 取值范围:
  • PricingCycle为month时:1~9。
  • PricingCycle为year时:1~3。
ModificationProtectionStatus String 修改保护状态。 取值:
  • NonProtection(默认值):不开启。
  • ConsoleProtection:允许通过控制台修改。
ModificationProtectionReason String 修改保护状态的原因。 长度为1~80个字符,以英文字母或汉字开头。可包含英文字母、汉字、数字、半角句号(.)和短划线(-)。
AddressIPVersion String IP版本。 取值:
  • ipv4
  • ipv6
    说明 取值为ipv6时,请注意支持区域和规范。
AutoRenewPeriod Integer 自动续费周期。 当AutoRenew取值为true时生效。

取值范围:

  • 当PricingCycle取值为month时:1~9。
  • 当PricingCycle取值为year时:1~3。
AutoRenew Boolean 是否为实例启用自动续订。 取值:
  • true:已启用自动续订。
  • false(默认值):未启用自动续订。

Tags语法

"Tags": [
  {
    "Key": String,
    "Value": String 
  }
]

Tags属性

属性名称 类型 必须 允许更新 描述 约束
Key String 标签键。 长度为1~64个字符,不能以aliyunacs:开头,不能包含http://https://
Value String 标签值。 长度为0~128个字符,不能以aliyunacs:开头,不能包含http://https://

返回值

Fn::GetAtt

  • LoadBalancerId:负载均衡实例的ID。
  • NetworkType:负载均衡实例的网络类型。
  • AddressType:负载均衡实例的地址类型。
  • IpAddress:负载均衡实例的IP地址。
  • OrderId:订单ID。
  • Bandwidth:带宽峰值。
  • PayType:实例的计费类型。
  • AddressIPVersion:负载均衡实例的IP版本。
  • SlaveZoneId:负载均衡实例的备可用区ID。
  • MasterZoneId:负载均衡实例的主可用区ID。
  • LoadBalancerName:负载均衡实例的名称。
  • ResourceGroupId:资源组ID。
  • LoadBalancerSpec:负载均衡实例的规格。
  • VpcId:负载均衡实例的所属专有网络的ID。
  • VSwitchId:负载均衡实例的所属交换机的ID。

示例

JSON格式

{
  "Parameters": {
    "AutoRenewPeriod": {
      "Type": "Number",
      "Description": "Automatic renewal cycle, which takes effect when AutoRenew is true, and is required:\nWhen PricingCycle = month, the value range is 1-9\nWhen PeriodUnit = year, the value range is 1-3",
      "MinValue": 1,
      "MaxValue": 9
    },
    "ResourceGroupId": {
      "Type": "String",
      "Description": "Resource group id."
    },
    "PricingCycle": {
      "Type": "String",
      "Description": "Optional. The duration of the Subscription-billed Internet instance to be created.\nValid values: month | year.",
      "AllowedValues": [
        "month",
        "year",
        "Month",
        "Year"
      ]
    },
    "VSwitchId": {
      "Type": "String",
      "Description": "The VSwitch id to create load balancer instance. For VPC network only."
    },
    "AutoRenew": {
      "Type": "Boolean",
      "Description": "Indicates whether automatic renewal is enabled for the instance. Valid values:true: Automatic renewal is enabled.false: Automatic renewal is not enabled. You must renew the instance manually.Default value: false.",
      "AllowedValues": [
        "True",
        "true",
        "False",
        "false"
      ]
    },
    "AddressIPVersion": {
      "Type": "String",
      "Description": "IP version, support 'ipv4' or 'ipv6'. If 'ipv6' is selected, please note that the zone and the specification are supported.",
      "AllowedValues": [
        "ipv4",
        "ipv6"
      ]
    },
    "Duration": {
      "Type": "Number",
      "Description": "Optional. The subscription duration of a Subscription Internet instance.\nValid values:\nIf PricingCycle is month, the valid range is 1 to 9 or 12, 24, 36, 48, 60.\nIf PricingCycle is year, the value range is 1 to 5.",
      "AllowedValues": [
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        12,
        24,
        36,
        48,
        60
      ]
    },
    "DeletionProtection": {
      "Type": "Boolean",
      "Description": "Whether to enable deletion protection.",
      "AllowedValues": [
        "True",
        "true",
        "False",
        "false"
      ],
      "Default": false
    },
    "AutoPay": {
      "Type": "Boolean",
      "Description": "Optional. Indicates whether to automatically pay the bill for the Subscription-billed Internet instance to be created.\nValid values: true | false (default value)",
      "AllowedValues": [
        "True",
        "true",
        "False",
        "false"
      ],
      "Default": false
    },
    "PayType": {
      "Type": "String",
      "Description": "Optional. The billing method of the instance to be created.\nValid value: PayOnDemand (Pay-As-You-Go) | PrePay (Subscription)",
      "AllowedValues": [
        "Subscription",
        "PrePaid",
        "PrePay",
        "Prepaid",
        "PayAsYouGo",
        "PostPaid",
        "PayOnDemand",
        "Postpaid"
      ]
    },
    "SlaveZoneId": {
      "Type": "String",
      "Description": "The slave zone id to create load balancer instance."
    },
    "ModificationProtectionStatus": {
      "Type": "String",
      "Description": "NonProtection or empty: means no restriction on modification protection\nConsoleProtection: Modify instance protection status by console\nDefault value is empty.",
      "AllowedValues": [
        "NonProtection",
        "ConsoleProtection"
      ]
    },
    "InternetChargeType": {
      "Type": "String",
      "Description": "Instance internet access charge type.Support 'paybybandwidth' and 'paybytraffic' only. Default is 'paybytraffic'. If load balancer is created in VPC, the charge type will be set as 'paybytraffic' by default.",
      "AllowedValues": [
        "paybytraffic",
        "PayByTraffic",
        "paybybandwidth",
        "PayByBandwidth"
      ],
      "Default": "paybytraffic"
    },
    "LoadBalancerSpec": {
      "Type": "String",
      "Description": "The specification of the Server Load Balancer instance. Allowed value: slb.s1.small|slb.s2.small|slb.s2.medium|slb.s3.small|slb.s3.medium|slb.s3.large|slb.s3.xlarge|slb.s3.xxlarge. Default value: slb.s1.small. The supported performance specification in each region is different, two specifications are supported in the US East 1 region. If the region does not support the performance-guaranteed instances, the value will not take effect."
    },
    "LoadBalancerName": {
      "Type": "String",
      "Description": "Name of created load balancer. Length is limited to 1-80 characters, allowed to contain letters, numbers, '-, /, _,.' When not specified, a default name will be assigned."
    },
    "VpcId": {
      "Type": "String",
      "Description": "The VPC id to create load balancer instance. For VPC network only."
    },
    "Bandwidth": {
      "Type": "Number",
      "Description": "The bandwidth for network, unit in Mbps(Mega bit per second). Range is 1 to 1000, default is 1. If InternetChargeType is specified as \"paybytraffic\", this property will be ignore and please specify the \"Bandwidth\" in ALIYUN::SLB::Listener.",
      "Default": 1
    },
    "ModificationProtectionReason": {
      "Type": "String",
      "Description": "Set the reason for modifying the protection status. The length is 1-80 English or Chinese characters, must start with upper and lower letters or Chinese, and can include numbers, periods (.), underscores (_) and dashes (-).\nOnly valid when ModificationProtectionStatus is ConsoleProtection.",
      "MaxLength": 80
    },
    "AddressType": {
      "Type": "String",
      "Description": "Loader balancer address type. Support 'internet' and 'intranet' only, default is 'internet'.",
      "AllowedValues": [
        "internet",
        "intranet"
      ],
      "Default": "internet"
    },
    "Tags": {
      "Type": "Json",
      "Description": "Tags to attach to slb. Max support 5 tags to add during create slb. Each tag with two properties Key and Value, and Key is required.",
      "MaxLength": 5
    },
    "MasterZoneId": {
      "Type": "String",
      "Description": "The master zone id to create load balancer instance."
    }
  },
  "ROSTemplateFormatVersion": "2015-09-01",
  "Outputs": {
    "ResourceGroupId": {
      "Description": "Resource group id.",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "ResourceGroupId"
        ]
      }
    },
    "AddressIPVersion": {
      "Description": "IP version",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "AddressIPVersion"
        ]
      }
    },
    "VSwitchId": {
      "Description": "VSwitch id",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "VSwitchId"
        ]
      }
    },
    "LoadBalancerId": {
      "Description": "The id of load balance created.",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "LoadBalancerId"
        ]
      }
    },
    "PayType": {
      "Description": "The billing method of the instance to be created.",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "PayType"
        ]
      }
    },
    "OrderId": {
      "Description": "The order ID.",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "OrderId"
        ]
      }
    },
    "SlaveZoneId": {
      "Description": "The slave zone id to create load balancer instance.",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "SlaveZoneId"
        ]
      }
    },
    "LoadBalancerSpec": {
      "Description": "The specification of the Server Load Balancer instance",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "LoadBalancerSpec"
        ]
      }
    },
    "LoadBalancerName": {
      "Description": "Name of created load balancer.",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "LoadBalancerName"
        ]
      }
    },
    "VpcId": {
      "Description": "Vpc id",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "VpcId"
        ]
      }
    },
    "NetworkType": {
      "Description": "The network type of the load balancer. \"vpc\" or \"classic\" network.",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "NetworkType"
        ]
      }
    },
    "Bandwidth": {
      "Description": "The bandwidth for network",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "Bandwidth"
        ]
      }
    },
    "IpAddress": {
      "Description": "The ip address of the load balancer.",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "IpAddress"
        ]
      }
    },
    "AddressType": {
      "Description": "The address type of the load balancer. \"intranet\" or \"internet\".",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "AddressType"
        ]
      }
    },
    "MasterZoneId": {
      "Description": "The master zone id to create load balancer instance.",
      "Value": {
        "Fn::GetAtt": [
          "LoadBalance",
          "MasterZoneId"
        ]
      }
    }
  },
  "Resources": {
    "LoadBalance": {
      "Type": "ALIYUN::SLB::LoadBalancer",
      "Properties": {
        "AutoRenewPeriod": {
          "Ref": "AutoRenewPeriod"
        },
        "ResourceGroupId": {
          "Ref": "ResourceGroupId"
        },
        "PricingCycle": {
          "Ref": "PricingCycle"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "AutoRenew": {
          "Ref": "AutoRenew"
        },
        "AddressIPVersion": {
          "Ref": "AddressIPVersion"
        },
        "Duration": {
          "Ref": "Duration"
        },
        "DeletionProtection": {
          "Ref": "DeletionProtection"
        },
        "AutoPay": {
          "Ref": "AutoPay"
        },
        "PayType": {
          "Ref": "PayType"
        },
        "SlaveZoneId": {
          "Ref": "SlaveZoneId"
        },
        "ModificationProtectionStatus": {
          "Ref": "ModificationProtectionStatus"
        },
        "InternetChargeType": {
          "Ref": "InternetChargeType"
        },
        "LoadBalancerSpec": {
          "Ref": "LoadBalancerSpec"
        },
        "LoadBalancerName": {
          "Ref": "LoadBalancerName"
        },
        "VpcId": {
          "Ref": "VpcId"
        },
        "Bandwidth": {
          "Ref": "Bandwidth"
        },
        "ModificationProtectionReason": {
          "Ref": "ModificationProtectionReason"
        },
        "AddressType": {
          "Ref": "AddressType"
        },
        "Tags": {
          "Ref": "Tags"
        },
        "MasterZoneId": {
          "Ref": "MasterZoneId"
        }
      }
    }
  }
}

YAML格式

Parameters:
  AutoRenewPeriod:
    Type: Number
    Description: >-
      Automatic renewal cycle, which takes effect when AutoRenew is true, and is
      required:

      When PricingCycle = month, the value range is 1-9

      When PeriodUnit = year, the value range is 1-3
    MinValue: 1
    MaxValue: 9
  ResourceGroupId:
    Type: String
    Description: Resource group id.
  PricingCycle:
    Type: String
    Description: >-
      Optional. The duration of the Subscription-billed Internet instance to be
      created.

      Valid values: month | year.
    AllowedValues:
      - month
      - year
      - Month
      - Year
  VSwitchId:
    Type: String
    Description: The VSwitch id to create load balancer instance. For VPC network only.
  AutoRenew:
    Type: Boolean
    Description: >-
      Indicates whether automatic renewal is enabled for the instance. Valid
      values:true: Automatic renewal is enabled.false: Automatic renewal is not
      enabled. You must renew the instance manually.Default value: false.
    AllowedValues:
      - 'True'
      - 'true'
      - 'False'
      - 'false'
  AddressIPVersion:
    Type: String
    Description: >-
      IP version, support 'ipv4' or 'ipv6'. If 'ipv6' is selected, please note
      that the zone and the specification are supported.
    AllowedValues:
      - ipv4
      - ipv6
  Duration:
    Type: Number
    Description: |-
      Optional. The subscription duration of a Subscription Internet instance.
      Valid values:
      If PricingCycle is month, the valid range is 1 to 9 or 12, 24, 36, 48, 60.
      If PricingCycle is year, the value range is 1 to 5.
    AllowedValues:
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
      - 9
      - 12
      - 24
      - 36
      - 48
      - 60
  DeletionProtection:
    Type: Boolean
    Description: Whether to enable deletion protection.
    AllowedValues:
      - 'True'
      - 'true'
      - 'False'
      - 'false'
    Default: false
  AutoPay:
    Type: Boolean
    Description: >-
      Optional. Indicates whether to automatically pay the bill for the
      Subscription-billed Internet instance to be created.

      Valid values: true | false (default value)
    AllowedValues:
      - 'True'
      - 'true'
      - 'False'
      - 'false'
    Default: false
  PayType:
    Type: String
    Description: |-
      Optional. The billing method of the instance to be created.
      Valid value: PayOnDemand (Pay-As-You-Go) | PrePay (Subscription)
    AllowedValues:
      - Subscription
      - PrePaid
      - PrePay
      - Prepaid
      - PayAsYouGo
      - PostPaid
      - PayOnDemand
      - Postpaid
  SlaveZoneId:
    Type: String
    Description: The slave zone id to create load balancer instance.
  ModificationProtectionStatus:
    Type: String
    Description: |-
      NonProtection or empty: means no restriction on modification protection
      ConsoleProtection: Modify instance protection status by console
      Default value is empty.
    AllowedValues:
      - NonProtection
      - ConsoleProtection
  InternetChargeType:
    Type: String
    Description: >-
      Instance internet access charge type.Support 'paybybandwidth' and
      'paybytraffic' only. Default is 'paybytraffic'. If load balancer is
      created in VPC, the charge type will be set as 'paybytraffic' by default.
    AllowedValues:
      - paybytraffic
      - PayByTraffic
      - paybybandwidth
      - PayByBandwidth
    Default: paybytraffic
  LoadBalancerSpec:
    Type: String
    Description: >-
      The specification of the Server Load Balancer instance. Allowed value:
      slb.s1.small|slb.s2.small|slb.s2.medium|slb.s3.small|slb.s3.medium|slb.s3.large|slb.s3.xlarge|slb.s3.xxlarge.
      Default value: slb.s1.small. The supported performance specification in
      each region is different, two specifications are supported in the US East
      1 region. If the region does not support the performance-guaranteed
      instances, the value will not take effect.
  LoadBalancerName:
    Type: String
    Description: >-
      Name of created load balancer. Length is limited to 1-80 characters,
      allowed to contain letters, numbers, '-, /, _,.' When not specified, a
      default name will be assigned.
  VpcId:
    Type: String
    Description: The VPC id to create load balancer instance. For VPC network only.
  Bandwidth:
    Type: Number
    Description: >-
      The bandwidth for network, unit in Mbps(Mega bit per second). Range is 1
      to 1000, default is 1. If InternetChargeType is specified as
      "paybytraffic", this property will be ignore and please specify the
      "Bandwidth" in ALIYUN::SLB::Listener.
    Default: 1
  ModificationProtectionReason:
    Type: String
    Description: >-
      Set the reason for modifying the protection status. The length is 1-80
      English or Chinese characters, must start with upper and lower letters or
      Chinese, and can include numbers, periods (.), underscores (_) and dashes
      (-).

      Only valid when ModificationProtectionStatus is ConsoleProtection.
    MaxLength: 80
  AddressType:
    Type: String
    Description: >-
      Loader balancer address type. Support 'internet' and 'intranet' only,
      default is 'internet'.
    AllowedValues:
      - internet
      - intranet
    Default: internet
  Tags:
    Type: Json
    Description: >-
      Tags to attach to slb. Max support 5 tags to add during create slb. Each
      tag with two properties Key and Value, and Key is required.
    MaxLength: 5
  MasterZoneId:
    Type: String
    Description: The master zone id to create load balancer instance.
ROSTemplateFormatVersion: '2015-09-01'
Outputs:
  ResourceGroupId:
    Description: Resource group id.
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - ResourceGroupId
  AddressIPVersion:
    Description: IP version
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - AddressIPVersion
  VSwitchId:
    Description: VSwitch id
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - VSwitchId
  LoadBalancerId:
    Description: The id of load balance created.
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - LoadBalancerId
  PayType:
    Description: The billing method of the instance to be created.
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - PayType
  OrderId:
    Description: The order ID.
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - OrderId
  SlaveZoneId:
    Description: The slave zone id to create load balancer instance.
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - SlaveZoneId
  LoadBalancerSpec:
    Description: The specification of the Server Load Balancer instance
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - LoadBalancerSpec
  LoadBalancerName:
    Description: Name of created load balancer.
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - LoadBalancerName
  VpcId:
    Description: Vpc id
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - VpcId
  NetworkType:
    Description: The network type of the load balancer. "vpc" or "classic" network.
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - NetworkType
  Bandwidth:
    Description: The bandwidth for network
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - Bandwidth
  IpAddress:
    Description: The ip address of the load balancer.
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - IpAddress
  AddressType:
    Description: The address type of the load balancer. "intranet" or "internet".
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - AddressType
  MasterZoneId:
    Description: The master zone id to create load balancer instance.
    Value:
      'Fn::GetAtt':
        - LoadBalance
        - MasterZoneId
Resources:
  LoadBalance:
    Type: 'ALIYUN::SLB::LoadBalancer'
    Properties:
      AutoRenewPeriod:
        Ref: AutoRenewPeriod
      ResourceGroupId:
        Ref: ResourceGroupId
      PricingCycle:
        Ref: PricingCycle
      VSwitchId:
        Ref: VSwitchId
      AutoRenew:
        Ref: AutoRenew
      AddressIPVersion:
        Ref: AddressIPVersion
      Duration:
        Ref: Duration
      DeletionProtection:
        Ref: DeletionProtection
      AutoPay:
        Ref: AutoPay
      PayType:
        Ref: PayType
      SlaveZoneId:
        Ref: SlaveZoneId
      ModificationProtectionStatus:
        Ref: ModificationProtectionStatus
      InternetChargeType:
        Ref: InternetChargeType
      LoadBalancerSpec:
        Ref: LoadBalancerSpec
      LoadBalancerName:
        Ref: LoadBalancerName
      VpcId:
        Ref: VpcId
      Bandwidth:
        Ref: Bandwidth
      ModificationProtectionReason:
        Ref: ModificationProtectionReason
      AddressType:
        Ref: AddressType
      Tags:
        Ref: Tags
      MasterZoneId:
        Ref: MasterZoneId

更多示例,请参见创建负载均衡实例、创建主备服务器组和向负载均衡添加后端服务器的组合示例:JSON示例YAML示例