ALIYUN::GA::Accelerator类型用于创建全球加速实例。

语法

{
  "Type": "ALIYUN::GA::Accelerator",
  "Properties": {
    "AcceleratorName": String,
    "AutoUseCoupon": String,
    "PricingCycle": String,
    "Duration": String,
    "AutoPay": String,
    "Spec": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
AcceleratorName String 名称。
AutoUseCoupon String 是否自动使用优惠券。 取值:
  • True
  • False
PricingCycle String 价格周期。 取值:
  • Month:按月付费。
  • Year:按年付费。
Duration String 购买时长。 取值:
  • 按月付费:1~9。
  • 按年付费:1~3。
AutoPay String 是否自动付费。 取值:
  • True
  • False
Spec String 实例规格。 取值:
  • 1:小型Ⅰ(规格单元)。
  • 2:小型Ⅱ。
  • 3:小型Ⅲ。
  • 5:中型Ⅰ。
  • 8:中型Ⅱ。
  • 10:中型Ⅲ。

返回值

Fn::GetAtt

  • AcceleratorName:实例名称。
  • AutoUseCoupon:是否自动使用优惠券。
  • PricingCycle:价格周期。
  • PaymentType:付费方式。
  • Duration:购买时长。
  • AutoPay:是否自动付费。
  • OrderId:订单ID。
  • Spec:实例规格。
  • AcceleratorId:实例ID。

示例

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AcceleratorName": {
      "Type": "String",
      "Description": "The Name of the GA instance"
    },
    "AutoUseCoupon": {
      "Type": "String",
      "Description": "The AutoUseCoupon of the GA instance."
    },
    "PricingCycle": {
      "Type": "String",
      "Description": "The PricingCycle of the GA instance."
    },
    "Duration": {
      "Type": "String",
      "Description": "The Duration of the GA instance"
    },
    "AutoPay": {
      "Type": "String",
      "Description": "The AutoPay of the GA instance."
    },
    "Spec": {
      "Type": "String",
      "Description": "The instance type of the GA instance"
    }
  },
  "Resources": {
    "GaAccelerator": {
      "Type": "ALIYUN::GA::Accelerator",
      "Properties": {
        "AcceleratorName": {
          "Ref": "AcceleratorName"
        },
        "AutoUseCoupon": {
          "Ref": "AutoUseCoupon"
        },
        "PricingCycle": {
          "Ref": "PricingCycle"
        },
        "Duration": {
          "Ref": "Duration"
        },
        "AutoPay": {
          "Ref": "AutoPay"
        },
        "Spec": {
          "Ref": "Spec"
        }
      }
    }
  },
  "Outputs": {
    "AcceleratorName": {
      "Description": "The Name of the GA instance",
      "Value": {
        "Fn::GetAtt": [
          "GaAccelerator",
          "AcceleratorName"
        ]
      }
    },
    "AutoUseCoupon": {
      "Description": "The AutoUseCoupon of the GA instance.",
      "Value": {
        "Fn::GetAtt": [
          "GaAccelerator",
          "AutoUseCoupon"
        ]
      }
    },
    "PricingCycle": {
      "Description": "The PricingCycle of the GA instance.",
      "Value": {
        "Fn::GetAtt": [
          "GaAccelerator",
          "PricingCycle"
        ]
      }
    },
    "PaymentType": {
      "Description": "The Payment Typethe GA instance",
      "Value": {
        "Fn::GetAtt": [
          "GaAccelerator",
          "PaymentType"
        ]
      }
    },
    "Duration": {
      "Description": "The Duration of the GA instance",
      "Value": {
        "Fn::GetAtt": [
          "GaAccelerator",
          "Duration"
        ]
      }
    },
    "AutoPay": {
      "Description": "The AutoPay of the GA instance.",
      "Value": {
        "Fn::GetAtt": [
          "GaAccelerator",
          "AutoPay"
        ]
      }
    },
    "OrderId": {
      "Description": "The OrderId of the GA instance",
      "Value": {
        "Fn::GetAtt": [
          "GaAccelerator",
          "OrderId"
        ]
      }
    },
    "Spec": {
      "Description": "The instance type of the GA instance",
      "Value": {
        "Fn::GetAtt": [
          "GaAccelerator",
          "Spec"
        ]
      }
    },
    "AcceleratorId": {
      "Description": "The ID of the GA instance to query.",
      "Value": {
        "Fn::GetAtt": [
          "GaAccelerator",
          "AcceleratorId"
        ]
      }
    }
  }
}

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AcceleratorName:
    Type: String
    Description: The Name of the GA instance
  AutoUseCoupon:
    Type: String
    Description: The AutoUseCoupon of the GA instance.
  PricingCycle:
    Type: String
    Description: The PricingCycle of the GA instance.
  Duration:
    Type: String
    Description: The Duration of the GA instance
  AutoPay:
    Type: String
    Description: The AutoPay of the GA instance.
  Spec:
    Type: String
    Description: The instance type of the GA instance
Resources:
  GaAccelerator:
    Type: 'ALIYUN::GA::Accelerator'
    Properties:
      AcceleratorName:
        Ref: AcceleratorName
      AutoUseCoupon:
        Ref: AutoUseCoupon
      PricingCycle:
        Ref: PricingCycle
      Duration:
        Ref: Duration
      AutoPay:
        Ref: AutoPay
      Spec:
        Ref: Spec
Outputs:
  AcceleratorName:
    Description: The Name of the GA instance
    Value:
      'Fn::GetAtt':
        - GaAccelerator
        - AcceleratorName
  AutoUseCoupon:
    Description: The AutoUseCoupon of the GA instance.
    Value:
      'Fn::GetAtt':
        - GaAccelerator
        - AutoUseCoupon
  PricingCycle:
    Description: The PricingCycle of the GA instance.
    Value:
      'Fn::GetAtt':
        - GaAccelerator
        - PricingCycle
  PaymentType:
    Description: The Payment Typethe GA instance
    Value:
      'Fn::GetAtt':
        - GaAccelerator
        - PaymentType
  Duration:
    Description: The Duration of the GA instance
    Value:
      'Fn::GetAtt':
        - GaAccelerator
        - Duration
  AutoPay:
    Description: The AutoPay of the GA instance.
    Value:
      'Fn::GetAtt':
        - GaAccelerator
        - AutoPay
  OrderId:
    Description: The OrderId of the GA instance
    Value:
      'Fn::GetAtt':
        - GaAccelerator
        - OrderId
  Spec:
    Description: The instance type of the GA instance
    Value:
      'Fn::GetAtt':
        - GaAccelerator
        - Spec
  AcceleratorId:
    Description: The ID of the GA instance to query.
    Value:
      'Fn::GetAtt':
        - GaAccelerator
        - AcceleratorId