ALIYUN::GA::BandwidthPackage类型用于创建带宽包。
语法
{
"Type": "ALIYUN::GA::BandwidthPackage",
"Properties": {
"BandwidthType": String,
"CbnGeographicRegionIdB": String,
"Type": String,
"CbnGeographicRegionIdA": String,
"AutoUseCoupon": String,
"PricingCycle": String,
"ChargeType": String,
"Bandwidth": Integer,
"Ratio": String,
"Duration": String,
"AutoPay": String,
"BillingType": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
BandwidthType | String | 否 | 是 | 带宽类型。 | 取值:
|
Type | String | 是 | 否 | 带宽包的类型。 | 取值:
Basic:基础带宽包。 |
AutoUseCoupon | String | 否 | 是 | 是否自动使用优惠券。 | 取值:
|
PricingCycle | String | 否 | 否 | 价格周期。 | 取值:
|
ChargeType | String | 否 | 否 | 付费类型。 | 取值:
PREPAY:包年包月。 |
Bandwidth | Integer | 是 | 是 | 带宽包的带宽值。 | 取值范围:2~2000。
单位:MB。 |
Ratio | String | 否 | 否 | 保底百分比。 | 无 |
Duration | String | 否 | 否 | 购买时长。 | 取值范围:
|
AutoPay | String | 否 | 是 | 是否自动付费。 | 取值:
|
BillingType | String | 否 | 否 | 计量方式。 | 无 |
返回值
Fn::GetAtt
- BandwidthPackageName:带宽包名称。
- AutoPay:是否自动付费。
- BandwidthType:带宽类型。
- Type:带宽包类型。
- AutoUseCoupon:是否自动使用优惠券。
- ChargeType:付费类型。
- Bandwidth:带宽包的带宽值。
- BandwidthPackageId:带宽包ID。
- Ratio:带宽的保底百分比。
- BillingType:带宽计量方式。
示例
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"BandwidthType": {
"Type": "String",
"Description": "the bandwidth BandwidthType of the bandwidth"
},
"CbnGeographicRegionIdB": {
"Type": "String",
"Description": "The CbnGeographicRegionIdB of the bandwidth"
},
"Type": {
"Type": "String",
"Description": "The type of the bandwidth plan"
},
"CbnGeographicRegionIdA": {
"Type": "String",
"Description": "The CbnGeographicRegionIdA of the bandwidth"
},
"AutoUseCoupon": {
"Type": "String",
"Description": "The AutoUseCoupon of the bandwidth"
},
"PricingCycle": {
"Type": "String",
"Description": ""
},
"ChargeType": {
"Type": "String",
"Description": "The ChargeType of the bandwidth"
},
"Bandwidth": {
"Type": "Number",
"Description": "The bandwidth provided by the bandwidth plan."
},
"Ratio": {
"Type": "String",
"Description": "The Ratio of the bandwidth"
},
"Duration": {
"Type": "String",
"Description": ""
},
"AutoPay": {
"Type": "String",
"Description": "The AutoPay of the bandwidth"
},
"BillingType": {
"Type": "String",
"Description": "The BillingType of the bandwidth"
}
},
"Resources": {
"GaBandwidthPackage": {
"Type": "ALIYUN::GA::BandwidthPackage",
"Properties": {
"BandwidthType": {
"Ref": "BandwidthType"
},
"CbnGeographicRegionIdB": {
"Ref": "CbnGeographicRegionIdB"
},
"Type": {
"Ref": "Type"
},
"CbnGeographicRegionIdA": {
"Ref": "CbnGeographicRegionIdA"
},
"AutoUseCoupon": {
"Ref": "AutoUseCoupon"
},
"PricingCycle": {
"Ref": "PricingCycle"
},
"ChargeType": {
"Ref": "ChargeType"
},
"Bandwidth": {
"Ref": "Bandwidth"
},
"Ratio": {
"Ref": "Ratio"
},
"Duration": {
"Ref": "Duration"
},
"AutoPay": {
"Ref": "AutoPay"
},
"BillingType": {
"Ref": "BillingType"
}
}
}
},
"Outputs": {
"BandwidthPackageName": {
"Description": "The Resource name of the bandwidth",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"BandwidthPackageName"
]
}
},
"CbnGeographicRegionIdB": {
"Description": "The CbnGeographicRegionIdB of the bandwidth",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"CbnGeographicRegionIdB"
]
}
},
"CbnGeographicRegionIdA": {
"Description": "The CbnGeographicRegionIdA of the bandwidth",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"CbnGeographicRegionIdA"
]
}
},
"AutoPay": {
"Description": "The AutoPay of the bandwidth",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"AutoPay"
]
}
},
"BandwidthType": {
"Description": "the bandwidth BandwidthType of the bandwidth",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"BandwidthType"
]
}
},
"Type": {
"Description": "The type of the bandwidth plan",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"Type"
]
}
},
"AutoUseCoupon": {
"Description": "The AutoUseCoupon of the bandwidth",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"AutoUseCoupon"
]
}
},
"ChargeType": {
"Description": "The ChargeType of the bandwidth",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"ChargeType"
]
}
},
"Bandwidth": {
"Description": "The bandwidth provided by the bandwidth plan.",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"Bandwidth"
]
}
},
"PaymentType": {
"Description": "The Payment Type of the bandwidth",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"PaymentType"
]
}
},
"BandwidthPackageId": {
"Description": "The Resource ID of the bandwidth",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"BandwidthPackageId"
]
}
},
"Ratio": {
"Description": "The Ratio of the bandwidth",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"Ratio"
]
}
},
"BillingType": {
"Description": "The BillingType of the bandwidth",
"Value": {
"Fn::GetAtt": [
"GaBandwidthPackage",
"BillingType"
]
}
}
}
}
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
BandwidthType:
Type: String
Description: the bandwidth BandwidthType of the bandwidth
CbnGeographicRegionIdB:
Type: String
Description: The CbnGeographicRegionIdB of the bandwidth
Type:
Type: String
Description: The type of the bandwidth plan
CbnGeographicRegionIdA:
Type: String
Description: The CbnGeographicRegionIdA of the bandwidth
AutoUseCoupon:
Type: String
Description: The AutoUseCoupon of the bandwidth
PricingCycle:
Type: String
Description: ''
ChargeType:
Type: String
Description: The ChargeType of the bandwidth
Bandwidth:
Type: Number
Description: The bandwidth provided by the bandwidth plan.
Ratio:
Type: String
Description: The Ratio of the bandwidth
Duration:
Type: String
Description: ''
AutoPay:
Type: String
Description: The AutoPay of the bandwidth
BillingType:
Type: String
Description: The BillingType of the bandwidth
Resources:
GaBandwidthPackage:
Type: 'ALIYUN::GA::BandwidthPackage'
Properties:
BandwidthType:
Ref: BandwidthType
CbnGeographicRegionIdB:
Ref: CbnGeographicRegionIdB
Type:
Ref: Type
CbnGeographicRegionIdA:
Ref: CbnGeographicRegionIdA
AutoUseCoupon:
Ref: AutoUseCoupon
PricingCycle:
Ref: PricingCycle
ChargeType:
Ref: ChargeType
Bandwidth:
Ref: Bandwidth
Ratio:
Ref: Ratio
Duration:
Ref: Duration
AutoPay:
Ref: AutoPay
BillingType:
Ref: BillingType
Outputs:
BandwidthPackageName:
Description: The Resource name of the bandwidth
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- BandwidthPackageName
CbnGeographicRegionIdB:
Description: The CbnGeographicRegionIdB of the bandwidth
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- CbnGeographicRegionIdB
CbnGeographicRegionIdA:
Description: The CbnGeographicRegionIdA of the bandwidth
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- CbnGeographicRegionIdA
AutoPay:
Description: The AutoPay of the bandwidth
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- AutoPay
BandwidthType:
Description: the bandwidth BandwidthType of the bandwidth
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- BandwidthType
Type:
Description: The type of the bandwidth plan
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- Type
AutoUseCoupon:
Description: The AutoUseCoupon of the bandwidth
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- AutoUseCoupon
ChargeType:
Description: The ChargeType of the bandwidth
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- ChargeType
Bandwidth:
Description: The bandwidth provided by the bandwidth plan.
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- Bandwidth
PaymentType:
Description: The Payment Type of the bandwidth
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- PaymentType
BandwidthPackageId:
Description: The Resource ID of the bandwidth
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- BandwidthPackageId
Ratio:
Description: The Ratio of the bandwidth
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- Ratio
BillingType:
Description: The BillingType of the bandwidth
Value:
'Fn::GetAtt':
- GaBandwidthPackage
- BillingType