ALIYUN::GA::Accelerator is used to create a Global Accelerator (GA) instance.

Syntax

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

Properties

Property Type Required Editable Description Constraint
AcceleratorName String No No The name of the GA instance. None
AutoUseCoupon String No No Specifies whether to automatically use a coupon. Valid values:
  • True
  • False
PricingCycle String Yes No The unit of the billing cycle. Valid values:
  • Month
  • Year
Duration String Yes No The subscription duration. Valid values:
  • Valid values when PricingCycle is set to Month: 1 to 9.
  • Valid values when PricingCycle is set to Year: 1 to 3.
AutoPay String No No Specifies whether to enable auto-renewal. Valid values:
  • True
  • False
Spec String Yes Yes The instance type. Valid values:
  • 1: Small I (the specification unit)
  • 2: Small II
  • 3: Small III
  • 5: Medium I
  • 8: Medium II
  • 10: Medium III

Response parameters

Fn::GetAtt

  • AcceleratorName: the name of the GA instance.
  • AutoUseCoupon: indicates whether a coupon is used.
  • PricingCycle: the unit of the billing cycle.
  • PaymentType: the billing method.
  • Duration: the subscription duration.
  • AutoPay: indicates whether auto-renewal is enabled.
  • OrderId: the ID of the order.
  • Spec: the instance type.
  • AcceleratorId: the ID of the GA instance.

Examples

JSON format

{
  "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 format

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