ALIYUN::MaxCompute::Quota

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 配额实例的计费方式。

取值:

  • PayAsYouGo:后付费类型

  • Subscription:预付费类型

AutoRenew

Boolean

是否自动续费。

AutoPay

Boolean

自动付费。

CU

Integer

odps 配额实例的计算单位。

当规格为 StandardCompute 时,需要使用此参数。

Period

Integer

购买时长。

如果 PeriodUnit(周期单位)是月,有效范围是 1-9

如果 PeriodUnit 为年,有效范围为 1、2、3、4、5

PeriodUnit

String

订阅持续时间的单位。

取值:

  • Month:月

  • Year:年

QuotaNickname

String

Quota别名。

Specification

String

Quota规格。

取值:

  • StandardCompute

  • Tunnel

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"
        ]
      }
    }
  }
}