-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS::ECS::DescribeSavingsPlanPriceByInstanceGroup.json
68 lines (68 loc) · 1.86 KB
/
ACS::ECS::DescribeSavingsPlanPriceByInstanceGroup.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"FormatVersion": "OOS-2019-06-01",
"Description": {
"name-en": "ACS::ECS::DescribeSavingsPlanPriceByInstanceGroup",
"name-zh-cn": "根据实例分组进行预付费转按量付费并做SP询价",
"en": "Describe exchange to post pay And savings plan price by instance group",
"zh-cn": "根据实例分组进行预付费转按量付费并做SP询价"
},
"Parameters": {
"regionId": {
"Type": "String",
"Label": {
"en": "RegionId",
"zh-cn": "地域ID"
},
"AssociationProperty": "RegionId",
"Default": "{{ ACS::RegionId }}"
},
"targetGroupOfInstanceFamilyGroup": {
"Type": "Json",
"Label": {
"en": "TargetGroupOfInstanceFamilyGroup",
"zh-cn": "目标实例规格组分组"
}
}
},
"Tasks": [
{
"Name": "describeSavingsPlanPriceByInstanceGroup",
"Action": "ACS::ECS::DescribeSavingsPlanPrice",
"Description": {
"en": "Describe exchange to post pay and savings plan price",
"zh-cn": "根据实例分组进行预付费转按量付费并做SP询价"
},
"Properties": {
"regionId": "{{ regionId }}",
"targetInstanceGroup": "{{ ACS::TaskLoopItem }}"
},
"Loop": {
"Items": {
"Fn::Jq": [
"First",
". as $l | [range(0; length; 50)] | map( . as $i | $l[ $i: $i + 50])",
"{{ targetGroupOfInstanceFamilyGroup }}"
]
},
"Outputs": {
"results": {
"AggregateType": "Fn::ListJoin",
"AggregateField": "result"
}
}
},
"Outputs": {
"result": {
"Type": "Json",
"ValueSelector": ".results"
}
}
}
],
"Outputs": {
"results": {
"Type": "Json",
"Value": "{{ describeSavingsPlanPriceByInstanceGroup.results }}"
}
}
}