ALIYUN::MaxCompute::Quota类型用于创建odps配额。
语法
{
"Type": "ALIYUN::MaxCompute::Quota",
"Properties": {
"PayType": String,
"AutoRenew": Boolean,
"AutoPay": Boolean,
"CU": Integer,
"Period": Integer,
"PeriodUnit": String,
"QuotaNickname": String,
"Specification": String,
"Tunnel": Integer
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
PayType | String | 是 | 否 | odps 配额实例的计费方式。 | 取值:
|
AutoRenew | Boolean | 否 | 否 | 是否自动续费。 | 无 |
AutoPay | Boolean | 否 | 否 | 自动付费。 | 无 |
CU | Integer | 否 | 否 | odps 配额实例的计算单位。 | 当规格为 StandardCompute 时,需要使用此参数。 |
Period | Integer | 否 | 否 | 购买时长。 | 如果 PeriodUnit(周期单位)是月,有效范围是 1-9 如果 PeriodUnit 为年,有效范围为 1、2、3、4、5 |
PeriodUnit | String | 否 | 否 | 订阅持续时间的单位。 | 取值:
|
QuotaNickname | String | 否 | 否 | Quota别名。 | 无 |
Specification | String | 否 | 否 | Quota规格。 | 取值:
|
Tunnel | Integer | 否 | 否 | odps 配额实例的Tunnel单位。 | 规格为Tunnel时,需要使用此参数。 |
返回值
Fn::GetAtt
DefaultSubQuotaNickname:odps 配额实例的默认子配额别名。
Nickname:Quota别名。
示例
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"
]
}
}
}
}
该文章对您有帮助吗?