@aws-sdk/client-cloudformation 3.185.0 → 3.188.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.
Files changed (103) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-cjs/protocols/Aws_query.js +8 -4
  3. package/dist-es/CloudFormation.js +266 -273
  4. package/dist-es/CloudFormationClient.js +22 -28
  5. package/dist-es/commands/ActivateTypeCommand.js +21 -28
  6. package/dist-es/commands/BatchDescribeTypeConfigurationsCommand.js +21 -28
  7. package/dist-es/commands/CancelUpdateStackCommand.js +22 -29
  8. package/dist-es/commands/ContinueUpdateRollbackCommand.js +21 -28
  9. package/dist-es/commands/CreateChangeSetCommand.js +21 -28
  10. package/dist-es/commands/CreateStackCommand.js +21 -28
  11. package/dist-es/commands/CreateStackInstancesCommand.js +21 -28
  12. package/dist-es/commands/CreateStackSetCommand.js +21 -28
  13. package/dist-es/commands/DeactivateTypeCommand.js +21 -28
  14. package/dist-es/commands/DeleteChangeSetCommand.js +21 -28
  15. package/dist-es/commands/DeleteStackCommand.js +22 -29
  16. package/dist-es/commands/DeleteStackInstancesCommand.js +21 -28
  17. package/dist-es/commands/DeleteStackSetCommand.js +21 -28
  18. package/dist-es/commands/DeregisterTypeCommand.js +21 -28
  19. package/dist-es/commands/DescribeAccountLimitsCommand.js +21 -28
  20. package/dist-es/commands/DescribeChangeSetCommand.js +21 -28
  21. package/dist-es/commands/DescribeChangeSetHooksCommand.js +21 -28
  22. package/dist-es/commands/DescribePublisherCommand.js +21 -28
  23. package/dist-es/commands/DescribeStackDriftDetectionStatusCommand.js +21 -28
  24. package/dist-es/commands/DescribeStackEventsCommand.js +21 -28
  25. package/dist-es/commands/DescribeStackInstanceCommand.js +21 -28
  26. package/dist-es/commands/DescribeStackResourceCommand.js +21 -28
  27. package/dist-es/commands/DescribeStackResourceDriftsCommand.js +21 -28
  28. package/dist-es/commands/DescribeStackResourcesCommand.js +21 -28
  29. package/dist-es/commands/DescribeStackSetCommand.js +21 -28
  30. package/dist-es/commands/DescribeStackSetOperationCommand.js +21 -28
  31. package/dist-es/commands/DescribeStacksCommand.js +21 -28
  32. package/dist-es/commands/DescribeTypeCommand.js +21 -28
  33. package/dist-es/commands/DescribeTypeRegistrationCommand.js +21 -28
  34. package/dist-es/commands/DetectStackDriftCommand.js +21 -28
  35. package/dist-es/commands/DetectStackResourceDriftCommand.js +21 -28
  36. package/dist-es/commands/DetectStackSetDriftCommand.js +21 -28
  37. package/dist-es/commands/EstimateTemplateCostCommand.js +21 -28
  38. package/dist-es/commands/ExecuteChangeSetCommand.js +21 -28
  39. package/dist-es/commands/GetStackPolicyCommand.js +21 -28
  40. package/dist-es/commands/GetTemplateCommand.js +21 -28
  41. package/dist-es/commands/GetTemplateSummaryCommand.js +21 -28
  42. package/dist-es/commands/ImportStacksToStackSetCommand.js +21 -28
  43. package/dist-es/commands/ListChangeSetsCommand.js +21 -28
  44. package/dist-es/commands/ListExportsCommand.js +21 -28
  45. package/dist-es/commands/ListImportsCommand.js +21 -28
  46. package/dist-es/commands/ListStackInstancesCommand.js +21 -28
  47. package/dist-es/commands/ListStackResourcesCommand.js +21 -28
  48. package/dist-es/commands/ListStackSetOperationResultsCommand.js +21 -28
  49. package/dist-es/commands/ListStackSetOperationsCommand.js +21 -28
  50. package/dist-es/commands/ListStackSetsCommand.js +21 -28
  51. package/dist-es/commands/ListStacksCommand.js +21 -28
  52. package/dist-es/commands/ListTypeRegistrationsCommand.js +21 -28
  53. package/dist-es/commands/ListTypeVersionsCommand.js +21 -28
  54. package/dist-es/commands/ListTypesCommand.js +21 -28
  55. package/dist-es/commands/PublishTypeCommand.js +21 -28
  56. package/dist-es/commands/RecordHandlerProgressCommand.js +21 -28
  57. package/dist-es/commands/RegisterPublisherCommand.js +21 -28
  58. package/dist-es/commands/RegisterTypeCommand.js +21 -28
  59. package/dist-es/commands/RollbackStackCommand.js +21 -28
  60. package/dist-es/commands/SetStackPolicyCommand.js +22 -29
  61. package/dist-es/commands/SetTypeConfigurationCommand.js +21 -28
  62. package/dist-es/commands/SetTypeDefaultVersionCommand.js +21 -28
  63. package/dist-es/commands/SignalResourceCommand.js +22 -29
  64. package/dist-es/commands/StopStackSetOperationCommand.js +21 -28
  65. package/dist-es/commands/TestTypeCommand.js +21 -28
  66. package/dist-es/commands/UpdateStackCommand.js +21 -28
  67. package/dist-es/commands/UpdateStackInstancesCommand.js +21 -28
  68. package/dist-es/commands/UpdateStackSetCommand.js +21 -28
  69. package/dist-es/commands/UpdateTerminationProtectionCommand.js +21 -28
  70. package/dist-es/commands/ValidateTemplateCommand.js +21 -28
  71. package/dist-es/endpoints.js +8 -8
  72. package/dist-es/models/CloudFormationServiceException.js +5 -10
  73. package/dist-es/models/models_0.js +819 -450
  74. package/dist-es/pagination/DescribeAccountLimitsPaginator.js +24 -67
  75. package/dist-es/pagination/DescribeStackEventsPaginator.js +24 -67
  76. package/dist-es/pagination/DescribeStackResourceDriftsPaginator.js +25 -68
  77. package/dist-es/pagination/DescribeStacksPaginator.js +24 -67
  78. package/dist-es/pagination/ListChangeSetsPaginator.js +24 -67
  79. package/dist-es/pagination/ListExportsPaginator.js +24 -67
  80. package/dist-es/pagination/ListImportsPaginator.js +24 -67
  81. package/dist-es/pagination/ListStackInstancesPaginator.js +25 -68
  82. package/dist-es/pagination/ListStackResourcesPaginator.js +24 -67
  83. package/dist-es/pagination/ListStackSetOperationResultsPaginator.js +25 -68
  84. package/dist-es/pagination/ListStackSetOperationsPaginator.js +25 -68
  85. package/dist-es/pagination/ListStackSetsPaginator.js +25 -68
  86. package/dist-es/pagination/ListStacksPaginator.js +24 -67
  87. package/dist-es/pagination/ListTypeRegistrationsPaginator.js +25 -68
  88. package/dist-es/pagination/ListTypeVersionsPaginator.js +25 -68
  89. package/dist-es/pagination/ListTypesPaginator.js +25 -68
  90. package/dist-es/protocols/Aws_query.js +4138 -5472
  91. package/dist-es/runtimeConfig.browser.js +26 -12
  92. package/dist-es/runtimeConfig.js +30 -12
  93. package/dist-es/runtimeConfig.native.js +8 -5
  94. package/dist-es/runtimeConfig.shared.js +8 -11
  95. package/dist-es/waiters/waitForChangeSetCreateComplete.js +39 -59
  96. package/dist-es/waiters/waitForStackCreateComplete.js +108 -189
  97. package/dist-es/waiters/waitForStackDeleteComplete.js +122 -213
  98. package/dist-es/waiters/waitForStackExists.js +23 -42
  99. package/dist-es/waiters/waitForStackImportComplete.js +108 -189
  100. package/dist-es/waiters/waitForStackRollbackComplete.js +80 -141
  101. package/dist-es/waiters/waitForStackUpdateComplete.js +80 -141
  102. package/dist-es/waiters/waitForTypeRegistrationComplete.js +36 -56
  103. package/package.json +35 -36
@@ -1,223 +1,132 @@
1
- import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
2
1
  import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
3
2
  import { DescribeStacksCommand } from "../commands/DescribeStacksCommand";
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, returnComparator, _o, _p, anyStringEq_4, exception_1;
6
- var e_1, _q, e_2, _r, e_3, _s, e_4, _t, e_5, _u, e_6, _v, e_7, _w;
7
- return __generator(this, function (_x) {
8
- switch (_x.label) {
9
- case 0:
10
- _x.trys.push([0, 2, , 3]);
11
- return [4, client.send(new DescribeStacksCommand(input))];
12
- case 1:
13
- result_1 = _x.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 == "DELETE_COMPLETE";
28
- }
29
- }
30
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
31
- finally {
32
- try {
33
- if (_b && !_b.done && (_q = _a.return)) _q.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
- }
40
- }
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 == "DELETE_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 && (_r = _c.return)) _r.call(_c);
62
- }
63
- finally { if (e_2) throw e_2.error; }
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 == "CREATE_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 && (_s = _e.return)) _s.call(_e);
87
- }
88
- finally { if (e_3) throw e_3.error; }
89
- }
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new DescribeStacksCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ const flat_1 = [].concat(...result.Stacks);
11
+ const projection_3 = flat_1.map((element_2) => {
12
+ return element_2.StackStatus;
13
+ });
14
+ return projection_3;
15
+ };
16
+ let allStringEq_5 = returnComparator().length > 0;
17
+ for (const element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && element_4 == "DELETE_COMPLETE";
19
+ }
20
+ if (allStringEq_5) {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ catch (e) { }
25
+ try {
26
+ const returnComparator = () => {
27
+ const flat_1 = [].concat(...result.Stacks);
28
+ const projection_3 = flat_1.map((element_2) => {
29
+ return element_2.StackStatus;
30
+ });
31
+ return projection_3;
32
+ };
33
+ for (const anyStringEq_4 of returnComparator()) {
34
+ if (anyStringEq_4 == "DELETE_FAILED") {
35
+ return { state: WaiterState.FAILURE, reason };
90
36
  }
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 == "ROLLBACK_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 && (_t = _g.return)) _t.call(_g);
112
- }
113
- finally { if (e_4) throw e_4.error; }
114
- }
37
+ }
38
+ }
39
+ catch (e) { }
40
+ try {
41
+ const returnComparator = () => {
42
+ const flat_1 = [].concat(...result.Stacks);
43
+ const projection_3 = flat_1.map((element_2) => {
44
+ return element_2.StackStatus;
45
+ });
46
+ return projection_3;
47
+ };
48
+ for (const anyStringEq_4 of returnComparator()) {
49
+ if (anyStringEq_4 == "CREATE_FAILED") {
50
+ return { state: WaiterState.FAILURE, reason };
115
51
  }
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 == "UPDATE_ROLLBACK_IN_PROGRESS") {
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 && (_u = _j.return)) _u.call(_j);
137
- }
138
- finally { if (e_5) throw e_5.error; }
139
- }
52
+ }
53
+ }
54
+ catch (e) { }
55
+ try {
56
+ const returnComparator = () => {
57
+ const flat_1 = [].concat(...result.Stacks);
58
+ const projection_3 = flat_1.map((element_2) => {
59
+ return element_2.StackStatus;
60
+ });
61
+ return projection_3;
62
+ };
63
+ for (const anyStringEq_4 of returnComparator()) {
64
+ if (anyStringEq_4 == "ROLLBACK_FAILED") {
65
+ return { state: WaiterState.FAILURE, reason };
140
66
  }
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 == "UPDATE_ROLLBACK_FAILED") {
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 && (_v = _l.return)) _v.call(_l);
162
- }
163
- finally { if (e_6) throw e_6.error; }
164
- }
67
+ }
68
+ }
69
+ catch (e) { }
70
+ try {
71
+ const returnComparator = () => {
72
+ const flat_1 = [].concat(...result.Stacks);
73
+ const projection_3 = flat_1.map((element_2) => {
74
+ return element_2.StackStatus;
75
+ });
76
+ return projection_3;
77
+ };
78
+ for (const anyStringEq_4 of returnComparator()) {
79
+ if (anyStringEq_4 == "UPDATE_ROLLBACK_IN_PROGRESS") {
80
+ return { state: WaiterState.FAILURE, reason };
165
81
  }
166
- catch (e) { }
167
- try {
168
- returnComparator = function () {
169
- var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.Stacks), false));
170
- var projection_3 = flat_1.map(function (element_2) {
171
- return element_2.StackStatus;
172
- });
173
- return projection_3;
174
- };
175
- try {
176
- for (_o = __values(returnComparator()), _p = _o.next(); !_p.done; _p = _o.next()) {
177
- anyStringEq_4 = _p.value;
178
- if (anyStringEq_4 == "UPDATE_ROLLBACK_COMPLETE") {
179
- return [2, { state: WaiterState.FAILURE, reason: reason }];
180
- }
181
- }
182
- }
183
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
184
- finally {
185
- try {
186
- if (_p && !_p.done && (_w = _o.return)) _w.call(_o);
187
- }
188
- finally { if (e_7) throw e_7.error; }
189
- }
82
+ }
83
+ }
84
+ catch (e) { }
85
+ try {
86
+ const returnComparator = () => {
87
+ const flat_1 = [].concat(...result.Stacks);
88
+ const projection_3 = flat_1.map((element_2) => {
89
+ return element_2.StackStatus;
90
+ });
91
+ return projection_3;
92
+ };
93
+ for (const anyStringEq_4 of returnComparator()) {
94
+ if (anyStringEq_4 == "UPDATE_ROLLBACK_FAILED") {
95
+ return { state: WaiterState.FAILURE, reason };
190
96
  }
191
- catch (e) { }
192
- return [3, 3];
193
- case 2:
194
- exception_1 = _x.sent();
195
- reason = exception_1;
196
- if (exception_1.name && exception_1.name == "ValidationError") {
197
- return [2, { state: WaiterState.SUCCESS, reason: reason }];
97
+ }
98
+ }
99
+ catch (e) { }
100
+ try {
101
+ const returnComparator = () => {
102
+ const flat_1 = [].concat(...result.Stacks);
103
+ const projection_3 = flat_1.map((element_2) => {
104
+ return element_2.StackStatus;
105
+ });
106
+ return projection_3;
107
+ };
108
+ for (const anyStringEq_4 of returnComparator()) {
109
+ if (anyStringEq_4 == "UPDATE_ROLLBACK_COMPLETE") {
110
+ return { state: WaiterState.FAILURE, reason };
198
111
  }
199
- return [3, 3];
200
- case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
112
+ }
201
113
  }
202
- });
203
- }); };
204
- export var waitForStackDeleteComplete = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
205
- var serviceDefaults;
206
- return __generator(this, function (_a) {
207
- serviceDefaults = { minDelay: 30, maxDelay: 120 };
208
- return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
209
- });
210
- }); };
211
- export var waitUntilStackDeleteComplete = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
212
- var serviceDefaults, result;
213
- return __generator(this, function (_a) {
214
- switch (_a.label) {
215
- case 0:
216
- serviceDefaults = { minDelay: 30, maxDelay: 120 };
217
- return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
218
- case 1:
219
- result = _a.sent();
220
- return [2, checkExceptions(result)];
114
+ catch (e) { }
115
+ }
116
+ catch (exception) {
117
+ reason = exception;
118
+ if (exception.name && exception.name == "ValidationError") {
119
+ return { state: WaiterState.SUCCESS, reason };
221
120
  }
222
- });
223
- }); };
121
+ }
122
+ return { state: WaiterState.RETRY, reason };
123
+ };
124
+ export const waitForStackDeleteComplete = async (params, input) => {
125
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
126
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
127
+ };
128
+ export const waitUntilStackDeleteComplete = async (params, input) => {
129
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
130
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
131
+ return checkExceptions(result);
132
+ };
@@ -1,45 +1,26 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
3
2
  import { DescribeStacksCommand } from "../commands/DescribeStacksCommand";
4
- var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
5
- var reason, result, exception_1;
6
- return __generator(this, function (_a) {
7
- switch (_a.label) {
8
- case 0:
9
- _a.trys.push([0, 2, , 3]);
10
- return [4, client.send(new DescribeStacksCommand(input))];
11
- case 1:
12
- result = _a.sent();
13
- reason = result;
14
- return [2, { state: WaiterState.SUCCESS, reason: reason }];
15
- case 2:
16
- exception_1 = _a.sent();
17
- reason = exception_1;
18
- if (exception_1.name && exception_1.name == "ValidationError") {
19
- return [2, { state: WaiterState.RETRY, reason: reason }];
20
- }
21
- return [3, 3];
22
- case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new DescribeStacksCommand(input));
7
+ reason = result;
8
+ return { state: WaiterState.SUCCESS, reason };
9
+ }
10
+ catch (exception) {
11
+ reason = exception;
12
+ if (exception.name && exception.name == "ValidationError") {
13
+ return { state: WaiterState.RETRY, reason };
23
14
  }
24
- });
25
- }); };
26
- export var waitForStackExists = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
27
- var serviceDefaults;
28
- return __generator(this, function (_a) {
29
- serviceDefaults = { minDelay: 5, maxDelay: 120 };
30
- return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
31
- });
32
- }); };
33
- export var waitUntilStackExists = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
34
- var serviceDefaults, result;
35
- return __generator(this, function (_a) {
36
- switch (_a.label) {
37
- case 0:
38
- serviceDefaults = { minDelay: 5, maxDelay: 120 };
39
- return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
40
- case 1:
41
- result = _a.sent();
42
- return [2, checkExceptions(result)];
43
- }
44
- });
45
- }); };
15
+ }
16
+ return { state: WaiterState.RETRY, reason };
17
+ };
18
+ export const waitForStackExists = async (params, input) => {
19
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
20
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
21
+ };
22
+ export const waitUntilStackExists = async (params, input) => {
23
+ const serviceDefaults = { minDelay: 5, maxDelay: 120 };
24
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
25
+ return checkExceptions(result);
26
+ };