ALIYUN::CEN::CenBandwidthPackage类型用于在使用云企业网连接不同地域的网络实例前,根据网络实例所属地域购买带宽包。
语法
{
  "Type": "ALIYUN::CEN::CenBandwidthPackage",
  "Properties": {
    "Description": String,
    "BandwidthPackageChargeType": String,
    "GeographicRegionBId": String,
    "GeographicRegionAId": String,
    "PricingCycle": String,
    "AutoRenew": "Boolean",
    "Bandwidth": Integer,
    "Period": Integer,
    "AutoPay": "Boolean",
    "AutoRenewDuration": Integer,
    "Name": String,
    "ResourceGroupId": String,
    "Tags": List
  }
} 属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| Bandwidth | Integer | 是 | 是 | 带宽包的带宽峰值 | 单位:Mbps。 最小值:2。 | 
| GeographicRegionAId | String | 是 | 否 | 网络实例所属地域 | 取值: 
 | 
| GeographicRegionBId | String | 是 | 否 | 网络实例所属的地域 | 取值: 
 | 
| AutoPay | Boolean | 否 | 否 | 是否自动支付账单 | 取值: 
 | 
| AutoRenew | Boolean | 否 | 否 | 是否开启自动续费 | 取值: 
 | 
| AutoRenewDuration | Integer | 否 | 否 | 自动续费时长 | 当AutoRenew取值为true时生效。 取值: 
 单位:月。 | 
| BandwidthPackageChargeType | String | 否 | 否 | 带宽包的付费类型 | 取值: 
 | 
| Description | String | 否 | 是 | 带宽包的描述 | 长度为2~256个字符,必须以中文字符或英文字符开头,不能以 可包含中文字符、英文字符、数字、短划线(-)、英文句点(.)和下划线(_)。 | 
| Name | String | 否 | 是 | 带宽包的名称 | 长度为2~128个字符,必须以英文字符或中文字符开头,不能以 可包含英文字符、中文字符、数字、英文句点(.)、下划线(_)和短划线(-)。 | 
| Period | Integer | 否 | 否 | 带宽包的购买时长 | 默认值:1。 | 
| PricingCycle | String | 否 | 否 | 带宽包的计费周期 | 取值: 
 | 
| ResourceGroupId | String | 否 | 是 | 资源组ID。 | 无 | 
| Tags | List | 否 | 是 | 标签列表。 | 更多信息,请参见Tags属性。 | 
Tags语法
"Tags": [
  {
    "Key": String,
    "Value": String
  }
]Tags属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| Key | String | 是 | 否 | 标签键。 | 无 | 
| Value | String | 否 | 否 | 标签值。 | 无 | 
返回值
Fn::GetAtt
- CenBandwidthPackageId:新建带宽包的ID。 
- Arn:阿里云资源名称。 
示例
YAML格式 
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
  CenBandwidthPackage:
    Type: ALIYUN::CEN::CenBandwidthPackage
    Properties:
      GeographicRegionBId: China
      GeographicRegionAId: China
      Bandwidth: 3
      BandwidthPackageChargeType: POSTPAY
Outputs:
  CenBandwidthPackageId:
    Description: The ID of the bandwidth package.
    Value:
      Fn::GetAtt:
        - CenBandwidthPackage
        - CenBandwidthPackageIdJSON格式 
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "CenBandwidthPackage": {
      "Type": "ALIYUN::CEN::CenBandwidthPackage",
      "Properties": {
        "GeographicRegionBId": "China",
        "GeographicRegionAId": "China",
        "Bandwidth": 3,
        "BandwidthPackageChargeType": "POSTPAY"
      }
    }
  },
  "Outputs": {
    "CenBandwidthPackageId": {
      "Description": "The ID of the bandwidth package.",
      "Value": {
        "Fn::GetAtt": [
          "CenBandwidthPackage",
          "CenBandwidthPackageId"
        ]
      }
    }
  }
}