ALIYUN::GA::IpSets类型用于创建加速地域。
语法
{
"Type": "ALIYUN::GA::IpSets",
"Properties": {
"AccelerateRegion": List,
"AcceleratorId": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
AccelerateRegion | List | 是 | 是 | 要加速的地域。 | 最多创建5个加速地域。
详情请参见AccelerateRegion属性。 |
AcceleratorId | String | 是 | 否 | 全球加速实例ID。 | 无 |
AccelerateRegion语法
"AccelerateRegion": [
{
"Bandwidth": Integer,
"AccelerateRegionId": String,
"IpVersion": String
}
]
AccelerateRegion属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
Bandwidth | Integer | 是 | 是 | 加速地域分配的带宽。 | 单位:Mbps。
每个加速地域支持分配的最小带宽为2Mbps。 说明 加速地域带宽总额应小于或等于您购买的基础带宽包的带宽。
|
AccelerateRegionId | String | 是 | 否 | 加速地域ID。 | 无 |
IpVersion | String | 否 | 否 | IP版本。 | 取值:
|
返回值
Fn::GetAtt
- AccelerateRegionIds:加速地域ID。
- IpSetIds:加速地域配置信息。
- IpVersions:加速地域IP版本。
示例
JSON
格式
{
"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"
]
}
},
"IpVersions": {
"Description": "The IP version list of the accelerate region.",
"Value": {
"Fn::GetAtt": [
"IpSets",
"IpVersions"
]
}
},
"IpSetIds": {
"Description": "The ID list of the ip set.",
"Value": {
"Fn::GetAtt": [
"IpSets",
"IpSetIds"
]
}
}
}
}
YAML
格式
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
IpVersions:
Description: The IP version list of the accelerate region.
Value:
'Fn::GetAtt':
- IpSets
- IpVersions
IpSetIds:
Description: The ID list of the ip set.
Value:
'Fn::GetAtt':
- IpSets
- IpSetIds