You can use the ALIYUN::GA::BandwidthPackage type to create a bandwidth package.
Syntax
{
"Type": "ALIYUN::GA::BandwidthPackage",
"Properties": {
"BandwidthType": String,
"Type": String,
"AutoUseCoupon": String,
"PricingCycle": String,
"ChargeType": String,
"Bandwidth": Integer,
"Ratio": String,
"Duration": String,
"AutoPay": String,
"BillingType": String
}
}Properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| BandwidthType | String | No | Yes | The type of bandwidth. | Valid values:
|
| Type | String | Yes | No | The type of the bandwidth plan. | Basic: basic bandwidth plan. |
| AutoUseCoupon | String | No | Yes | Specifies whether to automatically use a coupon. | Valid values:
|
| PricingCycle | String | No | No | Billing cycle | Valid values:
|
| ChargeType | String | No | No | The billing method. | Valid value: PREPAY: subscription. |
| Bandwidth | Integer | Yes | Yes | The bandwidth of the bandwidth plan. | The value must be an integer from 2 to 2000. The unit is MB. |
| Ratio | String | No | No | The minimum bandwidth percentage. | None |
| Duration | String | No | No | The subscription duration. | The valid values depend on the value of the PricingCycle property:
|
| AutoPay | String | No | Yes | Specifies whether to enable auto-payment. | Valid values:
|
| BillingType | String | No | No | The metering method. | None |
Return values
Fn::GetAtt
- BandwidthPackageName: The name of the bandwidth plan.
- AutoPay: Indicates whether auto-payment is enabled.
- BandwidthType: The type of bandwidth.
- Type: The type of the bandwidth plan.
- AutoUseCoupon: Indicates whether a coupon is automatically used.
- ChargeType: The billing method.
- Bandwidth: The bandwidth of the bandwidth plan.
- BandwidthPackageId: The ID of the bandwidth plan.
- Ratio: The minimum bandwidth percentage.
- BillingType: The metering method.
Examples
JSONformat{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { }, "Resources": { "GaBandwidthPackage": { "Type": "ALIYUN::GA::BandwidthPackage", "Properties": { "BandwidthType": "Basic", "Type": "Basic", "AutoUseCoupon": "True", "PricingCycle": "Month", "ChargeType": "PREPAY", "Bandwidth": 200, "Duration": 3, "AutoPay": "False" } } }, "Outputs": { } }
该文章对您有帮助吗?