@aws-sdk/client-cloudformation 3.183.0 → 3.186.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_query.js +2 -2
- package/dist-es/CloudFormation.js +273 -266
- package/dist-es/CloudFormationClient.js +28 -22
- package/dist-es/commands/ActivateTypeCommand.js +28 -21
- package/dist-es/commands/BatchDescribeTypeConfigurationsCommand.js +28 -21
- package/dist-es/commands/CancelUpdateStackCommand.js +29 -22
- package/dist-es/commands/ContinueUpdateRollbackCommand.js +28 -21
- package/dist-es/commands/CreateChangeSetCommand.js +28 -21
- package/dist-es/commands/CreateStackCommand.js +28 -21
- package/dist-es/commands/CreateStackInstancesCommand.js +28 -21
- package/dist-es/commands/CreateStackSetCommand.js +28 -21
- package/dist-es/commands/DeactivateTypeCommand.js +28 -21
- package/dist-es/commands/DeleteChangeSetCommand.js +28 -21
- package/dist-es/commands/DeleteStackCommand.js +29 -22
- package/dist-es/commands/DeleteStackInstancesCommand.js +28 -21
- package/dist-es/commands/DeleteStackSetCommand.js +28 -21
- package/dist-es/commands/DeregisterTypeCommand.js +28 -21
- package/dist-es/commands/DescribeAccountLimitsCommand.js +28 -21
- package/dist-es/commands/DescribeChangeSetCommand.js +28 -21
- package/dist-es/commands/DescribeChangeSetHooksCommand.js +28 -21
- package/dist-es/commands/DescribePublisherCommand.js +28 -21
- package/dist-es/commands/DescribeStackDriftDetectionStatusCommand.js +28 -21
- package/dist-es/commands/DescribeStackEventsCommand.js +28 -21
- package/dist-es/commands/DescribeStackInstanceCommand.js +28 -21
- package/dist-es/commands/DescribeStackResourceCommand.js +28 -21
- package/dist-es/commands/DescribeStackResourceDriftsCommand.js +28 -21
- package/dist-es/commands/DescribeStackResourcesCommand.js +28 -21
- package/dist-es/commands/DescribeStackSetCommand.js +28 -21
- package/dist-es/commands/DescribeStackSetOperationCommand.js +28 -21
- package/dist-es/commands/DescribeStacksCommand.js +28 -21
- package/dist-es/commands/DescribeTypeCommand.js +28 -21
- package/dist-es/commands/DescribeTypeRegistrationCommand.js +28 -21
- package/dist-es/commands/DetectStackDriftCommand.js +28 -21
- package/dist-es/commands/DetectStackResourceDriftCommand.js +28 -21
- package/dist-es/commands/DetectStackSetDriftCommand.js +28 -21
- package/dist-es/commands/EstimateTemplateCostCommand.js +28 -21
- package/dist-es/commands/ExecuteChangeSetCommand.js +28 -21
- package/dist-es/commands/GetStackPolicyCommand.js +28 -21
- package/dist-es/commands/GetTemplateCommand.js +28 -21
- package/dist-es/commands/GetTemplateSummaryCommand.js +28 -21
- package/dist-es/commands/ImportStacksToStackSetCommand.js +28 -21
- package/dist-es/commands/ListChangeSetsCommand.js +28 -21
- package/dist-es/commands/ListExportsCommand.js +28 -21
- package/dist-es/commands/ListImportsCommand.js +28 -21
- package/dist-es/commands/ListStackInstancesCommand.js +28 -21
- package/dist-es/commands/ListStackResourcesCommand.js +28 -21
- package/dist-es/commands/ListStackSetOperationResultsCommand.js +28 -21
- package/dist-es/commands/ListStackSetOperationsCommand.js +28 -21
- package/dist-es/commands/ListStackSetsCommand.js +28 -21
- package/dist-es/commands/ListStacksCommand.js +28 -21
- package/dist-es/commands/ListTypeRegistrationsCommand.js +28 -21
- package/dist-es/commands/ListTypeVersionsCommand.js +28 -21
- package/dist-es/commands/ListTypesCommand.js +28 -21
- package/dist-es/commands/PublishTypeCommand.js +28 -21
- package/dist-es/commands/RecordHandlerProgressCommand.js +28 -21
- package/dist-es/commands/RegisterPublisherCommand.js +28 -21
- package/dist-es/commands/RegisterTypeCommand.js +28 -21
- package/dist-es/commands/RollbackStackCommand.js +28 -21
- package/dist-es/commands/SetStackPolicyCommand.js +29 -22
- package/dist-es/commands/SetTypeConfigurationCommand.js +28 -21
- package/dist-es/commands/SetTypeDefaultVersionCommand.js +28 -21
- package/dist-es/commands/SignalResourceCommand.js +29 -22
- package/dist-es/commands/StopStackSetOperationCommand.js +28 -21
- package/dist-es/commands/TestTypeCommand.js +28 -21
- package/dist-es/commands/UpdateStackCommand.js +28 -21
- package/dist-es/commands/UpdateStackInstancesCommand.js +28 -21
- package/dist-es/commands/UpdateStackSetCommand.js +28 -21
- package/dist-es/commands/UpdateTerminationProtectionCommand.js +28 -21
- package/dist-es/commands/ValidateTemplateCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CloudFormationServiceException.js +10 -5
- package/dist-es/models/models_0.js +450 -819
- package/dist-es/pagination/DescribeAccountLimitsPaginator.js +67 -24
- package/dist-es/pagination/DescribeStackEventsPaginator.js +67 -24
- package/dist-es/pagination/DescribeStackResourceDriftsPaginator.js +68 -25
- package/dist-es/pagination/DescribeStacksPaginator.js +67 -24
- package/dist-es/pagination/ListChangeSetsPaginator.js +67 -24
- package/dist-es/pagination/ListExportsPaginator.js +67 -24
- package/dist-es/pagination/ListImportsPaginator.js +67 -24
- package/dist-es/pagination/ListStackInstancesPaginator.js +68 -25
- package/dist-es/pagination/ListStackResourcesPaginator.js +67 -24
- package/dist-es/pagination/ListStackSetOperationResultsPaginator.js +68 -25
- package/dist-es/pagination/ListStackSetOperationsPaginator.js +68 -25
- package/dist-es/pagination/ListStackSetsPaginator.js +68 -25
- package/dist-es/pagination/ListStacksPaginator.js +67 -24
- package/dist-es/pagination/ListTypeRegistrationsPaginator.js +68 -25
- package/dist-es/pagination/ListTypeVersionsPaginator.js +68 -25
- package/dist-es/pagination/ListTypesPaginator.js +68 -25
- package/dist-es/protocols/Aws_query.js +5470 -4132
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/dist-es/waiters/waitForChangeSetCreateComplete.js +59 -39
- package/dist-es/waiters/waitForStackCreateComplete.js +189 -108
- package/dist-es/waiters/waitForStackDeleteComplete.js +213 -122
- package/dist-es/waiters/waitForStackExists.js +42 -23
- package/dist-es/waiters/waitForStackImportComplete.js +189 -108
- package/dist-es/waiters/waitForStackRollbackComplete.js +141 -80
- package/dist-es/waiters/waitForStackUpdateComplete.js +141 -80
- package/dist-es/waiters/waitForTypeRegistrationComplete.js +56 -36
- package/package.json +34 -34
|
@@ -1,117 +1,198 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
|
|
1
2
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
3
|
import { DescribeStacksCommand } from "../commands/DescribeStacksCommand";
|
|
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
|
-
|
|
4
|
+
var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
|
+
var reason, result_1, returnComparator, allStringEq_5, _a, _b, element_4, returnComparator, _c, _d, anyStringEq_4, returnComparator, _e, _f, anyStringEq_4, returnComparator, _g, _h, anyStringEq_4, returnComparator, _j, _k, anyStringEq_4, returnComparator, _l, _m, anyStringEq_4, exception_1;
|
|
6
|
+
var e_1, _o, e_2, _p, e_3, _q, e_4, _r, e_5, _s, e_6, _t;
|
|
7
|
+
return __generator(this, function (_u) {
|
|
8
|
+
switch (_u.label) {
|
|
9
|
+
case 0:
|
|
10
|
+
_u.trys.push([0, 2, , 3]);
|
|
11
|
+
return [4, client.send(new DescribeStacksCommand(input))];
|
|
12
|
+
case 1:
|
|
13
|
+
result_1 = _u.sent();
|
|
14
|
+
reason = result_1;
|
|
15
|
+
try {
|
|
16
|
+
returnComparator = function () {
|
|
17
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Stacks), false));
|
|
18
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
19
|
+
return element_2.StackStatus;
|
|
20
|
+
});
|
|
21
|
+
return projection_3;
|
|
22
|
+
};
|
|
23
|
+
allStringEq_5 = returnComparator().length > 0;
|
|
24
|
+
try {
|
|
25
|
+
for (_a = __values(returnComparator()), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
26
|
+
element_4 = _b.value;
|
|
27
|
+
allStringEq_5 = allStringEq_5 && element_4 == "IMPORT_COMPLETE";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
31
|
+
finally {
|
|
32
|
+
try {
|
|
33
|
+
if (_b && !_b.done && (_o = _a.return)) _o.call(_a);
|
|
34
|
+
}
|
|
35
|
+
finally { if (e_1) throw e_1.error; }
|
|
36
|
+
}
|
|
37
|
+
if (allStringEq_5) {
|
|
38
|
+
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
39
|
+
}
|
|
36
40
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
catch (e) { }
|
|
42
|
+
try {
|
|
43
|
+
returnComparator = function () {
|
|
44
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Stacks), false));
|
|
45
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
46
|
+
return element_2.StackStatus;
|
|
47
|
+
});
|
|
48
|
+
return projection_3;
|
|
49
|
+
};
|
|
50
|
+
try {
|
|
51
|
+
for (_c = __values(returnComparator()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
52
|
+
anyStringEq_4 = _d.value;
|
|
53
|
+
if (anyStringEq_4 == "ROLLBACK_COMPLETE") {
|
|
54
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
59
|
+
finally {
|
|
60
|
+
try {
|
|
61
|
+
if (_d && !_d.done && (_p = _c.return)) _p.call(_c);
|
|
62
|
+
}
|
|
63
|
+
finally { if (e_2) throw e_2.error; }
|
|
64
|
+
}
|
|
51
65
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
catch (e) { }
|
|
67
|
+
try {
|
|
68
|
+
returnComparator = function () {
|
|
69
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Stacks), false));
|
|
70
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
71
|
+
return element_2.StackStatus;
|
|
72
|
+
});
|
|
73
|
+
return projection_3;
|
|
74
|
+
};
|
|
75
|
+
try {
|
|
76
|
+
for (_e = __values(returnComparator()), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
77
|
+
anyStringEq_4 = _f.value;
|
|
78
|
+
if (anyStringEq_4 == "ROLLBACK_FAILED") {
|
|
79
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
84
|
+
finally {
|
|
85
|
+
try {
|
|
86
|
+
if (_f && !_f.done && (_q = _e.return)) _q.call(_e);
|
|
87
|
+
}
|
|
88
|
+
finally { if (e_3) throw e_3.error; }
|
|
89
|
+
}
|
|
66
90
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
91
|
+
catch (e) { }
|
|
92
|
+
try {
|
|
93
|
+
returnComparator = function () {
|
|
94
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Stacks), false));
|
|
95
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
96
|
+
return element_2.StackStatus;
|
|
97
|
+
});
|
|
98
|
+
return projection_3;
|
|
99
|
+
};
|
|
100
|
+
try {
|
|
101
|
+
for (_g = __values(returnComparator()), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
102
|
+
anyStringEq_4 = _h.value;
|
|
103
|
+
if (anyStringEq_4 == "IMPORT_ROLLBACK_IN_PROGRESS") {
|
|
104
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
109
|
+
finally {
|
|
110
|
+
try {
|
|
111
|
+
if (_h && !_h.done && (_r = _g.return)) _r.call(_g);
|
|
112
|
+
}
|
|
113
|
+
finally { if (e_4) throw e_4.error; }
|
|
114
|
+
}
|
|
81
115
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
116
|
+
catch (e) { }
|
|
117
|
+
try {
|
|
118
|
+
returnComparator = function () {
|
|
119
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Stacks), false));
|
|
120
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
121
|
+
return element_2.StackStatus;
|
|
122
|
+
});
|
|
123
|
+
return projection_3;
|
|
124
|
+
};
|
|
125
|
+
try {
|
|
126
|
+
for (_j = __values(returnComparator()), _k = _j.next(); !_k.done; _k = _j.next()) {
|
|
127
|
+
anyStringEq_4 = _k.value;
|
|
128
|
+
if (anyStringEq_4 == "IMPORT_ROLLBACK_FAILED") {
|
|
129
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
134
|
+
finally {
|
|
135
|
+
try {
|
|
136
|
+
if (_k && !_k.done && (_s = _j.return)) _s.call(_j);
|
|
137
|
+
}
|
|
138
|
+
finally { if (e_5) throw e_5.error; }
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
catch (e) { }
|
|
142
|
+
try {
|
|
143
|
+
returnComparator = function () {
|
|
144
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Stacks), false));
|
|
145
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
146
|
+
return element_2.StackStatus;
|
|
147
|
+
});
|
|
148
|
+
return projection_3;
|
|
149
|
+
};
|
|
150
|
+
try {
|
|
151
|
+
for (_l = __values(returnComparator()), _m = _l.next(); !_m.done; _m = _l.next()) {
|
|
152
|
+
anyStringEq_4 = _m.value;
|
|
153
|
+
if (anyStringEq_4 == "IMPORT_ROLLBACK_COMPLETE") {
|
|
154
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
159
|
+
finally {
|
|
160
|
+
try {
|
|
161
|
+
if (_m && !_m.done && (_t = _l.return)) _t.call(_l);
|
|
162
|
+
}
|
|
163
|
+
finally { if (e_6) throw e_6.error; }
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
catch (e) { }
|
|
167
|
+
return [3, 3];
|
|
168
|
+
case 2:
|
|
169
|
+
exception_1 = _u.sent();
|
|
170
|
+
reason = exception_1;
|
|
171
|
+
if (exception_1.name && exception_1.name == "ValidationError") {
|
|
172
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
96
173
|
}
|
|
97
|
-
|
|
174
|
+
return [3, 3];
|
|
175
|
+
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
98
176
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
177
|
+
});
|
|
178
|
+
}); };
|
|
179
|
+
export var waitForStackImportComplete = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
180
|
+
var serviceDefaults;
|
|
181
|
+
return __generator(this, function (_a) {
|
|
182
|
+
serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
183
|
+
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
184
|
+
});
|
|
185
|
+
}); };
|
|
186
|
+
export var waitUntilStackImportComplete = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
187
|
+
var serviceDefaults, result;
|
|
188
|
+
return __generator(this, function (_a) {
|
|
189
|
+
switch (_a.label) {
|
|
190
|
+
case 0:
|
|
191
|
+
serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
192
|
+
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
193
|
+
case 1:
|
|
194
|
+
result = _a.sent();
|
|
195
|
+
return [2, checkExceptions(result)];
|
|
105
196
|
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
};
|
|
109
|
-
export const waitForStackImportComplete = async (params, input) => {
|
|
110
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
111
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
112
|
-
};
|
|
113
|
-
export const waitUntilStackImportComplete = async (params, input) => {
|
|
114
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
115
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
116
|
-
return checkExceptions(result);
|
|
117
|
-
};
|
|
197
|
+
});
|
|
198
|
+
}); };
|
|
@@ -1,87 +1,148 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
|
|
1
2
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
3
|
import { DescribeStacksCommand } from "../commands/DescribeStacksCommand";
|
|
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
|
-
|
|
4
|
+
var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
|
+
var reason, result_1, returnComparator, allStringEq_5, _a, _b, element_4, returnComparator, _c, _d, anyStringEq_4, returnComparator, _e, _f, anyStringEq_4, returnComparator, _g, _h, anyStringEq_4, exception_1;
|
|
6
|
+
var e_1, _j, e_2, _k, e_3, _l, e_4, _m;
|
|
7
|
+
return __generator(this, function (_o) {
|
|
8
|
+
switch (_o.label) {
|
|
9
|
+
case 0:
|
|
10
|
+
_o.trys.push([0, 2, , 3]);
|
|
11
|
+
return [4, client.send(new DescribeStacksCommand(input))];
|
|
12
|
+
case 1:
|
|
13
|
+
result_1 = _o.sent();
|
|
14
|
+
reason = result_1;
|
|
15
|
+
try {
|
|
16
|
+
returnComparator = function () {
|
|
17
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Stacks), false));
|
|
18
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
19
|
+
return element_2.StackStatus;
|
|
20
|
+
});
|
|
21
|
+
return projection_3;
|
|
22
|
+
};
|
|
23
|
+
allStringEq_5 = returnComparator().length > 0;
|
|
24
|
+
try {
|
|
25
|
+
for (_a = __values(returnComparator()), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
26
|
+
element_4 = _b.value;
|
|
27
|
+
allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_ROLLBACK_COMPLETE";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
31
|
+
finally {
|
|
32
|
+
try {
|
|
33
|
+
if (_b && !_b.done && (_j = _a.return)) _j.call(_a);
|
|
34
|
+
}
|
|
35
|
+
finally { if (e_1) throw e_1.error; }
|
|
36
|
+
}
|
|
37
|
+
if (allStringEq_5) {
|
|
38
|
+
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
39
|
+
}
|
|
36
40
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
catch (e) { }
|
|
42
|
+
try {
|
|
43
|
+
returnComparator = function () {
|
|
44
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Stacks), false));
|
|
45
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
46
|
+
return element_2.StackStatus;
|
|
47
|
+
});
|
|
48
|
+
return projection_3;
|
|
49
|
+
};
|
|
50
|
+
try {
|
|
51
|
+
for (_c = __values(returnComparator()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
52
|
+
anyStringEq_4 = _d.value;
|
|
53
|
+
if (anyStringEq_4 == "UPDATE_FAILED") {
|
|
54
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
59
|
+
finally {
|
|
60
|
+
try {
|
|
61
|
+
if (_d && !_d.done && (_k = _c.return)) _k.call(_c);
|
|
62
|
+
}
|
|
63
|
+
finally { if (e_2) throw e_2.error; }
|
|
64
|
+
}
|
|
51
65
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
catch (e) { }
|
|
67
|
+
try {
|
|
68
|
+
returnComparator = function () {
|
|
69
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Stacks), false));
|
|
70
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
71
|
+
return element_2.StackStatus;
|
|
72
|
+
});
|
|
73
|
+
return projection_3;
|
|
74
|
+
};
|
|
75
|
+
try {
|
|
76
|
+
for (_e = __values(returnComparator()), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
77
|
+
anyStringEq_4 = _f.value;
|
|
78
|
+
if (anyStringEq_4 == "UPDATE_ROLLBACK_FAILED") {
|
|
79
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
84
|
+
finally {
|
|
85
|
+
try {
|
|
86
|
+
if (_f && !_f.done && (_l = _e.return)) _l.call(_e);
|
|
87
|
+
}
|
|
88
|
+
finally { if (e_3) throw e_3.error; }
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
catch (e) { }
|
|
92
|
+
try {
|
|
93
|
+
returnComparator = function () {
|
|
94
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Stacks), false));
|
|
95
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
96
|
+
return element_2.StackStatus;
|
|
97
|
+
});
|
|
98
|
+
return projection_3;
|
|
99
|
+
};
|
|
100
|
+
try {
|
|
101
|
+
for (_g = __values(returnComparator()), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
102
|
+
anyStringEq_4 = _h.value;
|
|
103
|
+
if (anyStringEq_4 == "DELETE_FAILED") {
|
|
104
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
109
|
+
finally {
|
|
110
|
+
try {
|
|
111
|
+
if (_h && !_h.done && (_m = _g.return)) _m.call(_g);
|
|
112
|
+
}
|
|
113
|
+
finally { if (e_4) throw e_4.error; }
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
catch (e) { }
|
|
117
|
+
return [3, 3];
|
|
118
|
+
case 2:
|
|
119
|
+
exception_1 = _o.sent();
|
|
120
|
+
reason = exception_1;
|
|
121
|
+
if (exception_1.name && exception_1.name == "ValidationError") {
|
|
122
|
+
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
66
123
|
}
|
|
67
|
-
|
|
124
|
+
return [3, 3];
|
|
125
|
+
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
68
126
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
127
|
+
});
|
|
128
|
+
}); };
|
|
129
|
+
export var waitForStackRollbackComplete = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
130
|
+
var serviceDefaults;
|
|
131
|
+
return __generator(this, function (_a) {
|
|
132
|
+
serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
133
|
+
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
134
|
+
});
|
|
135
|
+
}); };
|
|
136
|
+
export var waitUntilStackRollbackComplete = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
137
|
+
var serviceDefaults, result;
|
|
138
|
+
return __generator(this, function (_a) {
|
|
139
|
+
switch (_a.label) {
|
|
140
|
+
case 0:
|
|
141
|
+
serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
142
|
+
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
143
|
+
case 1:
|
|
144
|
+
result = _a.sent();
|
|
145
|
+
return [2, checkExceptions(result)];
|
|
75
146
|
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
};
|
|
79
|
-
export const waitForStackRollbackComplete = async (params, input) => {
|
|
80
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
81
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
82
|
-
};
|
|
83
|
-
export const waitUntilStackRollbackComplete = async (params, input) => {
|
|
84
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
85
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
86
|
-
return checkExceptions(result);
|
|
87
|
-
};
|
|
147
|
+
});
|
|
148
|
+
}); };
|