-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS::ROS::DeleteStack.json
83 lines (83 loc) · 1.93 KB
/
ACS::ROS::DeleteStack.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"FormatVersion": "OOS-2019-06-01",
"Description": {
"name-en": "ACS::ROS::DeleteStack",
"name-zh-cn": "删除资源栈(ROS)",
"en": "Delete ROS stack",
"zh-cn": "删除资源编排的资源栈"
},
"Parameters": {
"regionId": {
"Label": {
"en": "RegionId",
"zh-cn": "地域ID"
},
"Type": "String",
"AssociationProperty": "RegionId",
"Default": "{{ ACS::RegionId }}"
},
"stackId": {
"Label": {
"en": "StackId",
"zh-cn": "资源栈ID"
},
"Type": "String"
},
"retainAllResources": {
"Label": {
"en": "RetainAllResources",
"zh-cn": "是否保留资源栈中的所有资源"
},
"Type": "Boolean",
"Default": false
}
},
"Tasks": [
{
"Name": "DeleteStack",
"Action": "ACS::ExecuteAPI",
"Description": {
"en": "Delete ROS stack",
"zh-cn": "删除资源编排的资源栈"
},
"Properties": {
"Service": "ROS",
"API": "DeleteStack",
"Parameters": {
"RegionId": "{{ regionId }}",
"StackId": "{{ stackId }}",
"RetainAllResources": "{{ retainAllResources }}"
}
}
},
{
"Name": "UntilStackDeleted",
"Action": "ACS::WaitFor",
"Description": {
"en": "Wait for the stack to be deleted successfully",
"zh-cn": "等待资源栈删除成功"
},
"Properties": {
"Service": "ROS",
"API": "GetStack",
"Parameters": {
"RegionId": "{{ regionId }}",
"StackId": "{{ stackId }}"
},
"DesiredValues": [
"DELETE_COMPLETE"
],
"StopRetryValues": [
"DELETE_FAILED"
],
"PropertySelector": "Status"
},
"Outputs": {
"statusReason": {
"Type": "String",
"ValueSelector": "StatusReason"
}
}
}
]
}