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
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
GeographicRegionAId | String | 是 | 否 | 网络实例所属地域 | 取值:
|
ResourceGroupId | String | 否 | 是 | 资源组ID。 | 无 |
Description | String | 否 | 是 | 带宽包的描述 | 长度为2~256个字符,必须以中文字符或英文字符开头,不能以http:// 或https:// 开头。 可包含中文字符、英文字符、数字、短划线(-)、英文句点(.)和下划线(_)。 |
AutoPay | Boolean | 否 | 否 | 是否自动支付账单 | 取值:
|
Period | Integer | 否 | 否 | 带宽包的购买时长 | 默认值:1。 |
GeographicRegionBId | String | 是 | 否 | 网络实例所属的地域 | 取值:
|
Bandwidth | Integer | 是 | 是 | 带宽包的带宽峰值 | 单位:Mbps。 最小值:2。 |
PricingCycle | String | 否 | 否 | 带宽包的计费周期 | 取值:
|
BandwidthPackageChargeType | String | 否 | 否 | 带宽包的付费类型 | 取值:
|
Name | String | 否 | 是 | 带宽包的名称 | 长度为2~128个字符,必须以英文字符或中文字符开头,不能以 可包含英文字符、中文字符、数字、英文句点(.)、下划线(_)和短划线(-)。 |
AutoRenew | Boolean | 否 | 否 | 是否开启自动续费 | 取值:
|
AutoRenewDuration | Integer | 否 | 否 | 自动续费时长 | 当AutoRenew取值为true时生效。 取值: 单位:月。
|
返回值
Fn::GetAtt
CenBandwidthPackageId:新建带宽包的ID。
示例
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" ] } } } }