ALIYUN::BSS::ResourcePackage
Creates a resource plan.
Syntax
{
"Type": "ALIYUN::BSS::ResourcePackage",
"Properties": {
"ProductCode": String,
"PricingCycle": String,
"PackageType": String,
"Specification": String,
"Duration": Integer,
"EffectiveDate": String,
"AutoRenewPeriod": Integer,
"AutoRenew": Boolean,
"AutoRenewPeriodUnit": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
Duration |
Integer |
Yes |
No |
Validity period. |
Check AvailableDuration.Value in DescribeResourcePackageProduct. |
|
PackageType |
String |
Yes |
No |
Resource plan type. |
Check ResourcePackage.Code in DescribeResourcePackageProduct. |
|
ProductCode |
String |
Yes |
No |
Service code. |
Obtain service codes from QueryProductList. |
|
Specification |
String |
Yes |
No |
Resource plan specification. |
Check Specification.Value in DescribeResourcePackageProduct. Note
|
|
AutoRenewPeriod |
Integer |
No |
Yes |
Auto-renewal period. |
Unit: month. Valid values: 1, 2, 3, and 6. |
|
AutoRenew |
Boolean |
No |
Yes |
Whether to enable auto-renewal. |
Valid values:
|
|
AutoRenewPeriodUnit |
String |
No |
Yes |
Auto-renewal period unit. |
Valid values:
|
|
EffectiveDate |
String |
No |
No |
Effective time. |
If not specified, takes effect upon creation. Format: |
|
PricingCycle |
String |
No |
No |
Validity period unit. |
Valid values:
|
Return values
Fn::GetAtt
-
InstanceId: resource plan ID.
-
OrderId: order ID.
Examples
YAML format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ProductCode:
Type: String
Description: The code of the specified product. The value is the same as the value of ProductType returned by QueryProductList.
Default: ossbag
PricingCycle:
Type: String
Description: 'The validity of the specified resource package. Default value: Month. Valid values: Month, Year'
AllowedValues:
- Month
- Year
Default: Month
PackageType:
Type: String
Description: The type of the specified resource package. The value is the same as the value of the Code value of the ResourcePackage object returned by DescribeResourcePackageProduct.
Default: FPT_ossbag_deadlineAcc_CdnOut_china_common
Specification:
Type: String
Description: The size of the specified resource package. The value is the same as the Value of Specification returned by DescribeResourcePackageProduct.
Default: '1024'
Duration:
Type: Number
Description: The validity of the specified resource package. The value is the same as the Value of AvailableDuration returned by DescribeResourcePackageProduct.
Default: 6
EffectiveDate:
Type: String
Description: 'The effective date of the specified resource package. The resource package will take effect immediately if the effective date is unspecified. The date format follows the ISO8601 standard and uses UTC time. Format: yyyy-MM-ddTHH:mm:ssZ'
Default: '2021-12-03T12:00:00Z'
Resources:
ResourcePackage:
Type: ALIYUN::BSS::ResourcePackage
Properties:
ProductCode:
Ref: ProductCode
PricingCycle:
Ref: PricingCycle
PackageType:
Ref: PackageType
Specification:
Ref: Specification
Duration:
Ref: Duration
EffectiveDate:
Ref: EffectiveDate
Outputs:
InstanceId:
Description: The ID of the specified instance.
Value:
Fn::GetAtt:
- ResourcePackage
- InstanceId
OrderId:
Description: The ID of the specified order.
Value:
Fn::GetAtt:
- ResourcePackage
- OrderId
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ProductCode": {
"Type": "String",
"Description": "The code of the specified product. The value is the same as the value of ProductType returned by QueryProductList.",
"Default": "ossbag"
},
"PricingCycle": {
"Type": "String",
"Description": "The validity of the specified resource package. Default value: Month. Valid values: Month, Year",
"AllowedValues": [
"Month",
"Year"
],
"Default": "Month"
},
"PackageType": {
"Type": "String",
"Description": "The type of the specified resource package. The value is the same as the value of the Code value of the ResourcePackage object returned by DescribeResourcePackageProduct.",
"Default": "FPT_ossbag_deadlineAcc_CdnOut_china_common"
},
"Specification": {
"Type": "String",
"Description": "The size of the specified resource package. The value is the same as the Value of Specification returned by DescribeResourcePackageProduct.",
"Default": "1024"
},
"Duration": {
"Type": "Number",
"Description": "The validity of the specified resource package. The value is the same as the Value of AvailableDuration returned by DescribeResourcePackageProduct.",
"Default": 6
},
"EffectiveDate": {
"Type": "String",
"Description": "The effective date of the specified resource package. The resource package will take effect immediately if the effective date is unspecified. The date format follows the ISO8601 standard and uses UTC time. Format: yyyy-MM-ddTHH:mm:ssZ",
"Default": "2021-12-03T12:00:00Z"
}
},
"Resources": {
"ResourcePackage": {
"Type": "ALIYUN::BSS::ResourcePackage",
"Properties": {
"ProductCode": {
"Ref": "ProductCode"
},
"PricingCycle": {
"Ref": "PricingCycle"
},
"PackageType": {
"Ref": "PackageType"
},
"Specification": {
"Ref": "Specification"
},
"Duration": {
"Ref": "Duration"
},
"EffectiveDate": {
"Ref": "EffectiveDate"
}
}
}
},
"Outputs": {
"InstanceId": {
"Description": "The ID of the specified instance.",
"Value": {
"Fn::GetAtt": [
"ResourcePackage",
"InstanceId"
]
}
},
"OrderId": {
"Description": "The ID of the specified order.",
"Value": {
"Fn::GetAtt": [
"ResourcePackage",
"OrderId"
]
}
}
}
}