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
  }
} 

属性

属性名称类型必须允许更新描述约束
GeographicRegionAIdString网络实例所属地域取值:
  • China
  • North-America
  • Asia-Pacific
  • Europe
  • Australia
ResourceGroupIdString资源组ID。
DescriptionString带宽包的描述长度为2~256个字符,必须以中文字符或英文字符开头,不能以http://https://开头。

可包含中文字符、英文字符、数字、短划线(-)、英文句点(.)和下划线(_)。

AutoPayBoolean是否自动支付账单

取值:

  • true(默认值)
  • false
PeriodInteger带宽包的购买时长默认值:1。
GeographicRegionBIdString网络实例所属的地域取值:
  • China
  • North-America
  • Asia-Pacific
  • Europe
  • Australiat
BandwidthInteger带宽包的带宽峰值单位:Mbps。

最小值:2。

PricingCycleString带宽包的计费周期取值:
  • Month(默认值)
  • Year
BandwidthPackageChargeTypeString带宽包的付费类型取值:
  • POSTPAY
  • PREPAY
NameString带宽包的名称

长度为2~128个字符,必须以英文字符或中文字符开头,不能以http://https://开头。

可包含英文字符、中文字符、数字、英文句点(.)、下划线(_)和短划线(-)。

AutoRenewBoolean是否开启自动续费取值:
  • true
  • false(默认值)
AutoRenewDurationInteger自动续费时长

当AutoRenew取值为true时生效。

取值:
  • 1
  • 2
  • 3
单位:月。

返回值

Fn::GetAtt

CenBandwidthPackageId:新建带宽包的ID。

示例

  • 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
            - CenBandwidthPackageId
  • JSON格式

    {
      "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"
            ]
          }
        }
      }
    }