文档

ALIYUN::CEN::CenBandwidthPackage

更新时间:

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

属性

属性名称

类型

必须

允许更新

描述

约束

Bandwidth

Integer

带宽包的带宽峰值

单位:Mbps。

最小值:2。

GeographicRegionAId

String

网络实例所属地域

取值:

  • China

  • North-America

  • Asia-Pacific

  • Europe

GeographicRegionBId

String

网络实例所属的地域

取值:

  • China

  • North-America

  • Asia-Pacific

  • Europe

AutoPay

Boolean

是否自动支付账单

取值:

  • true(默认值)

  • false

AutoRenew

Boolean

是否开启自动续费

取值:

  • true

  • false(默认值)

AutoRenewDuration

Integer

自动续费时长

当AutoRenew取值为true时生效。

取值:

  • 1

  • 2

  • 3

单位:月。

BandwidthPackageChargeType

String

带宽包的付费类型

取值:

  • POSTPAY

  • PREPAY

Description

String

带宽包的描述

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

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

Name

String

带宽包的名称

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

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

Period

Integer

带宽包的购买时长

默认值:1。

PricingCycle

String

带宽包的计费周期

取值:

  • Month(默认值)

  • Year

ResourceGroupId

String

资源组ID。

返回值

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