@aws-sdk/client-cloudformation 3.310.0 → 3.315.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.
@@ -1,13 +1,11 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { CloudFormationServiceException as __BaseException } from "../models/CloudFormationServiceException";
6
6
  import { AlreadyExistsException, CFNRegistryException, ChangeSetNotFoundException, CreatedButModifiedException, InsufficientCapabilitiesException, InvalidChangeSetStatusException, InvalidOperationException, InvalidStateTransitionException, LimitExceededException, NameAlreadyExistsException, OperationIdAlreadyExistsException, OperationInProgressException, OperationNotFoundException, OperationStatusCheckFailedException, StackInstanceNotFoundException, StackNotFoundException, StackSetNotEmptyException, StackSetNotFoundException, StaleRequestException, TokenAlreadyExistsException, TypeConfigurationNotFoundException, TypeNotFoundException, } from "../models/models_0";
7
7
  export const se_ActivateTypeCommand = async (input, context) => {
8
- const headers = {
9
- "content-type": "application/x-www-form-urlencoded",
10
- };
8
+ const headers = SHARED_HEADERS;
11
9
  let body;
12
10
  body = buildFormUrlencodedString({
13
11
  ...se_ActivateTypeInput(input, context),
@@ -17,9 +15,7 @@ export const se_ActivateTypeCommand = async (input, context) => {
17
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
16
  };
19
17
  export const se_BatchDescribeTypeConfigurationsCommand = async (input, context) => {
20
- const headers = {
21
- "content-type": "application/x-www-form-urlencoded",
22
- };
18
+ const headers = SHARED_HEADERS;
23
19
  let body;
24
20
  body = buildFormUrlencodedString({
25
21
  ...se_BatchDescribeTypeConfigurationsInput(input, context),
@@ -29,9 +25,7 @@ export const se_BatchDescribeTypeConfigurationsCommand = async (input, context)
29
25
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
26
  };
31
27
  export const se_CancelUpdateStackCommand = async (input, context) => {
32
- const headers = {
33
- "content-type": "application/x-www-form-urlencoded",
34
- };
28
+ const headers = SHARED_HEADERS;
35
29
  let body;
36
30
  body = buildFormUrlencodedString({
37
31
  ...se_CancelUpdateStackInput(input, context),
@@ -41,9 +35,7 @@ export const se_CancelUpdateStackCommand = async (input, context) => {
41
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
36
  };
43
37
  export const se_ContinueUpdateRollbackCommand = async (input, context) => {
44
- const headers = {
45
- "content-type": "application/x-www-form-urlencoded",
46
- };
38
+ const headers = SHARED_HEADERS;
47
39
  let body;
48
40
  body = buildFormUrlencodedString({
49
41
  ...se_ContinueUpdateRollbackInput(input, context),
@@ -53,9 +45,7 @@ export const se_ContinueUpdateRollbackCommand = async (input, context) => {
53
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
46
  };
55
47
  export const se_CreateChangeSetCommand = async (input, context) => {
56
- const headers = {
57
- "content-type": "application/x-www-form-urlencoded",
58
- };
48
+ const headers = SHARED_HEADERS;
59
49
  let body;
60
50
  body = buildFormUrlencodedString({
61
51
  ...se_CreateChangeSetInput(input, context),
@@ -65,9 +55,7 @@ export const se_CreateChangeSetCommand = async (input, context) => {
65
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
56
  };
67
57
  export const se_CreateStackCommand = async (input, context) => {
68
- const headers = {
69
- "content-type": "application/x-www-form-urlencoded",
70
- };
58
+ const headers = SHARED_HEADERS;
71
59
  let body;
72
60
  body = buildFormUrlencodedString({
73
61
  ...se_CreateStackInput(input, context),
@@ -77,9 +65,7 @@ export const se_CreateStackCommand = async (input, context) => {
77
65
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
66
  };
79
67
  export const se_CreateStackInstancesCommand = async (input, context) => {
80
- const headers = {
81
- "content-type": "application/x-www-form-urlencoded",
82
- };
68
+ const headers = SHARED_HEADERS;
83
69
  let body;
84
70
  body = buildFormUrlencodedString({
85
71
  ...se_CreateStackInstancesInput(input, context),
@@ -89,9 +75,7 @@ export const se_CreateStackInstancesCommand = async (input, context) => {
89
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
76
  };
91
77
  export const se_CreateStackSetCommand = async (input, context) => {
92
- const headers = {
93
- "content-type": "application/x-www-form-urlencoded",
94
- };
78
+ const headers = SHARED_HEADERS;
95
79
  let body;
96
80
  body = buildFormUrlencodedString({
97
81
  ...se_CreateStackSetInput(input, context),
@@ -101,9 +85,7 @@ export const se_CreateStackSetCommand = async (input, context) => {
101
85
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
86
  };
103
87
  export const se_DeactivateTypeCommand = async (input, context) => {
104
- const headers = {
105
- "content-type": "application/x-www-form-urlencoded",
106
- };
88
+ const headers = SHARED_HEADERS;
107
89
  let body;
108
90
  body = buildFormUrlencodedString({
109
91
  ...se_DeactivateTypeInput(input, context),
@@ -113,9 +95,7 @@ export const se_DeactivateTypeCommand = async (input, context) => {
113
95
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
96
  };
115
97
  export const se_DeleteChangeSetCommand = async (input, context) => {
116
- const headers = {
117
- "content-type": "application/x-www-form-urlencoded",
118
- };
98
+ const headers = SHARED_HEADERS;
119
99
  let body;
120
100
  body = buildFormUrlencodedString({
121
101
  ...se_DeleteChangeSetInput(input, context),
@@ -125,9 +105,7 @@ export const se_DeleteChangeSetCommand = async (input, context) => {
125
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
106
  };
127
107
  export const se_DeleteStackCommand = async (input, context) => {
128
- const headers = {
129
- "content-type": "application/x-www-form-urlencoded",
130
- };
108
+ const headers = SHARED_HEADERS;
131
109
  let body;
132
110
  body = buildFormUrlencodedString({
133
111
  ...se_DeleteStackInput(input, context),
@@ -137,9 +115,7 @@ export const se_DeleteStackCommand = async (input, context) => {
137
115
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
116
  };
139
117
  export const se_DeleteStackInstancesCommand = async (input, context) => {
140
- const headers = {
141
- "content-type": "application/x-www-form-urlencoded",
142
- };
118
+ const headers = SHARED_HEADERS;
143
119
  let body;
144
120
  body = buildFormUrlencodedString({
145
121
  ...se_DeleteStackInstancesInput(input, context),
@@ -149,9 +125,7 @@ export const se_DeleteStackInstancesCommand = async (input, context) => {
149
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
126
  };
151
127
  export const se_DeleteStackSetCommand = async (input, context) => {
152
- const headers = {
153
- "content-type": "application/x-www-form-urlencoded",
154
- };
128
+ const headers = SHARED_HEADERS;
155
129
  let body;
156
130
  body = buildFormUrlencodedString({
157
131
  ...se_DeleteStackSetInput(input, context),
@@ -161,9 +135,7 @@ export const se_DeleteStackSetCommand = async (input, context) => {
161
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
136
  };
163
137
  export const se_DeregisterTypeCommand = async (input, context) => {
164
- const headers = {
165
- "content-type": "application/x-www-form-urlencoded",
166
- };
138
+ const headers = SHARED_HEADERS;
167
139
  let body;
168
140
  body = buildFormUrlencodedString({
169
141
  ...se_DeregisterTypeInput(input, context),
@@ -173,9 +145,7 @@ export const se_DeregisterTypeCommand = async (input, context) => {
173
145
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
146
  };
175
147
  export const se_DescribeAccountLimitsCommand = async (input, context) => {
176
- const headers = {
177
- "content-type": "application/x-www-form-urlencoded",
178
- };
148
+ const headers = SHARED_HEADERS;
179
149
  let body;
180
150
  body = buildFormUrlencodedString({
181
151
  ...se_DescribeAccountLimitsInput(input, context),
@@ -185,9 +155,7 @@ export const se_DescribeAccountLimitsCommand = async (input, context) => {
185
155
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
156
  };
187
157
  export const se_DescribeChangeSetCommand = async (input, context) => {
188
- const headers = {
189
- "content-type": "application/x-www-form-urlencoded",
190
- };
158
+ const headers = SHARED_HEADERS;
191
159
  let body;
192
160
  body = buildFormUrlencodedString({
193
161
  ...se_DescribeChangeSetInput(input, context),
@@ -197,9 +165,7 @@ export const se_DescribeChangeSetCommand = async (input, context) => {
197
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
166
  };
199
167
  export const se_DescribeChangeSetHooksCommand = async (input, context) => {
200
- const headers = {
201
- "content-type": "application/x-www-form-urlencoded",
202
- };
168
+ const headers = SHARED_HEADERS;
203
169
  let body;
204
170
  body = buildFormUrlencodedString({
205
171
  ...se_DescribeChangeSetHooksInput(input, context),
@@ -209,9 +175,7 @@ export const se_DescribeChangeSetHooksCommand = async (input, context) => {
209
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
176
  };
211
177
  export const se_DescribePublisherCommand = async (input, context) => {
212
- const headers = {
213
- "content-type": "application/x-www-form-urlencoded",
214
- };
178
+ const headers = SHARED_HEADERS;
215
179
  let body;
216
180
  body = buildFormUrlencodedString({
217
181
  ...se_DescribePublisherInput(input, context),
@@ -221,9 +185,7 @@ export const se_DescribePublisherCommand = async (input, context) => {
221
185
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
186
  };
223
187
  export const se_DescribeStackDriftDetectionStatusCommand = async (input, context) => {
224
- const headers = {
225
- "content-type": "application/x-www-form-urlencoded",
226
- };
188
+ const headers = SHARED_HEADERS;
227
189
  let body;
228
190
  body = buildFormUrlencodedString({
229
191
  ...se_DescribeStackDriftDetectionStatusInput(input, context),
@@ -233,9 +195,7 @@ export const se_DescribeStackDriftDetectionStatusCommand = async (input, context
233
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
196
  };
235
197
  export const se_DescribeStackEventsCommand = async (input, context) => {
236
- const headers = {
237
- "content-type": "application/x-www-form-urlencoded",
238
- };
198
+ const headers = SHARED_HEADERS;
239
199
  let body;
240
200
  body = buildFormUrlencodedString({
241
201
  ...se_DescribeStackEventsInput(input, context),
@@ -245,9 +205,7 @@ export const se_DescribeStackEventsCommand = async (input, context) => {
245
205
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
206
  };
247
207
  export const se_DescribeStackInstanceCommand = async (input, context) => {
248
- const headers = {
249
- "content-type": "application/x-www-form-urlencoded",
250
- };
208
+ const headers = SHARED_HEADERS;
251
209
  let body;
252
210
  body = buildFormUrlencodedString({
253
211
  ...se_DescribeStackInstanceInput(input, context),
@@ -257,9 +215,7 @@ export const se_DescribeStackInstanceCommand = async (input, context) => {
257
215
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
216
  };
259
217
  export const se_DescribeStackResourceCommand = async (input, context) => {
260
- const headers = {
261
- "content-type": "application/x-www-form-urlencoded",
262
- };
218
+ const headers = SHARED_HEADERS;
263
219
  let body;
264
220
  body = buildFormUrlencodedString({
265
221
  ...se_DescribeStackResourceInput(input, context),
@@ -269,9 +225,7 @@ export const se_DescribeStackResourceCommand = async (input, context) => {
269
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
226
  };
271
227
  export const se_DescribeStackResourceDriftsCommand = async (input, context) => {
272
- const headers = {
273
- "content-type": "application/x-www-form-urlencoded",
274
- };
228
+ const headers = SHARED_HEADERS;
275
229
  let body;
276
230
  body = buildFormUrlencodedString({
277
231
  ...se_DescribeStackResourceDriftsInput(input, context),
@@ -281,9 +235,7 @@ export const se_DescribeStackResourceDriftsCommand = async (input, context) => {
281
235
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
282
236
  };
283
237
  export const se_DescribeStackResourcesCommand = async (input, context) => {
284
- const headers = {
285
- "content-type": "application/x-www-form-urlencoded",
286
- };
238
+ const headers = SHARED_HEADERS;
287
239
  let body;
288
240
  body = buildFormUrlencodedString({
289
241
  ...se_DescribeStackResourcesInput(input, context),
@@ -293,9 +245,7 @@ export const se_DescribeStackResourcesCommand = async (input, context) => {
293
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
246
  };
295
247
  export const se_DescribeStacksCommand = async (input, context) => {
296
- const headers = {
297
- "content-type": "application/x-www-form-urlencoded",
298
- };
248
+ const headers = SHARED_HEADERS;
299
249
  let body;
300
250
  body = buildFormUrlencodedString({
301
251
  ...se_DescribeStacksInput(input, context),
@@ -305,9 +255,7 @@ export const se_DescribeStacksCommand = async (input, context) => {
305
255
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
256
  };
307
257
  export const se_DescribeStackSetCommand = async (input, context) => {
308
- const headers = {
309
- "content-type": "application/x-www-form-urlencoded",
310
- };
258
+ const headers = SHARED_HEADERS;
311
259
  let body;
312
260
  body = buildFormUrlencodedString({
313
261
  ...se_DescribeStackSetInput(input, context),
@@ -317,9 +265,7 @@ export const se_DescribeStackSetCommand = async (input, context) => {
317
265
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
266
  };
319
267
  export const se_DescribeStackSetOperationCommand = async (input, context) => {
320
- const headers = {
321
- "content-type": "application/x-www-form-urlencoded",
322
- };
268
+ const headers = SHARED_HEADERS;
323
269
  let body;
324
270
  body = buildFormUrlencodedString({
325
271
  ...se_DescribeStackSetOperationInput(input, context),
@@ -329,9 +275,7 @@ export const se_DescribeStackSetOperationCommand = async (input, context) => {
329
275
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
276
  };
331
277
  export const se_DescribeTypeCommand = async (input, context) => {
332
- const headers = {
333
- "content-type": "application/x-www-form-urlencoded",
334
- };
278
+ const headers = SHARED_HEADERS;
335
279
  let body;
336
280
  body = buildFormUrlencodedString({
337
281
  ...se_DescribeTypeInput(input, context),
@@ -341,9 +285,7 @@ export const se_DescribeTypeCommand = async (input, context) => {
341
285
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
342
286
  };
343
287
  export const se_DescribeTypeRegistrationCommand = async (input, context) => {
344
- const headers = {
345
- "content-type": "application/x-www-form-urlencoded",
346
- };
288
+ const headers = SHARED_HEADERS;
347
289
  let body;
348
290
  body = buildFormUrlencodedString({
349
291
  ...se_DescribeTypeRegistrationInput(input, context),
@@ -353,9 +295,7 @@ export const se_DescribeTypeRegistrationCommand = async (input, context) => {
353
295
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
296
  };
355
297
  export const se_DetectStackDriftCommand = async (input, context) => {
356
- const headers = {
357
- "content-type": "application/x-www-form-urlencoded",
358
- };
298
+ const headers = SHARED_HEADERS;
359
299
  let body;
360
300
  body = buildFormUrlencodedString({
361
301
  ...se_DetectStackDriftInput(input, context),
@@ -365,9 +305,7 @@ export const se_DetectStackDriftCommand = async (input, context) => {
365
305
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
306
  };
367
307
  export const se_DetectStackResourceDriftCommand = async (input, context) => {
368
- const headers = {
369
- "content-type": "application/x-www-form-urlencoded",
370
- };
308
+ const headers = SHARED_HEADERS;
371
309
  let body;
372
310
  body = buildFormUrlencodedString({
373
311
  ...se_DetectStackResourceDriftInput(input, context),
@@ -377,9 +315,7 @@ export const se_DetectStackResourceDriftCommand = async (input, context) => {
377
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
316
  };
379
317
  export const se_DetectStackSetDriftCommand = async (input, context) => {
380
- const headers = {
381
- "content-type": "application/x-www-form-urlencoded",
382
- };
318
+ const headers = SHARED_HEADERS;
383
319
  let body;
384
320
  body = buildFormUrlencodedString({
385
321
  ...se_DetectStackSetDriftInput(input, context),
@@ -389,9 +325,7 @@ export const se_DetectStackSetDriftCommand = async (input, context) => {
389
325
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
326
  };
391
327
  export const se_EstimateTemplateCostCommand = async (input, context) => {
392
- const headers = {
393
- "content-type": "application/x-www-form-urlencoded",
394
- };
328
+ const headers = SHARED_HEADERS;
395
329
  let body;
396
330
  body = buildFormUrlencodedString({
397
331
  ...se_EstimateTemplateCostInput(input, context),
@@ -401,9 +335,7 @@ export const se_EstimateTemplateCostCommand = async (input, context) => {
401
335
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
402
336
  };
403
337
  export const se_ExecuteChangeSetCommand = async (input, context) => {
404
- const headers = {
405
- "content-type": "application/x-www-form-urlencoded",
406
- };
338
+ const headers = SHARED_HEADERS;
407
339
  let body;
408
340
  body = buildFormUrlencodedString({
409
341
  ...se_ExecuteChangeSetInput(input, context),
@@ -413,9 +345,7 @@ export const se_ExecuteChangeSetCommand = async (input, context) => {
413
345
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
346
  };
415
347
  export const se_GetStackPolicyCommand = async (input, context) => {
416
- const headers = {
417
- "content-type": "application/x-www-form-urlencoded",
418
- };
348
+ const headers = SHARED_HEADERS;
419
349
  let body;
420
350
  body = buildFormUrlencodedString({
421
351
  ...se_GetStackPolicyInput(input, context),
@@ -425,9 +355,7 @@ export const se_GetStackPolicyCommand = async (input, context) => {
425
355
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
426
356
  };
427
357
  export const se_GetTemplateCommand = async (input, context) => {
428
- const headers = {
429
- "content-type": "application/x-www-form-urlencoded",
430
- };
358
+ const headers = SHARED_HEADERS;
431
359
  let body;
432
360
  body = buildFormUrlencodedString({
433
361
  ...se_GetTemplateInput(input, context),
@@ -437,9 +365,7 @@ export const se_GetTemplateCommand = async (input, context) => {
437
365
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
438
366
  };
439
367
  export const se_GetTemplateSummaryCommand = async (input, context) => {
440
- const headers = {
441
- "content-type": "application/x-www-form-urlencoded",
442
- };
368
+ const headers = SHARED_HEADERS;
443
369
  let body;
444
370
  body = buildFormUrlencodedString({
445
371
  ...se_GetTemplateSummaryInput(input, context),
@@ -449,9 +375,7 @@ export const se_GetTemplateSummaryCommand = async (input, context) => {
449
375
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
450
376
  };
451
377
  export const se_ImportStacksToStackSetCommand = async (input, context) => {
452
- const headers = {
453
- "content-type": "application/x-www-form-urlencoded",
454
- };
378
+ const headers = SHARED_HEADERS;
455
379
  let body;
456
380
  body = buildFormUrlencodedString({
457
381
  ...se_ImportStacksToStackSetInput(input, context),
@@ -461,9 +385,7 @@ export const se_ImportStacksToStackSetCommand = async (input, context) => {
461
385
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
462
386
  };
463
387
  export const se_ListChangeSetsCommand = async (input, context) => {
464
- const headers = {
465
- "content-type": "application/x-www-form-urlencoded",
466
- };
388
+ const headers = SHARED_HEADERS;
467
389
  let body;
468
390
  body = buildFormUrlencodedString({
469
391
  ...se_ListChangeSetsInput(input, context),
@@ -473,9 +395,7 @@ export const se_ListChangeSetsCommand = async (input, context) => {
473
395
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
474
396
  };
475
397
  export const se_ListExportsCommand = async (input, context) => {
476
- const headers = {
477
- "content-type": "application/x-www-form-urlencoded",
478
- };
398
+ const headers = SHARED_HEADERS;
479
399
  let body;
480
400
  body = buildFormUrlencodedString({
481
401
  ...se_ListExportsInput(input, context),
@@ -485,9 +405,7 @@ export const se_ListExportsCommand = async (input, context) => {
485
405
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
486
406
  };
487
407
  export const se_ListImportsCommand = async (input, context) => {
488
- const headers = {
489
- "content-type": "application/x-www-form-urlencoded",
490
- };
408
+ const headers = SHARED_HEADERS;
491
409
  let body;
492
410
  body = buildFormUrlencodedString({
493
411
  ...se_ListImportsInput(input, context),
@@ -497,9 +415,7 @@ export const se_ListImportsCommand = async (input, context) => {
497
415
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
416
  };
499
417
  export const se_ListStackInstancesCommand = async (input, context) => {
500
- const headers = {
501
- "content-type": "application/x-www-form-urlencoded",
502
- };
418
+ const headers = SHARED_HEADERS;
503
419
  let body;
504
420
  body = buildFormUrlencodedString({
505
421
  ...se_ListStackInstancesInput(input, context),
@@ -509,9 +425,7 @@ export const se_ListStackInstancesCommand = async (input, context) => {
509
425
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
510
426
  };
511
427
  export const se_ListStackResourcesCommand = async (input, context) => {
512
- const headers = {
513
- "content-type": "application/x-www-form-urlencoded",
514
- };
428
+ const headers = SHARED_HEADERS;
515
429
  let body;
516
430
  body = buildFormUrlencodedString({
517
431
  ...se_ListStackResourcesInput(input, context),
@@ -521,9 +435,7 @@ export const se_ListStackResourcesCommand = async (input, context) => {
521
435
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
522
436
  };
523
437
  export const se_ListStacksCommand = async (input, context) => {
524
- const headers = {
525
- "content-type": "application/x-www-form-urlencoded",
526
- };
438
+ const headers = SHARED_HEADERS;
527
439
  let body;
528
440
  body = buildFormUrlencodedString({
529
441
  ...se_ListStacksInput(input, context),
@@ -533,9 +445,7 @@ export const se_ListStacksCommand = async (input, context) => {
533
445
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
534
446
  };
535
447
  export const se_ListStackSetOperationResultsCommand = async (input, context) => {
536
- const headers = {
537
- "content-type": "application/x-www-form-urlencoded",
538
- };
448
+ const headers = SHARED_HEADERS;
539
449
  let body;
540
450
  body = buildFormUrlencodedString({
541
451
  ...se_ListStackSetOperationResultsInput(input, context),
@@ -545,9 +455,7 @@ export const se_ListStackSetOperationResultsCommand = async (input, context) =>
545
455
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
546
456
  };
547
457
  export const se_ListStackSetOperationsCommand = async (input, context) => {
548
- const headers = {
549
- "content-type": "application/x-www-form-urlencoded",
550
- };
458
+ const headers = SHARED_HEADERS;
551
459
  let body;
552
460
  body = buildFormUrlencodedString({
553
461
  ...se_ListStackSetOperationsInput(input, context),
@@ -557,9 +465,7 @@ export const se_ListStackSetOperationsCommand = async (input, context) => {
557
465
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
558
466
  };
559
467
  export const se_ListStackSetsCommand = async (input, context) => {
560
- const headers = {
561
- "content-type": "application/x-www-form-urlencoded",
562
- };
468
+ const headers = SHARED_HEADERS;
563
469
  let body;
564
470
  body = buildFormUrlencodedString({
565
471
  ...se_ListStackSetsInput(input, context),
@@ -569,9 +475,7 @@ export const se_ListStackSetsCommand = async (input, context) => {
569
475
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
570
476
  };
571
477
  export const se_ListTypeRegistrationsCommand = async (input, context) => {
572
- const headers = {
573
- "content-type": "application/x-www-form-urlencoded",
574
- };
478
+ const headers = SHARED_HEADERS;
575
479
  let body;
576
480
  body = buildFormUrlencodedString({
577
481
  ...se_ListTypeRegistrationsInput(input, context),
@@ -581,9 +485,7 @@ export const se_ListTypeRegistrationsCommand = async (input, context) => {
581
485
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
582
486
  };
583
487
  export const se_ListTypesCommand = async (input, context) => {
584
- const headers = {
585
- "content-type": "application/x-www-form-urlencoded",
586
- };
488
+ const headers = SHARED_HEADERS;
587
489
  let body;
588
490
  body = buildFormUrlencodedString({
589
491
  ...se_ListTypesInput(input, context),
@@ -593,9 +495,7 @@ export const se_ListTypesCommand = async (input, context) => {
593
495
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
594
496
  };
595
497
  export const se_ListTypeVersionsCommand = async (input, context) => {
596
- const headers = {
597
- "content-type": "application/x-www-form-urlencoded",
598
- };
498
+ const headers = SHARED_HEADERS;
599
499
  let body;
600
500
  body = buildFormUrlencodedString({
601
501
  ...se_ListTypeVersionsInput(input, context),
@@ -605,9 +505,7 @@ export const se_ListTypeVersionsCommand = async (input, context) => {
605
505
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
606
506
  };
607
507
  export const se_PublishTypeCommand = async (input, context) => {
608
- const headers = {
609
- "content-type": "application/x-www-form-urlencoded",
610
- };
508
+ const headers = SHARED_HEADERS;
611
509
  let body;
612
510
  body = buildFormUrlencodedString({
613
511
  ...se_PublishTypeInput(input, context),
@@ -617,9 +515,7 @@ export const se_PublishTypeCommand = async (input, context) => {
617
515
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
618
516
  };
619
517
  export const se_RecordHandlerProgressCommand = async (input, context) => {
620
- const headers = {
621
- "content-type": "application/x-www-form-urlencoded",
622
- };
518
+ const headers = SHARED_HEADERS;
623
519
  let body;
624
520
  body = buildFormUrlencodedString({
625
521
  ...se_RecordHandlerProgressInput(input, context),
@@ -629,9 +525,7 @@ export const se_RecordHandlerProgressCommand = async (input, context) => {
629
525
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
630
526
  };
631
527
  export const se_RegisterPublisherCommand = async (input, context) => {
632
- const headers = {
633
- "content-type": "application/x-www-form-urlencoded",
634
- };
528
+ const headers = SHARED_HEADERS;
635
529
  let body;
636
530
  body = buildFormUrlencodedString({
637
531
  ...se_RegisterPublisherInput(input, context),
@@ -641,9 +535,7 @@ export const se_RegisterPublisherCommand = async (input, context) => {
641
535
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
642
536
  };
643
537
  export const se_RegisterTypeCommand = async (input, context) => {
644
- const headers = {
645
- "content-type": "application/x-www-form-urlencoded",
646
- };
538
+ const headers = SHARED_HEADERS;
647
539
  let body;
648
540
  body = buildFormUrlencodedString({
649
541
  ...se_RegisterTypeInput(input, context),
@@ -653,9 +545,7 @@ export const se_RegisterTypeCommand = async (input, context) => {
653
545
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
654
546
  };
655
547
  export const se_RollbackStackCommand = async (input, context) => {
656
- const headers = {
657
- "content-type": "application/x-www-form-urlencoded",
658
- };
548
+ const headers = SHARED_HEADERS;
659
549
  let body;
660
550
  body = buildFormUrlencodedString({
661
551
  ...se_RollbackStackInput(input, context),
@@ -665,9 +555,7 @@ export const se_RollbackStackCommand = async (input, context) => {
665
555
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
666
556
  };
667
557
  export const se_SetStackPolicyCommand = async (input, context) => {
668
- const headers = {
669
- "content-type": "application/x-www-form-urlencoded",
670
- };
558
+ const headers = SHARED_HEADERS;
671
559
  let body;
672
560
  body = buildFormUrlencodedString({
673
561
  ...se_SetStackPolicyInput(input, context),
@@ -677,9 +565,7 @@ export const se_SetStackPolicyCommand = async (input, context) => {
677
565
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
678
566
  };
679
567
  export const se_SetTypeConfigurationCommand = async (input, context) => {
680
- const headers = {
681
- "content-type": "application/x-www-form-urlencoded",
682
- };
568
+ const headers = SHARED_HEADERS;
683
569
  let body;
684
570
  body = buildFormUrlencodedString({
685
571
  ...se_SetTypeConfigurationInput(input, context),
@@ -689,9 +575,7 @@ export const se_SetTypeConfigurationCommand = async (input, context) => {
689
575
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
690
576
  };
691
577
  export const se_SetTypeDefaultVersionCommand = async (input, context) => {
692
- const headers = {
693
- "content-type": "application/x-www-form-urlencoded",
694
- };
578
+ const headers = SHARED_HEADERS;
695
579
  let body;
696
580
  body = buildFormUrlencodedString({
697
581
  ...se_SetTypeDefaultVersionInput(input, context),
@@ -701,9 +585,7 @@ export const se_SetTypeDefaultVersionCommand = async (input, context) => {
701
585
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
702
586
  };
703
587
  export const se_SignalResourceCommand = async (input, context) => {
704
- const headers = {
705
- "content-type": "application/x-www-form-urlencoded",
706
- };
588
+ const headers = SHARED_HEADERS;
707
589
  let body;
708
590
  body = buildFormUrlencodedString({
709
591
  ...se_SignalResourceInput(input, context),
@@ -713,9 +595,7 @@ export const se_SignalResourceCommand = async (input, context) => {
713
595
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
714
596
  };
715
597
  export const se_StopStackSetOperationCommand = async (input, context) => {
716
- const headers = {
717
- "content-type": "application/x-www-form-urlencoded",
718
- };
598
+ const headers = SHARED_HEADERS;
719
599
  let body;
720
600
  body = buildFormUrlencodedString({
721
601
  ...se_StopStackSetOperationInput(input, context),
@@ -725,9 +605,7 @@ export const se_StopStackSetOperationCommand = async (input, context) => {
725
605
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
726
606
  };
727
607
  export const se_TestTypeCommand = async (input, context) => {
728
- const headers = {
729
- "content-type": "application/x-www-form-urlencoded",
730
- };
608
+ const headers = SHARED_HEADERS;
731
609
  let body;
732
610
  body = buildFormUrlencodedString({
733
611
  ...se_TestTypeInput(input, context),
@@ -737,9 +615,7 @@ export const se_TestTypeCommand = async (input, context) => {
737
615
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
738
616
  };
739
617
  export const se_UpdateStackCommand = async (input, context) => {
740
- const headers = {
741
- "content-type": "application/x-www-form-urlencoded",
742
- };
618
+ const headers = SHARED_HEADERS;
743
619
  let body;
744
620
  body = buildFormUrlencodedString({
745
621
  ...se_UpdateStackInput(input, context),
@@ -749,9 +625,7 @@ export const se_UpdateStackCommand = async (input, context) => {
749
625
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
750
626
  };
751
627
  export const se_UpdateStackInstancesCommand = async (input, context) => {
752
- const headers = {
753
- "content-type": "application/x-www-form-urlencoded",
754
- };
628
+ const headers = SHARED_HEADERS;
755
629
  let body;
756
630
  body = buildFormUrlencodedString({
757
631
  ...se_UpdateStackInstancesInput(input, context),
@@ -761,9 +635,7 @@ export const se_UpdateStackInstancesCommand = async (input, context) => {
761
635
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
762
636
  };
763
637
  export const se_UpdateStackSetCommand = async (input, context) => {
764
- const headers = {
765
- "content-type": "application/x-www-form-urlencoded",
766
- };
638
+ const headers = SHARED_HEADERS;
767
639
  let body;
768
640
  body = buildFormUrlencodedString({
769
641
  ...se_UpdateStackSetInput(input, context),
@@ -773,9 +645,7 @@ export const se_UpdateStackSetCommand = async (input, context) => {
773
645
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
774
646
  };
775
647
  export const se_UpdateTerminationProtectionCommand = async (input, context) => {
776
- const headers = {
777
- "content-type": "application/x-www-form-urlencoded",
778
- };
648
+ const headers = SHARED_HEADERS;
779
649
  let body;
780
650
  body = buildFormUrlencodedString({
781
651
  ...se_UpdateTerminationProtectionInput(input, context),
@@ -785,9 +655,7 @@ export const se_UpdateTerminationProtectionCommand = async (input, context) => {
785
655
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
786
656
  };
787
657
  export const se_ValidateTemplateCommand = async (input, context) => {
788
- const headers = {
789
- "content-type": "application/x-www-form-urlencoded",
790
- };
658
+ const headers = SHARED_HEADERS;
791
659
  let body;
792
660
  body = buildFormUrlencodedString({
793
661
  ...se_ValidateTemplateInput(input, context),
@@ -807,7 +675,7 @@ export const de_ActivateTypeCommand = async (output, context) => {
807
675
  $metadata: deserializeMetadata(output),
808
676
  ...contents,
809
677
  };
810
- return Promise.resolve(response);
678
+ return response;
811
679
  };
812
680
  const de_ActivateTypeCommandError = async (output, context) => {
813
681
  const parsedOutput = {
@@ -824,10 +692,9 @@ const de_ActivateTypeCommandError = async (output, context) => {
824
692
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
825
693
  default:
826
694
  const parsedBody = parsedOutput.body;
827
- throwDefaultError({
695
+ return throwDefaultError({
828
696
  output,
829
697
  parsedBody: parsedBody.Error,
830
- exceptionCtor: __BaseException,
831
698
  errorCode,
832
699
  });
833
700
  }
@@ -843,7 +710,7 @@ export const de_BatchDescribeTypeConfigurationsCommand = async (output, context)
843
710
  $metadata: deserializeMetadata(output),
844
711
  ...contents,
845
712
  };
846
- return Promise.resolve(response);
713
+ return response;
847
714
  };
848
715
  const de_BatchDescribeTypeConfigurationsCommandError = async (output, context) => {
849
716
  const parsedOutput = {
@@ -860,10 +727,9 @@ const de_BatchDescribeTypeConfigurationsCommandError = async (output, context) =
860
727
  throw await de_TypeConfigurationNotFoundExceptionRes(parsedOutput, context);
861
728
  default:
862
729
  const parsedBody = parsedOutput.body;
863
- throwDefaultError({
730
+ return throwDefaultError({
864
731
  output,
865
732
  parsedBody: parsedBody.Error,
866
- exceptionCtor: __BaseException,
867
733
  errorCode,
868
734
  });
869
735
  }
@@ -876,7 +742,7 @@ export const de_CancelUpdateStackCommand = async (output, context) => {
876
742
  const response = {
877
743
  $metadata: deserializeMetadata(output),
878
744
  };
879
- return Promise.resolve(response);
745
+ return response;
880
746
  };
881
747
  const de_CancelUpdateStackCommandError = async (output, context) => {
882
748
  const parsedOutput = {
@@ -890,10 +756,9 @@ const de_CancelUpdateStackCommandError = async (output, context) => {
890
756
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
891
757
  default:
892
758
  const parsedBody = parsedOutput.body;
893
- throwDefaultError({
759
+ return throwDefaultError({
894
760
  output,
895
761
  parsedBody: parsedBody.Error,
896
- exceptionCtor: __BaseException,
897
762
  errorCode,
898
763
  });
899
764
  }
@@ -909,7 +774,7 @@ export const de_ContinueUpdateRollbackCommand = async (output, context) => {
909
774
  $metadata: deserializeMetadata(output),
910
775
  ...contents,
911
776
  };
912
- return Promise.resolve(response);
777
+ return response;
913
778
  };
914
779
  const de_ContinueUpdateRollbackCommandError = async (output, context) => {
915
780
  const parsedOutput = {
@@ -923,10 +788,9 @@ const de_ContinueUpdateRollbackCommandError = async (output, context) => {
923
788
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
924
789
  default:
925
790
  const parsedBody = parsedOutput.body;
926
- throwDefaultError({
791
+ return throwDefaultError({
927
792
  output,
928
793
  parsedBody: parsedBody.Error,
929
- exceptionCtor: __BaseException,
930
794
  errorCode,
931
795
  });
932
796
  }
@@ -942,7 +806,7 @@ export const de_CreateChangeSetCommand = async (output, context) => {
942
806
  $metadata: deserializeMetadata(output),
943
807
  ...contents,
944
808
  };
945
- return Promise.resolve(response);
809
+ return response;
946
810
  };
947
811
  const de_CreateChangeSetCommandError = async (output, context) => {
948
812
  const parsedOutput = {
@@ -962,10 +826,9 @@ const de_CreateChangeSetCommandError = async (output, context) => {
962
826
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
963
827
  default:
964
828
  const parsedBody = parsedOutput.body;
965
- throwDefaultError({
829
+ return throwDefaultError({
966
830
  output,
967
831
  parsedBody: parsedBody.Error,
968
- exceptionCtor: __BaseException,
969
832
  errorCode,
970
833
  });
971
834
  }
@@ -981,7 +844,7 @@ export const de_CreateStackCommand = async (output, context) => {
981
844
  $metadata: deserializeMetadata(output),
982
845
  ...contents,
983
846
  };
984
- return Promise.resolve(response);
847
+ return response;
985
848
  };
986
849
  const de_CreateStackCommandError = async (output, context) => {
987
850
  const parsedOutput = {
@@ -1004,10 +867,9 @@ const de_CreateStackCommandError = async (output, context) => {
1004
867
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
1005
868
  default:
1006
869
  const parsedBody = parsedOutput.body;
1007
- throwDefaultError({
870
+ return throwDefaultError({
1008
871
  output,
1009
872
  parsedBody: parsedBody.Error,
1010
- exceptionCtor: __BaseException,
1011
873
  errorCode,
1012
874
  });
1013
875
  }
@@ -1023,7 +885,7 @@ export const de_CreateStackInstancesCommand = async (output, context) => {
1023
885
  $metadata: deserializeMetadata(output),
1024
886
  ...contents,
1025
887
  };
1026
- return Promise.resolve(response);
888
+ return response;
1027
889
  };
1028
890
  const de_CreateStackInstancesCommandError = async (output, context) => {
1029
891
  const parsedOutput = {
@@ -1052,10 +914,9 @@ const de_CreateStackInstancesCommandError = async (output, context) => {
1052
914
  throw await de_StaleRequestExceptionRes(parsedOutput, context);
1053
915
  default:
1054
916
  const parsedBody = parsedOutput.body;
1055
- throwDefaultError({
917
+ return throwDefaultError({
1056
918
  output,
1057
919
  parsedBody: parsedBody.Error,
1058
- exceptionCtor: __BaseException,
1059
920
  errorCode,
1060
921
  });
1061
922
  }
@@ -1071,7 +932,7 @@ export const de_CreateStackSetCommand = async (output, context) => {
1071
932
  $metadata: deserializeMetadata(output),
1072
933
  ...contents,
1073
934
  };
1074
- return Promise.resolve(response);
935
+ return response;
1075
936
  };
1076
937
  const de_CreateStackSetCommandError = async (output, context) => {
1077
938
  const parsedOutput = {
@@ -1091,10 +952,9 @@ const de_CreateStackSetCommandError = async (output, context) => {
1091
952
  throw await de_NameAlreadyExistsExceptionRes(parsedOutput, context);
1092
953
  default:
1093
954
  const parsedBody = parsedOutput.body;
1094
- throwDefaultError({
955
+ return throwDefaultError({
1095
956
  output,
1096
957
  parsedBody: parsedBody.Error,
1097
- exceptionCtor: __BaseException,
1098
958
  errorCode,
1099
959
  });
1100
960
  }
@@ -1110,7 +970,7 @@ export const de_DeactivateTypeCommand = async (output, context) => {
1110
970
  $metadata: deserializeMetadata(output),
1111
971
  ...contents,
1112
972
  };
1113
- return Promise.resolve(response);
973
+ return response;
1114
974
  };
1115
975
  const de_DeactivateTypeCommandError = async (output, context) => {
1116
976
  const parsedOutput = {
@@ -1127,10 +987,9 @@ const de_DeactivateTypeCommandError = async (output, context) => {
1127
987
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
1128
988
  default:
1129
989
  const parsedBody = parsedOutput.body;
1130
- throwDefaultError({
990
+ return throwDefaultError({
1131
991
  output,
1132
992
  parsedBody: parsedBody.Error,
1133
- exceptionCtor: __BaseException,
1134
993
  errorCode,
1135
994
  });
1136
995
  }
@@ -1146,7 +1005,7 @@ export const de_DeleteChangeSetCommand = async (output, context) => {
1146
1005
  $metadata: deserializeMetadata(output),
1147
1006
  ...contents,
1148
1007
  };
1149
- return Promise.resolve(response);
1008
+ return response;
1150
1009
  };
1151
1010
  const de_DeleteChangeSetCommandError = async (output, context) => {
1152
1011
  const parsedOutput = {
@@ -1160,10 +1019,9 @@ const de_DeleteChangeSetCommandError = async (output, context) => {
1160
1019
  throw await de_InvalidChangeSetStatusExceptionRes(parsedOutput, context);
1161
1020
  default:
1162
1021
  const parsedBody = parsedOutput.body;
1163
- throwDefaultError({
1022
+ return throwDefaultError({
1164
1023
  output,
1165
1024
  parsedBody: parsedBody.Error,
1166
- exceptionCtor: __BaseException,
1167
1025
  errorCode,
1168
1026
  });
1169
1027
  }
@@ -1176,7 +1034,7 @@ export const de_DeleteStackCommand = async (output, context) => {
1176
1034
  const response = {
1177
1035
  $metadata: deserializeMetadata(output),
1178
1036
  };
1179
- return Promise.resolve(response);
1037
+ return response;
1180
1038
  };
1181
1039
  const de_DeleteStackCommandError = async (output, context) => {
1182
1040
  const parsedOutput = {
@@ -1190,10 +1048,9 @@ const de_DeleteStackCommandError = async (output, context) => {
1190
1048
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
1191
1049
  default:
1192
1050
  const parsedBody = parsedOutput.body;
1193
- throwDefaultError({
1051
+ return throwDefaultError({
1194
1052
  output,
1195
1053
  parsedBody: parsedBody.Error,
1196
- exceptionCtor: __BaseException,
1197
1054
  errorCode,
1198
1055
  });
1199
1056
  }
@@ -1209,7 +1066,7 @@ export const de_DeleteStackInstancesCommand = async (output, context) => {
1209
1066
  $metadata: deserializeMetadata(output),
1210
1067
  ...contents,
1211
1068
  };
1212
- return Promise.resolve(response);
1069
+ return response;
1213
1070
  };
1214
1071
  const de_DeleteStackInstancesCommandError = async (output, context) => {
1215
1072
  const parsedOutput = {
@@ -1235,10 +1092,9 @@ const de_DeleteStackInstancesCommandError = async (output, context) => {
1235
1092
  throw await de_StaleRequestExceptionRes(parsedOutput, context);
1236
1093
  default:
1237
1094
  const parsedBody = parsedOutput.body;
1238
- throwDefaultError({
1095
+ return throwDefaultError({
1239
1096
  output,
1240
1097
  parsedBody: parsedBody.Error,
1241
- exceptionCtor: __BaseException,
1242
1098
  errorCode,
1243
1099
  });
1244
1100
  }
@@ -1254,7 +1110,7 @@ export const de_DeleteStackSetCommand = async (output, context) => {
1254
1110
  $metadata: deserializeMetadata(output),
1255
1111
  ...contents,
1256
1112
  };
1257
- return Promise.resolve(response);
1113
+ return response;
1258
1114
  };
1259
1115
  const de_DeleteStackSetCommandError = async (output, context) => {
1260
1116
  const parsedOutput = {
@@ -1271,10 +1127,9 @@ const de_DeleteStackSetCommandError = async (output, context) => {
1271
1127
  throw await de_StackSetNotEmptyExceptionRes(parsedOutput, context);
1272
1128
  default:
1273
1129
  const parsedBody = parsedOutput.body;
1274
- throwDefaultError({
1130
+ return throwDefaultError({
1275
1131
  output,
1276
1132
  parsedBody: parsedBody.Error,
1277
- exceptionCtor: __BaseException,
1278
1133
  errorCode,
1279
1134
  });
1280
1135
  }
@@ -1290,7 +1145,7 @@ export const de_DeregisterTypeCommand = async (output, context) => {
1290
1145
  $metadata: deserializeMetadata(output),
1291
1146
  ...contents,
1292
1147
  };
1293
- return Promise.resolve(response);
1148
+ return response;
1294
1149
  };
1295
1150
  const de_DeregisterTypeCommandError = async (output, context) => {
1296
1151
  const parsedOutput = {
@@ -1307,10 +1162,9 @@ const de_DeregisterTypeCommandError = async (output, context) => {
1307
1162
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
1308
1163
  default:
1309
1164
  const parsedBody = parsedOutput.body;
1310
- throwDefaultError({
1165
+ return throwDefaultError({
1311
1166
  output,
1312
1167
  parsedBody: parsedBody.Error,
1313
- exceptionCtor: __BaseException,
1314
1168
  errorCode,
1315
1169
  });
1316
1170
  }
@@ -1326,7 +1180,7 @@ export const de_DescribeAccountLimitsCommand = async (output, context) => {
1326
1180
  $metadata: deserializeMetadata(output),
1327
1181
  ...contents,
1328
1182
  };
1329
- return Promise.resolve(response);
1183
+ return response;
1330
1184
  };
1331
1185
  const de_DescribeAccountLimitsCommandError = async (output, context) => {
1332
1186
  const parsedOutput = {
@@ -1335,10 +1189,9 @@ const de_DescribeAccountLimitsCommandError = async (output, context) => {
1335
1189
  };
1336
1190
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1337
1191
  const parsedBody = parsedOutput.body;
1338
- throwDefaultError({
1192
+ return throwDefaultError({
1339
1193
  output,
1340
1194
  parsedBody: parsedBody.Error,
1341
- exceptionCtor: __BaseException,
1342
1195
  errorCode,
1343
1196
  });
1344
1197
  };
@@ -1353,7 +1206,7 @@ export const de_DescribeChangeSetCommand = async (output, context) => {
1353
1206
  $metadata: deserializeMetadata(output),
1354
1207
  ...contents,
1355
1208
  };
1356
- return Promise.resolve(response);
1209
+ return response;
1357
1210
  };
1358
1211
  const de_DescribeChangeSetCommandError = async (output, context) => {
1359
1212
  const parsedOutput = {
@@ -1367,10 +1220,9 @@ const de_DescribeChangeSetCommandError = async (output, context) => {
1367
1220
  throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
1368
1221
  default:
1369
1222
  const parsedBody = parsedOutput.body;
1370
- throwDefaultError({
1223
+ return throwDefaultError({
1371
1224
  output,
1372
1225
  parsedBody: parsedBody.Error,
1373
- exceptionCtor: __BaseException,
1374
1226
  errorCode,
1375
1227
  });
1376
1228
  }
@@ -1386,7 +1238,7 @@ export const de_DescribeChangeSetHooksCommand = async (output, context) => {
1386
1238
  $metadata: deserializeMetadata(output),
1387
1239
  ...contents,
1388
1240
  };
1389
- return Promise.resolve(response);
1241
+ return response;
1390
1242
  };
1391
1243
  const de_DescribeChangeSetHooksCommandError = async (output, context) => {
1392
1244
  const parsedOutput = {
@@ -1400,10 +1252,9 @@ const de_DescribeChangeSetHooksCommandError = async (output, context) => {
1400
1252
  throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
1401
1253
  default:
1402
1254
  const parsedBody = parsedOutput.body;
1403
- throwDefaultError({
1255
+ return throwDefaultError({
1404
1256
  output,
1405
1257
  parsedBody: parsedBody.Error,
1406
- exceptionCtor: __BaseException,
1407
1258
  errorCode,
1408
1259
  });
1409
1260
  }
@@ -1419,7 +1270,7 @@ export const de_DescribePublisherCommand = async (output, context) => {
1419
1270
  $metadata: deserializeMetadata(output),
1420
1271
  ...contents,
1421
1272
  };
1422
- return Promise.resolve(response);
1273
+ return response;
1423
1274
  };
1424
1275
  const de_DescribePublisherCommandError = async (output, context) => {
1425
1276
  const parsedOutput = {
@@ -1433,10 +1284,9 @@ const de_DescribePublisherCommandError = async (output, context) => {
1433
1284
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
1434
1285
  default:
1435
1286
  const parsedBody = parsedOutput.body;
1436
- throwDefaultError({
1287
+ return throwDefaultError({
1437
1288
  output,
1438
1289
  parsedBody: parsedBody.Error,
1439
- exceptionCtor: __BaseException,
1440
1290
  errorCode,
1441
1291
  });
1442
1292
  }
@@ -1452,7 +1302,7 @@ export const de_DescribeStackDriftDetectionStatusCommand = async (output, contex
1452
1302
  $metadata: deserializeMetadata(output),
1453
1303
  ...contents,
1454
1304
  };
1455
- return Promise.resolve(response);
1305
+ return response;
1456
1306
  };
1457
1307
  const de_DescribeStackDriftDetectionStatusCommandError = async (output, context) => {
1458
1308
  const parsedOutput = {
@@ -1461,10 +1311,9 @@ const de_DescribeStackDriftDetectionStatusCommandError = async (output, context)
1461
1311
  };
1462
1312
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1463
1313
  const parsedBody = parsedOutput.body;
1464
- throwDefaultError({
1314
+ return throwDefaultError({
1465
1315
  output,
1466
1316
  parsedBody: parsedBody.Error,
1467
- exceptionCtor: __BaseException,
1468
1317
  errorCode,
1469
1318
  });
1470
1319
  };
@@ -1479,7 +1328,7 @@ export const de_DescribeStackEventsCommand = async (output, context) => {
1479
1328
  $metadata: deserializeMetadata(output),
1480
1329
  ...contents,
1481
1330
  };
1482
- return Promise.resolve(response);
1331
+ return response;
1483
1332
  };
1484
1333
  const de_DescribeStackEventsCommandError = async (output, context) => {
1485
1334
  const parsedOutput = {
@@ -1488,10 +1337,9 @@ const de_DescribeStackEventsCommandError = async (output, context) => {
1488
1337
  };
1489
1338
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1490
1339
  const parsedBody = parsedOutput.body;
1491
- throwDefaultError({
1340
+ return throwDefaultError({
1492
1341
  output,
1493
1342
  parsedBody: parsedBody.Error,
1494
- exceptionCtor: __BaseException,
1495
1343
  errorCode,
1496
1344
  });
1497
1345
  };
@@ -1506,7 +1354,7 @@ export const de_DescribeStackInstanceCommand = async (output, context) => {
1506
1354
  $metadata: deserializeMetadata(output),
1507
1355
  ...contents,
1508
1356
  };
1509
- return Promise.resolve(response);
1357
+ return response;
1510
1358
  };
1511
1359
  const de_DescribeStackInstanceCommandError = async (output, context) => {
1512
1360
  const parsedOutput = {
@@ -1523,10 +1371,9 @@ const de_DescribeStackInstanceCommandError = async (output, context) => {
1523
1371
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
1524
1372
  default:
1525
1373
  const parsedBody = parsedOutput.body;
1526
- throwDefaultError({
1374
+ return throwDefaultError({
1527
1375
  output,
1528
1376
  parsedBody: parsedBody.Error,
1529
- exceptionCtor: __BaseException,
1530
1377
  errorCode,
1531
1378
  });
1532
1379
  }
@@ -1542,7 +1389,7 @@ export const de_DescribeStackResourceCommand = async (output, context) => {
1542
1389
  $metadata: deserializeMetadata(output),
1543
1390
  ...contents,
1544
1391
  };
1545
- return Promise.resolve(response);
1392
+ return response;
1546
1393
  };
1547
1394
  const de_DescribeStackResourceCommandError = async (output, context) => {
1548
1395
  const parsedOutput = {
@@ -1551,10 +1398,9 @@ const de_DescribeStackResourceCommandError = async (output, context) => {
1551
1398
  };
1552
1399
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1553
1400
  const parsedBody = parsedOutput.body;
1554
- throwDefaultError({
1401
+ return throwDefaultError({
1555
1402
  output,
1556
1403
  parsedBody: parsedBody.Error,
1557
- exceptionCtor: __BaseException,
1558
1404
  errorCode,
1559
1405
  });
1560
1406
  };
@@ -1569,7 +1415,7 @@ export const de_DescribeStackResourceDriftsCommand = async (output, context) =>
1569
1415
  $metadata: deserializeMetadata(output),
1570
1416
  ...contents,
1571
1417
  };
1572
- return Promise.resolve(response);
1418
+ return response;
1573
1419
  };
1574
1420
  const de_DescribeStackResourceDriftsCommandError = async (output, context) => {
1575
1421
  const parsedOutput = {
@@ -1578,10 +1424,9 @@ const de_DescribeStackResourceDriftsCommandError = async (output, context) => {
1578
1424
  };
1579
1425
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1580
1426
  const parsedBody = parsedOutput.body;
1581
- throwDefaultError({
1427
+ return throwDefaultError({
1582
1428
  output,
1583
1429
  parsedBody: parsedBody.Error,
1584
- exceptionCtor: __BaseException,
1585
1430
  errorCode,
1586
1431
  });
1587
1432
  };
@@ -1596,7 +1441,7 @@ export const de_DescribeStackResourcesCommand = async (output, context) => {
1596
1441
  $metadata: deserializeMetadata(output),
1597
1442
  ...contents,
1598
1443
  };
1599
- return Promise.resolve(response);
1444
+ return response;
1600
1445
  };
1601
1446
  const de_DescribeStackResourcesCommandError = async (output, context) => {
1602
1447
  const parsedOutput = {
@@ -1605,10 +1450,9 @@ const de_DescribeStackResourcesCommandError = async (output, context) => {
1605
1450
  };
1606
1451
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1607
1452
  const parsedBody = parsedOutput.body;
1608
- throwDefaultError({
1453
+ return throwDefaultError({
1609
1454
  output,
1610
1455
  parsedBody: parsedBody.Error,
1611
- exceptionCtor: __BaseException,
1612
1456
  errorCode,
1613
1457
  });
1614
1458
  };
@@ -1623,7 +1467,7 @@ export const de_DescribeStacksCommand = async (output, context) => {
1623
1467
  $metadata: deserializeMetadata(output),
1624
1468
  ...contents,
1625
1469
  };
1626
- return Promise.resolve(response);
1470
+ return response;
1627
1471
  };
1628
1472
  const de_DescribeStacksCommandError = async (output, context) => {
1629
1473
  const parsedOutput = {
@@ -1632,10 +1476,9 @@ const de_DescribeStacksCommandError = async (output, context) => {
1632
1476
  };
1633
1477
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1634
1478
  const parsedBody = parsedOutput.body;
1635
- throwDefaultError({
1479
+ return throwDefaultError({
1636
1480
  output,
1637
1481
  parsedBody: parsedBody.Error,
1638
- exceptionCtor: __BaseException,
1639
1482
  errorCode,
1640
1483
  });
1641
1484
  };
@@ -1650,7 +1493,7 @@ export const de_DescribeStackSetCommand = async (output, context) => {
1650
1493
  $metadata: deserializeMetadata(output),
1651
1494
  ...contents,
1652
1495
  };
1653
- return Promise.resolve(response);
1496
+ return response;
1654
1497
  };
1655
1498
  const de_DescribeStackSetCommandError = async (output, context) => {
1656
1499
  const parsedOutput = {
@@ -1664,10 +1507,9 @@ const de_DescribeStackSetCommandError = async (output, context) => {
1664
1507
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
1665
1508
  default:
1666
1509
  const parsedBody = parsedOutput.body;
1667
- throwDefaultError({
1510
+ return throwDefaultError({
1668
1511
  output,
1669
1512
  parsedBody: parsedBody.Error,
1670
- exceptionCtor: __BaseException,
1671
1513
  errorCode,
1672
1514
  });
1673
1515
  }
@@ -1683,7 +1525,7 @@ export const de_DescribeStackSetOperationCommand = async (output, context) => {
1683
1525
  $metadata: deserializeMetadata(output),
1684
1526
  ...contents,
1685
1527
  };
1686
- return Promise.resolve(response);
1528
+ return response;
1687
1529
  };
1688
1530
  const de_DescribeStackSetOperationCommandError = async (output, context) => {
1689
1531
  const parsedOutput = {
@@ -1700,10 +1542,9 @@ const de_DescribeStackSetOperationCommandError = async (output, context) => {
1700
1542
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
1701
1543
  default:
1702
1544
  const parsedBody = parsedOutput.body;
1703
- throwDefaultError({
1545
+ return throwDefaultError({
1704
1546
  output,
1705
1547
  parsedBody: parsedBody.Error,
1706
- exceptionCtor: __BaseException,
1707
1548
  errorCode,
1708
1549
  });
1709
1550
  }
@@ -1719,7 +1560,7 @@ export const de_DescribeTypeCommand = async (output, context) => {
1719
1560
  $metadata: deserializeMetadata(output),
1720
1561
  ...contents,
1721
1562
  };
1722
- return Promise.resolve(response);
1563
+ return response;
1723
1564
  };
1724
1565
  const de_DescribeTypeCommandError = async (output, context) => {
1725
1566
  const parsedOutput = {
@@ -1736,10 +1577,9 @@ const de_DescribeTypeCommandError = async (output, context) => {
1736
1577
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
1737
1578
  default:
1738
1579
  const parsedBody = parsedOutput.body;
1739
- throwDefaultError({
1580
+ return throwDefaultError({
1740
1581
  output,
1741
1582
  parsedBody: parsedBody.Error,
1742
- exceptionCtor: __BaseException,
1743
1583
  errorCode,
1744
1584
  });
1745
1585
  }
@@ -1755,7 +1595,7 @@ export const de_DescribeTypeRegistrationCommand = async (output, context) => {
1755
1595
  $metadata: deserializeMetadata(output),
1756
1596
  ...contents,
1757
1597
  };
1758
- return Promise.resolve(response);
1598
+ return response;
1759
1599
  };
1760
1600
  const de_DescribeTypeRegistrationCommandError = async (output, context) => {
1761
1601
  const parsedOutput = {
@@ -1769,10 +1609,9 @@ const de_DescribeTypeRegistrationCommandError = async (output, context) => {
1769
1609
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
1770
1610
  default:
1771
1611
  const parsedBody = parsedOutput.body;
1772
- throwDefaultError({
1612
+ return throwDefaultError({
1773
1613
  output,
1774
1614
  parsedBody: parsedBody.Error,
1775
- exceptionCtor: __BaseException,
1776
1615
  errorCode,
1777
1616
  });
1778
1617
  }
@@ -1788,7 +1627,7 @@ export const de_DetectStackDriftCommand = async (output, context) => {
1788
1627
  $metadata: deserializeMetadata(output),
1789
1628
  ...contents,
1790
1629
  };
1791
- return Promise.resolve(response);
1630
+ return response;
1792
1631
  };
1793
1632
  const de_DetectStackDriftCommandError = async (output, context) => {
1794
1633
  const parsedOutput = {
@@ -1797,10 +1636,9 @@ const de_DetectStackDriftCommandError = async (output, context) => {
1797
1636
  };
1798
1637
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1799
1638
  const parsedBody = parsedOutput.body;
1800
- throwDefaultError({
1639
+ return throwDefaultError({
1801
1640
  output,
1802
1641
  parsedBody: parsedBody.Error,
1803
- exceptionCtor: __BaseException,
1804
1642
  errorCode,
1805
1643
  });
1806
1644
  };
@@ -1815,7 +1653,7 @@ export const de_DetectStackResourceDriftCommand = async (output, context) => {
1815
1653
  $metadata: deserializeMetadata(output),
1816
1654
  ...contents,
1817
1655
  };
1818
- return Promise.resolve(response);
1656
+ return response;
1819
1657
  };
1820
1658
  const de_DetectStackResourceDriftCommandError = async (output, context) => {
1821
1659
  const parsedOutput = {
@@ -1824,10 +1662,9 @@ const de_DetectStackResourceDriftCommandError = async (output, context) => {
1824
1662
  };
1825
1663
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1826
1664
  const parsedBody = parsedOutput.body;
1827
- throwDefaultError({
1665
+ return throwDefaultError({
1828
1666
  output,
1829
1667
  parsedBody: parsedBody.Error,
1830
- exceptionCtor: __BaseException,
1831
1668
  errorCode,
1832
1669
  });
1833
1670
  };
@@ -1842,7 +1679,7 @@ export const de_DetectStackSetDriftCommand = async (output, context) => {
1842
1679
  $metadata: deserializeMetadata(output),
1843
1680
  ...contents,
1844
1681
  };
1845
- return Promise.resolve(response);
1682
+ return response;
1846
1683
  };
1847
1684
  const de_DetectStackSetDriftCommandError = async (output, context) => {
1848
1685
  const parsedOutput = {
@@ -1862,10 +1699,9 @@ const de_DetectStackSetDriftCommandError = async (output, context) => {
1862
1699
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
1863
1700
  default:
1864
1701
  const parsedBody = parsedOutput.body;
1865
- throwDefaultError({
1702
+ return throwDefaultError({
1866
1703
  output,
1867
1704
  parsedBody: parsedBody.Error,
1868
- exceptionCtor: __BaseException,
1869
1705
  errorCode,
1870
1706
  });
1871
1707
  }
@@ -1881,7 +1717,7 @@ export const de_EstimateTemplateCostCommand = async (output, context) => {
1881
1717
  $metadata: deserializeMetadata(output),
1882
1718
  ...contents,
1883
1719
  };
1884
- return Promise.resolve(response);
1720
+ return response;
1885
1721
  };
1886
1722
  const de_EstimateTemplateCostCommandError = async (output, context) => {
1887
1723
  const parsedOutput = {
@@ -1890,10 +1726,9 @@ const de_EstimateTemplateCostCommandError = async (output, context) => {
1890
1726
  };
1891
1727
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1892
1728
  const parsedBody = parsedOutput.body;
1893
- throwDefaultError({
1729
+ return throwDefaultError({
1894
1730
  output,
1895
1731
  parsedBody: parsedBody.Error,
1896
- exceptionCtor: __BaseException,
1897
1732
  errorCode,
1898
1733
  });
1899
1734
  };
@@ -1908,7 +1743,7 @@ export const de_ExecuteChangeSetCommand = async (output, context) => {
1908
1743
  $metadata: deserializeMetadata(output),
1909
1744
  ...contents,
1910
1745
  };
1911
- return Promise.resolve(response);
1746
+ return response;
1912
1747
  };
1913
1748
  const de_ExecuteChangeSetCommandError = async (output, context) => {
1914
1749
  const parsedOutput = {
@@ -1931,10 +1766,9 @@ const de_ExecuteChangeSetCommandError = async (output, context) => {
1931
1766
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
1932
1767
  default:
1933
1768
  const parsedBody = parsedOutput.body;
1934
- throwDefaultError({
1769
+ return throwDefaultError({
1935
1770
  output,
1936
1771
  parsedBody: parsedBody.Error,
1937
- exceptionCtor: __BaseException,
1938
1772
  errorCode,
1939
1773
  });
1940
1774
  }
@@ -1950,7 +1784,7 @@ export const de_GetStackPolicyCommand = async (output, context) => {
1950
1784
  $metadata: deserializeMetadata(output),
1951
1785
  ...contents,
1952
1786
  };
1953
- return Promise.resolve(response);
1787
+ return response;
1954
1788
  };
1955
1789
  const de_GetStackPolicyCommandError = async (output, context) => {
1956
1790
  const parsedOutput = {
@@ -1959,10 +1793,9 @@ const de_GetStackPolicyCommandError = async (output, context) => {
1959
1793
  };
1960
1794
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1961
1795
  const parsedBody = parsedOutput.body;
1962
- throwDefaultError({
1796
+ return throwDefaultError({
1963
1797
  output,
1964
1798
  parsedBody: parsedBody.Error,
1965
- exceptionCtor: __BaseException,
1966
1799
  errorCode,
1967
1800
  });
1968
1801
  };
@@ -1977,7 +1810,7 @@ export const de_GetTemplateCommand = async (output, context) => {
1977
1810
  $metadata: deserializeMetadata(output),
1978
1811
  ...contents,
1979
1812
  };
1980
- return Promise.resolve(response);
1813
+ return response;
1981
1814
  };
1982
1815
  const de_GetTemplateCommandError = async (output, context) => {
1983
1816
  const parsedOutput = {
@@ -1991,10 +1824,9 @@ const de_GetTemplateCommandError = async (output, context) => {
1991
1824
  throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
1992
1825
  default:
1993
1826
  const parsedBody = parsedOutput.body;
1994
- throwDefaultError({
1827
+ return throwDefaultError({
1995
1828
  output,
1996
1829
  parsedBody: parsedBody.Error,
1997
- exceptionCtor: __BaseException,
1998
1830
  errorCode,
1999
1831
  });
2000
1832
  }
@@ -2010,7 +1842,7 @@ export const de_GetTemplateSummaryCommand = async (output, context) => {
2010
1842
  $metadata: deserializeMetadata(output),
2011
1843
  ...contents,
2012
1844
  };
2013
- return Promise.resolve(response);
1845
+ return response;
2014
1846
  };
2015
1847
  const de_GetTemplateSummaryCommandError = async (output, context) => {
2016
1848
  const parsedOutput = {
@@ -2024,10 +1856,9 @@ const de_GetTemplateSummaryCommandError = async (output, context) => {
2024
1856
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
2025
1857
  default:
2026
1858
  const parsedBody = parsedOutput.body;
2027
- throwDefaultError({
1859
+ return throwDefaultError({
2028
1860
  output,
2029
1861
  parsedBody: parsedBody.Error,
2030
- exceptionCtor: __BaseException,
2031
1862
  errorCode,
2032
1863
  });
2033
1864
  }
@@ -2043,7 +1874,7 @@ export const de_ImportStacksToStackSetCommand = async (output, context) => {
2043
1874
  $metadata: deserializeMetadata(output),
2044
1875
  ...contents,
2045
1876
  };
2046
- return Promise.resolve(response);
1877
+ return response;
2047
1878
  };
2048
1879
  const de_ImportStacksToStackSetCommandError = async (output, context) => {
2049
1880
  const parsedOutput = {
@@ -2075,10 +1906,9 @@ const de_ImportStacksToStackSetCommandError = async (output, context) => {
2075
1906
  throw await de_StaleRequestExceptionRes(parsedOutput, context);
2076
1907
  default:
2077
1908
  const parsedBody = parsedOutput.body;
2078
- throwDefaultError({
1909
+ return throwDefaultError({
2079
1910
  output,
2080
1911
  parsedBody: parsedBody.Error,
2081
- exceptionCtor: __BaseException,
2082
1912
  errorCode,
2083
1913
  });
2084
1914
  }
@@ -2094,7 +1924,7 @@ export const de_ListChangeSetsCommand = async (output, context) => {
2094
1924
  $metadata: deserializeMetadata(output),
2095
1925
  ...contents,
2096
1926
  };
2097
- return Promise.resolve(response);
1927
+ return response;
2098
1928
  };
2099
1929
  const de_ListChangeSetsCommandError = async (output, context) => {
2100
1930
  const parsedOutput = {
@@ -2103,10 +1933,9 @@ const de_ListChangeSetsCommandError = async (output, context) => {
2103
1933
  };
2104
1934
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2105
1935
  const parsedBody = parsedOutput.body;
2106
- throwDefaultError({
1936
+ return throwDefaultError({
2107
1937
  output,
2108
1938
  parsedBody: parsedBody.Error,
2109
- exceptionCtor: __BaseException,
2110
1939
  errorCode,
2111
1940
  });
2112
1941
  };
@@ -2121,7 +1950,7 @@ export const de_ListExportsCommand = async (output, context) => {
2121
1950
  $metadata: deserializeMetadata(output),
2122
1951
  ...contents,
2123
1952
  };
2124
- return Promise.resolve(response);
1953
+ return response;
2125
1954
  };
2126
1955
  const de_ListExportsCommandError = async (output, context) => {
2127
1956
  const parsedOutput = {
@@ -2130,10 +1959,9 @@ const de_ListExportsCommandError = async (output, context) => {
2130
1959
  };
2131
1960
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2132
1961
  const parsedBody = parsedOutput.body;
2133
- throwDefaultError({
1962
+ return throwDefaultError({
2134
1963
  output,
2135
1964
  parsedBody: parsedBody.Error,
2136
- exceptionCtor: __BaseException,
2137
1965
  errorCode,
2138
1966
  });
2139
1967
  };
@@ -2148,7 +1976,7 @@ export const de_ListImportsCommand = async (output, context) => {
2148
1976
  $metadata: deserializeMetadata(output),
2149
1977
  ...contents,
2150
1978
  };
2151
- return Promise.resolve(response);
1979
+ return response;
2152
1980
  };
2153
1981
  const de_ListImportsCommandError = async (output, context) => {
2154
1982
  const parsedOutput = {
@@ -2157,10 +1985,9 @@ const de_ListImportsCommandError = async (output, context) => {
2157
1985
  };
2158
1986
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2159
1987
  const parsedBody = parsedOutput.body;
2160
- throwDefaultError({
1988
+ return throwDefaultError({
2161
1989
  output,
2162
1990
  parsedBody: parsedBody.Error,
2163
- exceptionCtor: __BaseException,
2164
1991
  errorCode,
2165
1992
  });
2166
1993
  };
@@ -2175,7 +2002,7 @@ export const de_ListStackInstancesCommand = async (output, context) => {
2175
2002
  $metadata: deserializeMetadata(output),
2176
2003
  ...contents,
2177
2004
  };
2178
- return Promise.resolve(response);
2005
+ return response;
2179
2006
  };
2180
2007
  const de_ListStackInstancesCommandError = async (output, context) => {
2181
2008
  const parsedOutput = {
@@ -2189,10 +2016,9 @@ const de_ListStackInstancesCommandError = async (output, context) => {
2189
2016
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
2190
2017
  default:
2191
2018
  const parsedBody = parsedOutput.body;
2192
- throwDefaultError({
2019
+ return throwDefaultError({
2193
2020
  output,
2194
2021
  parsedBody: parsedBody.Error,
2195
- exceptionCtor: __BaseException,
2196
2022
  errorCode,
2197
2023
  });
2198
2024
  }
@@ -2208,7 +2034,7 @@ export const de_ListStackResourcesCommand = async (output, context) => {
2208
2034
  $metadata: deserializeMetadata(output),
2209
2035
  ...contents,
2210
2036
  };
2211
- return Promise.resolve(response);
2037
+ return response;
2212
2038
  };
2213
2039
  const de_ListStackResourcesCommandError = async (output, context) => {
2214
2040
  const parsedOutput = {
@@ -2217,10 +2043,9 @@ const de_ListStackResourcesCommandError = async (output, context) => {
2217
2043
  };
2218
2044
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2219
2045
  const parsedBody = parsedOutput.body;
2220
- throwDefaultError({
2046
+ return throwDefaultError({
2221
2047
  output,
2222
2048
  parsedBody: parsedBody.Error,
2223
- exceptionCtor: __BaseException,
2224
2049
  errorCode,
2225
2050
  });
2226
2051
  };
@@ -2235,7 +2060,7 @@ export const de_ListStacksCommand = async (output, context) => {
2235
2060
  $metadata: deserializeMetadata(output),
2236
2061
  ...contents,
2237
2062
  };
2238
- return Promise.resolve(response);
2063
+ return response;
2239
2064
  };
2240
2065
  const de_ListStacksCommandError = async (output, context) => {
2241
2066
  const parsedOutput = {
@@ -2244,10 +2069,9 @@ const de_ListStacksCommandError = async (output, context) => {
2244
2069
  };
2245
2070
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2246
2071
  const parsedBody = parsedOutput.body;
2247
- throwDefaultError({
2072
+ return throwDefaultError({
2248
2073
  output,
2249
2074
  parsedBody: parsedBody.Error,
2250
- exceptionCtor: __BaseException,
2251
2075
  errorCode,
2252
2076
  });
2253
2077
  };
@@ -2262,7 +2086,7 @@ export const de_ListStackSetOperationResultsCommand = async (output, context) =>
2262
2086
  $metadata: deserializeMetadata(output),
2263
2087
  ...contents,
2264
2088
  };
2265
- return Promise.resolve(response);
2089
+ return response;
2266
2090
  };
2267
2091
  const de_ListStackSetOperationResultsCommandError = async (output, context) => {
2268
2092
  const parsedOutput = {
@@ -2279,10 +2103,9 @@ const de_ListStackSetOperationResultsCommandError = async (output, context) => {
2279
2103
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
2280
2104
  default:
2281
2105
  const parsedBody = parsedOutput.body;
2282
- throwDefaultError({
2106
+ return throwDefaultError({
2283
2107
  output,
2284
2108
  parsedBody: parsedBody.Error,
2285
- exceptionCtor: __BaseException,
2286
2109
  errorCode,
2287
2110
  });
2288
2111
  }
@@ -2298,7 +2121,7 @@ export const de_ListStackSetOperationsCommand = async (output, context) => {
2298
2121
  $metadata: deserializeMetadata(output),
2299
2122
  ...contents,
2300
2123
  };
2301
- return Promise.resolve(response);
2124
+ return response;
2302
2125
  };
2303
2126
  const de_ListStackSetOperationsCommandError = async (output, context) => {
2304
2127
  const parsedOutput = {
@@ -2312,10 +2135,9 @@ const de_ListStackSetOperationsCommandError = async (output, context) => {
2312
2135
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
2313
2136
  default:
2314
2137
  const parsedBody = parsedOutput.body;
2315
- throwDefaultError({
2138
+ return throwDefaultError({
2316
2139
  output,
2317
2140
  parsedBody: parsedBody.Error,
2318
- exceptionCtor: __BaseException,
2319
2141
  errorCode,
2320
2142
  });
2321
2143
  }
@@ -2331,7 +2153,7 @@ export const de_ListStackSetsCommand = async (output, context) => {
2331
2153
  $metadata: deserializeMetadata(output),
2332
2154
  ...contents,
2333
2155
  };
2334
- return Promise.resolve(response);
2156
+ return response;
2335
2157
  };
2336
2158
  const de_ListStackSetsCommandError = async (output, context) => {
2337
2159
  const parsedOutput = {
@@ -2340,10 +2162,9 @@ const de_ListStackSetsCommandError = async (output, context) => {
2340
2162
  };
2341
2163
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2342
2164
  const parsedBody = parsedOutput.body;
2343
- throwDefaultError({
2165
+ return throwDefaultError({
2344
2166
  output,
2345
2167
  parsedBody: parsedBody.Error,
2346
- exceptionCtor: __BaseException,
2347
2168
  errorCode,
2348
2169
  });
2349
2170
  };
@@ -2358,7 +2179,7 @@ export const de_ListTypeRegistrationsCommand = async (output, context) => {
2358
2179
  $metadata: deserializeMetadata(output),
2359
2180
  ...contents,
2360
2181
  };
2361
- return Promise.resolve(response);
2182
+ return response;
2362
2183
  };
2363
2184
  const de_ListTypeRegistrationsCommandError = async (output, context) => {
2364
2185
  const parsedOutput = {
@@ -2372,10 +2193,9 @@ const de_ListTypeRegistrationsCommandError = async (output, context) => {
2372
2193
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
2373
2194
  default:
2374
2195
  const parsedBody = parsedOutput.body;
2375
- throwDefaultError({
2196
+ return throwDefaultError({
2376
2197
  output,
2377
2198
  parsedBody: parsedBody.Error,
2378
- exceptionCtor: __BaseException,
2379
2199
  errorCode,
2380
2200
  });
2381
2201
  }
@@ -2391,7 +2211,7 @@ export const de_ListTypesCommand = async (output, context) => {
2391
2211
  $metadata: deserializeMetadata(output),
2392
2212
  ...contents,
2393
2213
  };
2394
- return Promise.resolve(response);
2214
+ return response;
2395
2215
  };
2396
2216
  const de_ListTypesCommandError = async (output, context) => {
2397
2217
  const parsedOutput = {
@@ -2405,10 +2225,9 @@ const de_ListTypesCommandError = async (output, context) => {
2405
2225
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
2406
2226
  default:
2407
2227
  const parsedBody = parsedOutput.body;
2408
- throwDefaultError({
2228
+ return throwDefaultError({
2409
2229
  output,
2410
2230
  parsedBody: parsedBody.Error,
2411
- exceptionCtor: __BaseException,
2412
2231
  errorCode,
2413
2232
  });
2414
2233
  }
@@ -2424,7 +2243,7 @@ export const de_ListTypeVersionsCommand = async (output, context) => {
2424
2243
  $metadata: deserializeMetadata(output),
2425
2244
  ...contents,
2426
2245
  };
2427
- return Promise.resolve(response);
2246
+ return response;
2428
2247
  };
2429
2248
  const de_ListTypeVersionsCommandError = async (output, context) => {
2430
2249
  const parsedOutput = {
@@ -2438,10 +2257,9 @@ const de_ListTypeVersionsCommandError = async (output, context) => {
2438
2257
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
2439
2258
  default:
2440
2259
  const parsedBody = parsedOutput.body;
2441
- throwDefaultError({
2260
+ return throwDefaultError({
2442
2261
  output,
2443
2262
  parsedBody: parsedBody.Error,
2444
- exceptionCtor: __BaseException,
2445
2263
  errorCode,
2446
2264
  });
2447
2265
  }
@@ -2457,7 +2275,7 @@ export const de_PublishTypeCommand = async (output, context) => {
2457
2275
  $metadata: deserializeMetadata(output),
2458
2276
  ...contents,
2459
2277
  };
2460
- return Promise.resolve(response);
2278
+ return response;
2461
2279
  };
2462
2280
  const de_PublishTypeCommandError = async (output, context) => {
2463
2281
  const parsedOutput = {
@@ -2474,10 +2292,9 @@ const de_PublishTypeCommandError = async (output, context) => {
2474
2292
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
2475
2293
  default:
2476
2294
  const parsedBody = parsedOutput.body;
2477
- throwDefaultError({
2295
+ return throwDefaultError({
2478
2296
  output,
2479
2297
  parsedBody: parsedBody.Error,
2480
- exceptionCtor: __BaseException,
2481
2298
  errorCode,
2482
2299
  });
2483
2300
  }
@@ -2493,7 +2310,7 @@ export const de_RecordHandlerProgressCommand = async (output, context) => {
2493
2310
  $metadata: deserializeMetadata(output),
2494
2311
  ...contents,
2495
2312
  };
2496
- return Promise.resolve(response);
2313
+ return response;
2497
2314
  };
2498
2315
  const de_RecordHandlerProgressCommandError = async (output, context) => {
2499
2316
  const parsedOutput = {
@@ -2510,10 +2327,9 @@ const de_RecordHandlerProgressCommandError = async (output, context) => {
2510
2327
  throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
2511
2328
  default:
2512
2329
  const parsedBody = parsedOutput.body;
2513
- throwDefaultError({
2330
+ return throwDefaultError({
2514
2331
  output,
2515
2332
  parsedBody: parsedBody.Error,
2516
- exceptionCtor: __BaseException,
2517
2333
  errorCode,
2518
2334
  });
2519
2335
  }
@@ -2529,7 +2345,7 @@ export const de_RegisterPublisherCommand = async (output, context) => {
2529
2345
  $metadata: deserializeMetadata(output),
2530
2346
  ...contents,
2531
2347
  };
2532
- return Promise.resolve(response);
2348
+ return response;
2533
2349
  };
2534
2350
  const de_RegisterPublisherCommandError = async (output, context) => {
2535
2351
  const parsedOutput = {
@@ -2543,10 +2359,9 @@ const de_RegisterPublisherCommandError = async (output, context) => {
2543
2359
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
2544
2360
  default:
2545
2361
  const parsedBody = parsedOutput.body;
2546
- throwDefaultError({
2362
+ return throwDefaultError({
2547
2363
  output,
2548
2364
  parsedBody: parsedBody.Error,
2549
- exceptionCtor: __BaseException,
2550
2365
  errorCode,
2551
2366
  });
2552
2367
  }
@@ -2562,7 +2377,7 @@ export const de_RegisterTypeCommand = async (output, context) => {
2562
2377
  $metadata: deserializeMetadata(output),
2563
2378
  ...contents,
2564
2379
  };
2565
- return Promise.resolve(response);
2380
+ return response;
2566
2381
  };
2567
2382
  const de_RegisterTypeCommandError = async (output, context) => {
2568
2383
  const parsedOutput = {
@@ -2576,10 +2391,9 @@ const de_RegisterTypeCommandError = async (output, context) => {
2576
2391
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
2577
2392
  default:
2578
2393
  const parsedBody = parsedOutput.body;
2579
- throwDefaultError({
2394
+ return throwDefaultError({
2580
2395
  output,
2581
2396
  parsedBody: parsedBody.Error,
2582
- exceptionCtor: __BaseException,
2583
2397
  errorCode,
2584
2398
  });
2585
2399
  }
@@ -2595,7 +2409,7 @@ export const de_RollbackStackCommand = async (output, context) => {
2595
2409
  $metadata: deserializeMetadata(output),
2596
2410
  ...contents,
2597
2411
  };
2598
- return Promise.resolve(response);
2412
+ return response;
2599
2413
  };
2600
2414
  const de_RollbackStackCommandError = async (output, context) => {
2601
2415
  const parsedOutput = {
@@ -2609,10 +2423,9 @@ const de_RollbackStackCommandError = async (output, context) => {
2609
2423
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
2610
2424
  default:
2611
2425
  const parsedBody = parsedOutput.body;
2612
- throwDefaultError({
2426
+ return throwDefaultError({
2613
2427
  output,
2614
2428
  parsedBody: parsedBody.Error,
2615
- exceptionCtor: __BaseException,
2616
2429
  errorCode,
2617
2430
  });
2618
2431
  }
@@ -2625,7 +2438,7 @@ export const de_SetStackPolicyCommand = async (output, context) => {
2625
2438
  const response = {
2626
2439
  $metadata: deserializeMetadata(output),
2627
2440
  };
2628
- return Promise.resolve(response);
2441
+ return response;
2629
2442
  };
2630
2443
  const de_SetStackPolicyCommandError = async (output, context) => {
2631
2444
  const parsedOutput = {
@@ -2634,10 +2447,9 @@ const de_SetStackPolicyCommandError = async (output, context) => {
2634
2447
  };
2635
2448
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2636
2449
  const parsedBody = parsedOutput.body;
2637
- throwDefaultError({
2450
+ return throwDefaultError({
2638
2451
  output,
2639
2452
  parsedBody: parsedBody.Error,
2640
- exceptionCtor: __BaseException,
2641
2453
  errorCode,
2642
2454
  });
2643
2455
  };
@@ -2652,7 +2464,7 @@ export const de_SetTypeConfigurationCommand = async (output, context) => {
2652
2464
  $metadata: deserializeMetadata(output),
2653
2465
  ...contents,
2654
2466
  };
2655
- return Promise.resolve(response);
2467
+ return response;
2656
2468
  };
2657
2469
  const de_SetTypeConfigurationCommandError = async (output, context) => {
2658
2470
  const parsedOutput = {
@@ -2669,10 +2481,9 @@ const de_SetTypeConfigurationCommandError = async (output, context) => {
2669
2481
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
2670
2482
  default:
2671
2483
  const parsedBody = parsedOutput.body;
2672
- throwDefaultError({
2484
+ return throwDefaultError({
2673
2485
  output,
2674
2486
  parsedBody: parsedBody.Error,
2675
- exceptionCtor: __BaseException,
2676
2487
  errorCode,
2677
2488
  });
2678
2489
  }
@@ -2688,7 +2499,7 @@ export const de_SetTypeDefaultVersionCommand = async (output, context) => {
2688
2499
  $metadata: deserializeMetadata(output),
2689
2500
  ...contents,
2690
2501
  };
2691
- return Promise.resolve(response);
2502
+ return response;
2692
2503
  };
2693
2504
  const de_SetTypeDefaultVersionCommandError = async (output, context) => {
2694
2505
  const parsedOutput = {
@@ -2705,10 +2516,9 @@ const de_SetTypeDefaultVersionCommandError = async (output, context) => {
2705
2516
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
2706
2517
  default:
2707
2518
  const parsedBody = parsedOutput.body;
2708
- throwDefaultError({
2519
+ return throwDefaultError({
2709
2520
  output,
2710
2521
  parsedBody: parsedBody.Error,
2711
- exceptionCtor: __BaseException,
2712
2522
  errorCode,
2713
2523
  });
2714
2524
  }
@@ -2721,7 +2531,7 @@ export const de_SignalResourceCommand = async (output, context) => {
2721
2531
  const response = {
2722
2532
  $metadata: deserializeMetadata(output),
2723
2533
  };
2724
- return Promise.resolve(response);
2534
+ return response;
2725
2535
  };
2726
2536
  const de_SignalResourceCommandError = async (output, context) => {
2727
2537
  const parsedOutput = {
@@ -2730,10 +2540,9 @@ const de_SignalResourceCommandError = async (output, context) => {
2730
2540
  };
2731
2541
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2732
2542
  const parsedBody = parsedOutput.body;
2733
- throwDefaultError({
2543
+ return throwDefaultError({
2734
2544
  output,
2735
2545
  parsedBody: parsedBody.Error,
2736
- exceptionCtor: __BaseException,
2737
2546
  errorCode,
2738
2547
  });
2739
2548
  };
@@ -2748,7 +2557,7 @@ export const de_StopStackSetOperationCommand = async (output, context) => {
2748
2557
  $metadata: deserializeMetadata(output),
2749
2558
  ...contents,
2750
2559
  };
2751
- return Promise.resolve(response);
2560
+ return response;
2752
2561
  };
2753
2562
  const de_StopStackSetOperationCommandError = async (output, context) => {
2754
2563
  const parsedOutput = {
@@ -2768,10 +2577,9 @@ const de_StopStackSetOperationCommandError = async (output, context) => {
2768
2577
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
2769
2578
  default:
2770
2579
  const parsedBody = parsedOutput.body;
2771
- throwDefaultError({
2580
+ return throwDefaultError({
2772
2581
  output,
2773
2582
  parsedBody: parsedBody.Error,
2774
- exceptionCtor: __BaseException,
2775
2583
  errorCode,
2776
2584
  });
2777
2585
  }
@@ -2787,7 +2595,7 @@ export const de_TestTypeCommand = async (output, context) => {
2787
2595
  $metadata: deserializeMetadata(output),
2788
2596
  ...contents,
2789
2597
  };
2790
- return Promise.resolve(response);
2598
+ return response;
2791
2599
  };
2792
2600
  const de_TestTypeCommandError = async (output, context) => {
2793
2601
  const parsedOutput = {
@@ -2804,10 +2612,9 @@ const de_TestTypeCommandError = async (output, context) => {
2804
2612
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
2805
2613
  default:
2806
2614
  const parsedBody = parsedOutput.body;
2807
- throwDefaultError({
2615
+ return throwDefaultError({
2808
2616
  output,
2809
2617
  parsedBody: parsedBody.Error,
2810
- exceptionCtor: __BaseException,
2811
2618
  errorCode,
2812
2619
  });
2813
2620
  }
@@ -2823,7 +2630,7 @@ export const de_UpdateStackCommand = async (output, context) => {
2823
2630
  $metadata: deserializeMetadata(output),
2824
2631
  ...contents,
2825
2632
  };
2826
- return Promise.resolve(response);
2633
+ return response;
2827
2634
  };
2828
2635
  const de_UpdateStackCommandError = async (output, context) => {
2829
2636
  const parsedOutput = {
@@ -2840,10 +2647,9 @@ const de_UpdateStackCommandError = async (output, context) => {
2840
2647
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
2841
2648
  default:
2842
2649
  const parsedBody = parsedOutput.body;
2843
- throwDefaultError({
2650
+ return throwDefaultError({
2844
2651
  output,
2845
2652
  parsedBody: parsedBody.Error,
2846
- exceptionCtor: __BaseException,
2847
2653
  errorCode,
2848
2654
  });
2849
2655
  }
@@ -2859,7 +2665,7 @@ export const de_UpdateStackInstancesCommand = async (output, context) => {
2859
2665
  $metadata: deserializeMetadata(output),
2860
2666
  ...contents,
2861
2667
  };
2862
- return Promise.resolve(response);
2668
+ return response;
2863
2669
  };
2864
2670
  const de_UpdateStackInstancesCommandError = async (output, context) => {
2865
2671
  const parsedOutput = {
@@ -2888,10 +2694,9 @@ const de_UpdateStackInstancesCommandError = async (output, context) => {
2888
2694
  throw await de_StaleRequestExceptionRes(parsedOutput, context);
2889
2695
  default:
2890
2696
  const parsedBody = parsedOutput.body;
2891
- throwDefaultError({
2697
+ return throwDefaultError({
2892
2698
  output,
2893
2699
  parsedBody: parsedBody.Error,
2894
- exceptionCtor: __BaseException,
2895
2700
  errorCode,
2896
2701
  });
2897
2702
  }
@@ -2907,7 +2712,7 @@ export const de_UpdateStackSetCommand = async (output, context) => {
2907
2712
  $metadata: deserializeMetadata(output),
2908
2713
  ...contents,
2909
2714
  };
2910
- return Promise.resolve(response);
2715
+ return response;
2911
2716
  };
2912
2717
  const de_UpdateStackSetCommandError = async (output, context) => {
2913
2718
  const parsedOutput = {
@@ -2936,10 +2741,9 @@ const de_UpdateStackSetCommandError = async (output, context) => {
2936
2741
  throw await de_StaleRequestExceptionRes(parsedOutput, context);
2937
2742
  default:
2938
2743
  const parsedBody = parsedOutput.body;
2939
- throwDefaultError({
2744
+ return throwDefaultError({
2940
2745
  output,
2941
2746
  parsedBody: parsedBody.Error,
2942
- exceptionCtor: __BaseException,
2943
2747
  errorCode,
2944
2748
  });
2945
2749
  }
@@ -2955,7 +2759,7 @@ export const de_UpdateTerminationProtectionCommand = async (output, context) =>
2955
2759
  $metadata: deserializeMetadata(output),
2956
2760
  ...contents,
2957
2761
  };
2958
- return Promise.resolve(response);
2762
+ return response;
2959
2763
  };
2960
2764
  const de_UpdateTerminationProtectionCommandError = async (output, context) => {
2961
2765
  const parsedOutput = {
@@ -2964,10 +2768,9 @@ const de_UpdateTerminationProtectionCommandError = async (output, context) => {
2964
2768
  };
2965
2769
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2966
2770
  const parsedBody = parsedOutput.body;
2967
- throwDefaultError({
2771
+ return throwDefaultError({
2968
2772
  output,
2969
2773
  parsedBody: parsedBody.Error,
2970
- exceptionCtor: __BaseException,
2971
2774
  errorCode,
2972
2775
  });
2973
2776
  };
@@ -2982,7 +2785,7 @@ export const de_ValidateTemplateCommand = async (output, context) => {
2982
2785
  $metadata: deserializeMetadata(output),
2983
2786
  ...contents,
2984
2787
  };
2985
- return Promise.resolve(response);
2788
+ return response;
2986
2789
  };
2987
2790
  const de_ValidateTemplateCommandError = async (output, context) => {
2988
2791
  const parsedOutput = {
@@ -2991,10 +2794,9 @@ const de_ValidateTemplateCommandError = async (output, context) => {
2991
2794
  };
2992
2795
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2993
2796
  const parsedBody = parsedOutput.body;
2994
- throwDefaultError({
2797
+ return throwDefaultError({
2995
2798
  output,
2996
2799
  parsedBody: parsedBody.Error,
2997
- exceptionCtor: __BaseException,
2998
2800
  errorCode,
2999
2801
  });
3000
2802
  };
@@ -7823,6 +7625,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
7823
7625
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
7824
7626
  };
7825
7627
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
7628
+ const throwDefaultError = withBaseException(__BaseException);
7826
7629
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
7827
7630
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7828
7631
  const contents = {
@@ -7841,6 +7644,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
7841
7644
  }
7842
7645
  return new __HttpRequest(contents);
7843
7646
  };
7647
+ const SHARED_HEADERS = {
7648
+ "content-type": "application/x-www-form-urlencoded",
7649
+ };
7844
7650
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
7845
7651
  if (encoded.length) {
7846
7652
  const parser = new XMLParser({