@aws-sdk/client-auto-scaling 3.310.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,10 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { AutoScalingServiceException as __BaseException } from "../models/AutoScalingServiceException";
5
5
  import { ActiveInstanceRefreshNotFoundFault, AlreadyExistsFault, InstanceRefreshInProgressFault, InvalidNextToken, IrreversibleInstanceRefreshFault, LimitExceededFault, ResourceContentionFault, ResourceInUseFault, ScalingActivityInProgressFault, ServiceLinkedRoleFailure, } from "../models/models_0";
6
6
  export const se_AttachInstancesCommand = async (input, context) => {
7
- const headers = {
8
- "content-type": "application/x-www-form-urlencoded",
9
- };
7
+ const headers = SHARED_HEADERS;
10
8
  let body;
11
9
  body = buildFormUrlencodedString({
12
10
  ...se_AttachInstancesQuery(input, context),
@@ -16,9 +14,7 @@ export const se_AttachInstancesCommand = async (input, context) => {
16
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
15
  };
18
16
  export const se_AttachLoadBalancersCommand = async (input, context) => {
19
- const headers = {
20
- "content-type": "application/x-www-form-urlencoded",
21
- };
17
+ const headers = SHARED_HEADERS;
22
18
  let body;
23
19
  body = buildFormUrlencodedString({
24
20
  ...se_AttachLoadBalancersType(input, context),
@@ -28,9 +24,7 @@ export const se_AttachLoadBalancersCommand = async (input, context) => {
28
24
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
25
  };
30
26
  export const se_AttachLoadBalancerTargetGroupsCommand = async (input, context) => {
31
- const headers = {
32
- "content-type": "application/x-www-form-urlencoded",
33
- };
27
+ const headers = SHARED_HEADERS;
34
28
  let body;
35
29
  body = buildFormUrlencodedString({
36
30
  ...se_AttachLoadBalancerTargetGroupsType(input, context),
@@ -40,9 +34,7 @@ export const se_AttachLoadBalancerTargetGroupsCommand = async (input, context) =
40
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
35
  };
42
36
  export const se_AttachTrafficSourcesCommand = async (input, context) => {
43
- const headers = {
44
- "content-type": "application/x-www-form-urlencoded",
45
- };
37
+ const headers = SHARED_HEADERS;
46
38
  let body;
47
39
  body = buildFormUrlencodedString({
48
40
  ...se_AttachTrafficSourcesType(input, context),
@@ -52,9 +44,7 @@ export const se_AttachTrafficSourcesCommand = async (input, context) => {
52
44
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
45
  };
54
46
  export const se_BatchDeleteScheduledActionCommand = async (input, context) => {
55
- const headers = {
56
- "content-type": "application/x-www-form-urlencoded",
57
- };
47
+ const headers = SHARED_HEADERS;
58
48
  let body;
59
49
  body = buildFormUrlencodedString({
60
50
  ...se_BatchDeleteScheduledActionType(input, context),
@@ -64,9 +54,7 @@ export const se_BatchDeleteScheduledActionCommand = async (input, context) => {
64
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
55
  };
66
56
  export const se_BatchPutScheduledUpdateGroupActionCommand = async (input, context) => {
67
- const headers = {
68
- "content-type": "application/x-www-form-urlencoded",
69
- };
57
+ const headers = SHARED_HEADERS;
70
58
  let body;
71
59
  body = buildFormUrlencodedString({
72
60
  ...se_BatchPutScheduledUpdateGroupActionType(input, context),
@@ -76,9 +64,7 @@ export const se_BatchPutScheduledUpdateGroupActionCommand = async (input, contex
76
64
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
65
  };
78
66
  export const se_CancelInstanceRefreshCommand = async (input, context) => {
79
- const headers = {
80
- "content-type": "application/x-www-form-urlencoded",
81
- };
67
+ const headers = SHARED_HEADERS;
82
68
  let body;
83
69
  body = buildFormUrlencodedString({
84
70
  ...se_CancelInstanceRefreshType(input, context),
@@ -88,9 +74,7 @@ export const se_CancelInstanceRefreshCommand = async (input, context) => {
88
74
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
75
  };
90
76
  export const se_CompleteLifecycleActionCommand = async (input, context) => {
91
- const headers = {
92
- "content-type": "application/x-www-form-urlencoded",
93
- };
77
+ const headers = SHARED_HEADERS;
94
78
  let body;
95
79
  body = buildFormUrlencodedString({
96
80
  ...se_CompleteLifecycleActionType(input, context),
@@ -100,9 +84,7 @@ export const se_CompleteLifecycleActionCommand = async (input, context) => {
100
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
85
  };
102
86
  export const se_CreateAutoScalingGroupCommand = async (input, context) => {
103
- const headers = {
104
- "content-type": "application/x-www-form-urlencoded",
105
- };
87
+ const headers = SHARED_HEADERS;
106
88
  let body;
107
89
  body = buildFormUrlencodedString({
108
90
  ...se_CreateAutoScalingGroupType(input, context),
@@ -112,9 +94,7 @@ export const se_CreateAutoScalingGroupCommand = async (input, context) => {
112
94
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
95
  };
114
96
  export const se_CreateLaunchConfigurationCommand = async (input, context) => {
115
- const headers = {
116
- "content-type": "application/x-www-form-urlencoded",
117
- };
97
+ const headers = SHARED_HEADERS;
118
98
  let body;
119
99
  body = buildFormUrlencodedString({
120
100
  ...se_CreateLaunchConfigurationType(input, context),
@@ -124,9 +104,7 @@ export const se_CreateLaunchConfigurationCommand = async (input, context) => {
124
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
105
  };
126
106
  export const se_CreateOrUpdateTagsCommand = async (input, context) => {
127
- const headers = {
128
- "content-type": "application/x-www-form-urlencoded",
129
- };
107
+ const headers = SHARED_HEADERS;
130
108
  let body;
131
109
  body = buildFormUrlencodedString({
132
110
  ...se_CreateOrUpdateTagsType(input, context),
@@ -136,9 +114,7 @@ export const se_CreateOrUpdateTagsCommand = async (input, context) => {
136
114
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
115
  };
138
116
  export const se_DeleteAutoScalingGroupCommand = async (input, context) => {
139
- const headers = {
140
- "content-type": "application/x-www-form-urlencoded",
141
- };
117
+ const headers = SHARED_HEADERS;
142
118
  let body;
143
119
  body = buildFormUrlencodedString({
144
120
  ...se_DeleteAutoScalingGroupType(input, context),
@@ -148,9 +124,7 @@ export const se_DeleteAutoScalingGroupCommand = async (input, context) => {
148
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
125
  };
150
126
  export const se_DeleteLaunchConfigurationCommand = async (input, context) => {
151
- const headers = {
152
- "content-type": "application/x-www-form-urlencoded",
153
- };
127
+ const headers = SHARED_HEADERS;
154
128
  let body;
155
129
  body = buildFormUrlencodedString({
156
130
  ...se_LaunchConfigurationNameType(input, context),
@@ -160,9 +134,7 @@ export const se_DeleteLaunchConfigurationCommand = async (input, context) => {
160
134
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
135
  };
162
136
  export const se_DeleteLifecycleHookCommand = async (input, context) => {
163
- const headers = {
164
- "content-type": "application/x-www-form-urlencoded",
165
- };
137
+ const headers = SHARED_HEADERS;
166
138
  let body;
167
139
  body = buildFormUrlencodedString({
168
140
  ...se_DeleteLifecycleHookType(input, context),
@@ -172,9 +144,7 @@ export const se_DeleteLifecycleHookCommand = async (input, context) => {
172
144
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
145
  };
174
146
  export const se_DeleteNotificationConfigurationCommand = async (input, context) => {
175
- const headers = {
176
- "content-type": "application/x-www-form-urlencoded",
177
- };
147
+ const headers = SHARED_HEADERS;
178
148
  let body;
179
149
  body = buildFormUrlencodedString({
180
150
  ...se_DeleteNotificationConfigurationType(input, context),
@@ -184,9 +154,7 @@ export const se_DeleteNotificationConfigurationCommand = async (input, context)
184
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
155
  };
186
156
  export const se_DeletePolicyCommand = async (input, context) => {
187
- const headers = {
188
- "content-type": "application/x-www-form-urlencoded",
189
- };
157
+ const headers = SHARED_HEADERS;
190
158
  let body;
191
159
  body = buildFormUrlencodedString({
192
160
  ...se_DeletePolicyType(input, context),
@@ -196,9 +164,7 @@ export const se_DeletePolicyCommand = async (input, context) => {
196
164
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
165
  };
198
166
  export const se_DeleteScheduledActionCommand = async (input, context) => {
199
- const headers = {
200
- "content-type": "application/x-www-form-urlencoded",
201
- };
167
+ const headers = SHARED_HEADERS;
202
168
  let body;
203
169
  body = buildFormUrlencodedString({
204
170
  ...se_DeleteScheduledActionType(input, context),
@@ -208,9 +174,7 @@ export const se_DeleteScheduledActionCommand = async (input, context) => {
208
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
175
  };
210
176
  export const se_DeleteTagsCommand = async (input, context) => {
211
- const headers = {
212
- "content-type": "application/x-www-form-urlencoded",
213
- };
177
+ const headers = SHARED_HEADERS;
214
178
  let body;
215
179
  body = buildFormUrlencodedString({
216
180
  ...se_DeleteTagsType(input, context),
@@ -220,9 +184,7 @@ export const se_DeleteTagsCommand = async (input, context) => {
220
184
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
185
  };
222
186
  export const se_DeleteWarmPoolCommand = async (input, context) => {
223
- const headers = {
224
- "content-type": "application/x-www-form-urlencoded",
225
- };
187
+ const headers = SHARED_HEADERS;
226
188
  let body;
227
189
  body = buildFormUrlencodedString({
228
190
  ...se_DeleteWarmPoolType(input, context),
@@ -232,9 +194,7 @@ export const se_DeleteWarmPoolCommand = async (input, context) => {
232
194
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
195
  };
234
196
  export const se_DescribeAccountLimitsCommand = async (input, context) => {
235
- const headers = {
236
- "content-type": "application/x-www-form-urlencoded",
237
- };
197
+ const headers = SHARED_HEADERS;
238
198
  const body = buildFormUrlencodedString({
239
199
  Action: "DescribeAccountLimits",
240
200
  Version: "2011-01-01",
@@ -242,9 +202,7 @@ export const se_DescribeAccountLimitsCommand = async (input, context) => {
242
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
243
203
  };
244
204
  export const se_DescribeAdjustmentTypesCommand = async (input, context) => {
245
- const headers = {
246
- "content-type": "application/x-www-form-urlencoded",
247
- };
205
+ const headers = SHARED_HEADERS;
248
206
  const body = buildFormUrlencodedString({
249
207
  Action: "DescribeAdjustmentTypes",
250
208
  Version: "2011-01-01",
@@ -252,9 +210,7 @@ export const se_DescribeAdjustmentTypesCommand = async (input, context) => {
252
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
211
  };
254
212
  export const se_DescribeAutoScalingGroupsCommand = async (input, context) => {
255
- const headers = {
256
- "content-type": "application/x-www-form-urlencoded",
257
- };
213
+ const headers = SHARED_HEADERS;
258
214
  let body;
259
215
  body = buildFormUrlencodedString({
260
216
  ...se_AutoScalingGroupNamesType(input, context),
@@ -264,9 +220,7 @@ export const se_DescribeAutoScalingGroupsCommand = async (input, context) => {
264
220
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
221
  };
266
222
  export const se_DescribeAutoScalingInstancesCommand = async (input, context) => {
267
- const headers = {
268
- "content-type": "application/x-www-form-urlencoded",
269
- };
223
+ const headers = SHARED_HEADERS;
270
224
  let body;
271
225
  body = buildFormUrlencodedString({
272
226
  ...se_DescribeAutoScalingInstancesType(input, context),
@@ -276,9 +230,7 @@ export const se_DescribeAutoScalingInstancesCommand = async (input, context) =>
276
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
277
231
  };
278
232
  export const se_DescribeAutoScalingNotificationTypesCommand = async (input, context) => {
279
- const headers = {
280
- "content-type": "application/x-www-form-urlencoded",
281
- };
233
+ const headers = SHARED_HEADERS;
282
234
  const body = buildFormUrlencodedString({
283
235
  Action: "DescribeAutoScalingNotificationTypes",
284
236
  Version: "2011-01-01",
@@ -286,9 +238,7 @@ export const se_DescribeAutoScalingNotificationTypesCommand = async (input, cont
286
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
239
  };
288
240
  export const se_DescribeInstanceRefreshesCommand = async (input, context) => {
289
- const headers = {
290
- "content-type": "application/x-www-form-urlencoded",
291
- };
241
+ const headers = SHARED_HEADERS;
292
242
  let body;
293
243
  body = buildFormUrlencodedString({
294
244
  ...se_DescribeInstanceRefreshesType(input, context),
@@ -298,9 +248,7 @@ export const se_DescribeInstanceRefreshesCommand = async (input, context) => {
298
248
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
249
  };
300
250
  export const se_DescribeLaunchConfigurationsCommand = async (input, context) => {
301
- const headers = {
302
- "content-type": "application/x-www-form-urlencoded",
303
- };
251
+ const headers = SHARED_HEADERS;
304
252
  let body;
305
253
  body = buildFormUrlencodedString({
306
254
  ...se_LaunchConfigurationNamesType(input, context),
@@ -310,9 +258,7 @@ export const se_DescribeLaunchConfigurationsCommand = async (input, context) =>
310
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
259
  };
312
260
  export const se_DescribeLifecycleHooksCommand = async (input, context) => {
313
- const headers = {
314
- "content-type": "application/x-www-form-urlencoded",
315
- };
261
+ const headers = SHARED_HEADERS;
316
262
  let body;
317
263
  body = buildFormUrlencodedString({
318
264
  ...se_DescribeLifecycleHooksType(input, context),
@@ -322,9 +268,7 @@ export const se_DescribeLifecycleHooksCommand = async (input, context) => {
322
268
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
269
  };
324
270
  export const se_DescribeLifecycleHookTypesCommand = async (input, context) => {
325
- const headers = {
326
- "content-type": "application/x-www-form-urlencoded",
327
- };
271
+ const headers = SHARED_HEADERS;
328
272
  const body = buildFormUrlencodedString({
329
273
  Action: "DescribeLifecycleHookTypes",
330
274
  Version: "2011-01-01",
@@ -332,9 +276,7 @@ export const se_DescribeLifecycleHookTypesCommand = async (input, context) => {
332
276
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
333
277
  };
334
278
  export const se_DescribeLoadBalancersCommand = async (input, context) => {
335
- const headers = {
336
- "content-type": "application/x-www-form-urlencoded",
337
- };
279
+ const headers = SHARED_HEADERS;
338
280
  let body;
339
281
  body = buildFormUrlencodedString({
340
282
  ...se_DescribeLoadBalancersRequest(input, context),
@@ -344,9 +286,7 @@ export const se_DescribeLoadBalancersCommand = async (input, context) => {
344
286
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
345
287
  };
346
288
  export const se_DescribeLoadBalancerTargetGroupsCommand = async (input, context) => {
347
- const headers = {
348
- "content-type": "application/x-www-form-urlencoded",
349
- };
289
+ const headers = SHARED_HEADERS;
350
290
  let body;
351
291
  body = buildFormUrlencodedString({
352
292
  ...se_DescribeLoadBalancerTargetGroupsRequest(input, context),
@@ -356,9 +296,7 @@ export const se_DescribeLoadBalancerTargetGroupsCommand = async (input, context)
356
296
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
357
297
  };
358
298
  export const se_DescribeMetricCollectionTypesCommand = async (input, context) => {
359
- const headers = {
360
- "content-type": "application/x-www-form-urlencoded",
361
- };
299
+ const headers = SHARED_HEADERS;
362
300
  const body = buildFormUrlencodedString({
363
301
  Action: "DescribeMetricCollectionTypes",
364
302
  Version: "2011-01-01",
@@ -366,9 +304,7 @@ export const se_DescribeMetricCollectionTypesCommand = async (input, context) =>
366
304
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
367
305
  };
368
306
  export const se_DescribeNotificationConfigurationsCommand = async (input, context) => {
369
- const headers = {
370
- "content-type": "application/x-www-form-urlencoded",
371
- };
307
+ const headers = SHARED_HEADERS;
372
308
  let body;
373
309
  body = buildFormUrlencodedString({
374
310
  ...se_DescribeNotificationConfigurationsType(input, context),
@@ -378,9 +314,7 @@ export const se_DescribeNotificationConfigurationsCommand = async (input, contex
378
314
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
379
315
  };
380
316
  export const se_DescribePoliciesCommand = async (input, context) => {
381
- const headers = {
382
- "content-type": "application/x-www-form-urlencoded",
383
- };
317
+ const headers = SHARED_HEADERS;
384
318
  let body;
385
319
  body = buildFormUrlencodedString({
386
320
  ...se_DescribePoliciesType(input, context),
@@ -390,9 +324,7 @@ export const se_DescribePoliciesCommand = async (input, context) => {
390
324
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
391
325
  };
392
326
  export const se_DescribeScalingActivitiesCommand = async (input, context) => {
393
- const headers = {
394
- "content-type": "application/x-www-form-urlencoded",
395
- };
327
+ const headers = SHARED_HEADERS;
396
328
  let body;
397
329
  body = buildFormUrlencodedString({
398
330
  ...se_DescribeScalingActivitiesType(input, context),
@@ -402,9 +334,7 @@ export const se_DescribeScalingActivitiesCommand = async (input, context) => {
402
334
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
403
335
  };
404
336
  export const se_DescribeScalingProcessTypesCommand = async (input, context) => {
405
- const headers = {
406
- "content-type": "application/x-www-form-urlencoded",
407
- };
337
+ const headers = SHARED_HEADERS;
408
338
  const body = buildFormUrlencodedString({
409
339
  Action: "DescribeScalingProcessTypes",
410
340
  Version: "2011-01-01",
@@ -412,9 +342,7 @@ export const se_DescribeScalingProcessTypesCommand = async (input, context) => {
412
342
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
413
343
  };
414
344
  export const se_DescribeScheduledActionsCommand = async (input, context) => {
415
- const headers = {
416
- "content-type": "application/x-www-form-urlencoded",
417
- };
345
+ const headers = SHARED_HEADERS;
418
346
  let body;
419
347
  body = buildFormUrlencodedString({
420
348
  ...se_DescribeScheduledActionsType(input, context),
@@ -424,9 +352,7 @@ export const se_DescribeScheduledActionsCommand = async (input, context) => {
424
352
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
425
353
  };
426
354
  export const se_DescribeTagsCommand = async (input, context) => {
427
- const headers = {
428
- "content-type": "application/x-www-form-urlencoded",
429
- };
355
+ const headers = SHARED_HEADERS;
430
356
  let body;
431
357
  body = buildFormUrlencodedString({
432
358
  ...se_DescribeTagsType(input, context),
@@ -436,9 +362,7 @@ export const se_DescribeTagsCommand = async (input, context) => {
436
362
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
363
  };
438
364
  export const se_DescribeTerminationPolicyTypesCommand = async (input, context) => {
439
- const headers = {
440
- "content-type": "application/x-www-form-urlencoded",
441
- };
365
+ const headers = SHARED_HEADERS;
442
366
  const body = buildFormUrlencodedString({
443
367
  Action: "DescribeTerminationPolicyTypes",
444
368
  Version: "2011-01-01",
@@ -446,9 +370,7 @@ export const se_DescribeTerminationPolicyTypesCommand = async (input, context) =
446
370
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
447
371
  };
448
372
  export const se_DescribeTrafficSourcesCommand = async (input, context) => {
449
- const headers = {
450
- "content-type": "application/x-www-form-urlencoded",
451
- };
373
+ const headers = SHARED_HEADERS;
452
374
  let body;
453
375
  body = buildFormUrlencodedString({
454
376
  ...se_DescribeTrafficSourcesRequest(input, context),
@@ -458,9 +380,7 @@ export const se_DescribeTrafficSourcesCommand = async (input, context) => {
458
380
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
459
381
  };
460
382
  export const se_DescribeWarmPoolCommand = async (input, context) => {
461
- const headers = {
462
- "content-type": "application/x-www-form-urlencoded",
463
- };
383
+ const headers = SHARED_HEADERS;
464
384
  let body;
465
385
  body = buildFormUrlencodedString({
466
386
  ...se_DescribeWarmPoolType(input, context),
@@ -470,9 +390,7 @@ export const se_DescribeWarmPoolCommand = async (input, context) => {
470
390
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
471
391
  };
472
392
  export const se_DetachInstancesCommand = async (input, context) => {
473
- const headers = {
474
- "content-type": "application/x-www-form-urlencoded",
475
- };
393
+ const headers = SHARED_HEADERS;
476
394
  let body;
477
395
  body = buildFormUrlencodedString({
478
396
  ...se_DetachInstancesQuery(input, context),
@@ -482,9 +400,7 @@ export const se_DetachInstancesCommand = async (input, context) => {
482
400
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
483
401
  };
484
402
  export const se_DetachLoadBalancersCommand = async (input, context) => {
485
- const headers = {
486
- "content-type": "application/x-www-form-urlencoded",
487
- };
403
+ const headers = SHARED_HEADERS;
488
404
  let body;
489
405
  body = buildFormUrlencodedString({
490
406
  ...se_DetachLoadBalancersType(input, context),
@@ -494,9 +410,7 @@ export const se_DetachLoadBalancersCommand = async (input, context) => {
494
410
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
495
411
  };
496
412
  export const se_DetachLoadBalancerTargetGroupsCommand = async (input, context) => {
497
- const headers = {
498
- "content-type": "application/x-www-form-urlencoded",
499
- };
413
+ const headers = SHARED_HEADERS;
500
414
  let body;
501
415
  body = buildFormUrlencodedString({
502
416
  ...se_DetachLoadBalancerTargetGroupsType(input, context),
@@ -506,9 +420,7 @@ export const se_DetachLoadBalancerTargetGroupsCommand = async (input, context) =
506
420
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
507
421
  };
508
422
  export const se_DetachTrafficSourcesCommand = async (input, context) => {
509
- const headers = {
510
- "content-type": "application/x-www-form-urlencoded",
511
- };
423
+ const headers = SHARED_HEADERS;
512
424
  let body;
513
425
  body = buildFormUrlencodedString({
514
426
  ...se_DetachTrafficSourcesType(input, context),
@@ -518,9 +430,7 @@ export const se_DetachTrafficSourcesCommand = async (input, context) => {
518
430
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
519
431
  };
520
432
  export const se_DisableMetricsCollectionCommand = async (input, context) => {
521
- const headers = {
522
- "content-type": "application/x-www-form-urlencoded",
523
- };
433
+ const headers = SHARED_HEADERS;
524
434
  let body;
525
435
  body = buildFormUrlencodedString({
526
436
  ...se_DisableMetricsCollectionQuery(input, context),
@@ -530,9 +440,7 @@ export const se_DisableMetricsCollectionCommand = async (input, context) => {
530
440
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
531
441
  };
532
442
  export const se_EnableMetricsCollectionCommand = async (input, context) => {
533
- const headers = {
534
- "content-type": "application/x-www-form-urlencoded",
535
- };
443
+ const headers = SHARED_HEADERS;
536
444
  let body;
537
445
  body = buildFormUrlencodedString({
538
446
  ...se_EnableMetricsCollectionQuery(input, context),
@@ -542,9 +450,7 @@ export const se_EnableMetricsCollectionCommand = async (input, context) => {
542
450
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
543
451
  };
544
452
  export const se_EnterStandbyCommand = async (input, context) => {
545
- const headers = {
546
- "content-type": "application/x-www-form-urlencoded",
547
- };
453
+ const headers = SHARED_HEADERS;
548
454
  let body;
549
455
  body = buildFormUrlencodedString({
550
456
  ...se_EnterStandbyQuery(input, context),
@@ -554,9 +460,7 @@ export const se_EnterStandbyCommand = async (input, context) => {
554
460
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
555
461
  };
556
462
  export const se_ExecutePolicyCommand = async (input, context) => {
557
- const headers = {
558
- "content-type": "application/x-www-form-urlencoded",
559
- };
463
+ const headers = SHARED_HEADERS;
560
464
  let body;
561
465
  body = buildFormUrlencodedString({
562
466
  ...se_ExecutePolicyType(input, context),
@@ -566,9 +470,7 @@ export const se_ExecutePolicyCommand = async (input, context) => {
566
470
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
567
471
  };
568
472
  export const se_ExitStandbyCommand = async (input, context) => {
569
- const headers = {
570
- "content-type": "application/x-www-form-urlencoded",
571
- };
473
+ const headers = SHARED_HEADERS;
572
474
  let body;
573
475
  body = buildFormUrlencodedString({
574
476
  ...se_ExitStandbyQuery(input, context),
@@ -578,9 +480,7 @@ export const se_ExitStandbyCommand = async (input, context) => {
578
480
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
579
481
  };
580
482
  export const se_GetPredictiveScalingForecastCommand = async (input, context) => {
581
- const headers = {
582
- "content-type": "application/x-www-form-urlencoded",
583
- };
483
+ const headers = SHARED_HEADERS;
584
484
  let body;
585
485
  body = buildFormUrlencodedString({
586
486
  ...se_GetPredictiveScalingForecastType(input, context),
@@ -590,9 +490,7 @@ export const se_GetPredictiveScalingForecastCommand = async (input, context) =>
590
490
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
591
491
  };
592
492
  export const se_PutLifecycleHookCommand = async (input, context) => {
593
- const headers = {
594
- "content-type": "application/x-www-form-urlencoded",
595
- };
493
+ const headers = SHARED_HEADERS;
596
494
  let body;
597
495
  body = buildFormUrlencodedString({
598
496
  ...se_PutLifecycleHookType(input, context),
@@ -602,9 +500,7 @@ export const se_PutLifecycleHookCommand = async (input, context) => {
602
500
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
603
501
  };
604
502
  export const se_PutNotificationConfigurationCommand = async (input, context) => {
605
- const headers = {
606
- "content-type": "application/x-www-form-urlencoded",
607
- };
503
+ const headers = SHARED_HEADERS;
608
504
  let body;
609
505
  body = buildFormUrlencodedString({
610
506
  ...se_PutNotificationConfigurationType(input, context),
@@ -614,9 +510,7 @@ export const se_PutNotificationConfigurationCommand = async (input, context) =>
614
510
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
615
511
  };
616
512
  export const se_PutScalingPolicyCommand = async (input, context) => {
617
- const headers = {
618
- "content-type": "application/x-www-form-urlencoded",
619
- };
513
+ const headers = SHARED_HEADERS;
620
514
  let body;
621
515
  body = buildFormUrlencodedString({
622
516
  ...se_PutScalingPolicyType(input, context),
@@ -626,9 +520,7 @@ export const se_PutScalingPolicyCommand = async (input, context) => {
626
520
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
627
521
  };
628
522
  export const se_PutScheduledUpdateGroupActionCommand = async (input, context) => {
629
- const headers = {
630
- "content-type": "application/x-www-form-urlencoded",
631
- };
523
+ const headers = SHARED_HEADERS;
632
524
  let body;
633
525
  body = buildFormUrlencodedString({
634
526
  ...se_PutScheduledUpdateGroupActionType(input, context),
@@ -638,9 +530,7 @@ export const se_PutScheduledUpdateGroupActionCommand = async (input, context) =>
638
530
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
639
531
  };
640
532
  export const se_PutWarmPoolCommand = async (input, context) => {
641
- const headers = {
642
- "content-type": "application/x-www-form-urlencoded",
643
- };
533
+ const headers = SHARED_HEADERS;
644
534
  let body;
645
535
  body = buildFormUrlencodedString({
646
536
  ...se_PutWarmPoolType(input, context),
@@ -650,9 +540,7 @@ export const se_PutWarmPoolCommand = async (input, context) => {
650
540
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
651
541
  };
652
542
  export const se_RecordLifecycleActionHeartbeatCommand = async (input, context) => {
653
- const headers = {
654
- "content-type": "application/x-www-form-urlencoded",
655
- };
543
+ const headers = SHARED_HEADERS;
656
544
  let body;
657
545
  body = buildFormUrlencodedString({
658
546
  ...se_RecordLifecycleActionHeartbeatType(input, context),
@@ -662,9 +550,7 @@ export const se_RecordLifecycleActionHeartbeatCommand = async (input, context) =
662
550
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
663
551
  };
664
552
  export const se_ResumeProcessesCommand = async (input, context) => {
665
- const headers = {
666
- "content-type": "application/x-www-form-urlencoded",
667
- };
553
+ const headers = SHARED_HEADERS;
668
554
  let body;
669
555
  body = buildFormUrlencodedString({
670
556
  ...se_ScalingProcessQuery(input, context),
@@ -674,9 +560,7 @@ export const se_ResumeProcessesCommand = async (input, context) => {
674
560
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
675
561
  };
676
562
  export const se_RollbackInstanceRefreshCommand = async (input, context) => {
677
- const headers = {
678
- "content-type": "application/x-www-form-urlencoded",
679
- };
563
+ const headers = SHARED_HEADERS;
680
564
  let body;
681
565
  body = buildFormUrlencodedString({
682
566
  ...se_RollbackInstanceRefreshType(input, context),
@@ -686,9 +570,7 @@ export const se_RollbackInstanceRefreshCommand = async (input, context) => {
686
570
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
687
571
  };
688
572
  export const se_SetDesiredCapacityCommand = async (input, context) => {
689
- const headers = {
690
- "content-type": "application/x-www-form-urlencoded",
691
- };
573
+ const headers = SHARED_HEADERS;
692
574
  let body;
693
575
  body = buildFormUrlencodedString({
694
576
  ...se_SetDesiredCapacityType(input, context),
@@ -698,9 +580,7 @@ export const se_SetDesiredCapacityCommand = async (input, context) => {
698
580
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
699
581
  };
700
582
  export const se_SetInstanceHealthCommand = async (input, context) => {
701
- const headers = {
702
- "content-type": "application/x-www-form-urlencoded",
703
- };
583
+ const headers = SHARED_HEADERS;
704
584
  let body;
705
585
  body = buildFormUrlencodedString({
706
586
  ...se_SetInstanceHealthQuery(input, context),
@@ -710,9 +590,7 @@ export const se_SetInstanceHealthCommand = async (input, context) => {
710
590
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
711
591
  };
712
592
  export const se_SetInstanceProtectionCommand = async (input, context) => {
713
- const headers = {
714
- "content-type": "application/x-www-form-urlencoded",
715
- };
593
+ const headers = SHARED_HEADERS;
716
594
  let body;
717
595
  body = buildFormUrlencodedString({
718
596
  ...se_SetInstanceProtectionQuery(input, context),
@@ -722,9 +600,7 @@ export const se_SetInstanceProtectionCommand = async (input, context) => {
722
600
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
723
601
  };
724
602
  export const se_StartInstanceRefreshCommand = async (input, context) => {
725
- const headers = {
726
- "content-type": "application/x-www-form-urlencoded",
727
- };
603
+ const headers = SHARED_HEADERS;
728
604
  let body;
729
605
  body = buildFormUrlencodedString({
730
606
  ...se_StartInstanceRefreshType(input, context),
@@ -734,9 +610,7 @@ export const se_StartInstanceRefreshCommand = async (input, context) => {
734
610
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
735
611
  };
736
612
  export const se_SuspendProcessesCommand = async (input, context) => {
737
- const headers = {
738
- "content-type": "application/x-www-form-urlencoded",
739
- };
613
+ const headers = SHARED_HEADERS;
740
614
  let body;
741
615
  body = buildFormUrlencodedString({
742
616
  ...se_ScalingProcessQuery(input, context),
@@ -746,9 +620,7 @@ export const se_SuspendProcessesCommand = async (input, context) => {
746
620
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
747
621
  };
748
622
  export const se_TerminateInstanceInAutoScalingGroupCommand = async (input, context) => {
749
- const headers = {
750
- "content-type": "application/x-www-form-urlencoded",
751
- };
623
+ const headers = SHARED_HEADERS;
752
624
  let body;
753
625
  body = buildFormUrlencodedString({
754
626
  ...se_TerminateInstanceInAutoScalingGroupType(input, context),
@@ -758,9 +630,7 @@ export const se_TerminateInstanceInAutoScalingGroupCommand = async (input, conte
758
630
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
759
631
  };
760
632
  export const se_UpdateAutoScalingGroupCommand = async (input, context) => {
761
- const headers = {
762
- "content-type": "application/x-www-form-urlencoded",
763
- };
633
+ const headers = SHARED_HEADERS;
764
634
  let body;
765
635
  body = buildFormUrlencodedString({
766
636
  ...se_UpdateAutoScalingGroupType(input, context),
@@ -777,7 +647,7 @@ export const de_AttachInstancesCommand = async (output, context) => {
777
647
  const response = {
778
648
  $metadata: deserializeMetadata(output),
779
649
  };
780
- return Promise.resolve(response);
650
+ return response;
781
651
  };
782
652
  const de_AttachInstancesCommandError = async (output, context) => {
783
653
  const parsedOutput = {
@@ -794,10 +664,9 @@ const de_AttachInstancesCommandError = async (output, context) => {
794
664
  throw await de_ServiceLinkedRoleFailureRes(parsedOutput, context);
795
665
  default:
796
666
  const parsedBody = parsedOutput.body;
797
- throwDefaultError({
667
+ return throwDefaultError({
798
668
  output,
799
669
  parsedBody: parsedBody.Error,
800
- exceptionCtor: __BaseException,
801
670
  errorCode,
802
671
  });
803
672
  }
@@ -813,7 +682,7 @@ export const de_AttachLoadBalancersCommand = async (output, context) => {
813
682
  $metadata: deserializeMetadata(output),
814
683
  ...contents,
815
684
  };
816
- return Promise.resolve(response);
685
+ return response;
817
686
  };
818
687
  const de_AttachLoadBalancersCommandError = async (output, context) => {
819
688
  const parsedOutput = {
@@ -830,10 +699,9 @@ const de_AttachLoadBalancersCommandError = async (output, context) => {
830
699
  throw await de_ServiceLinkedRoleFailureRes(parsedOutput, context);
831
700
  default:
832
701
  const parsedBody = parsedOutput.body;
833
- throwDefaultError({
702
+ return throwDefaultError({
834
703
  output,
835
704
  parsedBody: parsedBody.Error,
836
- exceptionCtor: __BaseException,
837
705
  errorCode,
838
706
  });
839
707
  }
@@ -849,7 +717,7 @@ export const de_AttachLoadBalancerTargetGroupsCommand = async (output, context)
849
717
  $metadata: deserializeMetadata(output),
850
718
  ...contents,
851
719
  };
852
- return Promise.resolve(response);
720
+ return response;
853
721
  };
854
722
  const de_AttachLoadBalancerTargetGroupsCommandError = async (output, context) => {
855
723
  const parsedOutput = {
@@ -866,10 +734,9 @@ const de_AttachLoadBalancerTargetGroupsCommandError = async (output, context) =>
866
734
  throw await de_ServiceLinkedRoleFailureRes(parsedOutput, context);
867
735
  default:
868
736
  const parsedBody = parsedOutput.body;
869
- throwDefaultError({
737
+ return throwDefaultError({
870
738
  output,
871
739
  parsedBody: parsedBody.Error,
872
- exceptionCtor: __BaseException,
873
740
  errorCode,
874
741
  });
875
742
  }
@@ -885,7 +752,7 @@ export const de_AttachTrafficSourcesCommand = async (output, context) => {
885
752
  $metadata: deserializeMetadata(output),
886
753
  ...contents,
887
754
  };
888
- return Promise.resolve(response);
755
+ return response;
889
756
  };
890
757
  const de_AttachTrafficSourcesCommandError = async (output, context) => {
891
758
  const parsedOutput = {
@@ -902,10 +769,9 @@ const de_AttachTrafficSourcesCommandError = async (output, context) => {
902
769
  throw await de_ServiceLinkedRoleFailureRes(parsedOutput, context);
903
770
  default:
904
771
  const parsedBody = parsedOutput.body;
905
- throwDefaultError({
772
+ return throwDefaultError({
906
773
  output,
907
774
  parsedBody: parsedBody.Error,
908
- exceptionCtor: __BaseException,
909
775
  errorCode,
910
776
  });
911
777
  }
@@ -921,7 +787,7 @@ export const de_BatchDeleteScheduledActionCommand = async (output, context) => {
921
787
  $metadata: deserializeMetadata(output),
922
788
  ...contents,
923
789
  };
924
- return Promise.resolve(response);
790
+ return response;
925
791
  };
926
792
  const de_BatchDeleteScheduledActionCommandError = async (output, context) => {
927
793
  const parsedOutput = {
@@ -935,10 +801,9 @@ const de_BatchDeleteScheduledActionCommandError = async (output, context) => {
935
801
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
936
802
  default:
937
803
  const parsedBody = parsedOutput.body;
938
- throwDefaultError({
804
+ return throwDefaultError({
939
805
  output,
940
806
  parsedBody: parsedBody.Error,
941
- exceptionCtor: __BaseException,
942
807
  errorCode,
943
808
  });
944
809
  }
@@ -954,7 +819,7 @@ export const de_BatchPutScheduledUpdateGroupActionCommand = async (output, conte
954
819
  $metadata: deserializeMetadata(output),
955
820
  ...contents,
956
821
  };
957
- return Promise.resolve(response);
822
+ return response;
958
823
  };
959
824
  const de_BatchPutScheduledUpdateGroupActionCommandError = async (output, context) => {
960
825
  const parsedOutput = {
@@ -974,10 +839,9 @@ const de_BatchPutScheduledUpdateGroupActionCommandError = async (output, context
974
839
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
975
840
  default:
976
841
  const parsedBody = parsedOutput.body;
977
- throwDefaultError({
842
+ return throwDefaultError({
978
843
  output,
979
844
  parsedBody: parsedBody.Error,
980
- exceptionCtor: __BaseException,
981
845
  errorCode,
982
846
  });
983
847
  }
@@ -993,7 +857,7 @@ export const de_CancelInstanceRefreshCommand = async (output, context) => {
993
857
  $metadata: deserializeMetadata(output),
994
858
  ...contents,
995
859
  };
996
- return Promise.resolve(response);
860
+ return response;
997
861
  };
998
862
  const de_CancelInstanceRefreshCommandError = async (output, context) => {
999
863
  const parsedOutput = {
@@ -1013,10 +877,9 @@ const de_CancelInstanceRefreshCommandError = async (output, context) => {
1013
877
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1014
878
  default:
1015
879
  const parsedBody = parsedOutput.body;
1016
- throwDefaultError({
880
+ return throwDefaultError({
1017
881
  output,
1018
882
  parsedBody: parsedBody.Error,
1019
- exceptionCtor: __BaseException,
1020
883
  errorCode,
1021
884
  });
1022
885
  }
@@ -1032,7 +895,7 @@ export const de_CompleteLifecycleActionCommand = async (output, context) => {
1032
895
  $metadata: deserializeMetadata(output),
1033
896
  ...contents,
1034
897
  };
1035
- return Promise.resolve(response);
898
+ return response;
1036
899
  };
1037
900
  const de_CompleteLifecycleActionCommandError = async (output, context) => {
1038
901
  const parsedOutput = {
@@ -1046,10 +909,9 @@ const de_CompleteLifecycleActionCommandError = async (output, context) => {
1046
909
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1047
910
  default:
1048
911
  const parsedBody = parsedOutput.body;
1049
- throwDefaultError({
912
+ return throwDefaultError({
1050
913
  output,
1051
914
  parsedBody: parsedBody.Error,
1052
- exceptionCtor: __BaseException,
1053
915
  errorCode,
1054
916
  });
1055
917
  }
@@ -1062,7 +924,7 @@ export const de_CreateAutoScalingGroupCommand = async (output, context) => {
1062
924
  const response = {
1063
925
  $metadata: deserializeMetadata(output),
1064
926
  };
1065
- return Promise.resolve(response);
927
+ return response;
1066
928
  };
1067
929
  const de_CreateAutoScalingGroupCommandError = async (output, context) => {
1068
930
  const parsedOutput = {
@@ -1085,10 +947,9 @@ const de_CreateAutoScalingGroupCommandError = async (output, context) => {
1085
947
  throw await de_ServiceLinkedRoleFailureRes(parsedOutput, context);
1086
948
  default:
1087
949
  const parsedBody = parsedOutput.body;
1088
- throwDefaultError({
950
+ return throwDefaultError({
1089
951
  output,
1090
952
  parsedBody: parsedBody.Error,
1091
- exceptionCtor: __BaseException,
1092
953
  errorCode,
1093
954
  });
1094
955
  }
@@ -1101,7 +962,7 @@ export const de_CreateLaunchConfigurationCommand = async (output, context) => {
1101
962
  const response = {
1102
963
  $metadata: deserializeMetadata(output),
1103
964
  };
1104
- return Promise.resolve(response);
965
+ return response;
1105
966
  };
1106
967
  const de_CreateLaunchConfigurationCommandError = async (output, context) => {
1107
968
  const parsedOutput = {
@@ -1121,10 +982,9 @@ const de_CreateLaunchConfigurationCommandError = async (output, context) => {
1121
982
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1122
983
  default:
1123
984
  const parsedBody = parsedOutput.body;
1124
- throwDefaultError({
985
+ return throwDefaultError({
1125
986
  output,
1126
987
  parsedBody: parsedBody.Error,
1127
- exceptionCtor: __BaseException,
1128
988
  errorCode,
1129
989
  });
1130
990
  }
@@ -1137,7 +997,7 @@ export const de_CreateOrUpdateTagsCommand = async (output, context) => {
1137
997
  const response = {
1138
998
  $metadata: deserializeMetadata(output),
1139
999
  };
1140
- return Promise.resolve(response);
1000
+ return response;
1141
1001
  };
1142
1002
  const de_CreateOrUpdateTagsCommandError = async (output, context) => {
1143
1003
  const parsedOutput = {
@@ -1160,10 +1020,9 @@ const de_CreateOrUpdateTagsCommandError = async (output, context) => {
1160
1020
  throw await de_ResourceInUseFaultRes(parsedOutput, context);
1161
1021
  default:
1162
1022
  const parsedBody = parsedOutput.body;
1163
- throwDefaultError({
1023
+ return throwDefaultError({
1164
1024
  output,
1165
1025
  parsedBody: parsedBody.Error,
1166
- exceptionCtor: __BaseException,
1167
1026
  errorCode,
1168
1027
  });
1169
1028
  }
@@ -1176,7 +1035,7 @@ export const de_DeleteAutoScalingGroupCommand = async (output, context) => {
1176
1035
  const response = {
1177
1036
  $metadata: deserializeMetadata(output),
1178
1037
  };
1179
- return Promise.resolve(response);
1038
+ return response;
1180
1039
  };
1181
1040
  const de_DeleteAutoScalingGroupCommandError = async (output, context) => {
1182
1041
  const parsedOutput = {
@@ -1196,10 +1055,9 @@ const de_DeleteAutoScalingGroupCommandError = async (output, context) => {
1196
1055
  throw await de_ScalingActivityInProgressFaultRes(parsedOutput, context);
1197
1056
  default:
1198
1057
  const parsedBody = parsedOutput.body;
1199
- throwDefaultError({
1058
+ return throwDefaultError({
1200
1059
  output,
1201
1060
  parsedBody: parsedBody.Error,
1202
- exceptionCtor: __BaseException,
1203
1061
  errorCode,
1204
1062
  });
1205
1063
  }
@@ -1212,7 +1070,7 @@ export const de_DeleteLaunchConfigurationCommand = async (output, context) => {
1212
1070
  const response = {
1213
1071
  $metadata: deserializeMetadata(output),
1214
1072
  };
1215
- return Promise.resolve(response);
1073
+ return response;
1216
1074
  };
1217
1075
  const de_DeleteLaunchConfigurationCommandError = async (output, context) => {
1218
1076
  const parsedOutput = {
@@ -1229,10 +1087,9 @@ const de_DeleteLaunchConfigurationCommandError = async (output, context) => {
1229
1087
  throw await de_ResourceInUseFaultRes(parsedOutput, context);
1230
1088
  default:
1231
1089
  const parsedBody = parsedOutput.body;
1232
- throwDefaultError({
1090
+ return throwDefaultError({
1233
1091
  output,
1234
1092
  parsedBody: parsedBody.Error,
1235
- exceptionCtor: __BaseException,
1236
1093
  errorCode,
1237
1094
  });
1238
1095
  }
@@ -1248,7 +1105,7 @@ export const de_DeleteLifecycleHookCommand = async (output, context) => {
1248
1105
  $metadata: deserializeMetadata(output),
1249
1106
  ...contents,
1250
1107
  };
1251
- return Promise.resolve(response);
1108
+ return response;
1252
1109
  };
1253
1110
  const de_DeleteLifecycleHookCommandError = async (output, context) => {
1254
1111
  const parsedOutput = {
@@ -1262,10 +1119,9 @@ const de_DeleteLifecycleHookCommandError = async (output, context) => {
1262
1119
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1263
1120
  default:
1264
1121
  const parsedBody = parsedOutput.body;
1265
- throwDefaultError({
1122
+ return throwDefaultError({
1266
1123
  output,
1267
1124
  parsedBody: parsedBody.Error,
1268
- exceptionCtor: __BaseException,
1269
1125
  errorCode,
1270
1126
  });
1271
1127
  }
@@ -1278,7 +1134,7 @@ export const de_DeleteNotificationConfigurationCommand = async (output, context)
1278
1134
  const response = {
1279
1135
  $metadata: deserializeMetadata(output),
1280
1136
  };
1281
- return Promise.resolve(response);
1137
+ return response;
1282
1138
  };
1283
1139
  const de_DeleteNotificationConfigurationCommandError = async (output, context) => {
1284
1140
  const parsedOutput = {
@@ -1292,10 +1148,9 @@ const de_DeleteNotificationConfigurationCommandError = async (output, context) =
1292
1148
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1293
1149
  default:
1294
1150
  const parsedBody = parsedOutput.body;
1295
- throwDefaultError({
1151
+ return throwDefaultError({
1296
1152
  output,
1297
1153
  parsedBody: parsedBody.Error,
1298
- exceptionCtor: __BaseException,
1299
1154
  errorCode,
1300
1155
  });
1301
1156
  }
@@ -1308,7 +1163,7 @@ export const de_DeletePolicyCommand = async (output, context) => {
1308
1163
  const response = {
1309
1164
  $metadata: deserializeMetadata(output),
1310
1165
  };
1311
- return Promise.resolve(response);
1166
+ return response;
1312
1167
  };
1313
1168
  const de_DeletePolicyCommandError = async (output, context) => {
1314
1169
  const parsedOutput = {
@@ -1325,10 +1180,9 @@ const de_DeletePolicyCommandError = async (output, context) => {
1325
1180
  throw await de_ServiceLinkedRoleFailureRes(parsedOutput, context);
1326
1181
  default:
1327
1182
  const parsedBody = parsedOutput.body;
1328
- throwDefaultError({
1183
+ return throwDefaultError({
1329
1184
  output,
1330
1185
  parsedBody: parsedBody.Error,
1331
- exceptionCtor: __BaseException,
1332
1186
  errorCode,
1333
1187
  });
1334
1188
  }
@@ -1341,7 +1195,7 @@ export const de_DeleteScheduledActionCommand = async (output, context) => {
1341
1195
  const response = {
1342
1196
  $metadata: deserializeMetadata(output),
1343
1197
  };
1344
- return Promise.resolve(response);
1198
+ return response;
1345
1199
  };
1346
1200
  const de_DeleteScheduledActionCommandError = async (output, context) => {
1347
1201
  const parsedOutput = {
@@ -1355,10 +1209,9 @@ const de_DeleteScheduledActionCommandError = async (output, context) => {
1355
1209
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1356
1210
  default:
1357
1211
  const parsedBody = parsedOutput.body;
1358
- throwDefaultError({
1212
+ return throwDefaultError({
1359
1213
  output,
1360
1214
  parsedBody: parsedBody.Error,
1361
- exceptionCtor: __BaseException,
1362
1215
  errorCode,
1363
1216
  });
1364
1217
  }
@@ -1371,7 +1224,7 @@ export const de_DeleteTagsCommand = async (output, context) => {
1371
1224
  const response = {
1372
1225
  $metadata: deserializeMetadata(output),
1373
1226
  };
1374
- return Promise.resolve(response);
1227
+ return response;
1375
1228
  };
1376
1229
  const de_DeleteTagsCommandError = async (output, context) => {
1377
1230
  const parsedOutput = {
@@ -1388,10 +1241,9 @@ const de_DeleteTagsCommandError = async (output, context) => {
1388
1241
  throw await de_ResourceInUseFaultRes(parsedOutput, context);
1389
1242
  default:
1390
1243
  const parsedBody = parsedOutput.body;
1391
- throwDefaultError({
1244
+ return throwDefaultError({
1392
1245
  output,
1393
1246
  parsedBody: parsedBody.Error,
1394
- exceptionCtor: __BaseException,
1395
1247
  errorCode,
1396
1248
  });
1397
1249
  }
@@ -1407,7 +1259,7 @@ export const de_DeleteWarmPoolCommand = async (output, context) => {
1407
1259
  $metadata: deserializeMetadata(output),
1408
1260
  ...contents,
1409
1261
  };
1410
- return Promise.resolve(response);
1262
+ return response;
1411
1263
  };
1412
1264
  const de_DeleteWarmPoolCommandError = async (output, context) => {
1413
1265
  const parsedOutput = {
@@ -1430,10 +1282,9 @@ const de_DeleteWarmPoolCommandError = async (output, context) => {
1430
1282
  throw await de_ScalingActivityInProgressFaultRes(parsedOutput, context);
1431
1283
  default:
1432
1284
  const parsedBody = parsedOutput.body;
1433
- throwDefaultError({
1285
+ return throwDefaultError({
1434
1286
  output,
1435
1287
  parsedBody: parsedBody.Error,
1436
- exceptionCtor: __BaseException,
1437
1288
  errorCode,
1438
1289
  });
1439
1290
  }
@@ -1449,7 +1300,7 @@ export const de_DescribeAccountLimitsCommand = async (output, context) => {
1449
1300
  $metadata: deserializeMetadata(output),
1450
1301
  ...contents,
1451
1302
  };
1452
- return Promise.resolve(response);
1303
+ return response;
1453
1304
  };
1454
1305
  const de_DescribeAccountLimitsCommandError = async (output, context) => {
1455
1306
  const parsedOutput = {
@@ -1463,10 +1314,9 @@ const de_DescribeAccountLimitsCommandError = async (output, context) => {
1463
1314
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1464
1315
  default:
1465
1316
  const parsedBody = parsedOutput.body;
1466
- throwDefaultError({
1317
+ return throwDefaultError({
1467
1318
  output,
1468
1319
  parsedBody: parsedBody.Error,
1469
- exceptionCtor: __BaseException,
1470
1320
  errorCode,
1471
1321
  });
1472
1322
  }
@@ -1482,7 +1332,7 @@ export const de_DescribeAdjustmentTypesCommand = async (output, context) => {
1482
1332
  $metadata: deserializeMetadata(output),
1483
1333
  ...contents,
1484
1334
  };
1485
- return Promise.resolve(response);
1335
+ return response;
1486
1336
  };
1487
1337
  const de_DescribeAdjustmentTypesCommandError = async (output, context) => {
1488
1338
  const parsedOutput = {
@@ -1496,10 +1346,9 @@ const de_DescribeAdjustmentTypesCommandError = async (output, context) => {
1496
1346
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1497
1347
  default:
1498
1348
  const parsedBody = parsedOutput.body;
1499
- throwDefaultError({
1349
+ return throwDefaultError({
1500
1350
  output,
1501
1351
  parsedBody: parsedBody.Error,
1502
- exceptionCtor: __BaseException,
1503
1352
  errorCode,
1504
1353
  });
1505
1354
  }
@@ -1515,7 +1364,7 @@ export const de_DescribeAutoScalingGroupsCommand = async (output, context) => {
1515
1364
  $metadata: deserializeMetadata(output),
1516
1365
  ...contents,
1517
1366
  };
1518
- return Promise.resolve(response);
1367
+ return response;
1519
1368
  };
1520
1369
  const de_DescribeAutoScalingGroupsCommandError = async (output, context) => {
1521
1370
  const parsedOutput = {
@@ -1532,10 +1381,9 @@ const de_DescribeAutoScalingGroupsCommandError = async (output, context) => {
1532
1381
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1533
1382
  default:
1534
1383
  const parsedBody = parsedOutput.body;
1535
- throwDefaultError({
1384
+ return throwDefaultError({
1536
1385
  output,
1537
1386
  parsedBody: parsedBody.Error,
1538
- exceptionCtor: __BaseException,
1539
1387
  errorCode,
1540
1388
  });
1541
1389
  }
@@ -1551,7 +1399,7 @@ export const de_DescribeAutoScalingInstancesCommand = async (output, context) =>
1551
1399
  $metadata: deserializeMetadata(output),
1552
1400
  ...contents,
1553
1401
  };
1554
- return Promise.resolve(response);
1402
+ return response;
1555
1403
  };
1556
1404
  const de_DescribeAutoScalingInstancesCommandError = async (output, context) => {
1557
1405
  const parsedOutput = {
@@ -1568,10 +1416,9 @@ const de_DescribeAutoScalingInstancesCommandError = async (output, context) => {
1568
1416
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1569
1417
  default:
1570
1418
  const parsedBody = parsedOutput.body;
1571
- throwDefaultError({
1419
+ return throwDefaultError({
1572
1420
  output,
1573
1421
  parsedBody: parsedBody.Error,
1574
- exceptionCtor: __BaseException,
1575
1422
  errorCode,
1576
1423
  });
1577
1424
  }
@@ -1587,7 +1434,7 @@ export const de_DescribeAutoScalingNotificationTypesCommand = async (output, con
1587
1434
  $metadata: deserializeMetadata(output),
1588
1435
  ...contents,
1589
1436
  };
1590
- return Promise.resolve(response);
1437
+ return response;
1591
1438
  };
1592
1439
  const de_DescribeAutoScalingNotificationTypesCommandError = async (output, context) => {
1593
1440
  const parsedOutput = {
@@ -1601,10 +1448,9 @@ const de_DescribeAutoScalingNotificationTypesCommandError = async (output, conte
1601
1448
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1602
1449
  default:
1603
1450
  const parsedBody = parsedOutput.body;
1604
- throwDefaultError({
1451
+ return throwDefaultError({
1605
1452
  output,
1606
1453
  parsedBody: parsedBody.Error,
1607
- exceptionCtor: __BaseException,
1608
1454
  errorCode,
1609
1455
  });
1610
1456
  }
@@ -1620,7 +1466,7 @@ export const de_DescribeInstanceRefreshesCommand = async (output, context) => {
1620
1466
  $metadata: deserializeMetadata(output),
1621
1467
  ...contents,
1622
1468
  };
1623
- return Promise.resolve(response);
1469
+ return response;
1624
1470
  };
1625
1471
  const de_DescribeInstanceRefreshesCommandError = async (output, context) => {
1626
1472
  const parsedOutput = {
@@ -1637,10 +1483,9 @@ const de_DescribeInstanceRefreshesCommandError = async (output, context) => {
1637
1483
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1638
1484
  default:
1639
1485
  const parsedBody = parsedOutput.body;
1640
- throwDefaultError({
1486
+ return throwDefaultError({
1641
1487
  output,
1642
1488
  parsedBody: parsedBody.Error,
1643
- exceptionCtor: __BaseException,
1644
1489
  errorCode,
1645
1490
  });
1646
1491
  }
@@ -1656,7 +1501,7 @@ export const de_DescribeLaunchConfigurationsCommand = async (output, context) =>
1656
1501
  $metadata: deserializeMetadata(output),
1657
1502
  ...contents,
1658
1503
  };
1659
- return Promise.resolve(response);
1504
+ return response;
1660
1505
  };
1661
1506
  const de_DescribeLaunchConfigurationsCommandError = async (output, context) => {
1662
1507
  const parsedOutput = {
@@ -1673,10 +1518,9 @@ const de_DescribeLaunchConfigurationsCommandError = async (output, context) => {
1673
1518
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1674
1519
  default:
1675
1520
  const parsedBody = parsedOutput.body;
1676
- throwDefaultError({
1521
+ return throwDefaultError({
1677
1522
  output,
1678
1523
  parsedBody: parsedBody.Error,
1679
- exceptionCtor: __BaseException,
1680
1524
  errorCode,
1681
1525
  });
1682
1526
  }
@@ -1692,7 +1536,7 @@ export const de_DescribeLifecycleHooksCommand = async (output, context) => {
1692
1536
  $metadata: deserializeMetadata(output),
1693
1537
  ...contents,
1694
1538
  };
1695
- return Promise.resolve(response);
1539
+ return response;
1696
1540
  };
1697
1541
  const de_DescribeLifecycleHooksCommandError = async (output, context) => {
1698
1542
  const parsedOutput = {
@@ -1706,10 +1550,9 @@ const de_DescribeLifecycleHooksCommandError = async (output, context) => {
1706
1550
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1707
1551
  default:
1708
1552
  const parsedBody = parsedOutput.body;
1709
- throwDefaultError({
1553
+ return throwDefaultError({
1710
1554
  output,
1711
1555
  parsedBody: parsedBody.Error,
1712
- exceptionCtor: __BaseException,
1713
1556
  errorCode,
1714
1557
  });
1715
1558
  }
@@ -1725,7 +1568,7 @@ export const de_DescribeLifecycleHookTypesCommand = async (output, context) => {
1725
1568
  $metadata: deserializeMetadata(output),
1726
1569
  ...contents,
1727
1570
  };
1728
- return Promise.resolve(response);
1571
+ return response;
1729
1572
  };
1730
1573
  const de_DescribeLifecycleHookTypesCommandError = async (output, context) => {
1731
1574
  const parsedOutput = {
@@ -1739,10 +1582,9 @@ const de_DescribeLifecycleHookTypesCommandError = async (output, context) => {
1739
1582
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1740
1583
  default:
1741
1584
  const parsedBody = parsedOutput.body;
1742
- throwDefaultError({
1585
+ return throwDefaultError({
1743
1586
  output,
1744
1587
  parsedBody: parsedBody.Error,
1745
- exceptionCtor: __BaseException,
1746
1588
  errorCode,
1747
1589
  });
1748
1590
  }
@@ -1758,7 +1600,7 @@ export const de_DescribeLoadBalancersCommand = async (output, context) => {
1758
1600
  $metadata: deserializeMetadata(output),
1759
1601
  ...contents,
1760
1602
  };
1761
- return Promise.resolve(response);
1603
+ return response;
1762
1604
  };
1763
1605
  const de_DescribeLoadBalancersCommandError = async (output, context) => {
1764
1606
  const parsedOutput = {
@@ -1775,10 +1617,9 @@ const de_DescribeLoadBalancersCommandError = async (output, context) => {
1775
1617
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1776
1618
  default:
1777
1619
  const parsedBody = parsedOutput.body;
1778
- throwDefaultError({
1620
+ return throwDefaultError({
1779
1621
  output,
1780
1622
  parsedBody: parsedBody.Error,
1781
- exceptionCtor: __BaseException,
1782
1623
  errorCode,
1783
1624
  });
1784
1625
  }
@@ -1794,7 +1635,7 @@ export const de_DescribeLoadBalancerTargetGroupsCommand = async (output, context
1794
1635
  $metadata: deserializeMetadata(output),
1795
1636
  ...contents,
1796
1637
  };
1797
- return Promise.resolve(response);
1638
+ return response;
1798
1639
  };
1799
1640
  const de_DescribeLoadBalancerTargetGroupsCommandError = async (output, context) => {
1800
1641
  const parsedOutput = {
@@ -1811,10 +1652,9 @@ const de_DescribeLoadBalancerTargetGroupsCommandError = async (output, context)
1811
1652
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1812
1653
  default:
1813
1654
  const parsedBody = parsedOutput.body;
1814
- throwDefaultError({
1655
+ return throwDefaultError({
1815
1656
  output,
1816
1657
  parsedBody: parsedBody.Error,
1817
- exceptionCtor: __BaseException,
1818
1658
  errorCode,
1819
1659
  });
1820
1660
  }
@@ -1830,7 +1670,7 @@ export const de_DescribeMetricCollectionTypesCommand = async (output, context) =
1830
1670
  $metadata: deserializeMetadata(output),
1831
1671
  ...contents,
1832
1672
  };
1833
- return Promise.resolve(response);
1673
+ return response;
1834
1674
  };
1835
1675
  const de_DescribeMetricCollectionTypesCommandError = async (output, context) => {
1836
1676
  const parsedOutput = {
@@ -1844,10 +1684,9 @@ const de_DescribeMetricCollectionTypesCommandError = async (output, context) =>
1844
1684
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1845
1685
  default:
1846
1686
  const parsedBody = parsedOutput.body;
1847
- throwDefaultError({
1687
+ return throwDefaultError({
1848
1688
  output,
1849
1689
  parsedBody: parsedBody.Error,
1850
- exceptionCtor: __BaseException,
1851
1690
  errorCode,
1852
1691
  });
1853
1692
  }
@@ -1863,7 +1702,7 @@ export const de_DescribeNotificationConfigurationsCommand = async (output, conte
1863
1702
  $metadata: deserializeMetadata(output),
1864
1703
  ...contents,
1865
1704
  };
1866
- return Promise.resolve(response);
1705
+ return response;
1867
1706
  };
1868
1707
  const de_DescribeNotificationConfigurationsCommandError = async (output, context) => {
1869
1708
  const parsedOutput = {
@@ -1880,10 +1719,9 @@ const de_DescribeNotificationConfigurationsCommandError = async (output, context
1880
1719
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1881
1720
  default:
1882
1721
  const parsedBody = parsedOutput.body;
1883
- throwDefaultError({
1722
+ return throwDefaultError({
1884
1723
  output,
1885
1724
  parsedBody: parsedBody.Error,
1886
- exceptionCtor: __BaseException,
1887
1725
  errorCode,
1888
1726
  });
1889
1727
  }
@@ -1899,7 +1737,7 @@ export const de_DescribePoliciesCommand = async (output, context) => {
1899
1737
  $metadata: deserializeMetadata(output),
1900
1738
  ...contents,
1901
1739
  };
1902
- return Promise.resolve(response);
1740
+ return response;
1903
1741
  };
1904
1742
  const de_DescribePoliciesCommandError = async (output, context) => {
1905
1743
  const parsedOutput = {
@@ -1919,10 +1757,9 @@ const de_DescribePoliciesCommandError = async (output, context) => {
1919
1757
  throw await de_ServiceLinkedRoleFailureRes(parsedOutput, context);
1920
1758
  default:
1921
1759
  const parsedBody = parsedOutput.body;
1922
- throwDefaultError({
1760
+ return throwDefaultError({
1923
1761
  output,
1924
1762
  parsedBody: parsedBody.Error,
1925
- exceptionCtor: __BaseException,
1926
1763
  errorCode,
1927
1764
  });
1928
1765
  }
@@ -1938,7 +1775,7 @@ export const de_DescribeScalingActivitiesCommand = async (output, context) => {
1938
1775
  $metadata: deserializeMetadata(output),
1939
1776
  ...contents,
1940
1777
  };
1941
- return Promise.resolve(response);
1778
+ return response;
1942
1779
  };
1943
1780
  const de_DescribeScalingActivitiesCommandError = async (output, context) => {
1944
1781
  const parsedOutput = {
@@ -1955,10 +1792,9 @@ const de_DescribeScalingActivitiesCommandError = async (output, context) => {
1955
1792
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1956
1793
  default:
1957
1794
  const parsedBody = parsedOutput.body;
1958
- throwDefaultError({
1795
+ return throwDefaultError({
1959
1796
  output,
1960
1797
  parsedBody: parsedBody.Error,
1961
- exceptionCtor: __BaseException,
1962
1798
  errorCode,
1963
1799
  });
1964
1800
  }
@@ -1974,7 +1810,7 @@ export const de_DescribeScalingProcessTypesCommand = async (output, context) =>
1974
1810
  $metadata: deserializeMetadata(output),
1975
1811
  ...contents,
1976
1812
  };
1977
- return Promise.resolve(response);
1813
+ return response;
1978
1814
  };
1979
1815
  const de_DescribeScalingProcessTypesCommandError = async (output, context) => {
1980
1816
  const parsedOutput = {
@@ -1988,10 +1824,9 @@ const de_DescribeScalingProcessTypesCommandError = async (output, context) => {
1988
1824
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
1989
1825
  default:
1990
1826
  const parsedBody = parsedOutput.body;
1991
- throwDefaultError({
1827
+ return throwDefaultError({
1992
1828
  output,
1993
1829
  parsedBody: parsedBody.Error,
1994
- exceptionCtor: __BaseException,
1995
1830
  errorCode,
1996
1831
  });
1997
1832
  }
@@ -2007,7 +1842,7 @@ export const de_DescribeScheduledActionsCommand = async (output, context) => {
2007
1842
  $metadata: deserializeMetadata(output),
2008
1843
  ...contents,
2009
1844
  };
2010
- return Promise.resolve(response);
1845
+ return response;
2011
1846
  };
2012
1847
  const de_DescribeScheduledActionsCommandError = async (output, context) => {
2013
1848
  const parsedOutput = {
@@ -2024,10 +1859,9 @@ const de_DescribeScheduledActionsCommandError = async (output, context) => {
2024
1859
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2025
1860
  default:
2026
1861
  const parsedBody = parsedOutput.body;
2027
- throwDefaultError({
1862
+ return throwDefaultError({
2028
1863
  output,
2029
1864
  parsedBody: parsedBody.Error,
2030
- exceptionCtor: __BaseException,
2031
1865
  errorCode,
2032
1866
  });
2033
1867
  }
@@ -2043,7 +1877,7 @@ export const de_DescribeTagsCommand = async (output, context) => {
2043
1877
  $metadata: deserializeMetadata(output),
2044
1878
  ...contents,
2045
1879
  };
2046
- return Promise.resolve(response);
1880
+ return response;
2047
1881
  };
2048
1882
  const de_DescribeTagsCommandError = async (output, context) => {
2049
1883
  const parsedOutput = {
@@ -2060,10 +1894,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
2060
1894
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2061
1895
  default:
2062
1896
  const parsedBody = parsedOutput.body;
2063
- throwDefaultError({
1897
+ return throwDefaultError({
2064
1898
  output,
2065
1899
  parsedBody: parsedBody.Error,
2066
- exceptionCtor: __BaseException,
2067
1900
  errorCode,
2068
1901
  });
2069
1902
  }
@@ -2079,7 +1912,7 @@ export const de_DescribeTerminationPolicyTypesCommand = async (output, context)
2079
1912
  $metadata: deserializeMetadata(output),
2080
1913
  ...contents,
2081
1914
  };
2082
- return Promise.resolve(response);
1915
+ return response;
2083
1916
  };
2084
1917
  const de_DescribeTerminationPolicyTypesCommandError = async (output, context) => {
2085
1918
  const parsedOutput = {
@@ -2093,10 +1926,9 @@ const de_DescribeTerminationPolicyTypesCommandError = async (output, context) =>
2093
1926
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2094
1927
  default:
2095
1928
  const parsedBody = parsedOutput.body;
2096
- throwDefaultError({
1929
+ return throwDefaultError({
2097
1930
  output,
2098
1931
  parsedBody: parsedBody.Error,
2099
- exceptionCtor: __BaseException,
2100
1932
  errorCode,
2101
1933
  });
2102
1934
  }
@@ -2112,7 +1944,7 @@ export const de_DescribeTrafficSourcesCommand = async (output, context) => {
2112
1944
  $metadata: deserializeMetadata(output),
2113
1945
  ...contents,
2114
1946
  };
2115
- return Promise.resolve(response);
1947
+ return response;
2116
1948
  };
2117
1949
  const de_DescribeTrafficSourcesCommandError = async (output, context) => {
2118
1950
  const parsedOutput = {
@@ -2129,10 +1961,9 @@ const de_DescribeTrafficSourcesCommandError = async (output, context) => {
2129
1961
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2130
1962
  default:
2131
1963
  const parsedBody = parsedOutput.body;
2132
- throwDefaultError({
1964
+ return throwDefaultError({
2133
1965
  output,
2134
1966
  parsedBody: parsedBody.Error,
2135
- exceptionCtor: __BaseException,
2136
1967
  errorCode,
2137
1968
  });
2138
1969
  }
@@ -2148,7 +1979,7 @@ export const de_DescribeWarmPoolCommand = async (output, context) => {
2148
1979
  $metadata: deserializeMetadata(output),
2149
1980
  ...contents,
2150
1981
  };
2151
- return Promise.resolve(response);
1982
+ return response;
2152
1983
  };
2153
1984
  const de_DescribeWarmPoolCommandError = async (output, context) => {
2154
1985
  const parsedOutput = {
@@ -2168,10 +1999,9 @@ const de_DescribeWarmPoolCommandError = async (output, context) => {
2168
1999
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2169
2000
  default:
2170
2001
  const parsedBody = parsedOutput.body;
2171
- throwDefaultError({
2002
+ return throwDefaultError({
2172
2003
  output,
2173
2004
  parsedBody: parsedBody.Error,
2174
- exceptionCtor: __BaseException,
2175
2005
  errorCode,
2176
2006
  });
2177
2007
  }
@@ -2187,7 +2017,7 @@ export const de_DetachInstancesCommand = async (output, context) => {
2187
2017
  $metadata: deserializeMetadata(output),
2188
2018
  ...contents,
2189
2019
  };
2190
- return Promise.resolve(response);
2020
+ return response;
2191
2021
  };
2192
2022
  const de_DetachInstancesCommandError = async (output, context) => {
2193
2023
  const parsedOutput = {
@@ -2201,10 +2031,9 @@ const de_DetachInstancesCommandError = async (output, context) => {
2201
2031
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2202
2032
  default:
2203
2033
  const parsedBody = parsedOutput.body;
2204
- throwDefaultError({
2034
+ return throwDefaultError({
2205
2035
  output,
2206
2036
  parsedBody: parsedBody.Error,
2207
- exceptionCtor: __BaseException,
2208
2037
  errorCode,
2209
2038
  });
2210
2039
  }
@@ -2220,7 +2049,7 @@ export const de_DetachLoadBalancersCommand = async (output, context) => {
2220
2049
  $metadata: deserializeMetadata(output),
2221
2050
  ...contents,
2222
2051
  };
2223
- return Promise.resolve(response);
2052
+ return response;
2224
2053
  };
2225
2054
  const de_DetachLoadBalancersCommandError = async (output, context) => {
2226
2055
  const parsedOutput = {
@@ -2234,10 +2063,9 @@ const de_DetachLoadBalancersCommandError = async (output, context) => {
2234
2063
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2235
2064
  default:
2236
2065
  const parsedBody = parsedOutput.body;
2237
- throwDefaultError({
2066
+ return throwDefaultError({
2238
2067
  output,
2239
2068
  parsedBody: parsedBody.Error,
2240
- exceptionCtor: __BaseException,
2241
2069
  errorCode,
2242
2070
  });
2243
2071
  }
@@ -2253,7 +2081,7 @@ export const de_DetachLoadBalancerTargetGroupsCommand = async (output, context)
2253
2081
  $metadata: deserializeMetadata(output),
2254
2082
  ...contents,
2255
2083
  };
2256
- return Promise.resolve(response);
2084
+ return response;
2257
2085
  };
2258
2086
  const de_DetachLoadBalancerTargetGroupsCommandError = async (output, context) => {
2259
2087
  const parsedOutput = {
@@ -2267,10 +2095,9 @@ const de_DetachLoadBalancerTargetGroupsCommandError = async (output, context) =>
2267
2095
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2268
2096
  default:
2269
2097
  const parsedBody = parsedOutput.body;
2270
- throwDefaultError({
2098
+ return throwDefaultError({
2271
2099
  output,
2272
2100
  parsedBody: parsedBody.Error,
2273
- exceptionCtor: __BaseException,
2274
2101
  errorCode,
2275
2102
  });
2276
2103
  }
@@ -2286,7 +2113,7 @@ export const de_DetachTrafficSourcesCommand = async (output, context) => {
2286
2113
  $metadata: deserializeMetadata(output),
2287
2114
  ...contents,
2288
2115
  };
2289
- return Promise.resolve(response);
2116
+ return response;
2290
2117
  };
2291
2118
  const de_DetachTrafficSourcesCommandError = async (output, context) => {
2292
2119
  const parsedOutput = {
@@ -2300,10 +2127,9 @@ const de_DetachTrafficSourcesCommandError = async (output, context) => {
2300
2127
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2301
2128
  default:
2302
2129
  const parsedBody = parsedOutput.body;
2303
- throwDefaultError({
2130
+ return throwDefaultError({
2304
2131
  output,
2305
2132
  parsedBody: parsedBody.Error,
2306
- exceptionCtor: __BaseException,
2307
2133
  errorCode,
2308
2134
  });
2309
2135
  }
@@ -2316,7 +2142,7 @@ export const de_DisableMetricsCollectionCommand = async (output, context) => {
2316
2142
  const response = {
2317
2143
  $metadata: deserializeMetadata(output),
2318
2144
  };
2319
- return Promise.resolve(response);
2145
+ return response;
2320
2146
  };
2321
2147
  const de_DisableMetricsCollectionCommandError = async (output, context) => {
2322
2148
  const parsedOutput = {
@@ -2330,10 +2156,9 @@ const de_DisableMetricsCollectionCommandError = async (output, context) => {
2330
2156
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2331
2157
  default:
2332
2158
  const parsedBody = parsedOutput.body;
2333
- throwDefaultError({
2159
+ return throwDefaultError({
2334
2160
  output,
2335
2161
  parsedBody: parsedBody.Error,
2336
- exceptionCtor: __BaseException,
2337
2162
  errorCode,
2338
2163
  });
2339
2164
  }
@@ -2346,7 +2171,7 @@ export const de_EnableMetricsCollectionCommand = async (output, context) => {
2346
2171
  const response = {
2347
2172
  $metadata: deserializeMetadata(output),
2348
2173
  };
2349
- return Promise.resolve(response);
2174
+ return response;
2350
2175
  };
2351
2176
  const de_EnableMetricsCollectionCommandError = async (output, context) => {
2352
2177
  const parsedOutput = {
@@ -2360,10 +2185,9 @@ const de_EnableMetricsCollectionCommandError = async (output, context) => {
2360
2185
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2361
2186
  default:
2362
2187
  const parsedBody = parsedOutput.body;
2363
- throwDefaultError({
2188
+ return throwDefaultError({
2364
2189
  output,
2365
2190
  parsedBody: parsedBody.Error,
2366
- exceptionCtor: __BaseException,
2367
2191
  errorCode,
2368
2192
  });
2369
2193
  }
@@ -2379,7 +2203,7 @@ export const de_EnterStandbyCommand = async (output, context) => {
2379
2203
  $metadata: deserializeMetadata(output),
2380
2204
  ...contents,
2381
2205
  };
2382
- return Promise.resolve(response);
2206
+ return response;
2383
2207
  };
2384
2208
  const de_EnterStandbyCommandError = async (output, context) => {
2385
2209
  const parsedOutput = {
@@ -2393,10 +2217,9 @@ const de_EnterStandbyCommandError = async (output, context) => {
2393
2217
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2394
2218
  default:
2395
2219
  const parsedBody = parsedOutput.body;
2396
- throwDefaultError({
2220
+ return throwDefaultError({
2397
2221
  output,
2398
2222
  parsedBody: parsedBody.Error,
2399
- exceptionCtor: __BaseException,
2400
2223
  errorCode,
2401
2224
  });
2402
2225
  }
@@ -2409,7 +2232,7 @@ export const de_ExecutePolicyCommand = async (output, context) => {
2409
2232
  const response = {
2410
2233
  $metadata: deserializeMetadata(output),
2411
2234
  };
2412
- return Promise.resolve(response);
2235
+ return response;
2413
2236
  };
2414
2237
  const de_ExecutePolicyCommandError = async (output, context) => {
2415
2238
  const parsedOutput = {
@@ -2426,10 +2249,9 @@ const de_ExecutePolicyCommandError = async (output, context) => {
2426
2249
  throw await de_ScalingActivityInProgressFaultRes(parsedOutput, context);
2427
2250
  default:
2428
2251
  const parsedBody = parsedOutput.body;
2429
- throwDefaultError({
2252
+ return throwDefaultError({
2430
2253
  output,
2431
2254
  parsedBody: parsedBody.Error,
2432
- exceptionCtor: __BaseException,
2433
2255
  errorCode,
2434
2256
  });
2435
2257
  }
@@ -2445,7 +2267,7 @@ export const de_ExitStandbyCommand = async (output, context) => {
2445
2267
  $metadata: deserializeMetadata(output),
2446
2268
  ...contents,
2447
2269
  };
2448
- return Promise.resolve(response);
2270
+ return response;
2449
2271
  };
2450
2272
  const de_ExitStandbyCommandError = async (output, context) => {
2451
2273
  const parsedOutput = {
@@ -2459,10 +2281,9 @@ const de_ExitStandbyCommandError = async (output, context) => {
2459
2281
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2460
2282
  default:
2461
2283
  const parsedBody = parsedOutput.body;
2462
- throwDefaultError({
2284
+ return throwDefaultError({
2463
2285
  output,
2464
2286
  parsedBody: parsedBody.Error,
2465
- exceptionCtor: __BaseException,
2466
2287
  errorCode,
2467
2288
  });
2468
2289
  }
@@ -2478,7 +2299,7 @@ export const de_GetPredictiveScalingForecastCommand = async (output, context) =>
2478
2299
  $metadata: deserializeMetadata(output),
2479
2300
  ...contents,
2480
2301
  };
2481
- return Promise.resolve(response);
2302
+ return response;
2482
2303
  };
2483
2304
  const de_GetPredictiveScalingForecastCommandError = async (output, context) => {
2484
2305
  const parsedOutput = {
@@ -2492,10 +2313,9 @@ const de_GetPredictiveScalingForecastCommandError = async (output, context) => {
2492
2313
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2493
2314
  default:
2494
2315
  const parsedBody = parsedOutput.body;
2495
- throwDefaultError({
2316
+ return throwDefaultError({
2496
2317
  output,
2497
2318
  parsedBody: parsedBody.Error,
2498
- exceptionCtor: __BaseException,
2499
2319
  errorCode,
2500
2320
  });
2501
2321
  }
@@ -2511,7 +2331,7 @@ export const de_PutLifecycleHookCommand = async (output, context) => {
2511
2331
  $metadata: deserializeMetadata(output),
2512
2332
  ...contents,
2513
2333
  };
2514
- return Promise.resolve(response);
2334
+ return response;
2515
2335
  };
2516
2336
  const de_PutLifecycleHookCommandError = async (output, context) => {
2517
2337
  const parsedOutput = {
@@ -2528,10 +2348,9 @@ const de_PutLifecycleHookCommandError = async (output, context) => {
2528
2348
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2529
2349
  default:
2530
2350
  const parsedBody = parsedOutput.body;
2531
- throwDefaultError({
2351
+ return throwDefaultError({
2532
2352
  output,
2533
2353
  parsedBody: parsedBody.Error,
2534
- exceptionCtor: __BaseException,
2535
2354
  errorCode,
2536
2355
  });
2537
2356
  }
@@ -2544,7 +2363,7 @@ export const de_PutNotificationConfigurationCommand = async (output, context) =>
2544
2363
  const response = {
2545
2364
  $metadata: deserializeMetadata(output),
2546
2365
  };
2547
- return Promise.resolve(response);
2366
+ return response;
2548
2367
  };
2549
2368
  const de_PutNotificationConfigurationCommandError = async (output, context) => {
2550
2369
  const parsedOutput = {
@@ -2564,10 +2383,9 @@ const de_PutNotificationConfigurationCommandError = async (output, context) => {
2564
2383
  throw await de_ServiceLinkedRoleFailureRes(parsedOutput, context);
2565
2384
  default:
2566
2385
  const parsedBody = parsedOutput.body;
2567
- throwDefaultError({
2386
+ return throwDefaultError({
2568
2387
  output,
2569
2388
  parsedBody: parsedBody.Error,
2570
- exceptionCtor: __BaseException,
2571
2389
  errorCode,
2572
2390
  });
2573
2391
  }
@@ -2583,7 +2401,7 @@ export const de_PutScalingPolicyCommand = async (output, context) => {
2583
2401
  $metadata: deserializeMetadata(output),
2584
2402
  ...contents,
2585
2403
  };
2586
- return Promise.resolve(response);
2404
+ return response;
2587
2405
  };
2588
2406
  const de_PutScalingPolicyCommandError = async (output, context) => {
2589
2407
  const parsedOutput = {
@@ -2603,10 +2421,9 @@ const de_PutScalingPolicyCommandError = async (output, context) => {
2603
2421
  throw await de_ServiceLinkedRoleFailureRes(parsedOutput, context);
2604
2422
  default:
2605
2423
  const parsedBody = parsedOutput.body;
2606
- throwDefaultError({
2424
+ return throwDefaultError({
2607
2425
  output,
2608
2426
  parsedBody: parsedBody.Error,
2609
- exceptionCtor: __BaseException,
2610
2427
  errorCode,
2611
2428
  });
2612
2429
  }
@@ -2619,7 +2436,7 @@ export const de_PutScheduledUpdateGroupActionCommand = async (output, context) =
2619
2436
  const response = {
2620
2437
  $metadata: deserializeMetadata(output),
2621
2438
  };
2622
- return Promise.resolve(response);
2439
+ return response;
2623
2440
  };
2624
2441
  const de_PutScheduledUpdateGroupActionCommandError = async (output, context) => {
2625
2442
  const parsedOutput = {
@@ -2639,10 +2456,9 @@ const de_PutScheduledUpdateGroupActionCommandError = async (output, context) =>
2639
2456
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2640
2457
  default:
2641
2458
  const parsedBody = parsedOutput.body;
2642
- throwDefaultError({
2459
+ return throwDefaultError({
2643
2460
  output,
2644
2461
  parsedBody: parsedBody.Error,
2645
- exceptionCtor: __BaseException,
2646
2462
  errorCode,
2647
2463
  });
2648
2464
  }
@@ -2658,7 +2474,7 @@ export const de_PutWarmPoolCommand = async (output, context) => {
2658
2474
  $metadata: deserializeMetadata(output),
2659
2475
  ...contents,
2660
2476
  };
2661
- return Promise.resolve(response);
2477
+ return response;
2662
2478
  };
2663
2479
  const de_PutWarmPoolCommandError = async (output, context) => {
2664
2480
  const parsedOutput = {
@@ -2675,10 +2491,9 @@ const de_PutWarmPoolCommandError = async (output, context) => {
2675
2491
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2676
2492
  default:
2677
2493
  const parsedBody = parsedOutput.body;
2678
- throwDefaultError({
2494
+ return throwDefaultError({
2679
2495
  output,
2680
2496
  parsedBody: parsedBody.Error,
2681
- exceptionCtor: __BaseException,
2682
2497
  errorCode,
2683
2498
  });
2684
2499
  }
@@ -2694,7 +2509,7 @@ export const de_RecordLifecycleActionHeartbeatCommand = async (output, context)
2694
2509
  $metadata: deserializeMetadata(output),
2695
2510
  ...contents,
2696
2511
  };
2697
- return Promise.resolve(response);
2512
+ return response;
2698
2513
  };
2699
2514
  const de_RecordLifecycleActionHeartbeatCommandError = async (output, context) => {
2700
2515
  const parsedOutput = {
@@ -2708,10 +2523,9 @@ const de_RecordLifecycleActionHeartbeatCommandError = async (output, context) =>
2708
2523
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2709
2524
  default:
2710
2525
  const parsedBody = parsedOutput.body;
2711
- throwDefaultError({
2526
+ return throwDefaultError({
2712
2527
  output,
2713
2528
  parsedBody: parsedBody.Error,
2714
- exceptionCtor: __BaseException,
2715
2529
  errorCode,
2716
2530
  });
2717
2531
  }
@@ -2724,7 +2538,7 @@ export const de_ResumeProcessesCommand = async (output, context) => {
2724
2538
  const response = {
2725
2539
  $metadata: deserializeMetadata(output),
2726
2540
  };
2727
- return Promise.resolve(response);
2541
+ return response;
2728
2542
  };
2729
2543
  const de_ResumeProcessesCommandError = async (output, context) => {
2730
2544
  const parsedOutput = {
@@ -2741,10 +2555,9 @@ const de_ResumeProcessesCommandError = async (output, context) => {
2741
2555
  throw await de_ResourceInUseFaultRes(parsedOutput, context);
2742
2556
  default:
2743
2557
  const parsedBody = parsedOutput.body;
2744
- throwDefaultError({
2558
+ return throwDefaultError({
2745
2559
  output,
2746
2560
  parsedBody: parsedBody.Error,
2747
- exceptionCtor: __BaseException,
2748
2561
  errorCode,
2749
2562
  });
2750
2563
  }
@@ -2760,7 +2573,7 @@ export const de_RollbackInstanceRefreshCommand = async (output, context) => {
2760
2573
  $metadata: deserializeMetadata(output),
2761
2574
  ...contents,
2762
2575
  };
2763
- return Promise.resolve(response);
2576
+ return response;
2764
2577
  };
2765
2578
  const de_RollbackInstanceRefreshCommandError = async (output, context) => {
2766
2579
  const parsedOutput = {
@@ -2783,10 +2596,9 @@ const de_RollbackInstanceRefreshCommandError = async (output, context) => {
2783
2596
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2784
2597
  default:
2785
2598
  const parsedBody = parsedOutput.body;
2786
- throwDefaultError({
2599
+ return throwDefaultError({
2787
2600
  output,
2788
2601
  parsedBody: parsedBody.Error,
2789
- exceptionCtor: __BaseException,
2790
2602
  errorCode,
2791
2603
  });
2792
2604
  }
@@ -2799,7 +2611,7 @@ export const de_SetDesiredCapacityCommand = async (output, context) => {
2799
2611
  const response = {
2800
2612
  $metadata: deserializeMetadata(output),
2801
2613
  };
2802
- return Promise.resolve(response);
2614
+ return response;
2803
2615
  };
2804
2616
  const de_SetDesiredCapacityCommandError = async (output, context) => {
2805
2617
  const parsedOutput = {
@@ -2816,10 +2628,9 @@ const de_SetDesiredCapacityCommandError = async (output, context) => {
2816
2628
  throw await de_ScalingActivityInProgressFaultRes(parsedOutput, context);
2817
2629
  default:
2818
2630
  const parsedBody = parsedOutput.body;
2819
- throwDefaultError({
2631
+ return throwDefaultError({
2820
2632
  output,
2821
2633
  parsedBody: parsedBody.Error,
2822
- exceptionCtor: __BaseException,
2823
2634
  errorCode,
2824
2635
  });
2825
2636
  }
@@ -2832,7 +2643,7 @@ export const de_SetInstanceHealthCommand = async (output, context) => {
2832
2643
  const response = {
2833
2644
  $metadata: deserializeMetadata(output),
2834
2645
  };
2835
- return Promise.resolve(response);
2646
+ return response;
2836
2647
  };
2837
2648
  const de_SetInstanceHealthCommandError = async (output, context) => {
2838
2649
  const parsedOutput = {
@@ -2846,10 +2657,9 @@ const de_SetInstanceHealthCommandError = async (output, context) => {
2846
2657
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2847
2658
  default:
2848
2659
  const parsedBody = parsedOutput.body;
2849
- throwDefaultError({
2660
+ return throwDefaultError({
2850
2661
  output,
2851
2662
  parsedBody: parsedBody.Error,
2852
- exceptionCtor: __BaseException,
2853
2663
  errorCode,
2854
2664
  });
2855
2665
  }
@@ -2865,7 +2675,7 @@ export const de_SetInstanceProtectionCommand = async (output, context) => {
2865
2675
  $metadata: deserializeMetadata(output),
2866
2676
  ...contents,
2867
2677
  };
2868
- return Promise.resolve(response);
2678
+ return response;
2869
2679
  };
2870
2680
  const de_SetInstanceProtectionCommandError = async (output, context) => {
2871
2681
  const parsedOutput = {
@@ -2882,10 +2692,9 @@ const de_SetInstanceProtectionCommandError = async (output, context) => {
2882
2692
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2883
2693
  default:
2884
2694
  const parsedBody = parsedOutput.body;
2885
- throwDefaultError({
2695
+ return throwDefaultError({
2886
2696
  output,
2887
2697
  parsedBody: parsedBody.Error,
2888
- exceptionCtor: __BaseException,
2889
2698
  errorCode,
2890
2699
  });
2891
2700
  }
@@ -2901,7 +2710,7 @@ export const de_StartInstanceRefreshCommand = async (output, context) => {
2901
2710
  $metadata: deserializeMetadata(output),
2902
2711
  ...contents,
2903
2712
  };
2904
- return Promise.resolve(response);
2713
+ return response;
2905
2714
  };
2906
2715
  const de_StartInstanceRefreshCommandError = async (output, context) => {
2907
2716
  const parsedOutput = {
@@ -2921,10 +2730,9 @@ const de_StartInstanceRefreshCommandError = async (output, context) => {
2921
2730
  throw await de_ResourceContentionFaultRes(parsedOutput, context);
2922
2731
  default:
2923
2732
  const parsedBody = parsedOutput.body;
2924
- throwDefaultError({
2733
+ return throwDefaultError({
2925
2734
  output,
2926
2735
  parsedBody: parsedBody.Error,
2927
- exceptionCtor: __BaseException,
2928
2736
  errorCode,
2929
2737
  });
2930
2738
  }
@@ -2937,7 +2745,7 @@ export const de_SuspendProcessesCommand = async (output, context) => {
2937
2745
  const response = {
2938
2746
  $metadata: deserializeMetadata(output),
2939
2747
  };
2940
- return Promise.resolve(response);
2748
+ return response;
2941
2749
  };
2942
2750
  const de_SuspendProcessesCommandError = async (output, context) => {
2943
2751
  const parsedOutput = {
@@ -2954,10 +2762,9 @@ const de_SuspendProcessesCommandError = async (output, context) => {
2954
2762
  throw await de_ResourceInUseFaultRes(parsedOutput, context);
2955
2763
  default:
2956
2764
  const parsedBody = parsedOutput.body;
2957
- throwDefaultError({
2765
+ return throwDefaultError({
2958
2766
  output,
2959
2767
  parsedBody: parsedBody.Error,
2960
- exceptionCtor: __BaseException,
2961
2768
  errorCode,
2962
2769
  });
2963
2770
  }
@@ -2973,7 +2780,7 @@ export const de_TerminateInstanceInAutoScalingGroupCommand = async (output, cont
2973
2780
  $metadata: deserializeMetadata(output),
2974
2781
  ...contents,
2975
2782
  };
2976
- return Promise.resolve(response);
2783
+ return response;
2977
2784
  };
2978
2785
  const de_TerminateInstanceInAutoScalingGroupCommandError = async (output, context) => {
2979
2786
  const parsedOutput = {
@@ -2990,10 +2797,9 @@ const de_TerminateInstanceInAutoScalingGroupCommandError = async (output, contex
2990
2797
  throw await de_ScalingActivityInProgressFaultRes(parsedOutput, context);
2991
2798
  default:
2992
2799
  const parsedBody = parsedOutput.body;
2993
- throwDefaultError({
2800
+ return throwDefaultError({
2994
2801
  output,
2995
2802
  parsedBody: parsedBody.Error,
2996
- exceptionCtor: __BaseException,
2997
2803
  errorCode,
2998
2804
  });
2999
2805
  }
@@ -3006,7 +2812,7 @@ export const de_UpdateAutoScalingGroupCommand = async (output, context) => {
3006
2812
  const response = {
3007
2813
  $metadata: deserializeMetadata(output),
3008
2814
  };
3009
- return Promise.resolve(response);
2815
+ return response;
3010
2816
  };
3011
2817
  const de_UpdateAutoScalingGroupCommandError = async (output, context) => {
3012
2818
  const parsedOutput = {
@@ -3026,10 +2832,9 @@ const de_UpdateAutoScalingGroupCommandError = async (output, context) => {
3026
2832
  throw await de_ServiceLinkedRoleFailureRes(parsedOutput, context);
3027
2833
  default:
3028
2834
  const parsedBody = parsedOutput.body;
3029
- throwDefaultError({
2835
+ return throwDefaultError({
3030
2836
  output,
3031
2837
  parsedBody: parsedBody.Error,
3032
- exceptionCtor: __BaseException,
3033
2838
  errorCode,
3034
2839
  });
3035
2840
  }
@@ -8081,6 +7886,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
8081
7886
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
8082
7887
  };
8083
7888
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
7889
+ const throwDefaultError = withBaseException(__BaseException);
8084
7890
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
8085
7891
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8086
7892
  const contents = {
@@ -8099,6 +7905,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
8099
7905
  }
8100
7906
  return new __HttpRequest(contents);
8101
7907
  };
7908
+ const SHARED_HEADERS = {
7909
+ "content-type": "application/x-www-form-urlencoded",
7910
+ };
8102
7911
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
8103
7912
  if (encoded.length) {
8104
7913
  const parser = new XMLParser({