ALIYUN::GA::IpSets is used to create an accelerated area.

Syntax

{
  "Type": "ALIYUN::GA::IpSets",
  "Properties": {
    "AccelerateRegion": List,
    "AcceleratorId": String
  }
}

Properties

Property Type Required Editable Description Constraint
AccelerateRegion List Yes Yes The ID of the region where traffic is to be accelerated. You can create a maximum of five accelerated regions.

For more information, see AccelerateRegion properties.

AcceleratorId String Yes No The ID of the GA instance. None

AccelerateRegion syntax

"AccelerateRegion": [
  {
    "Bandwidth": Integer,
    "AccelerateRegionId": String
  }
]

AccelerateRegion properties

Property Type Required Editable Description Constraint
Bandwidth Integer Yes Yes The bandwidth allocated to the acceleration region. Unit: Mbit/s.

The minimum bandwidth allocated to each accelerated region is 2 Mbit/s.

Note The total bandwidth for all regions must not exceed the amount included in your basic bandwidth plan.
AccelerateRegionId String Yes No The ID of the acceleration region. None

Response parameters

Fn::GetAtt

  • AccelerateRegionIds: the ID of the accelerated region.
  • IpSetIds: The region configuration.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AccelerateRegion": {
      "Type": "Json",
      "Description": "",
      "MaxLength": 5
    },
    "AcceleratorId": {
      "Type": "String",
      "Description": "The ID of the GA instance."
    }
  },
  "Resources": {
    "IpSets": {
      "Type": "ALIYUN::GA::IpSets",
      "Properties": {
        "AccelerateRegion": {
          "Ref": "AccelerateRegion"
        },
        "AcceleratorId": {
          "Ref": "AcceleratorId"
        }
      }
    }
  },
  "Outputs": {
    "AccelerateRegionIds": {
      "Description": "The ID list of the accelerate region.",
      "Value": {
        "Fn::GetAtt": [
          "IpSets",
          "AccelerateRegionIds"
        ]
      }
    },
    "IpSetIds": {
      "Description": "The ID list of the ip set.",
      "Value": {
        "Fn::GetAtt": [
          "IpSets",
          "IpSetIds"
        ]
      }
    }
  }
}

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AccelerateRegion:
    Type: Json
    Description: ''
    MaxLength: 5
  AcceleratorId:
    Type: String
    Description: The ID of the GA instance.
Resources:
  IpSets:
    Type: 'ALIYUN::GA::IpSets'
    Properties:
      AccelerateRegion:
        Ref: AccelerateRegion
      AcceleratorId:
        Ref: AcceleratorId
Outputs:
  AccelerateRegionIds:
    Description: The ID list of the accelerate region.
    Value:
      'Fn::GetAtt':
        - IpSets
        - AccelerateRegionIds
  IpSetIds:
    Description: The ID list of the ip set.
    Value:
      'Fn::GetAtt':
        - IpSets
        - IpSetIds