O recurso ALIYUN::MaxCompute::Quota cria uma cota do MaxCompute.
Sintaxe
{
"Type": "ALIYUN::MaxCompute::Quota",
"Properties": {
"PayType": String,
"AutoRenew": Boolean,
"AutoPay": Boolean,
"CU": Integer,
"Period": Integer,
"PeriodUnit": String,
"QuotaNickname": String,
"Specification": String,
"Tunnel": Integer
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
PayType |
String |
Sim |
Não |
Método de faturamento. |
Valores válidos:
|
|
AutoRenew |
Boolean |
Não |
Não |
Define se a renovação automática está ative. |
Nenhuma |
|
AutoPay |
Boolean |
Não |
Não |
Define se o pagamento automático está ative. |
Nenhuma |
|
CU |
Integer |
Não |
Não |
Número de unidades de computação (CUs). |
Obrigatório quando Specification for StandardCompute. |
|
Period |
Integer |
Não |
Não |
Duração da assinatura. |
Intervalo válido: 1 a 9 se PeriodUnit for Month. Intervalo válido: 1 a 5 se PeriodUnit for Year. |
|
PeriodUnit |
String |
Não |
Não |
Unidade de tempo da duração da assinatura. |
Valores válidos:
|
|
QuotaNickname |
String |
Não |
Não |
Apelido da cota. |
Nenhuma |
|
Specification |
String |
Não |
Não |
Especificação da cota. |
Valores válidos:
|
|
Tunnel |
Integer |
Não |
Não |
Número de unidades do Tunnel. |
Obrigatório quando Specification for Tunnel. |
Valores de retorno
Fn::GetAtt
DefaultSubQuotaNickname: apelido padrão da subcota.
Nickname: apelido da cota.
Exemplos
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"
]
}
}
}
}