@aws-sdk/client-elastic-beanstalk 3.309.0 → 3.312.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),
@@ -5412,6 +5318,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
5412
5318
  }
5413
5319
  return new protocol_http_1.HttpRequest(contents);
5414
5320
  };
5321
+ const SHARED_HEADERS = {
5322
+ "content-type": "application/x-www-form-urlencoded",
5323
+ };
5415
5324
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5416
5325
  if (encoded.length) {
5417
5326
  const parser = new fast_xml_parser_1.XMLParser({
@@ -4,9 +4,7 @@ import { XMLParser } from "fast-xml-parser";
4
4
  import { ElasticBeanstalkServiceException as __BaseException } from "../models/ElasticBeanstalkServiceException";
5
5
  import { CodeBuildNotInServiceRegionException, ElasticBeanstalkServiceException, InsufficientPrivilegesException, InvalidRequestException, ManagedActionInvalidStateException, OperationInProgressException, PlatformVersionStillReferencedException, ResourceNotFoundException, ResourceTypeNotSupportedException, S3LocationNotInServiceRegionException, S3SubscriptionRequiredException, SourceBundleDeletionException, TooManyApplicationsException, TooManyApplicationVersionsException, TooManyBucketsException, TooManyConfigurationTemplatesException, TooManyEnvironmentsException, TooManyPlatformsException, TooManyTagsException, } from "../models/models_0";
6
6
  export const se_AbortEnvironmentUpdateCommand = 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_AbortEnvironmentUpdateMessage(input, context),
@@ -16,9 +14,7 @@ export const se_AbortEnvironmentUpdateCommand = async (input, context) => {
16
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
15
  };
18
16
  export const se_ApplyEnvironmentManagedActionCommand = 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_ApplyEnvironmentManagedActionRequest(input, context),
@@ -28,9 +24,7 @@ export const se_ApplyEnvironmentManagedActionCommand = async (input, context) =>
28
24
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
25
  };
30
26
  export const se_AssociateEnvironmentOperationsRoleCommand = 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_AssociateEnvironmentOperationsRoleMessage(input, context),
@@ -40,9 +34,7 @@ export const se_AssociateEnvironmentOperationsRoleCommand = async (input, contex
40
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
35
  };
42
36
  export const se_CheckDNSAvailabilityCommand = 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_CheckDNSAvailabilityMessage(input, context),
@@ -52,9 +44,7 @@ export const se_CheckDNSAvailabilityCommand = async (input, context) => {
52
44
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
45
  };
54
46
  export const se_ComposeEnvironmentsCommand = 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_ComposeEnvironmentsMessage(input, context),
@@ -64,9 +54,7 @@ export const se_ComposeEnvironmentsCommand = async (input, context) => {
64
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
55
  };
66
56
  export const se_CreateApplicationCommand = 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_CreateApplicationMessage(input, context),
@@ -76,9 +64,7 @@ export const se_CreateApplicationCommand = async (input, context) => {
76
64
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
65
  };
78
66
  export const se_CreateApplicationVersionCommand = 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_CreateApplicationVersionMessage(input, context),
@@ -88,9 +74,7 @@ export const se_CreateApplicationVersionCommand = async (input, context) => {
88
74
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
75
  };
90
76
  export const se_CreateConfigurationTemplateCommand = 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_CreateConfigurationTemplateMessage(input, context),
@@ -100,9 +84,7 @@ export const se_CreateConfigurationTemplateCommand = async (input, context) => {
100
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
85
  };
102
86
  export const se_CreateEnvironmentCommand = 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_CreateEnvironmentMessage(input, context),
@@ -112,9 +94,7 @@ export const se_CreateEnvironmentCommand = async (input, context) => {
112
94
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
95
  };
114
96
  export const se_CreatePlatformVersionCommand = 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_CreatePlatformVersionRequest(input, context),
@@ -124,9 +104,7 @@ export const se_CreatePlatformVersionCommand = async (input, context) => {
124
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
105
  };
126
106
  export const se_CreateStorageLocationCommand = async (input, context) => {
127
- const headers = {
128
- "content-type": "application/x-www-form-urlencoded",
129
- };
107
+ const headers = SHARED_HEADERS;
130
108
  const body = buildFormUrlencodedString({
131
109
  Action: "CreateStorageLocation",
132
110
  Version: "2010-12-01",
@@ -134,9 +112,7 @@ export const se_CreateStorageLocationCommand = async (input, context) => {
134
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
135
113
  };
136
114
  export const se_DeleteApplicationCommand = async (input, context) => {
137
- const headers = {
138
- "content-type": "application/x-www-form-urlencoded",
139
- };
115
+ const headers = SHARED_HEADERS;
140
116
  let body;
141
117
  body = buildFormUrlencodedString({
142
118
  ...se_DeleteApplicationMessage(input, context),
@@ -146,9 +122,7 @@ export const se_DeleteApplicationCommand = async (input, context) => {
146
122
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
123
  };
148
124
  export const se_DeleteApplicationVersionCommand = async (input, context) => {
149
- const headers = {
150
- "content-type": "application/x-www-form-urlencoded",
151
- };
125
+ const headers = SHARED_HEADERS;
152
126
  let body;
153
127
  body = buildFormUrlencodedString({
154
128
  ...se_DeleteApplicationVersionMessage(input, context),
@@ -158,9 +132,7 @@ export const se_DeleteApplicationVersionCommand = async (input, context) => {
158
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
159
133
  };
160
134
  export const se_DeleteConfigurationTemplateCommand = async (input, context) => {
161
- const headers = {
162
- "content-type": "application/x-www-form-urlencoded",
163
- };
135
+ const headers = SHARED_HEADERS;
164
136
  let body;
165
137
  body = buildFormUrlencodedString({
166
138
  ...se_DeleteConfigurationTemplateMessage(input, context),
@@ -170,9 +142,7 @@ export const se_DeleteConfigurationTemplateCommand = async (input, context) => {
170
142
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
171
143
  };
172
144
  export const se_DeleteEnvironmentConfigurationCommand = async (input, context) => {
173
- const headers = {
174
- "content-type": "application/x-www-form-urlencoded",
175
- };
145
+ const headers = SHARED_HEADERS;
176
146
  let body;
177
147
  body = buildFormUrlencodedString({
178
148
  ...se_DeleteEnvironmentConfigurationMessage(input, context),
@@ -182,9 +152,7 @@ export const se_DeleteEnvironmentConfigurationCommand = async (input, context) =
182
152
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
183
153
  };
184
154
  export const se_DeletePlatformVersionCommand = async (input, context) => {
185
- const headers = {
186
- "content-type": "application/x-www-form-urlencoded",
187
- };
155
+ const headers = SHARED_HEADERS;
188
156
  let body;
189
157
  body = buildFormUrlencodedString({
190
158
  ...se_DeletePlatformVersionRequest(input, context),
@@ -194,9 +162,7 @@ export const se_DeletePlatformVersionCommand = async (input, context) => {
194
162
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
195
163
  };
196
164
  export const se_DescribeAccountAttributesCommand = async (input, context) => {
197
- const headers = {
198
- "content-type": "application/x-www-form-urlencoded",
199
- };
165
+ const headers = SHARED_HEADERS;
200
166
  const body = buildFormUrlencodedString({
201
167
  Action: "DescribeAccountAttributes",
202
168
  Version: "2010-12-01",
@@ -204,9 +170,7 @@ export const se_DescribeAccountAttributesCommand = async (input, context) => {
204
170
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
205
171
  };
206
172
  export const se_DescribeApplicationsCommand = async (input, context) => {
207
- const headers = {
208
- "content-type": "application/x-www-form-urlencoded",
209
- };
173
+ const headers = SHARED_HEADERS;
210
174
  let body;
211
175
  body = buildFormUrlencodedString({
212
176
  ...se_DescribeApplicationsMessage(input, context),
@@ -216,9 +180,7 @@ export const se_DescribeApplicationsCommand = async (input, context) => {
216
180
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
181
  };
218
182
  export const se_DescribeApplicationVersionsCommand = async (input, context) => {
219
- const headers = {
220
- "content-type": "application/x-www-form-urlencoded",
221
- };
183
+ const headers = SHARED_HEADERS;
222
184
  let body;
223
185
  body = buildFormUrlencodedString({
224
186
  ...se_DescribeApplicationVersionsMessage(input, context),
@@ -228,9 +190,7 @@ export const se_DescribeApplicationVersionsCommand = async (input, context) => {
228
190
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
229
191
  };
230
192
  export const se_DescribeConfigurationOptionsCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-www-form-urlencoded",
233
- };
193
+ const headers = SHARED_HEADERS;
234
194
  let body;
235
195
  body = buildFormUrlencodedString({
236
196
  ...se_DescribeConfigurationOptionsMessage(input, context),
@@ -240,9 +200,7 @@ export const se_DescribeConfigurationOptionsCommand = async (input, context) =>
240
200
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
241
201
  };
242
202
  export const se_DescribeConfigurationSettingsCommand = async (input, context) => {
243
- const headers = {
244
- "content-type": "application/x-www-form-urlencoded",
245
- };
203
+ const headers = SHARED_HEADERS;
246
204
  let body;
247
205
  body = buildFormUrlencodedString({
248
206
  ...se_DescribeConfigurationSettingsMessage(input, context),
@@ -252,9 +210,7 @@ export const se_DescribeConfigurationSettingsCommand = async (input, context) =>
252
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
211
  };
254
212
  export const se_DescribeEnvironmentHealthCommand = 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_DescribeEnvironmentHealthRequest(input, context),
@@ -264,9 +220,7 @@ export const se_DescribeEnvironmentHealthCommand = async (input, context) => {
264
220
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
221
  };
266
222
  export const se_DescribeEnvironmentManagedActionHistoryCommand = 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_DescribeEnvironmentManagedActionHistoryRequest(input, context),
@@ -276,9 +230,7 @@ export const se_DescribeEnvironmentManagedActionHistoryCommand = async (input, c
276
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
277
231
  };
278
232
  export const se_DescribeEnvironmentManagedActionsCommand = async (input, context) => {
279
- const headers = {
280
- "content-type": "application/x-www-form-urlencoded",
281
- };
233
+ const headers = SHARED_HEADERS;
282
234
  let body;
283
235
  body = buildFormUrlencodedString({
284
236
  ...se_DescribeEnvironmentManagedActionsRequest(input, context),
@@ -288,9 +240,7 @@ export const se_DescribeEnvironmentManagedActionsCommand = async (input, context
288
240
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
289
241
  };
290
242
  export const se_DescribeEnvironmentResourcesCommand = async (input, context) => {
291
- const headers = {
292
- "content-type": "application/x-www-form-urlencoded",
293
- };
243
+ const headers = SHARED_HEADERS;
294
244
  let body;
295
245
  body = buildFormUrlencodedString({
296
246
  ...se_DescribeEnvironmentResourcesMessage(input, context),
@@ -300,9 +250,7 @@ export const se_DescribeEnvironmentResourcesCommand = async (input, context) =>
300
250
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
251
  };
302
252
  export const se_DescribeEnvironmentsCommand = async (input, context) => {
303
- const headers = {
304
- "content-type": "application/x-www-form-urlencoded",
305
- };
253
+ const headers = SHARED_HEADERS;
306
254
  let body;
307
255
  body = buildFormUrlencodedString({
308
256
  ...se_DescribeEnvironmentsMessage(input, context),
@@ -312,9 +260,7 @@ export const se_DescribeEnvironmentsCommand = async (input, context) => {
312
260
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
313
261
  };
314
262
  export const se_DescribeEventsCommand = async (input, context) => {
315
- const headers = {
316
- "content-type": "application/x-www-form-urlencoded",
317
- };
263
+ const headers = SHARED_HEADERS;
318
264
  let body;
319
265
  body = buildFormUrlencodedString({
320
266
  ...se_DescribeEventsMessage(input, context),
@@ -324,9 +270,7 @@ export const se_DescribeEventsCommand = async (input, context) => {
324
270
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
325
271
  };
326
272
  export const se_DescribeInstancesHealthCommand = async (input, context) => {
327
- const headers = {
328
- "content-type": "application/x-www-form-urlencoded",
329
- };
273
+ const headers = SHARED_HEADERS;
330
274
  let body;
331
275
  body = buildFormUrlencodedString({
332
276
  ...se_DescribeInstancesHealthRequest(input, context),
@@ -336,9 +280,7 @@ export const se_DescribeInstancesHealthCommand = async (input, context) => {
336
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
281
  };
338
282
  export const se_DescribePlatformVersionCommand = async (input, context) => {
339
- const headers = {
340
- "content-type": "application/x-www-form-urlencoded",
341
- };
283
+ const headers = SHARED_HEADERS;
342
284
  let body;
343
285
  body = buildFormUrlencodedString({
344
286
  ...se_DescribePlatformVersionRequest(input, context),
@@ -348,9 +290,7 @@ export const se_DescribePlatformVersionCommand = async (input, context) => {
348
290
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
349
291
  };
350
292
  export const se_DisassociateEnvironmentOperationsRoleCommand = async (input, context) => {
351
- const headers = {
352
- "content-type": "application/x-www-form-urlencoded",
353
- };
293
+ const headers = SHARED_HEADERS;
354
294
  let body;
355
295
  body = buildFormUrlencodedString({
356
296
  ...se_DisassociateEnvironmentOperationsRoleMessage(input, context),
@@ -360,9 +300,7 @@ export const se_DisassociateEnvironmentOperationsRoleCommand = async (input, con
360
300
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
361
301
  };
362
302
  export const se_ListAvailableSolutionStacksCommand = async (input, context) => {
363
- const headers = {
364
- "content-type": "application/x-www-form-urlencoded",
365
- };
303
+ const headers = SHARED_HEADERS;
366
304
  const body = buildFormUrlencodedString({
367
305
  Action: "ListAvailableSolutionStacks",
368
306
  Version: "2010-12-01",
@@ -370,9 +308,7 @@ export const se_ListAvailableSolutionStacksCommand = async (input, context) => {
370
308
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
371
309
  };
372
310
  export const se_ListPlatformBranchesCommand = async (input, context) => {
373
- const headers = {
374
- "content-type": "application/x-www-form-urlencoded",
375
- };
311
+ const headers = SHARED_HEADERS;
376
312
  let body;
377
313
  body = buildFormUrlencodedString({
378
314
  ...se_ListPlatformBranchesRequest(input, context),
@@ -382,9 +318,7 @@ export const se_ListPlatformBranchesCommand = async (input, context) => {
382
318
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
383
319
  };
384
320
  export const se_ListPlatformVersionsCommand = async (input, context) => {
385
- const headers = {
386
- "content-type": "application/x-www-form-urlencoded",
387
- };
321
+ const headers = SHARED_HEADERS;
388
322
  let body;
389
323
  body = buildFormUrlencodedString({
390
324
  ...se_ListPlatformVersionsRequest(input, context),
@@ -394,9 +328,7 @@ export const se_ListPlatformVersionsCommand = async (input, context) => {
394
328
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
395
329
  };
396
330
  export const se_ListTagsForResourceCommand = async (input, context) => {
397
- const headers = {
398
- "content-type": "application/x-www-form-urlencoded",
399
- };
331
+ const headers = SHARED_HEADERS;
400
332
  let body;
401
333
  body = buildFormUrlencodedString({
402
334
  ...se_ListTagsForResourceMessage(input, context),
@@ -406,9 +338,7 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
406
338
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
339
  };
408
340
  export const se_RebuildEnvironmentCommand = async (input, context) => {
409
- const headers = {
410
- "content-type": "application/x-www-form-urlencoded",
411
- };
341
+ const headers = SHARED_HEADERS;
412
342
  let body;
413
343
  body = buildFormUrlencodedString({
414
344
  ...se_RebuildEnvironmentMessage(input, context),
@@ -418,9 +348,7 @@ export const se_RebuildEnvironmentCommand = async (input, context) => {
418
348
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
419
349
  };
420
350
  export const se_RequestEnvironmentInfoCommand = async (input, context) => {
421
- const headers = {
422
- "content-type": "application/x-www-form-urlencoded",
423
- };
351
+ const headers = SHARED_HEADERS;
424
352
  let body;
425
353
  body = buildFormUrlencodedString({
426
354
  ...se_RequestEnvironmentInfoMessage(input, context),
@@ -430,9 +358,7 @@ export const se_RequestEnvironmentInfoCommand = async (input, context) => {
430
358
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
431
359
  };
432
360
  export const se_RestartAppServerCommand = async (input, context) => {
433
- const headers = {
434
- "content-type": "application/x-www-form-urlencoded",
435
- };
361
+ const headers = SHARED_HEADERS;
436
362
  let body;
437
363
  body = buildFormUrlencodedString({
438
364
  ...se_RestartAppServerMessage(input, context),
@@ -442,9 +368,7 @@ export const se_RestartAppServerCommand = async (input, context) => {
442
368
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
443
369
  };
444
370
  export const se_RetrieveEnvironmentInfoCommand = async (input, context) => {
445
- const headers = {
446
- "content-type": "application/x-www-form-urlencoded",
447
- };
371
+ const headers = SHARED_HEADERS;
448
372
  let body;
449
373
  body = buildFormUrlencodedString({
450
374
  ...se_RetrieveEnvironmentInfoMessage(input, context),
@@ -454,9 +378,7 @@ export const se_RetrieveEnvironmentInfoCommand = async (input, context) => {
454
378
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
455
379
  };
456
380
  export const se_SwapEnvironmentCNAMEsCommand = async (input, context) => {
457
- const headers = {
458
- "content-type": "application/x-www-form-urlencoded",
459
- };
381
+ const headers = SHARED_HEADERS;
460
382
  let body;
461
383
  body = buildFormUrlencodedString({
462
384
  ...se_SwapEnvironmentCNAMEsMessage(input, context),
@@ -466,9 +388,7 @@ export const se_SwapEnvironmentCNAMEsCommand = async (input, context) => {
466
388
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
467
389
  };
468
390
  export const se_TerminateEnvironmentCommand = async (input, context) => {
469
- const headers = {
470
- "content-type": "application/x-www-form-urlencoded",
471
- };
391
+ const headers = SHARED_HEADERS;
472
392
  let body;
473
393
  body = buildFormUrlencodedString({
474
394
  ...se_TerminateEnvironmentMessage(input, context),
@@ -478,9 +398,7 @@ export const se_TerminateEnvironmentCommand = async (input, context) => {
478
398
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
479
399
  };
480
400
  export const se_UpdateApplicationCommand = async (input, context) => {
481
- const headers = {
482
- "content-type": "application/x-www-form-urlencoded",
483
- };
401
+ const headers = SHARED_HEADERS;
484
402
  let body;
485
403
  body = buildFormUrlencodedString({
486
404
  ...se_UpdateApplicationMessage(input, context),
@@ -490,9 +408,7 @@ export const se_UpdateApplicationCommand = async (input, context) => {
490
408
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
491
409
  };
492
410
  export const se_UpdateApplicationResourceLifecycleCommand = async (input, context) => {
493
- const headers = {
494
- "content-type": "application/x-www-form-urlencoded",
495
- };
411
+ const headers = SHARED_HEADERS;
496
412
  let body;
497
413
  body = buildFormUrlencodedString({
498
414
  ...se_UpdateApplicationResourceLifecycleMessage(input, context),
@@ -502,9 +418,7 @@ export const se_UpdateApplicationResourceLifecycleCommand = async (input, contex
502
418
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
503
419
  };
504
420
  export const se_UpdateApplicationVersionCommand = async (input, context) => {
505
- const headers = {
506
- "content-type": "application/x-www-form-urlencoded",
507
- };
421
+ const headers = SHARED_HEADERS;
508
422
  let body;
509
423
  body = buildFormUrlencodedString({
510
424
  ...se_UpdateApplicationVersionMessage(input, context),
@@ -514,9 +428,7 @@ export const se_UpdateApplicationVersionCommand = async (input, context) => {
514
428
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
515
429
  };
516
430
  export const se_UpdateConfigurationTemplateCommand = async (input, context) => {
517
- const headers = {
518
- "content-type": "application/x-www-form-urlencoded",
519
- };
431
+ const headers = SHARED_HEADERS;
520
432
  let body;
521
433
  body = buildFormUrlencodedString({
522
434
  ...se_UpdateConfigurationTemplateMessage(input, context),
@@ -526,9 +438,7 @@ export const se_UpdateConfigurationTemplateCommand = async (input, context) => {
526
438
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
527
439
  };
528
440
  export const se_UpdateEnvironmentCommand = async (input, context) => {
529
- const headers = {
530
- "content-type": "application/x-www-form-urlencoded",
531
- };
441
+ const headers = SHARED_HEADERS;
532
442
  let body;
533
443
  body = buildFormUrlencodedString({
534
444
  ...se_UpdateEnvironmentMessage(input, context),
@@ -538,9 +448,7 @@ export const se_UpdateEnvironmentCommand = async (input, context) => {
538
448
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
539
449
  };
540
450
  export const se_UpdateTagsForResourceCommand = async (input, context) => {
541
- const headers = {
542
- "content-type": "application/x-www-form-urlencoded",
543
- };
451
+ const headers = SHARED_HEADERS;
544
452
  let body;
545
453
  body = buildFormUrlencodedString({
546
454
  ...se_UpdateTagsForResourceMessage(input, context),
@@ -550,9 +458,7 @@ export const se_UpdateTagsForResourceCommand = async (input, context) => {
550
458
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
551
459
  };
552
460
  export const se_ValidateConfigurationSettingsCommand = async (input, context) => {
553
- const headers = {
554
- "content-type": "application/x-www-form-urlencoded",
555
- };
461
+ const headers = SHARED_HEADERS;
556
462
  let body;
557
463
  body = buildFormUrlencodedString({
558
464
  ...se_ValidateConfigurationSettingsMessage(input, context),
@@ -5314,6 +5220,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
5314
5220
  }
5315
5221
  return new __HttpRequest(contents);
5316
5222
  };
5223
+ const SHARED_HEADERS = {
5224
+ "content-type": "application/x-www-form-urlencoded",
5225
+ };
5317
5226
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5318
5227
  if (encoded.length) {
5319
5228
  const parser = new XMLParser({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elastic-beanstalk",
3
3
  "description": "AWS SDK for JavaScript Elastic Beanstalk Client for Node.js, Browser and React Native",
4
- "version": "3.309.0",
4
+ "version": "3.312.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,44 +21,44 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.309.0",
25
- "@aws-sdk/config-resolver": "3.306.0",
26
- "@aws-sdk/credential-provider-node": "3.309.0",
27
- "@aws-sdk/fetch-http-handler": "3.306.0",
28
- "@aws-sdk/hash-node": "3.306.0",
29
- "@aws-sdk/invalid-dependency": "3.306.0",
30
- "@aws-sdk/middleware-content-length": "3.306.0",
31
- "@aws-sdk/middleware-endpoint": "3.306.0",
32
- "@aws-sdk/middleware-host-header": "3.306.0",
33
- "@aws-sdk/middleware-logger": "3.306.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
- "@aws-sdk/middleware-retry": "3.306.0",
36
- "@aws-sdk/middleware-serde": "3.306.0",
37
- "@aws-sdk/middleware-signing": "3.306.0",
38
- "@aws-sdk/middleware-stack": "3.306.0",
39
- "@aws-sdk/middleware-user-agent": "3.306.0",
40
- "@aws-sdk/node-config-provider": "3.306.0",
41
- "@aws-sdk/node-http-handler": "3.306.0",
42
- "@aws-sdk/protocol-http": "3.306.0",
43
- "@aws-sdk/smithy-client": "3.309.0",
44
- "@aws-sdk/types": "3.306.0",
45
- "@aws-sdk/url-parser": "3.306.0",
46
- "@aws-sdk/util-base64": "3.303.0",
47
- "@aws-sdk/util-body-length-browser": "3.303.0",
48
- "@aws-sdk/util-body-length-node": "3.303.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.309.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.309.0",
51
- "@aws-sdk/util-endpoints": "3.306.0",
52
- "@aws-sdk/util-retry": "3.306.0",
53
- "@aws-sdk/util-user-agent-browser": "3.306.0",
54
- "@aws-sdk/util-user-agent-node": "3.306.0",
55
- "@aws-sdk/util-utf8": "3.303.0",
56
- "@aws-sdk/util-waiter": "3.306.0",
24
+ "@aws-sdk/client-sts": "3.312.0",
25
+ "@aws-sdk/config-resolver": "3.310.0",
26
+ "@aws-sdk/credential-provider-node": "3.310.0",
27
+ "@aws-sdk/fetch-http-handler": "3.310.0",
28
+ "@aws-sdk/hash-node": "3.310.0",
29
+ "@aws-sdk/invalid-dependency": "3.310.0",
30
+ "@aws-sdk/middleware-content-length": "3.310.0",
31
+ "@aws-sdk/middleware-endpoint": "3.310.0",
32
+ "@aws-sdk/middleware-host-header": "3.310.0",
33
+ "@aws-sdk/middleware-logger": "3.310.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.310.0",
35
+ "@aws-sdk/middleware-retry": "3.310.0",
36
+ "@aws-sdk/middleware-serde": "3.310.0",
37
+ "@aws-sdk/middleware-signing": "3.310.0",
38
+ "@aws-sdk/middleware-stack": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.310.0",
40
+ "@aws-sdk/node-config-provider": "3.310.0",
41
+ "@aws-sdk/node-http-handler": "3.310.0",
42
+ "@aws-sdk/protocol-http": "3.310.0",
43
+ "@aws-sdk/smithy-client": "3.310.0",
44
+ "@aws-sdk/types": "3.310.0",
45
+ "@aws-sdk/url-parser": "3.310.0",
46
+ "@aws-sdk/util-base64": "3.310.0",
47
+ "@aws-sdk/util-body-length-browser": "3.310.0",
48
+ "@aws-sdk/util-body-length-node": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.310.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.310.0",
51
+ "@aws-sdk/util-endpoints": "3.310.0",
52
+ "@aws-sdk/util-retry": "3.310.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.310.0",
54
+ "@aws-sdk/util-user-agent-node": "3.310.0",
55
+ "@aws-sdk/util-utf8": "3.310.0",
56
+ "@aws-sdk/util-waiter": "3.310.0",
57
57
  "fast-xml-parser": "4.1.2",
58
58
  "tslib": "^2.5.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
+ "@aws-sdk/service-client-documentation-generator": "3.310.0",
62
62
  "@tsconfig/node14": "1.0.3",
63
63
  "@types/node": "^14.14.31",
64
64
  "concurrently": "7.0.0",
@@ -78,7 +78,7 @@
78
78
  }
79
79
  },
80
80
  "files": [
81
- "dist-*"
81
+ "dist-*/**"
82
82
  ],
83
83
  "author": {
84
84
  "name": "AWS SDK for JavaScript Team",