@aws-sdk/client-elastic-beanstalk 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.
@@ -8,9 +8,7 @@ const fast_xml_parser_1 = require("fast-xml-parser");
8
8
  const ElasticBeanstalkServiceException_1 = require("../models/ElasticBeanstalkServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_AbortEnvironmentUpdateCommand = async (input, context) => {
11
- const headers = {
12
- "content-type": "application/x-www-form-urlencoded",
13
- };
11
+ const headers = SHARED_HEADERS;
14
12
  let body;
15
13
  body = buildFormUrlencodedString({
16
14
  ...se_AbortEnvironmentUpdateMessage(input, context),
@@ -21,9 +19,7 @@ const se_AbortEnvironmentUpdateCommand = async (input, context) => {
21
19
  };
22
20
  exports.se_AbortEnvironmentUpdateCommand = se_AbortEnvironmentUpdateCommand;
23
21
  const se_ApplyEnvironmentManagedActionCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-www-form-urlencoded",
26
- };
22
+ const headers = SHARED_HEADERS;
27
23
  let body;
28
24
  body = buildFormUrlencodedString({
29
25
  ...se_ApplyEnvironmentManagedActionRequest(input, context),
@@ -34,9 +30,7 @@ const se_ApplyEnvironmentManagedActionCommand = async (input, context) => {
34
30
  };
35
31
  exports.se_ApplyEnvironmentManagedActionCommand = se_ApplyEnvironmentManagedActionCommand;
36
32
  const se_AssociateEnvironmentOperationsRoleCommand = async (input, context) => {
37
- const headers = {
38
- "content-type": "application/x-www-form-urlencoded",
39
- };
33
+ const headers = SHARED_HEADERS;
40
34
  let body;
41
35
  body = buildFormUrlencodedString({
42
36
  ...se_AssociateEnvironmentOperationsRoleMessage(input, context),
@@ -47,9 +41,7 @@ const se_AssociateEnvironmentOperationsRoleCommand = async (input, context) => {
47
41
  };
48
42
  exports.se_AssociateEnvironmentOperationsRoleCommand = se_AssociateEnvironmentOperationsRoleCommand;
49
43
  const se_CheckDNSAvailabilityCommand = async (input, context) => {
50
- const headers = {
51
- "content-type": "application/x-www-form-urlencoded",
52
- };
44
+ const headers = SHARED_HEADERS;
53
45
  let body;
54
46
  body = buildFormUrlencodedString({
55
47
  ...se_CheckDNSAvailabilityMessage(input, context),
@@ -60,9 +52,7 @@ const se_CheckDNSAvailabilityCommand = async (input, context) => {
60
52
  };
61
53
  exports.se_CheckDNSAvailabilityCommand = se_CheckDNSAvailabilityCommand;
62
54
  const se_ComposeEnvironmentsCommand = async (input, context) => {
63
- const headers = {
64
- "content-type": "application/x-www-form-urlencoded",
65
- };
55
+ const headers = SHARED_HEADERS;
66
56
  let body;
67
57
  body = buildFormUrlencodedString({
68
58
  ...se_ComposeEnvironmentsMessage(input, context),
@@ -73,9 +63,7 @@ const se_ComposeEnvironmentsCommand = async (input, context) => {
73
63
  };
74
64
  exports.se_ComposeEnvironmentsCommand = se_ComposeEnvironmentsCommand;
75
65
  const se_CreateApplicationCommand = async (input, context) => {
76
- const headers = {
77
- "content-type": "application/x-www-form-urlencoded",
78
- };
66
+ const headers = SHARED_HEADERS;
79
67
  let body;
80
68
  body = buildFormUrlencodedString({
81
69
  ...se_CreateApplicationMessage(input, context),
@@ -86,9 +74,7 @@ const se_CreateApplicationCommand = async (input, context) => {
86
74
  };
87
75
  exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
88
76
  const se_CreateApplicationVersionCommand = async (input, context) => {
89
- const headers = {
90
- "content-type": "application/x-www-form-urlencoded",
91
- };
77
+ const headers = SHARED_HEADERS;
92
78
  let body;
93
79
  body = buildFormUrlencodedString({
94
80
  ...se_CreateApplicationVersionMessage(input, context),
@@ -99,9 +85,7 @@ const se_CreateApplicationVersionCommand = async (input, context) => {
99
85
  };
100
86
  exports.se_CreateApplicationVersionCommand = se_CreateApplicationVersionCommand;
101
87
  const se_CreateConfigurationTemplateCommand = async (input, context) => {
102
- const headers = {
103
- "content-type": "application/x-www-form-urlencoded",
104
- };
88
+ const headers = SHARED_HEADERS;
105
89
  let body;
106
90
  body = buildFormUrlencodedString({
107
91
  ...se_CreateConfigurationTemplateMessage(input, context),
@@ -112,9 +96,7 @@ const se_CreateConfigurationTemplateCommand = async (input, context) => {
112
96
  };
113
97
  exports.se_CreateConfigurationTemplateCommand = se_CreateConfigurationTemplateCommand;
114
98
  const se_CreateEnvironmentCommand = async (input, context) => {
115
- const headers = {
116
- "content-type": "application/x-www-form-urlencoded",
117
- };
99
+ const headers = SHARED_HEADERS;
118
100
  let body;
119
101
  body = buildFormUrlencodedString({
120
102
  ...se_CreateEnvironmentMessage(input, context),
@@ -125,9 +107,7 @@ const se_CreateEnvironmentCommand = async (input, context) => {
125
107
  };
126
108
  exports.se_CreateEnvironmentCommand = se_CreateEnvironmentCommand;
127
109
  const se_CreatePlatformVersionCommand = async (input, context) => {
128
- const headers = {
129
- "content-type": "application/x-www-form-urlencoded",
130
- };
110
+ const headers = SHARED_HEADERS;
131
111
  let body;
132
112
  body = buildFormUrlencodedString({
133
113
  ...se_CreatePlatformVersionRequest(input, context),
@@ -138,9 +118,7 @@ const se_CreatePlatformVersionCommand = async (input, context) => {
138
118
  };
139
119
  exports.se_CreatePlatformVersionCommand = se_CreatePlatformVersionCommand;
140
120
  const se_CreateStorageLocationCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-www-form-urlencoded",
143
- };
121
+ const headers = SHARED_HEADERS;
144
122
  const body = buildFormUrlencodedString({
145
123
  Action: "CreateStorageLocation",
146
124
  Version: "2010-12-01",
@@ -149,9 +127,7 @@ const se_CreateStorageLocationCommand = async (input, context) => {
149
127
  };
150
128
  exports.se_CreateStorageLocationCommand = se_CreateStorageLocationCommand;
151
129
  const se_DeleteApplicationCommand = async (input, context) => {
152
- const headers = {
153
- "content-type": "application/x-www-form-urlencoded",
154
- };
130
+ const headers = SHARED_HEADERS;
155
131
  let body;
156
132
  body = buildFormUrlencodedString({
157
133
  ...se_DeleteApplicationMessage(input, context),
@@ -162,9 +138,7 @@ const se_DeleteApplicationCommand = async (input, context) => {
162
138
  };
163
139
  exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
164
140
  const se_DeleteApplicationVersionCommand = async (input, context) => {
165
- const headers = {
166
- "content-type": "application/x-www-form-urlencoded",
167
- };
141
+ const headers = SHARED_HEADERS;
168
142
  let body;
169
143
  body = buildFormUrlencodedString({
170
144
  ...se_DeleteApplicationVersionMessage(input, context),
@@ -175,9 +149,7 @@ const se_DeleteApplicationVersionCommand = async (input, context) => {
175
149
  };
176
150
  exports.se_DeleteApplicationVersionCommand = se_DeleteApplicationVersionCommand;
177
151
  const se_DeleteConfigurationTemplateCommand = async (input, context) => {
178
- const headers = {
179
- "content-type": "application/x-www-form-urlencoded",
180
- };
152
+ const headers = SHARED_HEADERS;
181
153
  let body;
182
154
  body = buildFormUrlencodedString({
183
155
  ...se_DeleteConfigurationTemplateMessage(input, context),
@@ -188,9 +160,7 @@ const se_DeleteConfigurationTemplateCommand = async (input, context) => {
188
160
  };
189
161
  exports.se_DeleteConfigurationTemplateCommand = se_DeleteConfigurationTemplateCommand;
190
162
  const se_DeleteEnvironmentConfigurationCommand = async (input, context) => {
191
- const headers = {
192
- "content-type": "application/x-www-form-urlencoded",
193
- };
163
+ const headers = SHARED_HEADERS;
194
164
  let body;
195
165
  body = buildFormUrlencodedString({
196
166
  ...se_DeleteEnvironmentConfigurationMessage(input, context),
@@ -201,9 +171,7 @@ const se_DeleteEnvironmentConfigurationCommand = async (input, context) => {
201
171
  };
202
172
  exports.se_DeleteEnvironmentConfigurationCommand = se_DeleteEnvironmentConfigurationCommand;
203
173
  const se_DeletePlatformVersionCommand = async (input, context) => {
204
- const headers = {
205
- "content-type": "application/x-www-form-urlencoded",
206
- };
174
+ const headers = SHARED_HEADERS;
207
175
  let body;
208
176
  body = buildFormUrlencodedString({
209
177
  ...se_DeletePlatformVersionRequest(input, context),
@@ -214,9 +182,7 @@ const se_DeletePlatformVersionCommand = async (input, context) => {
214
182
  };
215
183
  exports.se_DeletePlatformVersionCommand = se_DeletePlatformVersionCommand;
216
184
  const se_DescribeAccountAttributesCommand = async (input, context) => {
217
- const headers = {
218
- "content-type": "application/x-www-form-urlencoded",
219
- };
185
+ const headers = SHARED_HEADERS;
220
186
  const body = buildFormUrlencodedString({
221
187
  Action: "DescribeAccountAttributes",
222
188
  Version: "2010-12-01",
@@ -225,9 +191,7 @@ const se_DescribeAccountAttributesCommand = async (input, context) => {
225
191
  };
226
192
  exports.se_DescribeAccountAttributesCommand = se_DescribeAccountAttributesCommand;
227
193
  const se_DescribeApplicationsCommand = async (input, context) => {
228
- const headers = {
229
- "content-type": "application/x-www-form-urlencoded",
230
- };
194
+ const headers = SHARED_HEADERS;
231
195
  let body;
232
196
  body = buildFormUrlencodedString({
233
197
  ...se_DescribeApplicationsMessage(input, context),
@@ -238,9 +202,7 @@ const se_DescribeApplicationsCommand = async (input, context) => {
238
202
  };
239
203
  exports.se_DescribeApplicationsCommand = se_DescribeApplicationsCommand;
240
204
  const se_DescribeApplicationVersionsCommand = async (input, context) => {
241
- const headers = {
242
- "content-type": "application/x-www-form-urlencoded",
243
- };
205
+ const headers = SHARED_HEADERS;
244
206
  let body;
245
207
  body = buildFormUrlencodedString({
246
208
  ...se_DescribeApplicationVersionsMessage(input, context),
@@ -251,9 +213,7 @@ const se_DescribeApplicationVersionsCommand = async (input, context) => {
251
213
  };
252
214
  exports.se_DescribeApplicationVersionsCommand = se_DescribeApplicationVersionsCommand;
253
215
  const se_DescribeConfigurationOptionsCommand = async (input, context) => {
254
- const headers = {
255
- "content-type": "application/x-www-form-urlencoded",
256
- };
216
+ const headers = SHARED_HEADERS;
257
217
  let body;
258
218
  body = buildFormUrlencodedString({
259
219
  ...se_DescribeConfigurationOptionsMessage(input, context),
@@ -264,9 +224,7 @@ const se_DescribeConfigurationOptionsCommand = async (input, context) => {
264
224
  };
265
225
  exports.se_DescribeConfigurationOptionsCommand = se_DescribeConfigurationOptionsCommand;
266
226
  const se_DescribeConfigurationSettingsCommand = async (input, context) => {
267
- const headers = {
268
- "content-type": "application/x-www-form-urlencoded",
269
- };
227
+ const headers = SHARED_HEADERS;
270
228
  let body;
271
229
  body = buildFormUrlencodedString({
272
230
  ...se_DescribeConfigurationSettingsMessage(input, context),
@@ -277,9 +235,7 @@ const se_DescribeConfigurationSettingsCommand = async (input, context) => {
277
235
  };
278
236
  exports.se_DescribeConfigurationSettingsCommand = se_DescribeConfigurationSettingsCommand;
279
237
  const se_DescribeEnvironmentHealthCommand = async (input, context) => {
280
- const headers = {
281
- "content-type": "application/x-www-form-urlencoded",
282
- };
238
+ const headers = SHARED_HEADERS;
283
239
  let body;
284
240
  body = buildFormUrlencodedString({
285
241
  ...se_DescribeEnvironmentHealthRequest(input, context),
@@ -290,9 +246,7 @@ const se_DescribeEnvironmentHealthCommand = async (input, context) => {
290
246
  };
291
247
  exports.se_DescribeEnvironmentHealthCommand = se_DescribeEnvironmentHealthCommand;
292
248
  const se_DescribeEnvironmentManagedActionHistoryCommand = async (input, context) => {
293
- const headers = {
294
- "content-type": "application/x-www-form-urlencoded",
295
- };
249
+ const headers = SHARED_HEADERS;
296
250
  let body;
297
251
  body = buildFormUrlencodedString({
298
252
  ...se_DescribeEnvironmentManagedActionHistoryRequest(input, context),
@@ -303,9 +257,7 @@ const se_DescribeEnvironmentManagedActionHistoryCommand = async (input, context)
303
257
  };
304
258
  exports.se_DescribeEnvironmentManagedActionHistoryCommand = se_DescribeEnvironmentManagedActionHistoryCommand;
305
259
  const se_DescribeEnvironmentManagedActionsCommand = async (input, context) => {
306
- const headers = {
307
- "content-type": "application/x-www-form-urlencoded",
308
- };
260
+ const headers = SHARED_HEADERS;
309
261
  let body;
310
262
  body = buildFormUrlencodedString({
311
263
  ...se_DescribeEnvironmentManagedActionsRequest(input, context),
@@ -316,9 +268,7 @@ const se_DescribeEnvironmentManagedActionsCommand = async (input, context) => {
316
268
  };
317
269
  exports.se_DescribeEnvironmentManagedActionsCommand = se_DescribeEnvironmentManagedActionsCommand;
318
270
  const se_DescribeEnvironmentResourcesCommand = async (input, context) => {
319
- const headers = {
320
- "content-type": "application/x-www-form-urlencoded",
321
- };
271
+ const headers = SHARED_HEADERS;
322
272
  let body;
323
273
  body = buildFormUrlencodedString({
324
274
  ...se_DescribeEnvironmentResourcesMessage(input, context),
@@ -329,9 +279,7 @@ const se_DescribeEnvironmentResourcesCommand = async (input, context) => {
329
279
  };
330
280
  exports.se_DescribeEnvironmentResourcesCommand = se_DescribeEnvironmentResourcesCommand;
331
281
  const se_DescribeEnvironmentsCommand = async (input, context) => {
332
- const headers = {
333
- "content-type": "application/x-www-form-urlencoded",
334
- };
282
+ const headers = SHARED_HEADERS;
335
283
  let body;
336
284
  body = buildFormUrlencodedString({
337
285
  ...se_DescribeEnvironmentsMessage(input, context),
@@ -342,9 +290,7 @@ const se_DescribeEnvironmentsCommand = async (input, context) => {
342
290
  };
343
291
  exports.se_DescribeEnvironmentsCommand = se_DescribeEnvironmentsCommand;
344
292
  const se_DescribeEventsCommand = async (input, context) => {
345
- const headers = {
346
- "content-type": "application/x-www-form-urlencoded",
347
- };
293
+ const headers = SHARED_HEADERS;
348
294
  let body;
349
295
  body = buildFormUrlencodedString({
350
296
  ...se_DescribeEventsMessage(input, context),
@@ -355,9 +301,7 @@ const se_DescribeEventsCommand = async (input, context) => {
355
301
  };
356
302
  exports.se_DescribeEventsCommand = se_DescribeEventsCommand;
357
303
  const se_DescribeInstancesHealthCommand = async (input, context) => {
358
- const headers = {
359
- "content-type": "application/x-www-form-urlencoded",
360
- };
304
+ const headers = SHARED_HEADERS;
361
305
  let body;
362
306
  body = buildFormUrlencodedString({
363
307
  ...se_DescribeInstancesHealthRequest(input, context),
@@ -368,9 +312,7 @@ const se_DescribeInstancesHealthCommand = async (input, context) => {
368
312
  };
369
313
  exports.se_DescribeInstancesHealthCommand = se_DescribeInstancesHealthCommand;
370
314
  const se_DescribePlatformVersionCommand = async (input, context) => {
371
- const headers = {
372
- "content-type": "application/x-www-form-urlencoded",
373
- };
315
+ const headers = SHARED_HEADERS;
374
316
  let body;
375
317
  body = buildFormUrlencodedString({
376
318
  ...se_DescribePlatformVersionRequest(input, context),
@@ -381,9 +323,7 @@ const se_DescribePlatformVersionCommand = async (input, context) => {
381
323
  };
382
324
  exports.se_DescribePlatformVersionCommand = se_DescribePlatformVersionCommand;
383
325
  const se_DisassociateEnvironmentOperationsRoleCommand = async (input, context) => {
384
- const headers = {
385
- "content-type": "application/x-www-form-urlencoded",
386
- };
326
+ const headers = SHARED_HEADERS;
387
327
  let body;
388
328
  body = buildFormUrlencodedString({
389
329
  ...se_DisassociateEnvironmentOperationsRoleMessage(input, context),
@@ -394,9 +334,7 @@ const se_DisassociateEnvironmentOperationsRoleCommand = async (input, context) =
394
334
  };
395
335
  exports.se_DisassociateEnvironmentOperationsRoleCommand = se_DisassociateEnvironmentOperationsRoleCommand;
396
336
  const se_ListAvailableSolutionStacksCommand = async (input, context) => {
397
- const headers = {
398
- "content-type": "application/x-www-form-urlencoded",
399
- };
337
+ const headers = SHARED_HEADERS;
400
338
  const body = buildFormUrlencodedString({
401
339
  Action: "ListAvailableSolutionStacks",
402
340
  Version: "2010-12-01",
@@ -405,9 +343,7 @@ const se_ListAvailableSolutionStacksCommand = async (input, context) => {
405
343
  };
406
344
  exports.se_ListAvailableSolutionStacksCommand = se_ListAvailableSolutionStacksCommand;
407
345
  const se_ListPlatformBranchesCommand = async (input, context) => {
408
- const headers = {
409
- "content-type": "application/x-www-form-urlencoded",
410
- };
346
+ const headers = SHARED_HEADERS;
411
347
  let body;
412
348
  body = buildFormUrlencodedString({
413
349
  ...se_ListPlatformBranchesRequest(input, context),
@@ -418,9 +354,7 @@ const se_ListPlatformBranchesCommand = async (input, context) => {
418
354
  };
419
355
  exports.se_ListPlatformBranchesCommand = se_ListPlatformBranchesCommand;
420
356
  const se_ListPlatformVersionsCommand = async (input, context) => {
421
- const headers = {
422
- "content-type": "application/x-www-form-urlencoded",
423
- };
357
+ const headers = SHARED_HEADERS;
424
358
  let body;
425
359
  body = buildFormUrlencodedString({
426
360
  ...se_ListPlatformVersionsRequest(input, context),
@@ -431,9 +365,7 @@ const se_ListPlatformVersionsCommand = async (input, context) => {
431
365
  };
432
366
  exports.se_ListPlatformVersionsCommand = se_ListPlatformVersionsCommand;
433
367
  const se_ListTagsForResourceCommand = async (input, context) => {
434
- const headers = {
435
- "content-type": "application/x-www-form-urlencoded",
436
- };
368
+ const headers = SHARED_HEADERS;
437
369
  let body;
438
370
  body = buildFormUrlencodedString({
439
371
  ...se_ListTagsForResourceMessage(input, context),
@@ -444,9 +376,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
444
376
  };
445
377
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
446
378
  const se_RebuildEnvironmentCommand = async (input, context) => {
447
- const headers = {
448
- "content-type": "application/x-www-form-urlencoded",
449
- };
379
+ const headers = SHARED_HEADERS;
450
380
  let body;
451
381
  body = buildFormUrlencodedString({
452
382
  ...se_RebuildEnvironmentMessage(input, context),
@@ -457,9 +387,7 @@ const se_RebuildEnvironmentCommand = async (input, context) => {
457
387
  };
458
388
  exports.se_RebuildEnvironmentCommand = se_RebuildEnvironmentCommand;
459
389
  const se_RequestEnvironmentInfoCommand = async (input, context) => {
460
- const headers = {
461
- "content-type": "application/x-www-form-urlencoded",
462
- };
390
+ const headers = SHARED_HEADERS;
463
391
  let body;
464
392
  body = buildFormUrlencodedString({
465
393
  ...se_RequestEnvironmentInfoMessage(input, context),
@@ -470,9 +398,7 @@ const se_RequestEnvironmentInfoCommand = async (input, context) => {
470
398
  };
471
399
  exports.se_RequestEnvironmentInfoCommand = se_RequestEnvironmentInfoCommand;
472
400
  const se_RestartAppServerCommand = async (input, context) => {
473
- const headers = {
474
- "content-type": "application/x-www-form-urlencoded",
475
- };
401
+ const headers = SHARED_HEADERS;
476
402
  let body;
477
403
  body = buildFormUrlencodedString({
478
404
  ...se_RestartAppServerMessage(input, context),
@@ -483,9 +409,7 @@ const se_RestartAppServerCommand = async (input, context) => {
483
409
  };
484
410
  exports.se_RestartAppServerCommand = se_RestartAppServerCommand;
485
411
  const se_RetrieveEnvironmentInfoCommand = async (input, context) => {
486
- const headers = {
487
- "content-type": "application/x-www-form-urlencoded",
488
- };
412
+ const headers = SHARED_HEADERS;
489
413
  let body;
490
414
  body = buildFormUrlencodedString({
491
415
  ...se_RetrieveEnvironmentInfoMessage(input, context),
@@ -496,9 +420,7 @@ const se_RetrieveEnvironmentInfoCommand = async (input, context) => {
496
420
  };
497
421
  exports.se_RetrieveEnvironmentInfoCommand = se_RetrieveEnvironmentInfoCommand;
498
422
  const se_SwapEnvironmentCNAMEsCommand = async (input, context) => {
499
- const headers = {
500
- "content-type": "application/x-www-form-urlencoded",
501
- };
423
+ const headers = SHARED_HEADERS;
502
424
  let body;
503
425
  body = buildFormUrlencodedString({
504
426
  ...se_SwapEnvironmentCNAMEsMessage(input, context),
@@ -509,9 +431,7 @@ const se_SwapEnvironmentCNAMEsCommand = async (input, context) => {
509
431
  };
510
432
  exports.se_SwapEnvironmentCNAMEsCommand = se_SwapEnvironmentCNAMEsCommand;
511
433
  const se_TerminateEnvironmentCommand = async (input, context) => {
512
- const headers = {
513
- "content-type": "application/x-www-form-urlencoded",
514
- };
434
+ const headers = SHARED_HEADERS;
515
435
  let body;
516
436
  body = buildFormUrlencodedString({
517
437
  ...se_TerminateEnvironmentMessage(input, context),
@@ -522,9 +442,7 @@ const se_TerminateEnvironmentCommand = async (input, context) => {
522
442
  };
523
443
  exports.se_TerminateEnvironmentCommand = se_TerminateEnvironmentCommand;
524
444
  const se_UpdateApplicationCommand = async (input, context) => {
525
- const headers = {
526
- "content-type": "application/x-www-form-urlencoded",
527
- };
445
+ const headers = SHARED_HEADERS;
528
446
  let body;
529
447
  body = buildFormUrlencodedString({
530
448
  ...se_UpdateApplicationMessage(input, context),
@@ -535,9 +453,7 @@ const se_UpdateApplicationCommand = async (input, context) => {
535
453
  };
536
454
  exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
537
455
  const se_UpdateApplicationResourceLifecycleCommand = async (input, context) => {
538
- const headers = {
539
- "content-type": "application/x-www-form-urlencoded",
540
- };
456
+ const headers = SHARED_HEADERS;
541
457
  let body;
542
458
  body = buildFormUrlencodedString({
543
459
  ...se_UpdateApplicationResourceLifecycleMessage(input, context),
@@ -548,9 +464,7 @@ const se_UpdateApplicationResourceLifecycleCommand = async (input, context) => {
548
464
  };
549
465
  exports.se_UpdateApplicationResourceLifecycleCommand = se_UpdateApplicationResourceLifecycleCommand;
550
466
  const se_UpdateApplicationVersionCommand = async (input, context) => {
551
- const headers = {
552
- "content-type": "application/x-www-form-urlencoded",
553
- };
467
+ const headers = SHARED_HEADERS;
554
468
  let body;
555
469
  body = buildFormUrlencodedString({
556
470
  ...se_UpdateApplicationVersionMessage(input, context),
@@ -561,9 +475,7 @@ const se_UpdateApplicationVersionCommand = async (input, context) => {
561
475
  };
562
476
  exports.se_UpdateApplicationVersionCommand = se_UpdateApplicationVersionCommand;
563
477
  const se_UpdateConfigurationTemplateCommand = async (input, context) => {
564
- const headers = {
565
- "content-type": "application/x-www-form-urlencoded",
566
- };
478
+ const headers = SHARED_HEADERS;
567
479
  let body;
568
480
  body = buildFormUrlencodedString({
569
481
  ...se_UpdateConfigurationTemplateMessage(input, context),
@@ -574,9 +486,7 @@ const se_UpdateConfigurationTemplateCommand = async (input, context) => {
574
486
  };
575
487
  exports.se_UpdateConfigurationTemplateCommand = se_UpdateConfigurationTemplateCommand;
576
488
  const se_UpdateEnvironmentCommand = async (input, context) => {
577
- const headers = {
578
- "content-type": "application/x-www-form-urlencoded",
579
- };
489
+ const headers = SHARED_HEADERS;
580
490
  let body;
581
491
  body = buildFormUrlencodedString({
582
492
  ...se_UpdateEnvironmentMessage(input, context),
@@ -587,9 +497,7 @@ const se_UpdateEnvironmentCommand = async (input, context) => {
587
497
  };
588
498
  exports.se_UpdateEnvironmentCommand = se_UpdateEnvironmentCommand;
589
499
  const se_UpdateTagsForResourceCommand = async (input, context) => {
590
- const headers = {
591
- "content-type": "application/x-www-form-urlencoded",
592
- };
500
+ const headers = SHARED_HEADERS;
593
501
  let body;
594
502
  body = buildFormUrlencodedString({
595
503
  ...se_UpdateTagsForResourceMessage(input, context),
@@ -600,9 +508,7 @@ const se_UpdateTagsForResourceCommand = async (input, context) => {
600
508
  };
601
509
  exports.se_UpdateTagsForResourceCommand = se_UpdateTagsForResourceCommand;
602
510
  const se_ValidateConfigurationSettingsCommand = async (input, context) => {
603
- const headers = {
604
- "content-type": "application/x-www-form-urlencoded",
605
- };
511
+ const headers = SHARED_HEADERS;
606
512
  let body;
607
513
  body = buildFormUrlencodedString({
608
514
  ...se_ValidateConfigurationSettingsMessage(input, context),
@@ -620,7 +526,7 @@ const de_AbortEnvironmentUpdateCommand = async (output, context) => {
620
526
  const response = {
621
527
  $metadata: deserializeMetadata(output),
622
528
  };
623
- return Promise.resolve(response);
529
+ return response;
624
530
  };
625
531
  exports.de_AbortEnvironmentUpdateCommand = de_AbortEnvironmentUpdateCommand;
626
532
  const de_AbortEnvironmentUpdateCommandError = async (output, context) => {
@@ -635,10 +541,9 @@ const de_AbortEnvironmentUpdateCommandError = async (output, context) => {
635
541
  throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
636
542
  default:
637
543
  const parsedBody = parsedOutput.body;
638
- (0, smithy_client_1.throwDefaultError)({
544
+ return throwDefaultError({
639
545
  output,
640
546
  parsedBody: parsedBody.Error,
641
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
642
547
  errorCode,
643
548
  });
644
549
  }
@@ -654,7 +559,7 @@ const de_ApplyEnvironmentManagedActionCommand = async (output, context) => {
654
559
  $metadata: deserializeMetadata(output),
655
560
  ...contents,
656
561
  };
657
- return Promise.resolve(response);
562
+ return response;
658
563
  };
659
564
  exports.de_ApplyEnvironmentManagedActionCommand = de_ApplyEnvironmentManagedActionCommand;
660
565
  const de_ApplyEnvironmentManagedActionCommandError = async (output, context) => {
@@ -672,10 +577,9 @@ const de_ApplyEnvironmentManagedActionCommandError = async (output, context) =>
672
577
  throw await de_ManagedActionInvalidStateExceptionRes(parsedOutput, context);
673
578
  default:
674
579
  const parsedBody = parsedOutput.body;
675
- (0, smithy_client_1.throwDefaultError)({
580
+ return throwDefaultError({
676
581
  output,
677
582
  parsedBody: parsedBody.Error,
678
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
679
583
  errorCode,
680
584
  });
681
585
  }
@@ -688,7 +592,7 @@ const de_AssociateEnvironmentOperationsRoleCommand = async (output, context) =>
688
592
  const response = {
689
593
  $metadata: deserializeMetadata(output),
690
594
  };
691
- return Promise.resolve(response);
595
+ return response;
692
596
  };
693
597
  exports.de_AssociateEnvironmentOperationsRoleCommand = de_AssociateEnvironmentOperationsRoleCommand;
694
598
  const de_AssociateEnvironmentOperationsRoleCommandError = async (output, context) => {
@@ -703,10 +607,9 @@ const de_AssociateEnvironmentOperationsRoleCommandError = async (output, context
703
607
  throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
704
608
  default:
705
609
  const parsedBody = parsedOutput.body;
706
- (0, smithy_client_1.throwDefaultError)({
610
+ return throwDefaultError({
707
611
  output,
708
612
  parsedBody: parsedBody.Error,
709
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
710
613
  errorCode,
711
614
  });
712
615
  }
@@ -722,7 +625,7 @@ const de_CheckDNSAvailabilityCommand = async (output, context) => {
722
625
  $metadata: deserializeMetadata(output),
723
626
  ...contents,
724
627
  };
725
- return Promise.resolve(response);
628
+ return response;
726
629
  };
727
630
  exports.de_CheckDNSAvailabilityCommand = de_CheckDNSAvailabilityCommand;
728
631
  const de_CheckDNSAvailabilityCommandError = async (output, context) => {
@@ -732,10 +635,9 @@ const de_CheckDNSAvailabilityCommandError = async (output, context) => {
732
635
  };
733
636
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
734
637
  const parsedBody = parsedOutput.body;
735
- (0, smithy_client_1.throwDefaultError)({
638
+ return throwDefaultError({
736
639
  output,
737
640
  parsedBody: parsedBody.Error,
738
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
739
641
  errorCode,
740
642
  });
741
643
  };
@@ -750,7 +652,7 @@ const de_ComposeEnvironmentsCommand = async (output, context) => {
750
652
  $metadata: deserializeMetadata(output),
751
653
  ...contents,
752
654
  };
753
- return Promise.resolve(response);
655
+ return response;
754
656
  };
755
657
  exports.de_ComposeEnvironmentsCommand = de_ComposeEnvironmentsCommand;
756
658
  const de_ComposeEnvironmentsCommandError = async (output, context) => {
@@ -768,10 +670,9 @@ const de_ComposeEnvironmentsCommandError = async (output, context) => {
768
670
  throw await de_TooManyEnvironmentsExceptionRes(parsedOutput, context);
769
671
  default:
770
672
  const parsedBody = parsedOutput.body;
771
- (0, smithy_client_1.throwDefaultError)({
673
+ return throwDefaultError({
772
674
  output,
773
675
  parsedBody: parsedBody.Error,
774
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
775
676
  errorCode,
776
677
  });
777
678
  }
@@ -787,7 +688,7 @@ const de_CreateApplicationCommand = async (output, context) => {
787
688
  $metadata: deserializeMetadata(output),
788
689
  ...contents,
789
690
  };
790
- return Promise.resolve(response);
691
+ return response;
791
692
  };
792
693
  exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
793
694
  const de_CreateApplicationCommandError = async (output, context) => {
@@ -802,10 +703,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
802
703
  throw await de_TooManyApplicationsExceptionRes(parsedOutput, context);
803
704
  default:
804
705
  const parsedBody = parsedOutput.body;
805
- (0, smithy_client_1.throwDefaultError)({
706
+ return throwDefaultError({
806
707
  output,
807
708
  parsedBody: parsedBody.Error,
808
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
809
709
  errorCode,
810
710
  });
811
711
  }
@@ -821,7 +721,7 @@ const de_CreateApplicationVersionCommand = async (output, context) => {
821
721
  $metadata: deserializeMetadata(output),
822
722
  ...contents,
823
723
  };
824
- return Promise.resolve(response);
724
+ return response;
825
725
  };
826
726
  exports.de_CreateApplicationVersionCommand = de_CreateApplicationVersionCommand;
827
727
  const de_CreateApplicationVersionCommandError = async (output, context) => {
@@ -848,10 +748,9 @@ const de_CreateApplicationVersionCommandError = async (output, context) => {
848
748
  throw await de_TooManyApplicationsExceptionRes(parsedOutput, context);
849
749
  default:
850
750
  const parsedBody = parsedOutput.body;
851
- (0, smithy_client_1.throwDefaultError)({
751
+ return throwDefaultError({
852
752
  output,
853
753
  parsedBody: parsedBody.Error,
854
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
855
754
  errorCode,
856
755
  });
857
756
  }
@@ -867,7 +766,7 @@ const de_CreateConfigurationTemplateCommand = async (output, context) => {
867
766
  $metadata: deserializeMetadata(output),
868
767
  ...contents,
869
768
  };
870
- return Promise.resolve(response);
769
+ return response;
871
770
  };
872
771
  exports.de_CreateConfigurationTemplateCommand = de_CreateConfigurationTemplateCommand;
873
772
  const de_CreateConfigurationTemplateCommandError = async (output, context) => {
@@ -888,10 +787,9 @@ const de_CreateConfigurationTemplateCommandError = async (output, context) => {
888
787
  throw await de_TooManyConfigurationTemplatesExceptionRes(parsedOutput, context);
889
788
  default:
890
789
  const parsedBody = parsedOutput.body;
891
- (0, smithy_client_1.throwDefaultError)({
790
+ return throwDefaultError({
892
791
  output,
893
792
  parsedBody: parsedBody.Error,
894
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
895
793
  errorCode,
896
794
  });
897
795
  }
@@ -907,7 +805,7 @@ const de_CreateEnvironmentCommand = async (output, context) => {
907
805
  $metadata: deserializeMetadata(output),
908
806
  ...contents,
909
807
  };
910
- return Promise.resolve(response);
808
+ return response;
911
809
  };
912
810
  exports.de_CreateEnvironmentCommand = de_CreateEnvironmentCommand;
913
811
  const de_CreateEnvironmentCommandError = async (output, context) => {
@@ -925,10 +823,9 @@ const de_CreateEnvironmentCommandError = async (output, context) => {
925
823
  throw await de_TooManyEnvironmentsExceptionRes(parsedOutput, context);
926
824
  default:
927
825
  const parsedBody = parsedOutput.body;
928
- (0, smithy_client_1.throwDefaultError)({
826
+ return throwDefaultError({
929
827
  output,
930
828
  parsedBody: parsedBody.Error,
931
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
932
829
  errorCode,
933
830
  });
934
831
  }
@@ -944,7 +841,7 @@ const de_CreatePlatformVersionCommand = async (output, context) => {
944
841
  $metadata: deserializeMetadata(output),
945
842
  ...contents,
946
843
  };
947
- return Promise.resolve(response);
844
+ return response;
948
845
  };
949
846
  exports.de_CreatePlatformVersionCommand = de_CreatePlatformVersionCommand;
950
847
  const de_CreatePlatformVersionCommandError = async (output, context) => {
@@ -965,10 +862,9 @@ const de_CreatePlatformVersionCommandError = async (output, context) => {
965
862
  throw await de_TooManyPlatformsExceptionRes(parsedOutput, context);
966
863
  default:
967
864
  const parsedBody = parsedOutput.body;
968
- (0, smithy_client_1.throwDefaultError)({
865
+ return throwDefaultError({
969
866
  output,
970
867
  parsedBody: parsedBody.Error,
971
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
972
868
  errorCode,
973
869
  });
974
870
  }
@@ -984,7 +880,7 @@ const de_CreateStorageLocationCommand = async (output, context) => {
984
880
  $metadata: deserializeMetadata(output),
985
881
  ...contents,
986
882
  };
987
- return Promise.resolve(response);
883
+ return response;
988
884
  };
989
885
  exports.de_CreateStorageLocationCommand = de_CreateStorageLocationCommand;
990
886
  const de_CreateStorageLocationCommandError = async (output, context) => {
@@ -1005,10 +901,9 @@ const de_CreateStorageLocationCommandError = async (output, context) => {
1005
901
  throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
1006
902
  default:
1007
903
  const parsedBody = parsedOutput.body;
1008
- (0, smithy_client_1.throwDefaultError)({
904
+ return throwDefaultError({
1009
905
  output,
1010
906
  parsedBody: parsedBody.Error,
1011
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1012
907
  errorCode,
1013
908
  });
1014
909
  }
@@ -1021,7 +916,7 @@ const de_DeleteApplicationCommand = async (output, context) => {
1021
916
  const response = {
1022
917
  $metadata: deserializeMetadata(output),
1023
918
  };
1024
- return Promise.resolve(response);
919
+ return response;
1025
920
  };
1026
921
  exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
1027
922
  const de_DeleteApplicationCommandError = async (output, context) => {
@@ -1036,10 +931,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
1036
931
  throw await de_OperationInProgressExceptionRes(parsedOutput, context);
1037
932
  default:
1038
933
  const parsedBody = parsedOutput.body;
1039
- (0, smithy_client_1.throwDefaultError)({
934
+ return throwDefaultError({
1040
935
  output,
1041
936
  parsedBody: parsedBody.Error,
1042
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1043
937
  errorCode,
1044
938
  });
1045
939
  }
@@ -1052,7 +946,7 @@ const de_DeleteApplicationVersionCommand = async (output, context) => {
1052
946
  const response = {
1053
947
  $metadata: deserializeMetadata(output),
1054
948
  };
1055
- return Promise.resolve(response);
949
+ return response;
1056
950
  };
1057
951
  exports.de_DeleteApplicationVersionCommand = de_DeleteApplicationVersionCommand;
1058
952
  const de_DeleteApplicationVersionCommandError = async (output, context) => {
@@ -1076,10 +970,9 @@ const de_DeleteApplicationVersionCommandError = async (output, context) => {
1076
970
  throw await de_SourceBundleDeletionExceptionRes(parsedOutput, context);
1077
971
  default:
1078
972
  const parsedBody = parsedOutput.body;
1079
- (0, smithy_client_1.throwDefaultError)({
973
+ return throwDefaultError({
1080
974
  output,
1081
975
  parsedBody: parsedBody.Error,
1082
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1083
976
  errorCode,
1084
977
  });
1085
978
  }
@@ -1092,7 +985,7 @@ const de_DeleteConfigurationTemplateCommand = async (output, context) => {
1092
985
  const response = {
1093
986
  $metadata: deserializeMetadata(output),
1094
987
  };
1095
- return Promise.resolve(response);
988
+ return response;
1096
989
  };
1097
990
  exports.de_DeleteConfigurationTemplateCommand = de_DeleteConfigurationTemplateCommand;
1098
991
  const de_DeleteConfigurationTemplateCommandError = async (output, context) => {
@@ -1107,10 +1000,9 @@ const de_DeleteConfigurationTemplateCommandError = async (output, context) => {
1107
1000
  throw await de_OperationInProgressExceptionRes(parsedOutput, context);
1108
1001
  default:
1109
1002
  const parsedBody = parsedOutput.body;
1110
- (0, smithy_client_1.throwDefaultError)({
1003
+ return throwDefaultError({
1111
1004
  output,
1112
1005
  parsedBody: parsedBody.Error,
1113
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1114
1006
  errorCode,
1115
1007
  });
1116
1008
  }
@@ -1123,7 +1015,7 @@ const de_DeleteEnvironmentConfigurationCommand = async (output, context) => {
1123
1015
  const response = {
1124
1016
  $metadata: deserializeMetadata(output),
1125
1017
  };
1126
- return Promise.resolve(response);
1018
+ return response;
1127
1019
  };
1128
1020
  exports.de_DeleteEnvironmentConfigurationCommand = de_DeleteEnvironmentConfigurationCommand;
1129
1021
  const de_DeleteEnvironmentConfigurationCommandError = async (output, context) => {
@@ -1133,10 +1025,9 @@ const de_DeleteEnvironmentConfigurationCommandError = async (output, context) =>
1133
1025
  };
1134
1026
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1135
1027
  const parsedBody = parsedOutput.body;
1136
- (0, smithy_client_1.throwDefaultError)({
1028
+ return throwDefaultError({
1137
1029
  output,
1138
1030
  parsedBody: parsedBody.Error,
1139
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1140
1031
  errorCode,
1141
1032
  });
1142
1033
  };
@@ -1151,7 +1042,7 @@ const de_DeletePlatformVersionCommand = async (output, context) => {
1151
1042
  $metadata: deserializeMetadata(output),
1152
1043
  ...contents,
1153
1044
  };
1154
- return Promise.resolve(response);
1045
+ return response;
1155
1046
  };
1156
1047
  exports.de_DeletePlatformVersionCommand = de_DeletePlatformVersionCommand;
1157
1048
  const de_DeletePlatformVersionCommandError = async (output, context) => {
@@ -1175,10 +1066,9 @@ const de_DeletePlatformVersionCommandError = async (output, context) => {
1175
1066
  throw await de_PlatformVersionStillReferencedExceptionRes(parsedOutput, context);
1176
1067
  default:
1177
1068
  const parsedBody = parsedOutput.body;
1178
- (0, smithy_client_1.throwDefaultError)({
1069
+ return throwDefaultError({
1179
1070
  output,
1180
1071
  parsedBody: parsedBody.Error,
1181
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1182
1072
  errorCode,
1183
1073
  });
1184
1074
  }
@@ -1194,7 +1084,7 @@ const de_DescribeAccountAttributesCommand = async (output, context) => {
1194
1084
  $metadata: deserializeMetadata(output),
1195
1085
  ...contents,
1196
1086
  };
1197
- return Promise.resolve(response);
1087
+ return response;
1198
1088
  };
1199
1089
  exports.de_DescribeAccountAttributesCommand = de_DescribeAccountAttributesCommand;
1200
1090
  const de_DescribeAccountAttributesCommandError = async (output, context) => {
@@ -1209,10 +1099,9 @@ const de_DescribeAccountAttributesCommandError = async (output, context) => {
1209
1099
  throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
1210
1100
  default:
1211
1101
  const parsedBody = parsedOutput.body;
1212
- (0, smithy_client_1.throwDefaultError)({
1102
+ return throwDefaultError({
1213
1103
  output,
1214
1104
  parsedBody: parsedBody.Error,
1215
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1216
1105
  errorCode,
1217
1106
  });
1218
1107
  }
@@ -1228,7 +1117,7 @@ const de_DescribeApplicationsCommand = async (output, context) => {
1228
1117
  $metadata: deserializeMetadata(output),
1229
1118
  ...contents,
1230
1119
  };
1231
- return Promise.resolve(response);
1120
+ return response;
1232
1121
  };
1233
1122
  exports.de_DescribeApplicationsCommand = de_DescribeApplicationsCommand;
1234
1123
  const de_DescribeApplicationsCommandError = async (output, context) => {
@@ -1238,10 +1127,9 @@ const de_DescribeApplicationsCommandError = async (output, context) => {
1238
1127
  };
1239
1128
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1240
1129
  const parsedBody = parsedOutput.body;
1241
- (0, smithy_client_1.throwDefaultError)({
1130
+ return throwDefaultError({
1242
1131
  output,
1243
1132
  parsedBody: parsedBody.Error,
1244
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1245
1133
  errorCode,
1246
1134
  });
1247
1135
  };
@@ -1256,7 +1144,7 @@ const de_DescribeApplicationVersionsCommand = async (output, context) => {
1256
1144
  $metadata: deserializeMetadata(output),
1257
1145
  ...contents,
1258
1146
  };
1259
- return Promise.resolve(response);
1147
+ return response;
1260
1148
  };
1261
1149
  exports.de_DescribeApplicationVersionsCommand = de_DescribeApplicationVersionsCommand;
1262
1150
  const de_DescribeApplicationVersionsCommandError = async (output, context) => {
@@ -1266,10 +1154,9 @@ const de_DescribeApplicationVersionsCommandError = async (output, context) => {
1266
1154
  };
1267
1155
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1268
1156
  const parsedBody = parsedOutput.body;
1269
- (0, smithy_client_1.throwDefaultError)({
1157
+ return throwDefaultError({
1270
1158
  output,
1271
1159
  parsedBody: parsedBody.Error,
1272
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1273
1160
  errorCode,
1274
1161
  });
1275
1162
  };
@@ -1284,7 +1171,7 @@ const de_DescribeConfigurationOptionsCommand = async (output, context) => {
1284
1171
  $metadata: deserializeMetadata(output),
1285
1172
  ...contents,
1286
1173
  };
1287
- return Promise.resolve(response);
1174
+ return response;
1288
1175
  };
1289
1176
  exports.de_DescribeConfigurationOptionsCommand = de_DescribeConfigurationOptionsCommand;
1290
1177
  const de_DescribeConfigurationOptionsCommandError = async (output, context) => {
@@ -1299,10 +1186,9 @@ const de_DescribeConfigurationOptionsCommandError = async (output, context) => {
1299
1186
  throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
1300
1187
  default:
1301
1188
  const parsedBody = parsedOutput.body;
1302
- (0, smithy_client_1.throwDefaultError)({
1189
+ return throwDefaultError({
1303
1190
  output,
1304
1191
  parsedBody: parsedBody.Error,
1305
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1306
1192
  errorCode,
1307
1193
  });
1308
1194
  }
@@ -1318,7 +1204,7 @@ const de_DescribeConfigurationSettingsCommand = async (output, context) => {
1318
1204
  $metadata: deserializeMetadata(output),
1319
1205
  ...contents,
1320
1206
  };
1321
- return Promise.resolve(response);
1207
+ return response;
1322
1208
  };
1323
1209
  exports.de_DescribeConfigurationSettingsCommand = de_DescribeConfigurationSettingsCommand;
1324
1210
  const de_DescribeConfigurationSettingsCommandError = async (output, context) => {
@@ -1333,10 +1219,9 @@ const de_DescribeConfigurationSettingsCommandError = async (output, context) =>
1333
1219
  throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
1334
1220
  default:
1335
1221
  const parsedBody = parsedOutput.body;
1336
- (0, smithy_client_1.throwDefaultError)({
1222
+ return throwDefaultError({
1337
1223
  output,
1338
1224
  parsedBody: parsedBody.Error,
1339
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1340
1225
  errorCode,
1341
1226
  });
1342
1227
  }
@@ -1352,7 +1237,7 @@ const de_DescribeEnvironmentHealthCommand = async (output, context) => {
1352
1237
  $metadata: deserializeMetadata(output),
1353
1238
  ...contents,
1354
1239
  };
1355
- return Promise.resolve(response);
1240
+ return response;
1356
1241
  };
1357
1242
  exports.de_DescribeEnvironmentHealthCommand = de_DescribeEnvironmentHealthCommand;
1358
1243
  const de_DescribeEnvironmentHealthCommandError = async (output, context) => {
@@ -1370,10 +1255,9 @@ const de_DescribeEnvironmentHealthCommandError = async (output, context) => {
1370
1255
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1371
1256
  default:
1372
1257
  const parsedBody = parsedOutput.body;
1373
- (0, smithy_client_1.throwDefaultError)({
1258
+ return throwDefaultError({
1374
1259
  output,
1375
1260
  parsedBody: parsedBody.Error,
1376
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1377
1261
  errorCode,
1378
1262
  });
1379
1263
  }
@@ -1389,7 +1273,7 @@ const de_DescribeEnvironmentManagedActionHistoryCommand = async (output, context
1389
1273
  $metadata: deserializeMetadata(output),
1390
1274
  ...contents,
1391
1275
  };
1392
- return Promise.resolve(response);
1276
+ return response;
1393
1277
  };
1394
1278
  exports.de_DescribeEnvironmentManagedActionHistoryCommand = de_DescribeEnvironmentManagedActionHistoryCommand;
1395
1279
  const de_DescribeEnvironmentManagedActionHistoryCommandError = async (output, context) => {
@@ -1404,10 +1288,9 @@ const de_DescribeEnvironmentManagedActionHistoryCommandError = async (output, co
1404
1288
  throw await de_ElasticBeanstalkServiceExceptionRes(parsedOutput, context);
1405
1289
  default:
1406
1290
  const parsedBody = parsedOutput.body;
1407
- (0, smithy_client_1.throwDefaultError)({
1291
+ return throwDefaultError({
1408
1292
  output,
1409
1293
  parsedBody: parsedBody.Error,
1410
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1411
1294
  errorCode,
1412
1295
  });
1413
1296
  }
@@ -1423,7 +1306,7 @@ const de_DescribeEnvironmentManagedActionsCommand = async (output, context) => {
1423
1306
  $metadata: deserializeMetadata(output),
1424
1307
  ...contents,
1425
1308
  };
1426
- return Promise.resolve(response);
1309
+ return response;
1427
1310
  };
1428
1311
  exports.de_DescribeEnvironmentManagedActionsCommand = de_DescribeEnvironmentManagedActionsCommand;
1429
1312
  const de_DescribeEnvironmentManagedActionsCommandError = async (output, context) => {
@@ -1438,10 +1321,9 @@ const de_DescribeEnvironmentManagedActionsCommandError = async (output, context)
1438
1321
  throw await de_ElasticBeanstalkServiceExceptionRes(parsedOutput, context);
1439
1322
  default:
1440
1323
  const parsedBody = parsedOutput.body;
1441
- (0, smithy_client_1.throwDefaultError)({
1324
+ return throwDefaultError({
1442
1325
  output,
1443
1326
  parsedBody: parsedBody.Error,
1444
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1445
1327
  errorCode,
1446
1328
  });
1447
1329
  }
@@ -1457,7 +1339,7 @@ const de_DescribeEnvironmentResourcesCommand = async (output, context) => {
1457
1339
  $metadata: deserializeMetadata(output),
1458
1340
  ...contents,
1459
1341
  };
1460
- return Promise.resolve(response);
1342
+ return response;
1461
1343
  };
1462
1344
  exports.de_DescribeEnvironmentResourcesCommand = de_DescribeEnvironmentResourcesCommand;
1463
1345
  const de_DescribeEnvironmentResourcesCommandError = async (output, context) => {
@@ -1472,10 +1354,9 @@ const de_DescribeEnvironmentResourcesCommandError = async (output, context) => {
1472
1354
  throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
1473
1355
  default:
1474
1356
  const parsedBody = parsedOutput.body;
1475
- (0, smithy_client_1.throwDefaultError)({
1357
+ return throwDefaultError({
1476
1358
  output,
1477
1359
  parsedBody: parsedBody.Error,
1478
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1479
1360
  errorCode,
1480
1361
  });
1481
1362
  }
@@ -1491,7 +1372,7 @@ const de_DescribeEnvironmentsCommand = async (output, context) => {
1491
1372
  $metadata: deserializeMetadata(output),
1492
1373
  ...contents,
1493
1374
  };
1494
- return Promise.resolve(response);
1375
+ return response;
1495
1376
  };
1496
1377
  exports.de_DescribeEnvironmentsCommand = de_DescribeEnvironmentsCommand;
1497
1378
  const de_DescribeEnvironmentsCommandError = async (output, context) => {
@@ -1501,10 +1382,9 @@ const de_DescribeEnvironmentsCommandError = async (output, context) => {
1501
1382
  };
1502
1383
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1503
1384
  const parsedBody = parsedOutput.body;
1504
- (0, smithy_client_1.throwDefaultError)({
1385
+ return throwDefaultError({
1505
1386
  output,
1506
1387
  parsedBody: parsedBody.Error,
1507
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1508
1388
  errorCode,
1509
1389
  });
1510
1390
  };
@@ -1519,7 +1399,7 @@ const de_DescribeEventsCommand = async (output, context) => {
1519
1399
  $metadata: deserializeMetadata(output),
1520
1400
  ...contents,
1521
1401
  };
1522
- return Promise.resolve(response);
1402
+ return response;
1523
1403
  };
1524
1404
  exports.de_DescribeEventsCommand = de_DescribeEventsCommand;
1525
1405
  const de_DescribeEventsCommandError = async (output, context) => {
@@ -1529,10 +1409,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
1529
1409
  };
1530
1410
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1531
1411
  const parsedBody = parsedOutput.body;
1532
- (0, smithy_client_1.throwDefaultError)({
1412
+ return throwDefaultError({
1533
1413
  output,
1534
1414
  parsedBody: parsedBody.Error,
1535
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1536
1415
  errorCode,
1537
1416
  });
1538
1417
  };
@@ -1547,7 +1426,7 @@ const de_DescribeInstancesHealthCommand = async (output, context) => {
1547
1426
  $metadata: deserializeMetadata(output),
1548
1427
  ...contents,
1549
1428
  };
1550
- return Promise.resolve(response);
1429
+ return response;
1551
1430
  };
1552
1431
  exports.de_DescribeInstancesHealthCommand = de_DescribeInstancesHealthCommand;
1553
1432
  const de_DescribeInstancesHealthCommandError = async (output, context) => {
@@ -1565,10 +1444,9 @@ const de_DescribeInstancesHealthCommandError = async (output, context) => {
1565
1444
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1566
1445
  default:
1567
1446
  const parsedBody = parsedOutput.body;
1568
- (0, smithy_client_1.throwDefaultError)({
1447
+ return throwDefaultError({
1569
1448
  output,
1570
1449
  parsedBody: parsedBody.Error,
1571
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1572
1450
  errorCode,
1573
1451
  });
1574
1452
  }
@@ -1584,7 +1462,7 @@ const de_DescribePlatformVersionCommand = async (output, context) => {
1584
1462
  $metadata: deserializeMetadata(output),
1585
1463
  ...contents,
1586
1464
  };
1587
- return Promise.resolve(response);
1465
+ return response;
1588
1466
  };
1589
1467
  exports.de_DescribePlatformVersionCommand = de_DescribePlatformVersionCommand;
1590
1468
  const de_DescribePlatformVersionCommandError = async (output, context) => {
@@ -1602,10 +1480,9 @@ const de_DescribePlatformVersionCommandError = async (output, context) => {
1602
1480
  throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
1603
1481
  default:
1604
1482
  const parsedBody = parsedOutput.body;
1605
- (0, smithy_client_1.throwDefaultError)({
1483
+ return throwDefaultError({
1606
1484
  output,
1607
1485
  parsedBody: parsedBody.Error,
1608
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1609
1486
  errorCode,
1610
1487
  });
1611
1488
  }
@@ -1618,7 +1495,7 @@ const de_DisassociateEnvironmentOperationsRoleCommand = async (output, context)
1618
1495
  const response = {
1619
1496
  $metadata: deserializeMetadata(output),
1620
1497
  };
1621
- return Promise.resolve(response);
1498
+ return response;
1622
1499
  };
1623
1500
  exports.de_DisassociateEnvironmentOperationsRoleCommand = de_DisassociateEnvironmentOperationsRoleCommand;
1624
1501
  const de_DisassociateEnvironmentOperationsRoleCommandError = async (output, context) => {
@@ -1633,10 +1510,9 @@ const de_DisassociateEnvironmentOperationsRoleCommandError = async (output, cont
1633
1510
  throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
1634
1511
  default:
1635
1512
  const parsedBody = parsedOutput.body;
1636
- (0, smithy_client_1.throwDefaultError)({
1513
+ return throwDefaultError({
1637
1514
  output,
1638
1515
  parsedBody: parsedBody.Error,
1639
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1640
1516
  errorCode,
1641
1517
  });
1642
1518
  }
@@ -1652,7 +1528,7 @@ const de_ListAvailableSolutionStacksCommand = async (output, context) => {
1652
1528
  $metadata: deserializeMetadata(output),
1653
1529
  ...contents,
1654
1530
  };
1655
- return Promise.resolve(response);
1531
+ return response;
1656
1532
  };
1657
1533
  exports.de_ListAvailableSolutionStacksCommand = de_ListAvailableSolutionStacksCommand;
1658
1534
  const de_ListAvailableSolutionStacksCommandError = async (output, context) => {
@@ -1662,10 +1538,9 @@ const de_ListAvailableSolutionStacksCommandError = async (output, context) => {
1662
1538
  };
1663
1539
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1664
1540
  const parsedBody = parsedOutput.body;
1665
- (0, smithy_client_1.throwDefaultError)({
1541
+ return throwDefaultError({
1666
1542
  output,
1667
1543
  parsedBody: parsedBody.Error,
1668
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1669
1544
  errorCode,
1670
1545
  });
1671
1546
  };
@@ -1680,7 +1555,7 @@ const de_ListPlatformBranchesCommand = async (output, context) => {
1680
1555
  $metadata: deserializeMetadata(output),
1681
1556
  ...contents,
1682
1557
  };
1683
- return Promise.resolve(response);
1558
+ return response;
1684
1559
  };
1685
1560
  exports.de_ListPlatformBranchesCommand = de_ListPlatformBranchesCommand;
1686
1561
  const de_ListPlatformBranchesCommandError = async (output, context) => {
@@ -1690,10 +1565,9 @@ const de_ListPlatformBranchesCommandError = async (output, context) => {
1690
1565
  };
1691
1566
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1692
1567
  const parsedBody = parsedOutput.body;
1693
- (0, smithy_client_1.throwDefaultError)({
1568
+ return throwDefaultError({
1694
1569
  output,
1695
1570
  parsedBody: parsedBody.Error,
1696
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1697
1571
  errorCode,
1698
1572
  });
1699
1573
  };
@@ -1708,7 +1582,7 @@ const de_ListPlatformVersionsCommand = async (output, context) => {
1708
1582
  $metadata: deserializeMetadata(output),
1709
1583
  ...contents,
1710
1584
  };
1711
- return Promise.resolve(response);
1585
+ return response;
1712
1586
  };
1713
1587
  exports.de_ListPlatformVersionsCommand = de_ListPlatformVersionsCommand;
1714
1588
  const de_ListPlatformVersionsCommandError = async (output, context) => {
@@ -1726,10 +1600,9 @@ const de_ListPlatformVersionsCommandError = async (output, context) => {
1726
1600
  throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
1727
1601
  default:
1728
1602
  const parsedBody = parsedOutput.body;
1729
- (0, smithy_client_1.throwDefaultError)({
1603
+ return throwDefaultError({
1730
1604
  output,
1731
1605
  parsedBody: parsedBody.Error,
1732
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1733
1606
  errorCode,
1734
1607
  });
1735
1608
  }
@@ -1745,7 +1618,7 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1745
1618
  $metadata: deserializeMetadata(output),
1746
1619
  ...contents,
1747
1620
  };
1748
- return Promise.resolve(response);
1621
+ return response;
1749
1622
  };
1750
1623
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1751
1624
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1766,10 +1639,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1766
1639
  throw await de_ResourceTypeNotSupportedExceptionRes(parsedOutput, context);
1767
1640
  default:
1768
1641
  const parsedBody = parsedOutput.body;
1769
- (0, smithy_client_1.throwDefaultError)({
1642
+ return throwDefaultError({
1770
1643
  output,
1771
1644
  parsedBody: parsedBody.Error,
1772
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1773
1645
  errorCode,
1774
1646
  });
1775
1647
  }
@@ -1782,7 +1654,7 @@ const de_RebuildEnvironmentCommand = async (output, context) => {
1782
1654
  const response = {
1783
1655
  $metadata: deserializeMetadata(output),
1784
1656
  };
1785
- return Promise.resolve(response);
1657
+ return response;
1786
1658
  };
1787
1659
  exports.de_RebuildEnvironmentCommand = de_RebuildEnvironmentCommand;
1788
1660
  const de_RebuildEnvironmentCommandError = async (output, context) => {
@@ -1797,10 +1669,9 @@ const de_RebuildEnvironmentCommandError = async (output, context) => {
1797
1669
  throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
1798
1670
  default:
1799
1671
  const parsedBody = parsedOutput.body;
1800
- (0, smithy_client_1.throwDefaultError)({
1672
+ return throwDefaultError({
1801
1673
  output,
1802
1674
  parsedBody: parsedBody.Error,
1803
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1804
1675
  errorCode,
1805
1676
  });
1806
1677
  }
@@ -1813,7 +1684,7 @@ const de_RequestEnvironmentInfoCommand = async (output, context) => {
1813
1684
  const response = {
1814
1685
  $metadata: deserializeMetadata(output),
1815
1686
  };
1816
- return Promise.resolve(response);
1687
+ return response;
1817
1688
  };
1818
1689
  exports.de_RequestEnvironmentInfoCommand = de_RequestEnvironmentInfoCommand;
1819
1690
  const de_RequestEnvironmentInfoCommandError = async (output, context) => {
@@ -1823,10 +1694,9 @@ const de_RequestEnvironmentInfoCommandError = async (output, context) => {
1823
1694
  };
1824
1695
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1825
1696
  const parsedBody = parsedOutput.body;
1826
- (0, smithy_client_1.throwDefaultError)({
1697
+ return throwDefaultError({
1827
1698
  output,
1828
1699
  parsedBody: parsedBody.Error,
1829
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1830
1700
  errorCode,
1831
1701
  });
1832
1702
  };
@@ -1838,7 +1708,7 @@ const de_RestartAppServerCommand = async (output, context) => {
1838
1708
  const response = {
1839
1709
  $metadata: deserializeMetadata(output),
1840
1710
  };
1841
- return Promise.resolve(response);
1711
+ return response;
1842
1712
  };
1843
1713
  exports.de_RestartAppServerCommand = de_RestartAppServerCommand;
1844
1714
  const de_RestartAppServerCommandError = async (output, context) => {
@@ -1848,10 +1718,9 @@ const de_RestartAppServerCommandError = async (output, context) => {
1848
1718
  };
1849
1719
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1850
1720
  const parsedBody = parsedOutput.body;
1851
- (0, smithy_client_1.throwDefaultError)({
1721
+ return throwDefaultError({
1852
1722
  output,
1853
1723
  parsedBody: parsedBody.Error,
1854
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1855
1724
  errorCode,
1856
1725
  });
1857
1726
  };
@@ -1866,7 +1735,7 @@ const de_RetrieveEnvironmentInfoCommand = async (output, context) => {
1866
1735
  $metadata: deserializeMetadata(output),
1867
1736
  ...contents,
1868
1737
  };
1869
- return Promise.resolve(response);
1738
+ return response;
1870
1739
  };
1871
1740
  exports.de_RetrieveEnvironmentInfoCommand = de_RetrieveEnvironmentInfoCommand;
1872
1741
  const de_RetrieveEnvironmentInfoCommandError = async (output, context) => {
@@ -1876,10 +1745,9 @@ const de_RetrieveEnvironmentInfoCommandError = async (output, context) => {
1876
1745
  };
1877
1746
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1878
1747
  const parsedBody = parsedOutput.body;
1879
- (0, smithy_client_1.throwDefaultError)({
1748
+ return throwDefaultError({
1880
1749
  output,
1881
1750
  parsedBody: parsedBody.Error,
1882
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1883
1751
  errorCode,
1884
1752
  });
1885
1753
  };
@@ -1891,7 +1759,7 @@ const de_SwapEnvironmentCNAMEsCommand = async (output, context) => {
1891
1759
  const response = {
1892
1760
  $metadata: deserializeMetadata(output),
1893
1761
  };
1894
- return Promise.resolve(response);
1762
+ return response;
1895
1763
  };
1896
1764
  exports.de_SwapEnvironmentCNAMEsCommand = de_SwapEnvironmentCNAMEsCommand;
1897
1765
  const de_SwapEnvironmentCNAMEsCommandError = async (output, context) => {
@@ -1901,10 +1769,9 @@ const de_SwapEnvironmentCNAMEsCommandError = async (output, context) => {
1901
1769
  };
1902
1770
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1903
1771
  const parsedBody = parsedOutput.body;
1904
- (0, smithy_client_1.throwDefaultError)({
1772
+ return throwDefaultError({
1905
1773
  output,
1906
1774
  parsedBody: parsedBody.Error,
1907
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1908
1775
  errorCode,
1909
1776
  });
1910
1777
  };
@@ -1919,7 +1786,7 @@ const de_TerminateEnvironmentCommand = async (output, context) => {
1919
1786
  $metadata: deserializeMetadata(output),
1920
1787
  ...contents,
1921
1788
  };
1922
- return Promise.resolve(response);
1789
+ return response;
1923
1790
  };
1924
1791
  exports.de_TerminateEnvironmentCommand = de_TerminateEnvironmentCommand;
1925
1792
  const de_TerminateEnvironmentCommandError = async (output, context) => {
@@ -1934,10 +1801,9 @@ const de_TerminateEnvironmentCommandError = async (output, context) => {
1934
1801
  throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
1935
1802
  default:
1936
1803
  const parsedBody = parsedOutput.body;
1937
- (0, smithy_client_1.throwDefaultError)({
1804
+ return throwDefaultError({
1938
1805
  output,
1939
1806
  parsedBody: parsedBody.Error,
1940
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1941
1807
  errorCode,
1942
1808
  });
1943
1809
  }
@@ -1953,7 +1819,7 @@ const de_UpdateApplicationCommand = async (output, context) => {
1953
1819
  $metadata: deserializeMetadata(output),
1954
1820
  ...contents,
1955
1821
  };
1956
- return Promise.resolve(response);
1822
+ return response;
1957
1823
  };
1958
1824
  exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
1959
1825
  const de_UpdateApplicationCommandError = async (output, context) => {
@@ -1963,10 +1829,9 @@ const de_UpdateApplicationCommandError = async (output, context) => {
1963
1829
  };
1964
1830
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1965
1831
  const parsedBody = parsedOutput.body;
1966
- (0, smithy_client_1.throwDefaultError)({
1832
+ return throwDefaultError({
1967
1833
  output,
1968
1834
  parsedBody: parsedBody.Error,
1969
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
1970
1835
  errorCode,
1971
1836
  });
1972
1837
  };
@@ -1981,7 +1846,7 @@ const de_UpdateApplicationResourceLifecycleCommand = async (output, context) =>
1981
1846
  $metadata: deserializeMetadata(output),
1982
1847
  ...contents,
1983
1848
  };
1984
- return Promise.resolve(response);
1849
+ return response;
1985
1850
  };
1986
1851
  exports.de_UpdateApplicationResourceLifecycleCommand = de_UpdateApplicationResourceLifecycleCommand;
1987
1852
  const de_UpdateApplicationResourceLifecycleCommandError = async (output, context) => {
@@ -1996,10 +1861,9 @@ const de_UpdateApplicationResourceLifecycleCommandError = async (output, context
1996
1861
  throw await de_InsufficientPrivilegesExceptionRes(parsedOutput, context);
1997
1862
  default:
1998
1863
  const parsedBody = parsedOutput.body;
1999
- (0, smithy_client_1.throwDefaultError)({
1864
+ return throwDefaultError({
2000
1865
  output,
2001
1866
  parsedBody: parsedBody.Error,
2002
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
2003
1867
  errorCode,
2004
1868
  });
2005
1869
  }
@@ -2015,7 +1879,7 @@ const de_UpdateApplicationVersionCommand = async (output, context) => {
2015
1879
  $metadata: deserializeMetadata(output),
2016
1880
  ...contents,
2017
1881
  };
2018
- return Promise.resolve(response);
1882
+ return response;
2019
1883
  };
2020
1884
  exports.de_UpdateApplicationVersionCommand = de_UpdateApplicationVersionCommand;
2021
1885
  const de_UpdateApplicationVersionCommandError = async (output, context) => {
@@ -2025,10 +1889,9 @@ const de_UpdateApplicationVersionCommandError = async (output, context) => {
2025
1889
  };
2026
1890
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2027
1891
  const parsedBody = parsedOutput.body;
2028
- (0, smithy_client_1.throwDefaultError)({
1892
+ return throwDefaultError({
2029
1893
  output,
2030
1894
  parsedBody: parsedBody.Error,
2031
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
2032
1895
  errorCode,
2033
1896
  });
2034
1897
  };
@@ -2043,7 +1906,7 @@ const de_UpdateConfigurationTemplateCommand = async (output, context) => {
2043
1906
  $metadata: deserializeMetadata(output),
2044
1907
  ...contents,
2045
1908
  };
2046
- return Promise.resolve(response);
1909
+ return response;
2047
1910
  };
2048
1911
  exports.de_UpdateConfigurationTemplateCommand = de_UpdateConfigurationTemplateCommand;
2049
1912
  const de_UpdateConfigurationTemplateCommandError = async (output, context) => {
@@ -2061,10 +1924,9 @@ const de_UpdateConfigurationTemplateCommandError = async (output, context) => {
2061
1924
  throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
2062
1925
  default:
2063
1926
  const parsedBody = parsedOutput.body;
2064
- (0, smithy_client_1.throwDefaultError)({
1927
+ return throwDefaultError({
2065
1928
  output,
2066
1929
  parsedBody: parsedBody.Error,
2067
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
2068
1930
  errorCode,
2069
1931
  });
2070
1932
  }
@@ -2080,7 +1942,7 @@ const de_UpdateEnvironmentCommand = async (output, context) => {
2080
1942
  $metadata: deserializeMetadata(output),
2081
1943
  ...contents,
2082
1944
  };
2083
- return Promise.resolve(response);
1945
+ return response;
2084
1946
  };
2085
1947
  exports.de_UpdateEnvironmentCommand = de_UpdateEnvironmentCommand;
2086
1948
  const de_UpdateEnvironmentCommandError = async (output, context) => {
@@ -2098,10 +1960,9 @@ const de_UpdateEnvironmentCommandError = async (output, context) => {
2098
1960
  throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
2099
1961
  default:
2100
1962
  const parsedBody = parsedOutput.body;
2101
- (0, smithy_client_1.throwDefaultError)({
1963
+ return throwDefaultError({
2102
1964
  output,
2103
1965
  parsedBody: parsedBody.Error,
2104
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
2105
1966
  errorCode,
2106
1967
  });
2107
1968
  }
@@ -2114,7 +1975,7 @@ const de_UpdateTagsForResourceCommand = async (output, context) => {
2114
1975
  const response = {
2115
1976
  $metadata: deserializeMetadata(output),
2116
1977
  };
2117
- return Promise.resolve(response);
1978
+ return response;
2118
1979
  };
2119
1980
  exports.de_UpdateTagsForResourceCommand = de_UpdateTagsForResourceCommand;
2120
1981
  const de_UpdateTagsForResourceCommandError = async (output, context) => {
@@ -2141,10 +2002,9 @@ const de_UpdateTagsForResourceCommandError = async (output, context) => {
2141
2002
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2142
2003
  default:
2143
2004
  const parsedBody = parsedOutput.body;
2144
- (0, smithy_client_1.throwDefaultError)({
2005
+ return throwDefaultError({
2145
2006
  output,
2146
2007
  parsedBody: parsedBody.Error,
2147
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
2148
2008
  errorCode,
2149
2009
  });
2150
2010
  }
@@ -2160,7 +2020,7 @@ const de_ValidateConfigurationSettingsCommand = async (output, context) => {
2160
2020
  $metadata: deserializeMetadata(output),
2161
2021
  ...contents,
2162
2022
  };
2163
- return Promise.resolve(response);
2023
+ return response;
2164
2024
  };
2165
2025
  exports.de_ValidateConfigurationSettingsCommand = de_ValidateConfigurationSettingsCommand;
2166
2026
  const de_ValidateConfigurationSettingsCommandError = async (output, context) => {
@@ -2178,10 +2038,9 @@ const de_ValidateConfigurationSettingsCommandError = async (output, context) =>
2178
2038
  throw await de_TooManyBucketsExceptionRes(parsedOutput, context);
2179
2039
  default:
2180
2040
  const parsedBody = parsedOutput.body;
2181
- (0, smithy_client_1.throwDefaultError)({
2041
+ return throwDefaultError({
2182
2042
  output,
2183
2043
  parsedBody: parsedBody.Error,
2184
- exceptionCtor: ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException,
2185
2044
  errorCode,
2186
2045
  });
2187
2046
  }
@@ -5394,6 +5253,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
5394
5253
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5395
5254
  };
5396
5255
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
5256
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(ElasticBeanstalkServiceException_1.ElasticBeanstalkServiceException);
5397
5257
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5398
5258
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5399
5259
  const contents = {
@@ -5412,6 +5272,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
5412
5272
  }
5413
5273
  return new protocol_http_1.HttpRequest(contents);
5414
5274
  };
5275
+ const SHARED_HEADERS = {
5276
+ "content-type": "application/x-www-form-urlencoded",
5277
+ };
5415
5278
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5416
5279
  if (encoded.length) {
5417
5280
  const parser = new fast_xml_parser_1.XMLParser({