@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.
@@ -10,9 +10,7 @@ const uuid_1 = require("uuid");
10
10
  const CloudFormationServiceException_1 = require("../models/CloudFormationServiceException");
11
11
  const models_0_1 = require("../models/models_0");
12
12
  const se_ActivateTypeCommand = async (input, context) => {
13
- const headers = {
14
- "content-type": "application/x-www-form-urlencoded",
15
- };
13
+ const headers = SHARED_HEADERS;
16
14
  let body;
17
15
  body = buildFormUrlencodedString({
18
16
  ...se_ActivateTypeInput(input, context),
@@ -23,9 +21,7 @@ const se_ActivateTypeCommand = async (input, context) => {
23
21
  };
24
22
  exports.se_ActivateTypeCommand = se_ActivateTypeCommand;
25
23
  const se_BatchDescribeTypeConfigurationsCommand = async (input, context) => {
26
- const headers = {
27
- "content-type": "application/x-www-form-urlencoded",
28
- };
24
+ const headers = SHARED_HEADERS;
29
25
  let body;
30
26
  body = buildFormUrlencodedString({
31
27
  ...se_BatchDescribeTypeConfigurationsInput(input, context),
@@ -36,9 +32,7 @@ const se_BatchDescribeTypeConfigurationsCommand = async (input, context) => {
36
32
  };
37
33
  exports.se_BatchDescribeTypeConfigurationsCommand = se_BatchDescribeTypeConfigurationsCommand;
38
34
  const se_CancelUpdateStackCommand = async (input, context) => {
39
- const headers = {
40
- "content-type": "application/x-www-form-urlencoded",
41
- };
35
+ const headers = SHARED_HEADERS;
42
36
  let body;
43
37
  body = buildFormUrlencodedString({
44
38
  ...se_CancelUpdateStackInput(input, context),
@@ -49,9 +43,7 @@ const se_CancelUpdateStackCommand = async (input, context) => {
49
43
  };
50
44
  exports.se_CancelUpdateStackCommand = se_CancelUpdateStackCommand;
51
45
  const se_ContinueUpdateRollbackCommand = async (input, context) => {
52
- const headers = {
53
- "content-type": "application/x-www-form-urlencoded",
54
- };
46
+ const headers = SHARED_HEADERS;
55
47
  let body;
56
48
  body = buildFormUrlencodedString({
57
49
  ...se_ContinueUpdateRollbackInput(input, context),
@@ -62,9 +54,7 @@ const se_ContinueUpdateRollbackCommand = async (input, context) => {
62
54
  };
63
55
  exports.se_ContinueUpdateRollbackCommand = se_ContinueUpdateRollbackCommand;
64
56
  const se_CreateChangeSetCommand = async (input, context) => {
65
- const headers = {
66
- "content-type": "application/x-www-form-urlencoded",
67
- };
57
+ const headers = SHARED_HEADERS;
68
58
  let body;
69
59
  body = buildFormUrlencodedString({
70
60
  ...se_CreateChangeSetInput(input, context),
@@ -75,9 +65,7 @@ const se_CreateChangeSetCommand = async (input, context) => {
75
65
  };
76
66
  exports.se_CreateChangeSetCommand = se_CreateChangeSetCommand;
77
67
  const se_CreateStackCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-www-form-urlencoded",
80
- };
68
+ const headers = SHARED_HEADERS;
81
69
  let body;
82
70
  body = buildFormUrlencodedString({
83
71
  ...se_CreateStackInput(input, context),
@@ -88,9 +76,7 @@ const se_CreateStackCommand = async (input, context) => {
88
76
  };
89
77
  exports.se_CreateStackCommand = se_CreateStackCommand;
90
78
  const se_CreateStackInstancesCommand = async (input, context) => {
91
- const headers = {
92
- "content-type": "application/x-www-form-urlencoded",
93
- };
79
+ const headers = SHARED_HEADERS;
94
80
  let body;
95
81
  body = buildFormUrlencodedString({
96
82
  ...se_CreateStackInstancesInput(input, context),
@@ -101,9 +87,7 @@ const se_CreateStackInstancesCommand = async (input, context) => {
101
87
  };
102
88
  exports.se_CreateStackInstancesCommand = se_CreateStackInstancesCommand;
103
89
  const se_CreateStackSetCommand = async (input, context) => {
104
- const headers = {
105
- "content-type": "application/x-www-form-urlencoded",
106
- };
90
+ const headers = SHARED_HEADERS;
107
91
  let body;
108
92
  body = buildFormUrlencodedString({
109
93
  ...se_CreateStackSetInput(input, context),
@@ -114,9 +98,7 @@ const se_CreateStackSetCommand = async (input, context) => {
114
98
  };
115
99
  exports.se_CreateStackSetCommand = se_CreateStackSetCommand;
116
100
  const se_DeactivateTypeCommand = async (input, context) => {
117
- const headers = {
118
- "content-type": "application/x-www-form-urlencoded",
119
- };
101
+ const headers = SHARED_HEADERS;
120
102
  let body;
121
103
  body = buildFormUrlencodedString({
122
104
  ...se_DeactivateTypeInput(input, context),
@@ -127,9 +109,7 @@ const se_DeactivateTypeCommand = async (input, context) => {
127
109
  };
128
110
  exports.se_DeactivateTypeCommand = se_DeactivateTypeCommand;
129
111
  const se_DeleteChangeSetCommand = async (input, context) => {
130
- const headers = {
131
- "content-type": "application/x-www-form-urlencoded",
132
- };
112
+ const headers = SHARED_HEADERS;
133
113
  let body;
134
114
  body = buildFormUrlencodedString({
135
115
  ...se_DeleteChangeSetInput(input, context),
@@ -140,9 +120,7 @@ const se_DeleteChangeSetCommand = async (input, context) => {
140
120
  };
141
121
  exports.se_DeleteChangeSetCommand = se_DeleteChangeSetCommand;
142
122
  const se_DeleteStackCommand = async (input, context) => {
143
- const headers = {
144
- "content-type": "application/x-www-form-urlencoded",
145
- };
123
+ const headers = SHARED_HEADERS;
146
124
  let body;
147
125
  body = buildFormUrlencodedString({
148
126
  ...se_DeleteStackInput(input, context),
@@ -153,9 +131,7 @@ const se_DeleteStackCommand = async (input, context) => {
153
131
  };
154
132
  exports.se_DeleteStackCommand = se_DeleteStackCommand;
155
133
  const se_DeleteStackInstancesCommand = async (input, context) => {
156
- const headers = {
157
- "content-type": "application/x-www-form-urlencoded",
158
- };
134
+ const headers = SHARED_HEADERS;
159
135
  let body;
160
136
  body = buildFormUrlencodedString({
161
137
  ...se_DeleteStackInstancesInput(input, context),
@@ -166,9 +142,7 @@ const se_DeleteStackInstancesCommand = async (input, context) => {
166
142
  };
167
143
  exports.se_DeleteStackInstancesCommand = se_DeleteStackInstancesCommand;
168
144
  const se_DeleteStackSetCommand = async (input, context) => {
169
- const headers = {
170
- "content-type": "application/x-www-form-urlencoded",
171
- };
145
+ const headers = SHARED_HEADERS;
172
146
  let body;
173
147
  body = buildFormUrlencodedString({
174
148
  ...se_DeleteStackSetInput(input, context),
@@ -179,9 +153,7 @@ const se_DeleteStackSetCommand = async (input, context) => {
179
153
  };
180
154
  exports.se_DeleteStackSetCommand = se_DeleteStackSetCommand;
181
155
  const se_DeregisterTypeCommand = async (input, context) => {
182
- const headers = {
183
- "content-type": "application/x-www-form-urlencoded",
184
- };
156
+ const headers = SHARED_HEADERS;
185
157
  let body;
186
158
  body = buildFormUrlencodedString({
187
159
  ...se_DeregisterTypeInput(input, context),
@@ -192,9 +164,7 @@ const se_DeregisterTypeCommand = async (input, context) => {
192
164
  };
193
165
  exports.se_DeregisterTypeCommand = se_DeregisterTypeCommand;
194
166
  const se_DescribeAccountLimitsCommand = async (input, context) => {
195
- const headers = {
196
- "content-type": "application/x-www-form-urlencoded",
197
- };
167
+ const headers = SHARED_HEADERS;
198
168
  let body;
199
169
  body = buildFormUrlencodedString({
200
170
  ...se_DescribeAccountLimitsInput(input, context),
@@ -205,9 +175,7 @@ const se_DescribeAccountLimitsCommand = async (input, context) => {
205
175
  };
206
176
  exports.se_DescribeAccountLimitsCommand = se_DescribeAccountLimitsCommand;
207
177
  const se_DescribeChangeSetCommand = async (input, context) => {
208
- const headers = {
209
- "content-type": "application/x-www-form-urlencoded",
210
- };
178
+ const headers = SHARED_HEADERS;
211
179
  let body;
212
180
  body = buildFormUrlencodedString({
213
181
  ...se_DescribeChangeSetInput(input, context),
@@ -218,9 +186,7 @@ const se_DescribeChangeSetCommand = async (input, context) => {
218
186
  };
219
187
  exports.se_DescribeChangeSetCommand = se_DescribeChangeSetCommand;
220
188
  const se_DescribeChangeSetHooksCommand = async (input, context) => {
221
- const headers = {
222
- "content-type": "application/x-www-form-urlencoded",
223
- };
189
+ const headers = SHARED_HEADERS;
224
190
  let body;
225
191
  body = buildFormUrlencodedString({
226
192
  ...se_DescribeChangeSetHooksInput(input, context),
@@ -231,9 +197,7 @@ const se_DescribeChangeSetHooksCommand = async (input, context) => {
231
197
  };
232
198
  exports.se_DescribeChangeSetHooksCommand = se_DescribeChangeSetHooksCommand;
233
199
  const se_DescribePublisherCommand = async (input, context) => {
234
- const headers = {
235
- "content-type": "application/x-www-form-urlencoded",
236
- };
200
+ const headers = SHARED_HEADERS;
237
201
  let body;
238
202
  body = buildFormUrlencodedString({
239
203
  ...se_DescribePublisherInput(input, context),
@@ -244,9 +208,7 @@ const se_DescribePublisherCommand = async (input, context) => {
244
208
  };
245
209
  exports.se_DescribePublisherCommand = se_DescribePublisherCommand;
246
210
  const se_DescribeStackDriftDetectionStatusCommand = async (input, context) => {
247
- const headers = {
248
- "content-type": "application/x-www-form-urlencoded",
249
- };
211
+ const headers = SHARED_HEADERS;
250
212
  let body;
251
213
  body = buildFormUrlencodedString({
252
214
  ...se_DescribeStackDriftDetectionStatusInput(input, context),
@@ -257,9 +219,7 @@ const se_DescribeStackDriftDetectionStatusCommand = async (input, context) => {
257
219
  };
258
220
  exports.se_DescribeStackDriftDetectionStatusCommand = se_DescribeStackDriftDetectionStatusCommand;
259
221
  const se_DescribeStackEventsCommand = async (input, context) => {
260
- const headers = {
261
- "content-type": "application/x-www-form-urlencoded",
262
- };
222
+ const headers = SHARED_HEADERS;
263
223
  let body;
264
224
  body = buildFormUrlencodedString({
265
225
  ...se_DescribeStackEventsInput(input, context),
@@ -270,9 +230,7 @@ const se_DescribeStackEventsCommand = async (input, context) => {
270
230
  };
271
231
  exports.se_DescribeStackEventsCommand = se_DescribeStackEventsCommand;
272
232
  const se_DescribeStackInstanceCommand = async (input, context) => {
273
- const headers = {
274
- "content-type": "application/x-www-form-urlencoded",
275
- };
233
+ const headers = SHARED_HEADERS;
276
234
  let body;
277
235
  body = buildFormUrlencodedString({
278
236
  ...se_DescribeStackInstanceInput(input, context),
@@ -283,9 +241,7 @@ const se_DescribeStackInstanceCommand = async (input, context) => {
283
241
  };
284
242
  exports.se_DescribeStackInstanceCommand = se_DescribeStackInstanceCommand;
285
243
  const se_DescribeStackResourceCommand = async (input, context) => {
286
- const headers = {
287
- "content-type": "application/x-www-form-urlencoded",
288
- };
244
+ const headers = SHARED_HEADERS;
289
245
  let body;
290
246
  body = buildFormUrlencodedString({
291
247
  ...se_DescribeStackResourceInput(input, context),
@@ -296,9 +252,7 @@ const se_DescribeStackResourceCommand = async (input, context) => {
296
252
  };
297
253
  exports.se_DescribeStackResourceCommand = se_DescribeStackResourceCommand;
298
254
  const se_DescribeStackResourceDriftsCommand = async (input, context) => {
299
- const headers = {
300
- "content-type": "application/x-www-form-urlencoded",
301
- };
255
+ const headers = SHARED_HEADERS;
302
256
  let body;
303
257
  body = buildFormUrlencodedString({
304
258
  ...se_DescribeStackResourceDriftsInput(input, context),
@@ -309,9 +263,7 @@ const se_DescribeStackResourceDriftsCommand = async (input, context) => {
309
263
  };
310
264
  exports.se_DescribeStackResourceDriftsCommand = se_DescribeStackResourceDriftsCommand;
311
265
  const se_DescribeStackResourcesCommand = async (input, context) => {
312
- const headers = {
313
- "content-type": "application/x-www-form-urlencoded",
314
- };
266
+ const headers = SHARED_HEADERS;
315
267
  let body;
316
268
  body = buildFormUrlencodedString({
317
269
  ...se_DescribeStackResourcesInput(input, context),
@@ -322,9 +274,7 @@ const se_DescribeStackResourcesCommand = async (input, context) => {
322
274
  };
323
275
  exports.se_DescribeStackResourcesCommand = se_DescribeStackResourcesCommand;
324
276
  const se_DescribeStacksCommand = async (input, context) => {
325
- const headers = {
326
- "content-type": "application/x-www-form-urlencoded",
327
- };
277
+ const headers = SHARED_HEADERS;
328
278
  let body;
329
279
  body = buildFormUrlencodedString({
330
280
  ...se_DescribeStacksInput(input, context),
@@ -335,9 +285,7 @@ const se_DescribeStacksCommand = async (input, context) => {
335
285
  };
336
286
  exports.se_DescribeStacksCommand = se_DescribeStacksCommand;
337
287
  const se_DescribeStackSetCommand = async (input, context) => {
338
- const headers = {
339
- "content-type": "application/x-www-form-urlencoded",
340
- };
288
+ const headers = SHARED_HEADERS;
341
289
  let body;
342
290
  body = buildFormUrlencodedString({
343
291
  ...se_DescribeStackSetInput(input, context),
@@ -348,9 +296,7 @@ const se_DescribeStackSetCommand = async (input, context) => {
348
296
  };
349
297
  exports.se_DescribeStackSetCommand = se_DescribeStackSetCommand;
350
298
  const se_DescribeStackSetOperationCommand = async (input, context) => {
351
- const headers = {
352
- "content-type": "application/x-www-form-urlencoded",
353
- };
299
+ const headers = SHARED_HEADERS;
354
300
  let body;
355
301
  body = buildFormUrlencodedString({
356
302
  ...se_DescribeStackSetOperationInput(input, context),
@@ -361,9 +307,7 @@ const se_DescribeStackSetOperationCommand = async (input, context) => {
361
307
  };
362
308
  exports.se_DescribeStackSetOperationCommand = se_DescribeStackSetOperationCommand;
363
309
  const se_DescribeTypeCommand = async (input, context) => {
364
- const headers = {
365
- "content-type": "application/x-www-form-urlencoded",
366
- };
310
+ const headers = SHARED_HEADERS;
367
311
  let body;
368
312
  body = buildFormUrlencodedString({
369
313
  ...se_DescribeTypeInput(input, context),
@@ -374,9 +318,7 @@ const se_DescribeTypeCommand = async (input, context) => {
374
318
  };
375
319
  exports.se_DescribeTypeCommand = se_DescribeTypeCommand;
376
320
  const se_DescribeTypeRegistrationCommand = async (input, context) => {
377
- const headers = {
378
- "content-type": "application/x-www-form-urlencoded",
379
- };
321
+ const headers = SHARED_HEADERS;
380
322
  let body;
381
323
  body = buildFormUrlencodedString({
382
324
  ...se_DescribeTypeRegistrationInput(input, context),
@@ -387,9 +329,7 @@ const se_DescribeTypeRegistrationCommand = async (input, context) => {
387
329
  };
388
330
  exports.se_DescribeTypeRegistrationCommand = se_DescribeTypeRegistrationCommand;
389
331
  const se_DetectStackDriftCommand = async (input, context) => {
390
- const headers = {
391
- "content-type": "application/x-www-form-urlencoded",
392
- };
332
+ const headers = SHARED_HEADERS;
393
333
  let body;
394
334
  body = buildFormUrlencodedString({
395
335
  ...se_DetectStackDriftInput(input, context),
@@ -400,9 +340,7 @@ const se_DetectStackDriftCommand = async (input, context) => {
400
340
  };
401
341
  exports.se_DetectStackDriftCommand = se_DetectStackDriftCommand;
402
342
  const se_DetectStackResourceDriftCommand = async (input, context) => {
403
- const headers = {
404
- "content-type": "application/x-www-form-urlencoded",
405
- };
343
+ const headers = SHARED_HEADERS;
406
344
  let body;
407
345
  body = buildFormUrlencodedString({
408
346
  ...se_DetectStackResourceDriftInput(input, context),
@@ -413,9 +351,7 @@ const se_DetectStackResourceDriftCommand = async (input, context) => {
413
351
  };
414
352
  exports.se_DetectStackResourceDriftCommand = se_DetectStackResourceDriftCommand;
415
353
  const se_DetectStackSetDriftCommand = async (input, context) => {
416
- const headers = {
417
- "content-type": "application/x-www-form-urlencoded",
418
- };
354
+ const headers = SHARED_HEADERS;
419
355
  let body;
420
356
  body = buildFormUrlencodedString({
421
357
  ...se_DetectStackSetDriftInput(input, context),
@@ -426,9 +362,7 @@ const se_DetectStackSetDriftCommand = async (input, context) => {
426
362
  };
427
363
  exports.se_DetectStackSetDriftCommand = se_DetectStackSetDriftCommand;
428
364
  const se_EstimateTemplateCostCommand = async (input, context) => {
429
- const headers = {
430
- "content-type": "application/x-www-form-urlencoded",
431
- };
365
+ const headers = SHARED_HEADERS;
432
366
  let body;
433
367
  body = buildFormUrlencodedString({
434
368
  ...se_EstimateTemplateCostInput(input, context),
@@ -439,9 +373,7 @@ const se_EstimateTemplateCostCommand = async (input, context) => {
439
373
  };
440
374
  exports.se_EstimateTemplateCostCommand = se_EstimateTemplateCostCommand;
441
375
  const se_ExecuteChangeSetCommand = async (input, context) => {
442
- const headers = {
443
- "content-type": "application/x-www-form-urlencoded",
444
- };
376
+ const headers = SHARED_HEADERS;
445
377
  let body;
446
378
  body = buildFormUrlencodedString({
447
379
  ...se_ExecuteChangeSetInput(input, context),
@@ -452,9 +384,7 @@ const se_ExecuteChangeSetCommand = async (input, context) => {
452
384
  };
453
385
  exports.se_ExecuteChangeSetCommand = se_ExecuteChangeSetCommand;
454
386
  const se_GetStackPolicyCommand = async (input, context) => {
455
- const headers = {
456
- "content-type": "application/x-www-form-urlencoded",
457
- };
387
+ const headers = SHARED_HEADERS;
458
388
  let body;
459
389
  body = buildFormUrlencodedString({
460
390
  ...se_GetStackPolicyInput(input, context),
@@ -465,9 +395,7 @@ const se_GetStackPolicyCommand = async (input, context) => {
465
395
  };
466
396
  exports.se_GetStackPolicyCommand = se_GetStackPolicyCommand;
467
397
  const se_GetTemplateCommand = async (input, context) => {
468
- const headers = {
469
- "content-type": "application/x-www-form-urlencoded",
470
- };
398
+ const headers = SHARED_HEADERS;
471
399
  let body;
472
400
  body = buildFormUrlencodedString({
473
401
  ...se_GetTemplateInput(input, context),
@@ -478,9 +406,7 @@ const se_GetTemplateCommand = async (input, context) => {
478
406
  };
479
407
  exports.se_GetTemplateCommand = se_GetTemplateCommand;
480
408
  const se_GetTemplateSummaryCommand = async (input, context) => {
481
- const headers = {
482
- "content-type": "application/x-www-form-urlencoded",
483
- };
409
+ const headers = SHARED_HEADERS;
484
410
  let body;
485
411
  body = buildFormUrlencodedString({
486
412
  ...se_GetTemplateSummaryInput(input, context),
@@ -491,9 +417,7 @@ const se_GetTemplateSummaryCommand = async (input, context) => {
491
417
  };
492
418
  exports.se_GetTemplateSummaryCommand = se_GetTemplateSummaryCommand;
493
419
  const se_ImportStacksToStackSetCommand = async (input, context) => {
494
- const headers = {
495
- "content-type": "application/x-www-form-urlencoded",
496
- };
420
+ const headers = SHARED_HEADERS;
497
421
  let body;
498
422
  body = buildFormUrlencodedString({
499
423
  ...se_ImportStacksToStackSetInput(input, context),
@@ -504,9 +428,7 @@ const se_ImportStacksToStackSetCommand = async (input, context) => {
504
428
  };
505
429
  exports.se_ImportStacksToStackSetCommand = se_ImportStacksToStackSetCommand;
506
430
  const se_ListChangeSetsCommand = async (input, context) => {
507
- const headers = {
508
- "content-type": "application/x-www-form-urlencoded",
509
- };
431
+ const headers = SHARED_HEADERS;
510
432
  let body;
511
433
  body = buildFormUrlencodedString({
512
434
  ...se_ListChangeSetsInput(input, context),
@@ -517,9 +439,7 @@ const se_ListChangeSetsCommand = async (input, context) => {
517
439
  };
518
440
  exports.se_ListChangeSetsCommand = se_ListChangeSetsCommand;
519
441
  const se_ListExportsCommand = async (input, context) => {
520
- const headers = {
521
- "content-type": "application/x-www-form-urlencoded",
522
- };
442
+ const headers = SHARED_HEADERS;
523
443
  let body;
524
444
  body = buildFormUrlencodedString({
525
445
  ...se_ListExportsInput(input, context),
@@ -530,9 +450,7 @@ const se_ListExportsCommand = async (input, context) => {
530
450
  };
531
451
  exports.se_ListExportsCommand = se_ListExportsCommand;
532
452
  const se_ListImportsCommand = async (input, context) => {
533
- const headers = {
534
- "content-type": "application/x-www-form-urlencoded",
535
- };
453
+ const headers = SHARED_HEADERS;
536
454
  let body;
537
455
  body = buildFormUrlencodedString({
538
456
  ...se_ListImportsInput(input, context),
@@ -543,9 +461,7 @@ const se_ListImportsCommand = async (input, context) => {
543
461
  };
544
462
  exports.se_ListImportsCommand = se_ListImportsCommand;
545
463
  const se_ListStackInstancesCommand = async (input, context) => {
546
- const headers = {
547
- "content-type": "application/x-www-form-urlencoded",
548
- };
464
+ const headers = SHARED_HEADERS;
549
465
  let body;
550
466
  body = buildFormUrlencodedString({
551
467
  ...se_ListStackInstancesInput(input, context),
@@ -556,9 +472,7 @@ const se_ListStackInstancesCommand = async (input, context) => {
556
472
  };
557
473
  exports.se_ListStackInstancesCommand = se_ListStackInstancesCommand;
558
474
  const se_ListStackResourcesCommand = async (input, context) => {
559
- const headers = {
560
- "content-type": "application/x-www-form-urlencoded",
561
- };
475
+ const headers = SHARED_HEADERS;
562
476
  let body;
563
477
  body = buildFormUrlencodedString({
564
478
  ...se_ListStackResourcesInput(input, context),
@@ -569,9 +483,7 @@ const se_ListStackResourcesCommand = async (input, context) => {
569
483
  };
570
484
  exports.se_ListStackResourcesCommand = se_ListStackResourcesCommand;
571
485
  const se_ListStacksCommand = async (input, context) => {
572
- const headers = {
573
- "content-type": "application/x-www-form-urlencoded",
574
- };
486
+ const headers = SHARED_HEADERS;
575
487
  let body;
576
488
  body = buildFormUrlencodedString({
577
489
  ...se_ListStacksInput(input, context),
@@ -582,9 +494,7 @@ const se_ListStacksCommand = async (input, context) => {
582
494
  };
583
495
  exports.se_ListStacksCommand = se_ListStacksCommand;
584
496
  const se_ListStackSetOperationResultsCommand = async (input, context) => {
585
- const headers = {
586
- "content-type": "application/x-www-form-urlencoded",
587
- };
497
+ const headers = SHARED_HEADERS;
588
498
  let body;
589
499
  body = buildFormUrlencodedString({
590
500
  ...se_ListStackSetOperationResultsInput(input, context),
@@ -595,9 +505,7 @@ const se_ListStackSetOperationResultsCommand = async (input, context) => {
595
505
  };
596
506
  exports.se_ListStackSetOperationResultsCommand = se_ListStackSetOperationResultsCommand;
597
507
  const se_ListStackSetOperationsCommand = async (input, context) => {
598
- const headers = {
599
- "content-type": "application/x-www-form-urlencoded",
600
- };
508
+ const headers = SHARED_HEADERS;
601
509
  let body;
602
510
  body = buildFormUrlencodedString({
603
511
  ...se_ListStackSetOperationsInput(input, context),
@@ -608,9 +516,7 @@ const se_ListStackSetOperationsCommand = async (input, context) => {
608
516
  };
609
517
  exports.se_ListStackSetOperationsCommand = se_ListStackSetOperationsCommand;
610
518
  const se_ListStackSetsCommand = async (input, context) => {
611
- const headers = {
612
- "content-type": "application/x-www-form-urlencoded",
613
- };
519
+ const headers = SHARED_HEADERS;
614
520
  let body;
615
521
  body = buildFormUrlencodedString({
616
522
  ...se_ListStackSetsInput(input, context),
@@ -621,9 +527,7 @@ const se_ListStackSetsCommand = async (input, context) => {
621
527
  };
622
528
  exports.se_ListStackSetsCommand = se_ListStackSetsCommand;
623
529
  const se_ListTypeRegistrationsCommand = async (input, context) => {
624
- const headers = {
625
- "content-type": "application/x-www-form-urlencoded",
626
- };
530
+ const headers = SHARED_HEADERS;
627
531
  let body;
628
532
  body = buildFormUrlencodedString({
629
533
  ...se_ListTypeRegistrationsInput(input, context),
@@ -634,9 +538,7 @@ const se_ListTypeRegistrationsCommand = async (input, context) => {
634
538
  };
635
539
  exports.se_ListTypeRegistrationsCommand = se_ListTypeRegistrationsCommand;
636
540
  const se_ListTypesCommand = async (input, context) => {
637
- const headers = {
638
- "content-type": "application/x-www-form-urlencoded",
639
- };
541
+ const headers = SHARED_HEADERS;
640
542
  let body;
641
543
  body = buildFormUrlencodedString({
642
544
  ...se_ListTypesInput(input, context),
@@ -647,9 +549,7 @@ const se_ListTypesCommand = async (input, context) => {
647
549
  };
648
550
  exports.se_ListTypesCommand = se_ListTypesCommand;
649
551
  const se_ListTypeVersionsCommand = async (input, context) => {
650
- const headers = {
651
- "content-type": "application/x-www-form-urlencoded",
652
- };
552
+ const headers = SHARED_HEADERS;
653
553
  let body;
654
554
  body = buildFormUrlencodedString({
655
555
  ...se_ListTypeVersionsInput(input, context),
@@ -660,9 +560,7 @@ const se_ListTypeVersionsCommand = async (input, context) => {
660
560
  };
661
561
  exports.se_ListTypeVersionsCommand = se_ListTypeVersionsCommand;
662
562
  const se_PublishTypeCommand = async (input, context) => {
663
- const headers = {
664
- "content-type": "application/x-www-form-urlencoded",
665
- };
563
+ const headers = SHARED_HEADERS;
666
564
  let body;
667
565
  body = buildFormUrlencodedString({
668
566
  ...se_PublishTypeInput(input, context),
@@ -673,9 +571,7 @@ const se_PublishTypeCommand = async (input, context) => {
673
571
  };
674
572
  exports.se_PublishTypeCommand = se_PublishTypeCommand;
675
573
  const se_RecordHandlerProgressCommand = async (input, context) => {
676
- const headers = {
677
- "content-type": "application/x-www-form-urlencoded",
678
- };
574
+ const headers = SHARED_HEADERS;
679
575
  let body;
680
576
  body = buildFormUrlencodedString({
681
577
  ...se_RecordHandlerProgressInput(input, context),
@@ -686,9 +582,7 @@ const se_RecordHandlerProgressCommand = async (input, context) => {
686
582
  };
687
583
  exports.se_RecordHandlerProgressCommand = se_RecordHandlerProgressCommand;
688
584
  const se_RegisterPublisherCommand = async (input, context) => {
689
- const headers = {
690
- "content-type": "application/x-www-form-urlencoded",
691
- };
585
+ const headers = SHARED_HEADERS;
692
586
  let body;
693
587
  body = buildFormUrlencodedString({
694
588
  ...se_RegisterPublisherInput(input, context),
@@ -699,9 +593,7 @@ const se_RegisterPublisherCommand = async (input, context) => {
699
593
  };
700
594
  exports.se_RegisterPublisherCommand = se_RegisterPublisherCommand;
701
595
  const se_RegisterTypeCommand = async (input, context) => {
702
- const headers = {
703
- "content-type": "application/x-www-form-urlencoded",
704
- };
596
+ const headers = SHARED_HEADERS;
705
597
  let body;
706
598
  body = buildFormUrlencodedString({
707
599
  ...se_RegisterTypeInput(input, context),
@@ -712,9 +604,7 @@ const se_RegisterTypeCommand = async (input, context) => {
712
604
  };
713
605
  exports.se_RegisterTypeCommand = se_RegisterTypeCommand;
714
606
  const se_RollbackStackCommand = async (input, context) => {
715
- const headers = {
716
- "content-type": "application/x-www-form-urlencoded",
717
- };
607
+ const headers = SHARED_HEADERS;
718
608
  let body;
719
609
  body = buildFormUrlencodedString({
720
610
  ...se_RollbackStackInput(input, context),
@@ -725,9 +615,7 @@ const se_RollbackStackCommand = async (input, context) => {
725
615
  };
726
616
  exports.se_RollbackStackCommand = se_RollbackStackCommand;
727
617
  const se_SetStackPolicyCommand = async (input, context) => {
728
- const headers = {
729
- "content-type": "application/x-www-form-urlencoded",
730
- };
618
+ const headers = SHARED_HEADERS;
731
619
  let body;
732
620
  body = buildFormUrlencodedString({
733
621
  ...se_SetStackPolicyInput(input, context),
@@ -738,9 +626,7 @@ const se_SetStackPolicyCommand = async (input, context) => {
738
626
  };
739
627
  exports.se_SetStackPolicyCommand = se_SetStackPolicyCommand;
740
628
  const se_SetTypeConfigurationCommand = async (input, context) => {
741
- const headers = {
742
- "content-type": "application/x-www-form-urlencoded",
743
- };
629
+ const headers = SHARED_HEADERS;
744
630
  let body;
745
631
  body = buildFormUrlencodedString({
746
632
  ...se_SetTypeConfigurationInput(input, context),
@@ -751,9 +637,7 @@ const se_SetTypeConfigurationCommand = async (input, context) => {
751
637
  };
752
638
  exports.se_SetTypeConfigurationCommand = se_SetTypeConfigurationCommand;
753
639
  const se_SetTypeDefaultVersionCommand = async (input, context) => {
754
- const headers = {
755
- "content-type": "application/x-www-form-urlencoded",
756
- };
640
+ const headers = SHARED_HEADERS;
757
641
  let body;
758
642
  body = buildFormUrlencodedString({
759
643
  ...se_SetTypeDefaultVersionInput(input, context),
@@ -764,9 +648,7 @@ const se_SetTypeDefaultVersionCommand = async (input, context) => {
764
648
  };
765
649
  exports.se_SetTypeDefaultVersionCommand = se_SetTypeDefaultVersionCommand;
766
650
  const se_SignalResourceCommand = async (input, context) => {
767
- const headers = {
768
- "content-type": "application/x-www-form-urlencoded",
769
- };
651
+ const headers = SHARED_HEADERS;
770
652
  let body;
771
653
  body = buildFormUrlencodedString({
772
654
  ...se_SignalResourceInput(input, context),
@@ -777,9 +659,7 @@ const se_SignalResourceCommand = async (input, context) => {
777
659
  };
778
660
  exports.se_SignalResourceCommand = se_SignalResourceCommand;
779
661
  const se_StopStackSetOperationCommand = async (input, context) => {
780
- const headers = {
781
- "content-type": "application/x-www-form-urlencoded",
782
- };
662
+ const headers = SHARED_HEADERS;
783
663
  let body;
784
664
  body = buildFormUrlencodedString({
785
665
  ...se_StopStackSetOperationInput(input, context),
@@ -790,9 +670,7 @@ const se_StopStackSetOperationCommand = async (input, context) => {
790
670
  };
791
671
  exports.se_StopStackSetOperationCommand = se_StopStackSetOperationCommand;
792
672
  const se_TestTypeCommand = async (input, context) => {
793
- const headers = {
794
- "content-type": "application/x-www-form-urlencoded",
795
- };
673
+ const headers = SHARED_HEADERS;
796
674
  let body;
797
675
  body = buildFormUrlencodedString({
798
676
  ...se_TestTypeInput(input, context),
@@ -803,9 +681,7 @@ const se_TestTypeCommand = async (input, context) => {
803
681
  };
804
682
  exports.se_TestTypeCommand = se_TestTypeCommand;
805
683
  const se_UpdateStackCommand = async (input, context) => {
806
- const headers = {
807
- "content-type": "application/x-www-form-urlencoded",
808
- };
684
+ const headers = SHARED_HEADERS;
809
685
  let body;
810
686
  body = buildFormUrlencodedString({
811
687
  ...se_UpdateStackInput(input, context),
@@ -816,9 +692,7 @@ const se_UpdateStackCommand = async (input, context) => {
816
692
  };
817
693
  exports.se_UpdateStackCommand = se_UpdateStackCommand;
818
694
  const se_UpdateStackInstancesCommand = async (input, context) => {
819
- const headers = {
820
- "content-type": "application/x-www-form-urlencoded",
821
- };
695
+ const headers = SHARED_HEADERS;
822
696
  let body;
823
697
  body = buildFormUrlencodedString({
824
698
  ...se_UpdateStackInstancesInput(input, context),
@@ -829,9 +703,7 @@ const se_UpdateStackInstancesCommand = async (input, context) => {
829
703
  };
830
704
  exports.se_UpdateStackInstancesCommand = se_UpdateStackInstancesCommand;
831
705
  const se_UpdateStackSetCommand = async (input, context) => {
832
- const headers = {
833
- "content-type": "application/x-www-form-urlencoded",
834
- };
706
+ const headers = SHARED_HEADERS;
835
707
  let body;
836
708
  body = buildFormUrlencodedString({
837
709
  ...se_UpdateStackSetInput(input, context),
@@ -842,9 +714,7 @@ const se_UpdateStackSetCommand = async (input, context) => {
842
714
  };
843
715
  exports.se_UpdateStackSetCommand = se_UpdateStackSetCommand;
844
716
  const se_UpdateTerminationProtectionCommand = async (input, context) => {
845
- const headers = {
846
- "content-type": "application/x-www-form-urlencoded",
847
- };
717
+ const headers = SHARED_HEADERS;
848
718
  let body;
849
719
  body = buildFormUrlencodedString({
850
720
  ...se_UpdateTerminationProtectionInput(input, context),
@@ -855,9 +725,7 @@ const se_UpdateTerminationProtectionCommand = async (input, context) => {
855
725
  };
856
726
  exports.se_UpdateTerminationProtectionCommand = se_UpdateTerminationProtectionCommand;
857
727
  const se_ValidateTemplateCommand = async (input, context) => {
858
- const headers = {
859
- "content-type": "application/x-www-form-urlencoded",
860
- };
728
+ const headers = SHARED_HEADERS;
861
729
  let body;
862
730
  body = buildFormUrlencodedString({
863
731
  ...se_ValidateTemplateInput(input, context),
@@ -878,7 +746,7 @@ const de_ActivateTypeCommand = async (output, context) => {
878
746
  $metadata: deserializeMetadata(output),
879
747
  ...contents,
880
748
  };
881
- return Promise.resolve(response);
749
+ return response;
882
750
  };
883
751
  exports.de_ActivateTypeCommand = de_ActivateTypeCommand;
884
752
  const de_ActivateTypeCommandError = async (output, context) => {
@@ -896,10 +764,9 @@ const de_ActivateTypeCommandError = async (output, context) => {
896
764
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
897
765
  default:
898
766
  const parsedBody = parsedOutput.body;
899
- (0, smithy_client_1.throwDefaultError)({
767
+ return throwDefaultError({
900
768
  output,
901
769
  parsedBody: parsedBody.Error,
902
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
903
770
  errorCode,
904
771
  });
905
772
  }
@@ -915,7 +782,7 @@ const de_BatchDescribeTypeConfigurationsCommand = async (output, context) => {
915
782
  $metadata: deserializeMetadata(output),
916
783
  ...contents,
917
784
  };
918
- return Promise.resolve(response);
785
+ return response;
919
786
  };
920
787
  exports.de_BatchDescribeTypeConfigurationsCommand = de_BatchDescribeTypeConfigurationsCommand;
921
788
  const de_BatchDescribeTypeConfigurationsCommandError = async (output, context) => {
@@ -933,10 +800,9 @@ const de_BatchDescribeTypeConfigurationsCommandError = async (output, context) =
933
800
  throw await de_TypeConfigurationNotFoundExceptionRes(parsedOutput, context);
934
801
  default:
935
802
  const parsedBody = parsedOutput.body;
936
- (0, smithy_client_1.throwDefaultError)({
803
+ return throwDefaultError({
937
804
  output,
938
805
  parsedBody: parsedBody.Error,
939
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
940
806
  errorCode,
941
807
  });
942
808
  }
@@ -949,7 +815,7 @@ const de_CancelUpdateStackCommand = async (output, context) => {
949
815
  const response = {
950
816
  $metadata: deserializeMetadata(output),
951
817
  };
952
- return Promise.resolve(response);
818
+ return response;
953
819
  };
954
820
  exports.de_CancelUpdateStackCommand = de_CancelUpdateStackCommand;
955
821
  const de_CancelUpdateStackCommandError = async (output, context) => {
@@ -964,10 +830,9 @@ const de_CancelUpdateStackCommandError = async (output, context) => {
964
830
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
965
831
  default:
966
832
  const parsedBody = parsedOutput.body;
967
- (0, smithy_client_1.throwDefaultError)({
833
+ return throwDefaultError({
968
834
  output,
969
835
  parsedBody: parsedBody.Error,
970
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
971
836
  errorCode,
972
837
  });
973
838
  }
@@ -983,7 +848,7 @@ const de_ContinueUpdateRollbackCommand = async (output, context) => {
983
848
  $metadata: deserializeMetadata(output),
984
849
  ...contents,
985
850
  };
986
- return Promise.resolve(response);
851
+ return response;
987
852
  };
988
853
  exports.de_ContinueUpdateRollbackCommand = de_ContinueUpdateRollbackCommand;
989
854
  const de_ContinueUpdateRollbackCommandError = async (output, context) => {
@@ -998,10 +863,9 @@ const de_ContinueUpdateRollbackCommandError = async (output, context) => {
998
863
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
999
864
  default:
1000
865
  const parsedBody = parsedOutput.body;
1001
- (0, smithy_client_1.throwDefaultError)({
866
+ return throwDefaultError({
1002
867
  output,
1003
868
  parsedBody: parsedBody.Error,
1004
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1005
869
  errorCode,
1006
870
  });
1007
871
  }
@@ -1017,7 +881,7 @@ const de_CreateChangeSetCommand = async (output, context) => {
1017
881
  $metadata: deserializeMetadata(output),
1018
882
  ...contents,
1019
883
  };
1020
- return Promise.resolve(response);
884
+ return response;
1021
885
  };
1022
886
  exports.de_CreateChangeSetCommand = de_CreateChangeSetCommand;
1023
887
  const de_CreateChangeSetCommandError = async (output, context) => {
@@ -1038,10 +902,9 @@ const de_CreateChangeSetCommandError = async (output, context) => {
1038
902
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1039
903
  default:
1040
904
  const parsedBody = parsedOutput.body;
1041
- (0, smithy_client_1.throwDefaultError)({
905
+ return throwDefaultError({
1042
906
  output,
1043
907
  parsedBody: parsedBody.Error,
1044
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1045
908
  errorCode,
1046
909
  });
1047
910
  }
@@ -1057,7 +920,7 @@ const de_CreateStackCommand = async (output, context) => {
1057
920
  $metadata: deserializeMetadata(output),
1058
921
  ...contents,
1059
922
  };
1060
- return Promise.resolve(response);
923
+ return response;
1061
924
  };
1062
925
  exports.de_CreateStackCommand = de_CreateStackCommand;
1063
926
  const de_CreateStackCommandError = async (output, context) => {
@@ -1081,10 +944,9 @@ const de_CreateStackCommandError = async (output, context) => {
1081
944
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
1082
945
  default:
1083
946
  const parsedBody = parsedOutput.body;
1084
- (0, smithy_client_1.throwDefaultError)({
947
+ return throwDefaultError({
1085
948
  output,
1086
949
  parsedBody: parsedBody.Error,
1087
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1088
950
  errorCode,
1089
951
  });
1090
952
  }
@@ -1100,7 +962,7 @@ const de_CreateStackInstancesCommand = async (output, context) => {
1100
962
  $metadata: deserializeMetadata(output),
1101
963
  ...contents,
1102
964
  };
1103
- return Promise.resolve(response);
965
+ return response;
1104
966
  };
1105
967
  exports.de_CreateStackInstancesCommand = de_CreateStackInstancesCommand;
1106
968
  const de_CreateStackInstancesCommandError = async (output, context) => {
@@ -1130,10 +992,9 @@ const de_CreateStackInstancesCommandError = async (output, context) => {
1130
992
  throw await de_StaleRequestExceptionRes(parsedOutput, context);
1131
993
  default:
1132
994
  const parsedBody = parsedOutput.body;
1133
- (0, smithy_client_1.throwDefaultError)({
995
+ return throwDefaultError({
1134
996
  output,
1135
997
  parsedBody: parsedBody.Error,
1136
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1137
998
  errorCode,
1138
999
  });
1139
1000
  }
@@ -1149,7 +1010,7 @@ const de_CreateStackSetCommand = async (output, context) => {
1149
1010
  $metadata: deserializeMetadata(output),
1150
1011
  ...contents,
1151
1012
  };
1152
- return Promise.resolve(response);
1013
+ return response;
1153
1014
  };
1154
1015
  exports.de_CreateStackSetCommand = de_CreateStackSetCommand;
1155
1016
  const de_CreateStackSetCommandError = async (output, context) => {
@@ -1170,10 +1031,9 @@ const de_CreateStackSetCommandError = async (output, context) => {
1170
1031
  throw await de_NameAlreadyExistsExceptionRes(parsedOutput, context);
1171
1032
  default:
1172
1033
  const parsedBody = parsedOutput.body;
1173
- (0, smithy_client_1.throwDefaultError)({
1034
+ return throwDefaultError({
1174
1035
  output,
1175
1036
  parsedBody: parsedBody.Error,
1176
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1177
1037
  errorCode,
1178
1038
  });
1179
1039
  }
@@ -1189,7 +1049,7 @@ const de_DeactivateTypeCommand = async (output, context) => {
1189
1049
  $metadata: deserializeMetadata(output),
1190
1050
  ...contents,
1191
1051
  };
1192
- return Promise.resolve(response);
1052
+ return response;
1193
1053
  };
1194
1054
  exports.de_DeactivateTypeCommand = de_DeactivateTypeCommand;
1195
1055
  const de_DeactivateTypeCommandError = async (output, context) => {
@@ -1207,10 +1067,9 @@ const de_DeactivateTypeCommandError = async (output, context) => {
1207
1067
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
1208
1068
  default:
1209
1069
  const parsedBody = parsedOutput.body;
1210
- (0, smithy_client_1.throwDefaultError)({
1070
+ return throwDefaultError({
1211
1071
  output,
1212
1072
  parsedBody: parsedBody.Error,
1213
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1214
1073
  errorCode,
1215
1074
  });
1216
1075
  }
@@ -1226,7 +1085,7 @@ const de_DeleteChangeSetCommand = async (output, context) => {
1226
1085
  $metadata: deserializeMetadata(output),
1227
1086
  ...contents,
1228
1087
  };
1229
- return Promise.resolve(response);
1088
+ return response;
1230
1089
  };
1231
1090
  exports.de_DeleteChangeSetCommand = de_DeleteChangeSetCommand;
1232
1091
  const de_DeleteChangeSetCommandError = async (output, context) => {
@@ -1241,10 +1100,9 @@ const de_DeleteChangeSetCommandError = async (output, context) => {
1241
1100
  throw await de_InvalidChangeSetStatusExceptionRes(parsedOutput, context);
1242
1101
  default:
1243
1102
  const parsedBody = parsedOutput.body;
1244
- (0, smithy_client_1.throwDefaultError)({
1103
+ return throwDefaultError({
1245
1104
  output,
1246
1105
  parsedBody: parsedBody.Error,
1247
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1248
1106
  errorCode,
1249
1107
  });
1250
1108
  }
@@ -1257,7 +1115,7 @@ const de_DeleteStackCommand = async (output, context) => {
1257
1115
  const response = {
1258
1116
  $metadata: deserializeMetadata(output),
1259
1117
  };
1260
- return Promise.resolve(response);
1118
+ return response;
1261
1119
  };
1262
1120
  exports.de_DeleteStackCommand = de_DeleteStackCommand;
1263
1121
  const de_DeleteStackCommandError = async (output, context) => {
@@ -1272,10 +1130,9 @@ const de_DeleteStackCommandError = async (output, context) => {
1272
1130
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
1273
1131
  default:
1274
1132
  const parsedBody = parsedOutput.body;
1275
- (0, smithy_client_1.throwDefaultError)({
1133
+ return throwDefaultError({
1276
1134
  output,
1277
1135
  parsedBody: parsedBody.Error,
1278
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1279
1136
  errorCode,
1280
1137
  });
1281
1138
  }
@@ -1291,7 +1148,7 @@ const de_DeleteStackInstancesCommand = async (output, context) => {
1291
1148
  $metadata: deserializeMetadata(output),
1292
1149
  ...contents,
1293
1150
  };
1294
- return Promise.resolve(response);
1151
+ return response;
1295
1152
  };
1296
1153
  exports.de_DeleteStackInstancesCommand = de_DeleteStackInstancesCommand;
1297
1154
  const de_DeleteStackInstancesCommandError = async (output, context) => {
@@ -1318,10 +1175,9 @@ const de_DeleteStackInstancesCommandError = async (output, context) => {
1318
1175
  throw await de_StaleRequestExceptionRes(parsedOutput, context);
1319
1176
  default:
1320
1177
  const parsedBody = parsedOutput.body;
1321
- (0, smithy_client_1.throwDefaultError)({
1178
+ return throwDefaultError({
1322
1179
  output,
1323
1180
  parsedBody: parsedBody.Error,
1324
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1325
1181
  errorCode,
1326
1182
  });
1327
1183
  }
@@ -1337,7 +1193,7 @@ const de_DeleteStackSetCommand = async (output, context) => {
1337
1193
  $metadata: deserializeMetadata(output),
1338
1194
  ...contents,
1339
1195
  };
1340
- return Promise.resolve(response);
1196
+ return response;
1341
1197
  };
1342
1198
  exports.de_DeleteStackSetCommand = de_DeleteStackSetCommand;
1343
1199
  const de_DeleteStackSetCommandError = async (output, context) => {
@@ -1355,10 +1211,9 @@ const de_DeleteStackSetCommandError = async (output, context) => {
1355
1211
  throw await de_StackSetNotEmptyExceptionRes(parsedOutput, context);
1356
1212
  default:
1357
1213
  const parsedBody = parsedOutput.body;
1358
- (0, smithy_client_1.throwDefaultError)({
1214
+ return throwDefaultError({
1359
1215
  output,
1360
1216
  parsedBody: parsedBody.Error,
1361
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1362
1217
  errorCode,
1363
1218
  });
1364
1219
  }
@@ -1374,7 +1229,7 @@ const de_DeregisterTypeCommand = async (output, context) => {
1374
1229
  $metadata: deserializeMetadata(output),
1375
1230
  ...contents,
1376
1231
  };
1377
- return Promise.resolve(response);
1232
+ return response;
1378
1233
  };
1379
1234
  exports.de_DeregisterTypeCommand = de_DeregisterTypeCommand;
1380
1235
  const de_DeregisterTypeCommandError = async (output, context) => {
@@ -1392,10 +1247,9 @@ const de_DeregisterTypeCommandError = async (output, context) => {
1392
1247
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
1393
1248
  default:
1394
1249
  const parsedBody = parsedOutput.body;
1395
- (0, smithy_client_1.throwDefaultError)({
1250
+ return throwDefaultError({
1396
1251
  output,
1397
1252
  parsedBody: parsedBody.Error,
1398
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1399
1253
  errorCode,
1400
1254
  });
1401
1255
  }
@@ -1411,7 +1265,7 @@ const de_DescribeAccountLimitsCommand = async (output, context) => {
1411
1265
  $metadata: deserializeMetadata(output),
1412
1266
  ...contents,
1413
1267
  };
1414
- return Promise.resolve(response);
1268
+ return response;
1415
1269
  };
1416
1270
  exports.de_DescribeAccountLimitsCommand = de_DescribeAccountLimitsCommand;
1417
1271
  const de_DescribeAccountLimitsCommandError = async (output, context) => {
@@ -1421,10 +1275,9 @@ const de_DescribeAccountLimitsCommandError = async (output, context) => {
1421
1275
  };
1422
1276
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1423
1277
  const parsedBody = parsedOutput.body;
1424
- (0, smithy_client_1.throwDefaultError)({
1278
+ return throwDefaultError({
1425
1279
  output,
1426
1280
  parsedBody: parsedBody.Error,
1427
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1428
1281
  errorCode,
1429
1282
  });
1430
1283
  };
@@ -1439,7 +1292,7 @@ const de_DescribeChangeSetCommand = async (output, context) => {
1439
1292
  $metadata: deserializeMetadata(output),
1440
1293
  ...contents,
1441
1294
  };
1442
- return Promise.resolve(response);
1295
+ return response;
1443
1296
  };
1444
1297
  exports.de_DescribeChangeSetCommand = de_DescribeChangeSetCommand;
1445
1298
  const de_DescribeChangeSetCommandError = async (output, context) => {
@@ -1454,10 +1307,9 @@ const de_DescribeChangeSetCommandError = async (output, context) => {
1454
1307
  throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
1455
1308
  default:
1456
1309
  const parsedBody = parsedOutput.body;
1457
- (0, smithy_client_1.throwDefaultError)({
1310
+ return throwDefaultError({
1458
1311
  output,
1459
1312
  parsedBody: parsedBody.Error,
1460
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1461
1313
  errorCode,
1462
1314
  });
1463
1315
  }
@@ -1473,7 +1325,7 @@ const de_DescribeChangeSetHooksCommand = async (output, context) => {
1473
1325
  $metadata: deserializeMetadata(output),
1474
1326
  ...contents,
1475
1327
  };
1476
- return Promise.resolve(response);
1328
+ return response;
1477
1329
  };
1478
1330
  exports.de_DescribeChangeSetHooksCommand = de_DescribeChangeSetHooksCommand;
1479
1331
  const de_DescribeChangeSetHooksCommandError = async (output, context) => {
@@ -1488,10 +1340,9 @@ const de_DescribeChangeSetHooksCommandError = async (output, context) => {
1488
1340
  throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
1489
1341
  default:
1490
1342
  const parsedBody = parsedOutput.body;
1491
- (0, smithy_client_1.throwDefaultError)({
1343
+ return throwDefaultError({
1492
1344
  output,
1493
1345
  parsedBody: parsedBody.Error,
1494
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1495
1346
  errorCode,
1496
1347
  });
1497
1348
  }
@@ -1507,7 +1358,7 @@ const de_DescribePublisherCommand = async (output, context) => {
1507
1358
  $metadata: deserializeMetadata(output),
1508
1359
  ...contents,
1509
1360
  };
1510
- return Promise.resolve(response);
1361
+ return response;
1511
1362
  };
1512
1363
  exports.de_DescribePublisherCommand = de_DescribePublisherCommand;
1513
1364
  const de_DescribePublisherCommandError = async (output, context) => {
@@ -1522,10 +1373,9 @@ const de_DescribePublisherCommandError = async (output, context) => {
1522
1373
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
1523
1374
  default:
1524
1375
  const parsedBody = parsedOutput.body;
1525
- (0, smithy_client_1.throwDefaultError)({
1376
+ return throwDefaultError({
1526
1377
  output,
1527
1378
  parsedBody: parsedBody.Error,
1528
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1529
1379
  errorCode,
1530
1380
  });
1531
1381
  }
@@ -1541,7 +1391,7 @@ const de_DescribeStackDriftDetectionStatusCommand = async (output, context) => {
1541
1391
  $metadata: deserializeMetadata(output),
1542
1392
  ...contents,
1543
1393
  };
1544
- return Promise.resolve(response);
1394
+ return response;
1545
1395
  };
1546
1396
  exports.de_DescribeStackDriftDetectionStatusCommand = de_DescribeStackDriftDetectionStatusCommand;
1547
1397
  const de_DescribeStackDriftDetectionStatusCommandError = async (output, context) => {
@@ -1551,10 +1401,9 @@ const de_DescribeStackDriftDetectionStatusCommandError = async (output, context)
1551
1401
  };
1552
1402
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1553
1403
  const parsedBody = parsedOutput.body;
1554
- (0, smithy_client_1.throwDefaultError)({
1404
+ return throwDefaultError({
1555
1405
  output,
1556
1406
  parsedBody: parsedBody.Error,
1557
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1558
1407
  errorCode,
1559
1408
  });
1560
1409
  };
@@ -1569,7 +1418,7 @@ const de_DescribeStackEventsCommand = async (output, context) => {
1569
1418
  $metadata: deserializeMetadata(output),
1570
1419
  ...contents,
1571
1420
  };
1572
- return Promise.resolve(response);
1421
+ return response;
1573
1422
  };
1574
1423
  exports.de_DescribeStackEventsCommand = de_DescribeStackEventsCommand;
1575
1424
  const de_DescribeStackEventsCommandError = async (output, context) => {
@@ -1579,10 +1428,9 @@ const de_DescribeStackEventsCommandError = async (output, context) => {
1579
1428
  };
1580
1429
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1581
1430
  const parsedBody = parsedOutput.body;
1582
- (0, smithy_client_1.throwDefaultError)({
1431
+ return throwDefaultError({
1583
1432
  output,
1584
1433
  parsedBody: parsedBody.Error,
1585
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1586
1434
  errorCode,
1587
1435
  });
1588
1436
  };
@@ -1597,7 +1445,7 @@ const de_DescribeStackInstanceCommand = async (output, context) => {
1597
1445
  $metadata: deserializeMetadata(output),
1598
1446
  ...contents,
1599
1447
  };
1600
- return Promise.resolve(response);
1448
+ return response;
1601
1449
  };
1602
1450
  exports.de_DescribeStackInstanceCommand = de_DescribeStackInstanceCommand;
1603
1451
  const de_DescribeStackInstanceCommandError = async (output, context) => {
@@ -1615,10 +1463,9 @@ const de_DescribeStackInstanceCommandError = async (output, context) => {
1615
1463
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
1616
1464
  default:
1617
1465
  const parsedBody = parsedOutput.body;
1618
- (0, smithy_client_1.throwDefaultError)({
1466
+ return throwDefaultError({
1619
1467
  output,
1620
1468
  parsedBody: parsedBody.Error,
1621
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1622
1469
  errorCode,
1623
1470
  });
1624
1471
  }
@@ -1634,7 +1481,7 @@ const de_DescribeStackResourceCommand = async (output, context) => {
1634
1481
  $metadata: deserializeMetadata(output),
1635
1482
  ...contents,
1636
1483
  };
1637
- return Promise.resolve(response);
1484
+ return response;
1638
1485
  };
1639
1486
  exports.de_DescribeStackResourceCommand = de_DescribeStackResourceCommand;
1640
1487
  const de_DescribeStackResourceCommandError = async (output, context) => {
@@ -1644,10 +1491,9 @@ const de_DescribeStackResourceCommandError = async (output, context) => {
1644
1491
  };
1645
1492
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1646
1493
  const parsedBody = parsedOutput.body;
1647
- (0, smithy_client_1.throwDefaultError)({
1494
+ return throwDefaultError({
1648
1495
  output,
1649
1496
  parsedBody: parsedBody.Error,
1650
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1651
1497
  errorCode,
1652
1498
  });
1653
1499
  };
@@ -1662,7 +1508,7 @@ const de_DescribeStackResourceDriftsCommand = async (output, context) => {
1662
1508
  $metadata: deserializeMetadata(output),
1663
1509
  ...contents,
1664
1510
  };
1665
- return Promise.resolve(response);
1511
+ return response;
1666
1512
  };
1667
1513
  exports.de_DescribeStackResourceDriftsCommand = de_DescribeStackResourceDriftsCommand;
1668
1514
  const de_DescribeStackResourceDriftsCommandError = async (output, context) => {
@@ -1672,10 +1518,9 @@ const de_DescribeStackResourceDriftsCommandError = async (output, context) => {
1672
1518
  };
1673
1519
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1674
1520
  const parsedBody = parsedOutput.body;
1675
- (0, smithy_client_1.throwDefaultError)({
1521
+ return throwDefaultError({
1676
1522
  output,
1677
1523
  parsedBody: parsedBody.Error,
1678
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1679
1524
  errorCode,
1680
1525
  });
1681
1526
  };
@@ -1690,7 +1535,7 @@ const de_DescribeStackResourcesCommand = async (output, context) => {
1690
1535
  $metadata: deserializeMetadata(output),
1691
1536
  ...contents,
1692
1537
  };
1693
- return Promise.resolve(response);
1538
+ return response;
1694
1539
  };
1695
1540
  exports.de_DescribeStackResourcesCommand = de_DescribeStackResourcesCommand;
1696
1541
  const de_DescribeStackResourcesCommandError = async (output, context) => {
@@ -1700,10 +1545,9 @@ const de_DescribeStackResourcesCommandError = async (output, context) => {
1700
1545
  };
1701
1546
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1702
1547
  const parsedBody = parsedOutput.body;
1703
- (0, smithy_client_1.throwDefaultError)({
1548
+ return throwDefaultError({
1704
1549
  output,
1705
1550
  parsedBody: parsedBody.Error,
1706
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1707
1551
  errorCode,
1708
1552
  });
1709
1553
  };
@@ -1718,7 +1562,7 @@ const de_DescribeStacksCommand = async (output, context) => {
1718
1562
  $metadata: deserializeMetadata(output),
1719
1563
  ...contents,
1720
1564
  };
1721
- return Promise.resolve(response);
1565
+ return response;
1722
1566
  };
1723
1567
  exports.de_DescribeStacksCommand = de_DescribeStacksCommand;
1724
1568
  const de_DescribeStacksCommandError = async (output, context) => {
@@ -1728,10 +1572,9 @@ const de_DescribeStacksCommandError = async (output, context) => {
1728
1572
  };
1729
1573
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1730
1574
  const parsedBody = parsedOutput.body;
1731
- (0, smithy_client_1.throwDefaultError)({
1575
+ return throwDefaultError({
1732
1576
  output,
1733
1577
  parsedBody: parsedBody.Error,
1734
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1735
1578
  errorCode,
1736
1579
  });
1737
1580
  };
@@ -1746,7 +1589,7 @@ const de_DescribeStackSetCommand = async (output, context) => {
1746
1589
  $metadata: deserializeMetadata(output),
1747
1590
  ...contents,
1748
1591
  };
1749
- return Promise.resolve(response);
1592
+ return response;
1750
1593
  };
1751
1594
  exports.de_DescribeStackSetCommand = de_DescribeStackSetCommand;
1752
1595
  const de_DescribeStackSetCommandError = async (output, context) => {
@@ -1761,10 +1604,9 @@ const de_DescribeStackSetCommandError = async (output, context) => {
1761
1604
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
1762
1605
  default:
1763
1606
  const parsedBody = parsedOutput.body;
1764
- (0, smithy_client_1.throwDefaultError)({
1607
+ return throwDefaultError({
1765
1608
  output,
1766
1609
  parsedBody: parsedBody.Error,
1767
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1768
1610
  errorCode,
1769
1611
  });
1770
1612
  }
@@ -1780,7 +1622,7 @@ const de_DescribeStackSetOperationCommand = async (output, context) => {
1780
1622
  $metadata: deserializeMetadata(output),
1781
1623
  ...contents,
1782
1624
  };
1783
- return Promise.resolve(response);
1625
+ return response;
1784
1626
  };
1785
1627
  exports.de_DescribeStackSetOperationCommand = de_DescribeStackSetOperationCommand;
1786
1628
  const de_DescribeStackSetOperationCommandError = async (output, context) => {
@@ -1798,10 +1640,9 @@ const de_DescribeStackSetOperationCommandError = async (output, context) => {
1798
1640
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
1799
1641
  default:
1800
1642
  const parsedBody = parsedOutput.body;
1801
- (0, smithy_client_1.throwDefaultError)({
1643
+ return throwDefaultError({
1802
1644
  output,
1803
1645
  parsedBody: parsedBody.Error,
1804
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1805
1646
  errorCode,
1806
1647
  });
1807
1648
  }
@@ -1817,7 +1658,7 @@ const de_DescribeTypeCommand = async (output, context) => {
1817
1658
  $metadata: deserializeMetadata(output),
1818
1659
  ...contents,
1819
1660
  };
1820
- return Promise.resolve(response);
1661
+ return response;
1821
1662
  };
1822
1663
  exports.de_DescribeTypeCommand = de_DescribeTypeCommand;
1823
1664
  const de_DescribeTypeCommandError = async (output, context) => {
@@ -1835,10 +1676,9 @@ const de_DescribeTypeCommandError = async (output, context) => {
1835
1676
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
1836
1677
  default:
1837
1678
  const parsedBody = parsedOutput.body;
1838
- (0, smithy_client_1.throwDefaultError)({
1679
+ return throwDefaultError({
1839
1680
  output,
1840
1681
  parsedBody: parsedBody.Error,
1841
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1842
1682
  errorCode,
1843
1683
  });
1844
1684
  }
@@ -1854,7 +1694,7 @@ const de_DescribeTypeRegistrationCommand = async (output, context) => {
1854
1694
  $metadata: deserializeMetadata(output),
1855
1695
  ...contents,
1856
1696
  };
1857
- return Promise.resolve(response);
1697
+ return response;
1858
1698
  };
1859
1699
  exports.de_DescribeTypeRegistrationCommand = de_DescribeTypeRegistrationCommand;
1860
1700
  const de_DescribeTypeRegistrationCommandError = async (output, context) => {
@@ -1869,10 +1709,9 @@ const de_DescribeTypeRegistrationCommandError = async (output, context) => {
1869
1709
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
1870
1710
  default:
1871
1711
  const parsedBody = parsedOutput.body;
1872
- (0, smithy_client_1.throwDefaultError)({
1712
+ return throwDefaultError({
1873
1713
  output,
1874
1714
  parsedBody: parsedBody.Error,
1875
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1876
1715
  errorCode,
1877
1716
  });
1878
1717
  }
@@ -1888,7 +1727,7 @@ const de_DetectStackDriftCommand = async (output, context) => {
1888
1727
  $metadata: deserializeMetadata(output),
1889
1728
  ...contents,
1890
1729
  };
1891
- return Promise.resolve(response);
1730
+ return response;
1892
1731
  };
1893
1732
  exports.de_DetectStackDriftCommand = de_DetectStackDriftCommand;
1894
1733
  const de_DetectStackDriftCommandError = async (output, context) => {
@@ -1898,10 +1737,9 @@ const de_DetectStackDriftCommandError = async (output, context) => {
1898
1737
  };
1899
1738
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1900
1739
  const parsedBody = parsedOutput.body;
1901
- (0, smithy_client_1.throwDefaultError)({
1740
+ return throwDefaultError({
1902
1741
  output,
1903
1742
  parsedBody: parsedBody.Error,
1904
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1905
1743
  errorCode,
1906
1744
  });
1907
1745
  };
@@ -1916,7 +1754,7 @@ const de_DetectStackResourceDriftCommand = async (output, context) => {
1916
1754
  $metadata: deserializeMetadata(output),
1917
1755
  ...contents,
1918
1756
  };
1919
- return Promise.resolve(response);
1757
+ return response;
1920
1758
  };
1921
1759
  exports.de_DetectStackResourceDriftCommand = de_DetectStackResourceDriftCommand;
1922
1760
  const de_DetectStackResourceDriftCommandError = async (output, context) => {
@@ -1926,10 +1764,9 @@ const de_DetectStackResourceDriftCommandError = async (output, context) => {
1926
1764
  };
1927
1765
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1928
1766
  const parsedBody = parsedOutput.body;
1929
- (0, smithy_client_1.throwDefaultError)({
1767
+ return throwDefaultError({
1930
1768
  output,
1931
1769
  parsedBody: parsedBody.Error,
1932
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1933
1770
  errorCode,
1934
1771
  });
1935
1772
  };
@@ -1944,7 +1781,7 @@ const de_DetectStackSetDriftCommand = async (output, context) => {
1944
1781
  $metadata: deserializeMetadata(output),
1945
1782
  ...contents,
1946
1783
  };
1947
- return Promise.resolve(response);
1784
+ return response;
1948
1785
  };
1949
1786
  exports.de_DetectStackSetDriftCommand = de_DetectStackSetDriftCommand;
1950
1787
  const de_DetectStackSetDriftCommandError = async (output, context) => {
@@ -1965,10 +1802,9 @@ const de_DetectStackSetDriftCommandError = async (output, context) => {
1965
1802
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
1966
1803
  default:
1967
1804
  const parsedBody = parsedOutput.body;
1968
- (0, smithy_client_1.throwDefaultError)({
1805
+ return throwDefaultError({
1969
1806
  output,
1970
1807
  parsedBody: parsedBody.Error,
1971
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
1972
1808
  errorCode,
1973
1809
  });
1974
1810
  }
@@ -1984,7 +1820,7 @@ const de_EstimateTemplateCostCommand = async (output, context) => {
1984
1820
  $metadata: deserializeMetadata(output),
1985
1821
  ...contents,
1986
1822
  };
1987
- return Promise.resolve(response);
1823
+ return response;
1988
1824
  };
1989
1825
  exports.de_EstimateTemplateCostCommand = de_EstimateTemplateCostCommand;
1990
1826
  const de_EstimateTemplateCostCommandError = async (output, context) => {
@@ -1994,10 +1830,9 @@ const de_EstimateTemplateCostCommandError = async (output, context) => {
1994
1830
  };
1995
1831
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1996
1832
  const parsedBody = parsedOutput.body;
1997
- (0, smithy_client_1.throwDefaultError)({
1833
+ return throwDefaultError({
1998
1834
  output,
1999
1835
  parsedBody: parsedBody.Error,
2000
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2001
1836
  errorCode,
2002
1837
  });
2003
1838
  };
@@ -2012,7 +1847,7 @@ const de_ExecuteChangeSetCommand = async (output, context) => {
2012
1847
  $metadata: deserializeMetadata(output),
2013
1848
  ...contents,
2014
1849
  };
2015
- return Promise.resolve(response);
1850
+ return response;
2016
1851
  };
2017
1852
  exports.de_ExecuteChangeSetCommand = de_ExecuteChangeSetCommand;
2018
1853
  const de_ExecuteChangeSetCommandError = async (output, context) => {
@@ -2036,10 +1871,9 @@ const de_ExecuteChangeSetCommandError = async (output, context) => {
2036
1871
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
2037
1872
  default:
2038
1873
  const parsedBody = parsedOutput.body;
2039
- (0, smithy_client_1.throwDefaultError)({
1874
+ return throwDefaultError({
2040
1875
  output,
2041
1876
  parsedBody: parsedBody.Error,
2042
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2043
1877
  errorCode,
2044
1878
  });
2045
1879
  }
@@ -2055,7 +1889,7 @@ const de_GetStackPolicyCommand = async (output, context) => {
2055
1889
  $metadata: deserializeMetadata(output),
2056
1890
  ...contents,
2057
1891
  };
2058
- return Promise.resolve(response);
1892
+ return response;
2059
1893
  };
2060
1894
  exports.de_GetStackPolicyCommand = de_GetStackPolicyCommand;
2061
1895
  const de_GetStackPolicyCommandError = async (output, context) => {
@@ -2065,10 +1899,9 @@ const de_GetStackPolicyCommandError = async (output, context) => {
2065
1899
  };
2066
1900
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2067
1901
  const parsedBody = parsedOutput.body;
2068
- (0, smithy_client_1.throwDefaultError)({
1902
+ return throwDefaultError({
2069
1903
  output,
2070
1904
  parsedBody: parsedBody.Error,
2071
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2072
1905
  errorCode,
2073
1906
  });
2074
1907
  };
@@ -2083,7 +1916,7 @@ const de_GetTemplateCommand = async (output, context) => {
2083
1916
  $metadata: deserializeMetadata(output),
2084
1917
  ...contents,
2085
1918
  };
2086
- return Promise.resolve(response);
1919
+ return response;
2087
1920
  };
2088
1921
  exports.de_GetTemplateCommand = de_GetTemplateCommand;
2089
1922
  const de_GetTemplateCommandError = async (output, context) => {
@@ -2098,10 +1931,9 @@ const de_GetTemplateCommandError = async (output, context) => {
2098
1931
  throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
2099
1932
  default:
2100
1933
  const parsedBody = parsedOutput.body;
2101
- (0, smithy_client_1.throwDefaultError)({
1934
+ return throwDefaultError({
2102
1935
  output,
2103
1936
  parsedBody: parsedBody.Error,
2104
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2105
1937
  errorCode,
2106
1938
  });
2107
1939
  }
@@ -2117,7 +1949,7 @@ const de_GetTemplateSummaryCommand = async (output, context) => {
2117
1949
  $metadata: deserializeMetadata(output),
2118
1950
  ...contents,
2119
1951
  };
2120
- return Promise.resolve(response);
1952
+ return response;
2121
1953
  };
2122
1954
  exports.de_GetTemplateSummaryCommand = de_GetTemplateSummaryCommand;
2123
1955
  const de_GetTemplateSummaryCommandError = async (output, context) => {
@@ -2132,10 +1964,9 @@ const de_GetTemplateSummaryCommandError = async (output, context) => {
2132
1964
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
2133
1965
  default:
2134
1966
  const parsedBody = parsedOutput.body;
2135
- (0, smithy_client_1.throwDefaultError)({
1967
+ return throwDefaultError({
2136
1968
  output,
2137
1969
  parsedBody: parsedBody.Error,
2138
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2139
1970
  errorCode,
2140
1971
  });
2141
1972
  }
@@ -2151,7 +1982,7 @@ const de_ImportStacksToStackSetCommand = async (output, context) => {
2151
1982
  $metadata: deserializeMetadata(output),
2152
1983
  ...contents,
2153
1984
  };
2154
- return Promise.resolve(response);
1985
+ return response;
2155
1986
  };
2156
1987
  exports.de_ImportStacksToStackSetCommand = de_ImportStacksToStackSetCommand;
2157
1988
  const de_ImportStacksToStackSetCommandError = async (output, context) => {
@@ -2184,10 +2015,9 @@ const de_ImportStacksToStackSetCommandError = async (output, context) => {
2184
2015
  throw await de_StaleRequestExceptionRes(parsedOutput, context);
2185
2016
  default:
2186
2017
  const parsedBody = parsedOutput.body;
2187
- (0, smithy_client_1.throwDefaultError)({
2018
+ return throwDefaultError({
2188
2019
  output,
2189
2020
  parsedBody: parsedBody.Error,
2190
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2191
2021
  errorCode,
2192
2022
  });
2193
2023
  }
@@ -2203,7 +2033,7 @@ const de_ListChangeSetsCommand = async (output, context) => {
2203
2033
  $metadata: deserializeMetadata(output),
2204
2034
  ...contents,
2205
2035
  };
2206
- return Promise.resolve(response);
2036
+ return response;
2207
2037
  };
2208
2038
  exports.de_ListChangeSetsCommand = de_ListChangeSetsCommand;
2209
2039
  const de_ListChangeSetsCommandError = async (output, context) => {
@@ -2213,10 +2043,9 @@ const de_ListChangeSetsCommandError = async (output, context) => {
2213
2043
  };
2214
2044
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2215
2045
  const parsedBody = parsedOutput.body;
2216
- (0, smithy_client_1.throwDefaultError)({
2046
+ return throwDefaultError({
2217
2047
  output,
2218
2048
  parsedBody: parsedBody.Error,
2219
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2220
2049
  errorCode,
2221
2050
  });
2222
2051
  };
@@ -2231,7 +2060,7 @@ const de_ListExportsCommand = async (output, context) => {
2231
2060
  $metadata: deserializeMetadata(output),
2232
2061
  ...contents,
2233
2062
  };
2234
- return Promise.resolve(response);
2063
+ return response;
2235
2064
  };
2236
2065
  exports.de_ListExportsCommand = de_ListExportsCommand;
2237
2066
  const de_ListExportsCommandError = async (output, context) => {
@@ -2241,10 +2070,9 @@ const de_ListExportsCommandError = async (output, context) => {
2241
2070
  };
2242
2071
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2243
2072
  const parsedBody = parsedOutput.body;
2244
- (0, smithy_client_1.throwDefaultError)({
2073
+ return throwDefaultError({
2245
2074
  output,
2246
2075
  parsedBody: parsedBody.Error,
2247
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2248
2076
  errorCode,
2249
2077
  });
2250
2078
  };
@@ -2259,7 +2087,7 @@ const de_ListImportsCommand = async (output, context) => {
2259
2087
  $metadata: deserializeMetadata(output),
2260
2088
  ...contents,
2261
2089
  };
2262
- return Promise.resolve(response);
2090
+ return response;
2263
2091
  };
2264
2092
  exports.de_ListImportsCommand = de_ListImportsCommand;
2265
2093
  const de_ListImportsCommandError = async (output, context) => {
@@ -2269,10 +2097,9 @@ const de_ListImportsCommandError = async (output, context) => {
2269
2097
  };
2270
2098
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2271
2099
  const parsedBody = parsedOutput.body;
2272
- (0, smithy_client_1.throwDefaultError)({
2100
+ return throwDefaultError({
2273
2101
  output,
2274
2102
  parsedBody: parsedBody.Error,
2275
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2276
2103
  errorCode,
2277
2104
  });
2278
2105
  };
@@ -2287,7 +2114,7 @@ const de_ListStackInstancesCommand = async (output, context) => {
2287
2114
  $metadata: deserializeMetadata(output),
2288
2115
  ...contents,
2289
2116
  };
2290
- return Promise.resolve(response);
2117
+ return response;
2291
2118
  };
2292
2119
  exports.de_ListStackInstancesCommand = de_ListStackInstancesCommand;
2293
2120
  const de_ListStackInstancesCommandError = async (output, context) => {
@@ -2302,10 +2129,9 @@ const de_ListStackInstancesCommandError = async (output, context) => {
2302
2129
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
2303
2130
  default:
2304
2131
  const parsedBody = parsedOutput.body;
2305
- (0, smithy_client_1.throwDefaultError)({
2132
+ return throwDefaultError({
2306
2133
  output,
2307
2134
  parsedBody: parsedBody.Error,
2308
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2309
2135
  errorCode,
2310
2136
  });
2311
2137
  }
@@ -2321,7 +2147,7 @@ const de_ListStackResourcesCommand = async (output, context) => {
2321
2147
  $metadata: deserializeMetadata(output),
2322
2148
  ...contents,
2323
2149
  };
2324
- return Promise.resolve(response);
2150
+ return response;
2325
2151
  };
2326
2152
  exports.de_ListStackResourcesCommand = de_ListStackResourcesCommand;
2327
2153
  const de_ListStackResourcesCommandError = async (output, context) => {
@@ -2331,10 +2157,9 @@ const de_ListStackResourcesCommandError = async (output, context) => {
2331
2157
  };
2332
2158
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2333
2159
  const parsedBody = parsedOutput.body;
2334
- (0, smithy_client_1.throwDefaultError)({
2160
+ return throwDefaultError({
2335
2161
  output,
2336
2162
  parsedBody: parsedBody.Error,
2337
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2338
2163
  errorCode,
2339
2164
  });
2340
2165
  };
@@ -2349,7 +2174,7 @@ const de_ListStacksCommand = async (output, context) => {
2349
2174
  $metadata: deserializeMetadata(output),
2350
2175
  ...contents,
2351
2176
  };
2352
- return Promise.resolve(response);
2177
+ return response;
2353
2178
  };
2354
2179
  exports.de_ListStacksCommand = de_ListStacksCommand;
2355
2180
  const de_ListStacksCommandError = async (output, context) => {
@@ -2359,10 +2184,9 @@ const de_ListStacksCommandError = async (output, context) => {
2359
2184
  };
2360
2185
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2361
2186
  const parsedBody = parsedOutput.body;
2362
- (0, smithy_client_1.throwDefaultError)({
2187
+ return throwDefaultError({
2363
2188
  output,
2364
2189
  parsedBody: parsedBody.Error,
2365
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2366
2190
  errorCode,
2367
2191
  });
2368
2192
  };
@@ -2377,7 +2201,7 @@ const de_ListStackSetOperationResultsCommand = async (output, context) => {
2377
2201
  $metadata: deserializeMetadata(output),
2378
2202
  ...contents,
2379
2203
  };
2380
- return Promise.resolve(response);
2204
+ return response;
2381
2205
  };
2382
2206
  exports.de_ListStackSetOperationResultsCommand = de_ListStackSetOperationResultsCommand;
2383
2207
  const de_ListStackSetOperationResultsCommandError = async (output, context) => {
@@ -2395,10 +2219,9 @@ const de_ListStackSetOperationResultsCommandError = async (output, context) => {
2395
2219
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
2396
2220
  default:
2397
2221
  const parsedBody = parsedOutput.body;
2398
- (0, smithy_client_1.throwDefaultError)({
2222
+ return throwDefaultError({
2399
2223
  output,
2400
2224
  parsedBody: parsedBody.Error,
2401
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2402
2225
  errorCode,
2403
2226
  });
2404
2227
  }
@@ -2414,7 +2237,7 @@ const de_ListStackSetOperationsCommand = async (output, context) => {
2414
2237
  $metadata: deserializeMetadata(output),
2415
2238
  ...contents,
2416
2239
  };
2417
- return Promise.resolve(response);
2240
+ return response;
2418
2241
  };
2419
2242
  exports.de_ListStackSetOperationsCommand = de_ListStackSetOperationsCommand;
2420
2243
  const de_ListStackSetOperationsCommandError = async (output, context) => {
@@ -2429,10 +2252,9 @@ const de_ListStackSetOperationsCommandError = async (output, context) => {
2429
2252
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
2430
2253
  default:
2431
2254
  const parsedBody = parsedOutput.body;
2432
- (0, smithy_client_1.throwDefaultError)({
2255
+ return throwDefaultError({
2433
2256
  output,
2434
2257
  parsedBody: parsedBody.Error,
2435
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2436
2258
  errorCode,
2437
2259
  });
2438
2260
  }
@@ -2448,7 +2270,7 @@ const de_ListStackSetsCommand = async (output, context) => {
2448
2270
  $metadata: deserializeMetadata(output),
2449
2271
  ...contents,
2450
2272
  };
2451
- return Promise.resolve(response);
2273
+ return response;
2452
2274
  };
2453
2275
  exports.de_ListStackSetsCommand = de_ListStackSetsCommand;
2454
2276
  const de_ListStackSetsCommandError = async (output, context) => {
@@ -2458,10 +2280,9 @@ const de_ListStackSetsCommandError = async (output, context) => {
2458
2280
  };
2459
2281
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2460
2282
  const parsedBody = parsedOutput.body;
2461
- (0, smithy_client_1.throwDefaultError)({
2283
+ return throwDefaultError({
2462
2284
  output,
2463
2285
  parsedBody: parsedBody.Error,
2464
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2465
2286
  errorCode,
2466
2287
  });
2467
2288
  };
@@ -2476,7 +2297,7 @@ const de_ListTypeRegistrationsCommand = async (output, context) => {
2476
2297
  $metadata: deserializeMetadata(output),
2477
2298
  ...contents,
2478
2299
  };
2479
- return Promise.resolve(response);
2300
+ return response;
2480
2301
  };
2481
2302
  exports.de_ListTypeRegistrationsCommand = de_ListTypeRegistrationsCommand;
2482
2303
  const de_ListTypeRegistrationsCommandError = async (output, context) => {
@@ -2491,10 +2312,9 @@ const de_ListTypeRegistrationsCommandError = async (output, context) => {
2491
2312
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
2492
2313
  default:
2493
2314
  const parsedBody = parsedOutput.body;
2494
- (0, smithy_client_1.throwDefaultError)({
2315
+ return throwDefaultError({
2495
2316
  output,
2496
2317
  parsedBody: parsedBody.Error,
2497
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2498
2318
  errorCode,
2499
2319
  });
2500
2320
  }
@@ -2510,7 +2330,7 @@ const de_ListTypesCommand = async (output, context) => {
2510
2330
  $metadata: deserializeMetadata(output),
2511
2331
  ...contents,
2512
2332
  };
2513
- return Promise.resolve(response);
2333
+ return response;
2514
2334
  };
2515
2335
  exports.de_ListTypesCommand = de_ListTypesCommand;
2516
2336
  const de_ListTypesCommandError = async (output, context) => {
@@ -2525,10 +2345,9 @@ const de_ListTypesCommandError = async (output, context) => {
2525
2345
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
2526
2346
  default:
2527
2347
  const parsedBody = parsedOutput.body;
2528
- (0, smithy_client_1.throwDefaultError)({
2348
+ return throwDefaultError({
2529
2349
  output,
2530
2350
  parsedBody: parsedBody.Error,
2531
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2532
2351
  errorCode,
2533
2352
  });
2534
2353
  }
@@ -2544,7 +2363,7 @@ const de_ListTypeVersionsCommand = async (output, context) => {
2544
2363
  $metadata: deserializeMetadata(output),
2545
2364
  ...contents,
2546
2365
  };
2547
- return Promise.resolve(response);
2366
+ return response;
2548
2367
  };
2549
2368
  exports.de_ListTypeVersionsCommand = de_ListTypeVersionsCommand;
2550
2369
  const de_ListTypeVersionsCommandError = async (output, context) => {
@@ -2559,10 +2378,9 @@ const de_ListTypeVersionsCommandError = async (output, context) => {
2559
2378
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
2560
2379
  default:
2561
2380
  const parsedBody = parsedOutput.body;
2562
- (0, smithy_client_1.throwDefaultError)({
2381
+ return throwDefaultError({
2563
2382
  output,
2564
2383
  parsedBody: parsedBody.Error,
2565
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2566
2384
  errorCode,
2567
2385
  });
2568
2386
  }
@@ -2578,7 +2396,7 @@ const de_PublishTypeCommand = async (output, context) => {
2578
2396
  $metadata: deserializeMetadata(output),
2579
2397
  ...contents,
2580
2398
  };
2581
- return Promise.resolve(response);
2399
+ return response;
2582
2400
  };
2583
2401
  exports.de_PublishTypeCommand = de_PublishTypeCommand;
2584
2402
  const de_PublishTypeCommandError = async (output, context) => {
@@ -2596,10 +2414,9 @@ const de_PublishTypeCommandError = async (output, context) => {
2596
2414
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
2597
2415
  default:
2598
2416
  const parsedBody = parsedOutput.body;
2599
- (0, smithy_client_1.throwDefaultError)({
2417
+ return throwDefaultError({
2600
2418
  output,
2601
2419
  parsedBody: parsedBody.Error,
2602
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2603
2420
  errorCode,
2604
2421
  });
2605
2422
  }
@@ -2615,7 +2432,7 @@ const de_RecordHandlerProgressCommand = async (output, context) => {
2615
2432
  $metadata: deserializeMetadata(output),
2616
2433
  ...contents,
2617
2434
  };
2618
- return Promise.resolve(response);
2435
+ return response;
2619
2436
  };
2620
2437
  exports.de_RecordHandlerProgressCommand = de_RecordHandlerProgressCommand;
2621
2438
  const de_RecordHandlerProgressCommandError = async (output, context) => {
@@ -2633,10 +2450,9 @@ const de_RecordHandlerProgressCommandError = async (output, context) => {
2633
2450
  throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
2634
2451
  default:
2635
2452
  const parsedBody = parsedOutput.body;
2636
- (0, smithy_client_1.throwDefaultError)({
2453
+ return throwDefaultError({
2637
2454
  output,
2638
2455
  parsedBody: parsedBody.Error,
2639
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2640
2456
  errorCode,
2641
2457
  });
2642
2458
  }
@@ -2652,7 +2468,7 @@ const de_RegisterPublisherCommand = async (output, context) => {
2652
2468
  $metadata: deserializeMetadata(output),
2653
2469
  ...contents,
2654
2470
  };
2655
- return Promise.resolve(response);
2471
+ return response;
2656
2472
  };
2657
2473
  exports.de_RegisterPublisherCommand = de_RegisterPublisherCommand;
2658
2474
  const de_RegisterPublisherCommandError = async (output, context) => {
@@ -2667,10 +2483,9 @@ const de_RegisterPublisherCommandError = async (output, context) => {
2667
2483
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
2668
2484
  default:
2669
2485
  const parsedBody = parsedOutput.body;
2670
- (0, smithy_client_1.throwDefaultError)({
2486
+ return throwDefaultError({
2671
2487
  output,
2672
2488
  parsedBody: parsedBody.Error,
2673
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2674
2489
  errorCode,
2675
2490
  });
2676
2491
  }
@@ -2686,7 +2501,7 @@ const de_RegisterTypeCommand = async (output, context) => {
2686
2501
  $metadata: deserializeMetadata(output),
2687
2502
  ...contents,
2688
2503
  };
2689
- return Promise.resolve(response);
2504
+ return response;
2690
2505
  };
2691
2506
  exports.de_RegisterTypeCommand = de_RegisterTypeCommand;
2692
2507
  const de_RegisterTypeCommandError = async (output, context) => {
@@ -2701,10 +2516,9 @@ const de_RegisterTypeCommandError = async (output, context) => {
2701
2516
  throw await de_CFNRegistryExceptionRes(parsedOutput, context);
2702
2517
  default:
2703
2518
  const parsedBody = parsedOutput.body;
2704
- (0, smithy_client_1.throwDefaultError)({
2519
+ return throwDefaultError({
2705
2520
  output,
2706
2521
  parsedBody: parsedBody.Error,
2707
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2708
2522
  errorCode,
2709
2523
  });
2710
2524
  }
@@ -2720,7 +2534,7 @@ const de_RollbackStackCommand = async (output, context) => {
2720
2534
  $metadata: deserializeMetadata(output),
2721
2535
  ...contents,
2722
2536
  };
2723
- return Promise.resolve(response);
2537
+ return response;
2724
2538
  };
2725
2539
  exports.de_RollbackStackCommand = de_RollbackStackCommand;
2726
2540
  const de_RollbackStackCommandError = async (output, context) => {
@@ -2735,10 +2549,9 @@ const de_RollbackStackCommandError = async (output, context) => {
2735
2549
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
2736
2550
  default:
2737
2551
  const parsedBody = parsedOutput.body;
2738
- (0, smithy_client_1.throwDefaultError)({
2552
+ return throwDefaultError({
2739
2553
  output,
2740
2554
  parsedBody: parsedBody.Error,
2741
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2742
2555
  errorCode,
2743
2556
  });
2744
2557
  }
@@ -2751,7 +2564,7 @@ const de_SetStackPolicyCommand = async (output, context) => {
2751
2564
  const response = {
2752
2565
  $metadata: deserializeMetadata(output),
2753
2566
  };
2754
- return Promise.resolve(response);
2567
+ return response;
2755
2568
  };
2756
2569
  exports.de_SetStackPolicyCommand = de_SetStackPolicyCommand;
2757
2570
  const de_SetStackPolicyCommandError = async (output, context) => {
@@ -2761,10 +2574,9 @@ const de_SetStackPolicyCommandError = async (output, context) => {
2761
2574
  };
2762
2575
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2763
2576
  const parsedBody = parsedOutput.body;
2764
- (0, smithy_client_1.throwDefaultError)({
2577
+ return throwDefaultError({
2765
2578
  output,
2766
2579
  parsedBody: parsedBody.Error,
2767
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2768
2580
  errorCode,
2769
2581
  });
2770
2582
  };
@@ -2779,7 +2591,7 @@ const de_SetTypeConfigurationCommand = async (output, context) => {
2779
2591
  $metadata: deserializeMetadata(output),
2780
2592
  ...contents,
2781
2593
  };
2782
- return Promise.resolve(response);
2594
+ return response;
2783
2595
  };
2784
2596
  exports.de_SetTypeConfigurationCommand = de_SetTypeConfigurationCommand;
2785
2597
  const de_SetTypeConfigurationCommandError = async (output, context) => {
@@ -2797,10 +2609,9 @@ const de_SetTypeConfigurationCommandError = async (output, context) => {
2797
2609
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
2798
2610
  default:
2799
2611
  const parsedBody = parsedOutput.body;
2800
- (0, smithy_client_1.throwDefaultError)({
2612
+ return throwDefaultError({
2801
2613
  output,
2802
2614
  parsedBody: parsedBody.Error,
2803
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2804
2615
  errorCode,
2805
2616
  });
2806
2617
  }
@@ -2816,7 +2627,7 @@ const de_SetTypeDefaultVersionCommand = async (output, context) => {
2816
2627
  $metadata: deserializeMetadata(output),
2817
2628
  ...contents,
2818
2629
  };
2819
- return Promise.resolve(response);
2630
+ return response;
2820
2631
  };
2821
2632
  exports.de_SetTypeDefaultVersionCommand = de_SetTypeDefaultVersionCommand;
2822
2633
  const de_SetTypeDefaultVersionCommandError = async (output, context) => {
@@ -2834,10 +2645,9 @@ const de_SetTypeDefaultVersionCommandError = async (output, context) => {
2834
2645
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
2835
2646
  default:
2836
2647
  const parsedBody = parsedOutput.body;
2837
- (0, smithy_client_1.throwDefaultError)({
2648
+ return throwDefaultError({
2838
2649
  output,
2839
2650
  parsedBody: parsedBody.Error,
2840
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2841
2651
  errorCode,
2842
2652
  });
2843
2653
  }
@@ -2850,7 +2660,7 @@ const de_SignalResourceCommand = async (output, context) => {
2850
2660
  const response = {
2851
2661
  $metadata: deserializeMetadata(output),
2852
2662
  };
2853
- return Promise.resolve(response);
2663
+ return response;
2854
2664
  };
2855
2665
  exports.de_SignalResourceCommand = de_SignalResourceCommand;
2856
2666
  const de_SignalResourceCommandError = async (output, context) => {
@@ -2860,10 +2670,9 @@ const de_SignalResourceCommandError = async (output, context) => {
2860
2670
  };
2861
2671
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2862
2672
  const parsedBody = parsedOutput.body;
2863
- (0, smithy_client_1.throwDefaultError)({
2673
+ return throwDefaultError({
2864
2674
  output,
2865
2675
  parsedBody: parsedBody.Error,
2866
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2867
2676
  errorCode,
2868
2677
  });
2869
2678
  };
@@ -2878,7 +2687,7 @@ const de_StopStackSetOperationCommand = async (output, context) => {
2878
2687
  $metadata: deserializeMetadata(output),
2879
2688
  ...contents,
2880
2689
  };
2881
- return Promise.resolve(response);
2690
+ return response;
2882
2691
  };
2883
2692
  exports.de_StopStackSetOperationCommand = de_StopStackSetOperationCommand;
2884
2693
  const de_StopStackSetOperationCommandError = async (output, context) => {
@@ -2899,10 +2708,9 @@ const de_StopStackSetOperationCommandError = async (output, context) => {
2899
2708
  throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
2900
2709
  default:
2901
2710
  const parsedBody = parsedOutput.body;
2902
- (0, smithy_client_1.throwDefaultError)({
2711
+ return throwDefaultError({
2903
2712
  output,
2904
2713
  parsedBody: parsedBody.Error,
2905
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2906
2714
  errorCode,
2907
2715
  });
2908
2716
  }
@@ -2918,7 +2726,7 @@ const de_TestTypeCommand = async (output, context) => {
2918
2726
  $metadata: deserializeMetadata(output),
2919
2727
  ...contents,
2920
2728
  };
2921
- return Promise.resolve(response);
2729
+ return response;
2922
2730
  };
2923
2731
  exports.de_TestTypeCommand = de_TestTypeCommand;
2924
2732
  const de_TestTypeCommandError = async (output, context) => {
@@ -2936,10 +2744,9 @@ const de_TestTypeCommandError = async (output, context) => {
2936
2744
  throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
2937
2745
  default:
2938
2746
  const parsedBody = parsedOutput.body;
2939
- (0, smithy_client_1.throwDefaultError)({
2747
+ return throwDefaultError({
2940
2748
  output,
2941
2749
  parsedBody: parsedBody.Error,
2942
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2943
2750
  errorCode,
2944
2751
  });
2945
2752
  }
@@ -2955,7 +2762,7 @@ const de_UpdateStackCommand = async (output, context) => {
2955
2762
  $metadata: deserializeMetadata(output),
2956
2763
  ...contents,
2957
2764
  };
2958
- return Promise.resolve(response);
2765
+ return response;
2959
2766
  };
2960
2767
  exports.de_UpdateStackCommand = de_UpdateStackCommand;
2961
2768
  const de_UpdateStackCommandError = async (output, context) => {
@@ -2973,10 +2780,9 @@ const de_UpdateStackCommandError = async (output, context) => {
2973
2780
  throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
2974
2781
  default:
2975
2782
  const parsedBody = parsedOutput.body;
2976
- (0, smithy_client_1.throwDefaultError)({
2783
+ return throwDefaultError({
2977
2784
  output,
2978
2785
  parsedBody: parsedBody.Error,
2979
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
2980
2786
  errorCode,
2981
2787
  });
2982
2788
  }
@@ -2992,7 +2798,7 @@ const de_UpdateStackInstancesCommand = async (output, context) => {
2992
2798
  $metadata: deserializeMetadata(output),
2993
2799
  ...contents,
2994
2800
  };
2995
- return Promise.resolve(response);
2801
+ return response;
2996
2802
  };
2997
2803
  exports.de_UpdateStackInstancesCommand = de_UpdateStackInstancesCommand;
2998
2804
  const de_UpdateStackInstancesCommandError = async (output, context) => {
@@ -3022,10 +2828,9 @@ const de_UpdateStackInstancesCommandError = async (output, context) => {
3022
2828
  throw await de_StaleRequestExceptionRes(parsedOutput, context);
3023
2829
  default:
3024
2830
  const parsedBody = parsedOutput.body;
3025
- (0, smithy_client_1.throwDefaultError)({
2831
+ return throwDefaultError({
3026
2832
  output,
3027
2833
  parsedBody: parsedBody.Error,
3028
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
3029
2834
  errorCode,
3030
2835
  });
3031
2836
  }
@@ -3041,7 +2846,7 @@ const de_UpdateStackSetCommand = async (output, context) => {
3041
2846
  $metadata: deserializeMetadata(output),
3042
2847
  ...contents,
3043
2848
  };
3044
- return Promise.resolve(response);
2849
+ return response;
3045
2850
  };
3046
2851
  exports.de_UpdateStackSetCommand = de_UpdateStackSetCommand;
3047
2852
  const de_UpdateStackSetCommandError = async (output, context) => {
@@ -3071,10 +2876,9 @@ const de_UpdateStackSetCommandError = async (output, context) => {
3071
2876
  throw await de_StaleRequestExceptionRes(parsedOutput, context);
3072
2877
  default:
3073
2878
  const parsedBody = parsedOutput.body;
3074
- (0, smithy_client_1.throwDefaultError)({
2879
+ return throwDefaultError({
3075
2880
  output,
3076
2881
  parsedBody: parsedBody.Error,
3077
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
3078
2882
  errorCode,
3079
2883
  });
3080
2884
  }
@@ -3090,7 +2894,7 @@ const de_UpdateTerminationProtectionCommand = async (output, context) => {
3090
2894
  $metadata: deserializeMetadata(output),
3091
2895
  ...contents,
3092
2896
  };
3093
- return Promise.resolve(response);
2897
+ return response;
3094
2898
  };
3095
2899
  exports.de_UpdateTerminationProtectionCommand = de_UpdateTerminationProtectionCommand;
3096
2900
  const de_UpdateTerminationProtectionCommandError = async (output, context) => {
@@ -3100,10 +2904,9 @@ const de_UpdateTerminationProtectionCommandError = async (output, context) => {
3100
2904
  };
3101
2905
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3102
2906
  const parsedBody = parsedOutput.body;
3103
- (0, smithy_client_1.throwDefaultError)({
2907
+ return throwDefaultError({
3104
2908
  output,
3105
2909
  parsedBody: parsedBody.Error,
3106
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
3107
2910
  errorCode,
3108
2911
  });
3109
2912
  };
@@ -3118,7 +2921,7 @@ const de_ValidateTemplateCommand = async (output, context) => {
3118
2921
  $metadata: deserializeMetadata(output),
3119
2922
  ...contents,
3120
2923
  };
3121
- return Promise.resolve(response);
2924
+ return response;
3122
2925
  };
3123
2926
  exports.de_ValidateTemplateCommand = de_ValidateTemplateCommand;
3124
2927
  const de_ValidateTemplateCommandError = async (output, context) => {
@@ -3128,10 +2931,9 @@ const de_ValidateTemplateCommandError = async (output, context) => {
3128
2931
  };
3129
2932
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3130
2933
  const parsedBody = parsedOutput.body;
3131
- (0, smithy_client_1.throwDefaultError)({
2934
+ return throwDefaultError({
3132
2935
  output,
3133
2936
  parsedBody: parsedBody.Error,
3134
- exceptionCtor: CloudFormationServiceException_1.CloudFormationServiceException,
3135
2937
  errorCode,
3136
2938
  });
3137
2939
  };
@@ -7960,6 +7762,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
7960
7762
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
7961
7763
  };
7962
7764
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
7765
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(CloudFormationServiceException_1.CloudFormationServiceException);
7963
7766
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
7964
7767
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7965
7768
  const contents = {
@@ -7978,6 +7781,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
7978
7781
  }
7979
7782
  return new protocol_http_1.HttpRequest(contents);
7980
7783
  };
7784
+ const SHARED_HEADERS = {
7785
+ "content-type": "application/x-www-form-urlencoded",
7786
+ };
7981
7787
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
7982
7788
  if (encoded.length) {
7983
7789
  const parser = new fast_xml_parser_1.XMLParser({