The ALIYUN::MaxCompute::Quota type is used to create a MaxCompute (previously known as ODPS) quota.
Syntax
{
"Type": "ALIYUN::MaxCompute::Quota",
"Properties": {
"PayType": String,
"AutoRenew": Boolean,
"AutoPay": Boolean,
"CU": Integer,
"Period": Integer,
"PeriodUnit": String,
"QuotaNickname": String,
"Specification": String,
"Tunnel": Integer
}
}Properties
Property | Type | Required | Editable | Description | Constraint |
PayType | String | Yes | No | The billing method of the MaxCompute quota instance. | Valid values:
|
AutoRenew | Boolean | No | No | Specifies whether to enable auto-renewal for the service. | None |
AutoPay | Boolean | No | No | Automatic payment. | None |
CU | Integer | No | No | The compute unit (CU) of the MaxCompute quota instance. | This field is required when the specification is StandardCompute. |
Period | Integer | No | No | The subscription duration. | If PeriodUnit is Month, the valid range is 1-9 (integer). If PeriodUnit is Year, the valid range is 1-5 (integer). |
PeriodUnit | String | No | No | The unit of the subscription duration. | Valid values:
|
QuotaNickname | String | No | No | The quota nickname. | None |
Specification | String | No | No | The quota specification. | Valid values:
|
Tunnel | Integer | No | No | The Tunnel unit of the MaxCompute quota instance. | This field is required when the specification is Tunnel. |
Return values
Fn::GetAtt
DefaultSubQuotaNickname: The default sub-quota nickname of the MaxCompute quota instance.
Nickname: The nickname of the MaxCompute quota instance.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
CU:
Type: Number
Description:
en: The compute unit of the odps quota instance. When the specification is the StandardCompute, this parameter is required.
Required: false
QuotaNickname:
Type: String
Description:
en: The nickname of the odps quota instance.
Required: false
Resources:
Quota:
Type: ALIYUN::MaxCompute::Quota
Properties:
CU:
Ref: CU
QuotaNickname:
Ref: QuotaNickname
Specification: StandardCompute
PayType: PayAsYouGo
Outputs:
DefaultSubQuotaNickname:
Description: The default sub quota nickname of the odps quota instance.
Value:
Fn::GetAtt:
- Quota
- DefaultSubQuotaNickname
Nickname:
Description: The nickname of the odps quota instance.
Value:
Fn::GetAtt:
- Quota
- Nickname
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"CU": {
"Type": "Number",
"Description": {
"en": "The compute unit of the odps quota instance. When the specification is the StandardCompute, this parameter is required."
},
"Required": false
},
"QuotaNickname": {
"Type": "String",
"Description": {
"en": "The nickname of the odps quota instance."
},
"Required": false
}
},
"Resources": {
"Quota": {
"Type": "ALIYUN::MaxCompute::Quota",
"Properties": {
"CU": {
"Ref": "CU"
},
"QuotaNickname": {
"Ref": "QuotaNickname"
},
"Specification": "StandardCompute",
"PayType": "PayAsYouGo"
}
}
},
"Outputs": {
"DefaultSubQuotaNickname": {
"Description": "The default sub quota nickname of the odps quota instance.",
"Value": {
"Fn::GetAtt": [
"Quota",
"DefaultSubQuotaNickname"
]
}
},
"Nickname": {
"Description": "The nickname of the odps quota instance.",
"Value": {
"Fn::GetAtt": [
"Quota",
"Nickname"
]
}
}
}
}