@aws-sdk/client-auto-scaling 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.
@@ -9,9 +9,7 @@ const fast_xml_parser_1 = require("fast-xml-parser");
9
9
  const AutoScalingServiceException_1 = require("../models/AutoScalingServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_AttachInstancesCommand = async (input, context) => {
12
- const headers = {
13
- "content-type": "application/x-www-form-urlencoded",
14
- };
12
+ const headers = SHARED_HEADERS;
15
13
  let body;
16
14
  body = buildFormUrlencodedString({
17
15
  ...se_AttachInstancesQuery(input, context),
@@ -22,9 +20,7 @@ const se_AttachInstancesCommand = async (input, context) => {
22
20
  };
23
21
  exports.se_AttachInstancesCommand = se_AttachInstancesCommand;
24
22
  const se_AttachLoadBalancersCommand = async (input, context) => {
25
- const headers = {
26
- "content-type": "application/x-www-form-urlencoded",
27
- };
23
+ const headers = SHARED_HEADERS;
28
24
  let body;
29
25
  body = buildFormUrlencodedString({
30
26
  ...se_AttachLoadBalancersType(input, context),
@@ -35,9 +31,7 @@ const se_AttachLoadBalancersCommand = async (input, context) => {
35
31
  };
36
32
  exports.se_AttachLoadBalancersCommand = se_AttachLoadBalancersCommand;
37
33
  const se_AttachLoadBalancerTargetGroupsCommand = async (input, context) => {
38
- const headers = {
39
- "content-type": "application/x-www-form-urlencoded",
40
- };
34
+ const headers = SHARED_HEADERS;
41
35
  let body;
42
36
  body = buildFormUrlencodedString({
43
37
  ...se_AttachLoadBalancerTargetGroupsType(input, context),
@@ -48,9 +42,7 @@ const se_AttachLoadBalancerTargetGroupsCommand = async (input, context) => {
48
42
  };
49
43
  exports.se_AttachLoadBalancerTargetGroupsCommand = se_AttachLoadBalancerTargetGroupsCommand;
50
44
  const se_AttachTrafficSourcesCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-www-form-urlencoded",
53
- };
45
+ const headers = SHARED_HEADERS;
54
46
  let body;
55
47
  body = buildFormUrlencodedString({
56
48
  ...se_AttachTrafficSourcesType(input, context),
@@ -61,9 +53,7 @@ const se_AttachTrafficSourcesCommand = async (input, context) => {
61
53
  };
62
54
  exports.se_AttachTrafficSourcesCommand = se_AttachTrafficSourcesCommand;
63
55
  const se_BatchDeleteScheduledActionCommand = async (input, context) => {
64
- const headers = {
65
- "content-type": "application/x-www-form-urlencoded",
66
- };
56
+ const headers = SHARED_HEADERS;
67
57
  let body;
68
58
  body = buildFormUrlencodedString({
69
59
  ...se_BatchDeleteScheduledActionType(input, context),
@@ -74,9 +64,7 @@ const se_BatchDeleteScheduledActionCommand = async (input, context) => {
74
64
  };
75
65
  exports.se_BatchDeleteScheduledActionCommand = se_BatchDeleteScheduledActionCommand;
76
66
  const se_BatchPutScheduledUpdateGroupActionCommand = async (input, context) => {
77
- const headers = {
78
- "content-type": "application/x-www-form-urlencoded",
79
- };
67
+ const headers = SHARED_HEADERS;
80
68
  let body;
81
69
  body = buildFormUrlencodedString({
82
70
  ...se_BatchPutScheduledUpdateGroupActionType(input, context),
@@ -87,9 +75,7 @@ const se_BatchPutScheduledUpdateGroupActionCommand = async (input, context) => {
87
75
  };
88
76
  exports.se_BatchPutScheduledUpdateGroupActionCommand = se_BatchPutScheduledUpdateGroupActionCommand;
89
77
  const se_CancelInstanceRefreshCommand = async (input, context) => {
90
- const headers = {
91
- "content-type": "application/x-www-form-urlencoded",
92
- };
78
+ const headers = SHARED_HEADERS;
93
79
  let body;
94
80
  body = buildFormUrlencodedString({
95
81
  ...se_CancelInstanceRefreshType(input, context),
@@ -100,9 +86,7 @@ const se_CancelInstanceRefreshCommand = async (input, context) => {
100
86
  };
101
87
  exports.se_CancelInstanceRefreshCommand = se_CancelInstanceRefreshCommand;
102
88
  const se_CompleteLifecycleActionCommand = async (input, context) => {
103
- const headers = {
104
- "content-type": "application/x-www-form-urlencoded",
105
- };
89
+ const headers = SHARED_HEADERS;
106
90
  let body;
107
91
  body = buildFormUrlencodedString({
108
92
  ...se_CompleteLifecycleActionType(input, context),
@@ -113,9 +97,7 @@ const se_CompleteLifecycleActionCommand = async (input, context) => {
113
97
  };
114
98
  exports.se_CompleteLifecycleActionCommand = se_CompleteLifecycleActionCommand;
115
99
  const se_CreateAutoScalingGroupCommand = async (input, context) => {
116
- const headers = {
117
- "content-type": "application/x-www-form-urlencoded",
118
- };
100
+ const headers = SHARED_HEADERS;
119
101
  let body;
120
102
  body = buildFormUrlencodedString({
121
103
  ...se_CreateAutoScalingGroupType(input, context),
@@ -126,9 +108,7 @@ const se_CreateAutoScalingGroupCommand = async (input, context) => {
126
108
  };
127
109
  exports.se_CreateAutoScalingGroupCommand = se_CreateAutoScalingGroupCommand;
128
110
  const se_CreateLaunchConfigurationCommand = async (input, context) => {
129
- const headers = {
130
- "content-type": "application/x-www-form-urlencoded",
131
- };
111
+ const headers = SHARED_HEADERS;
132
112
  let body;
133
113
  body = buildFormUrlencodedString({
134
114
  ...se_CreateLaunchConfigurationType(input, context),
@@ -139,9 +119,7 @@ const se_CreateLaunchConfigurationCommand = async (input, context) => {
139
119
  };
140
120
  exports.se_CreateLaunchConfigurationCommand = se_CreateLaunchConfigurationCommand;
141
121
  const se_CreateOrUpdateTagsCommand = async (input, context) => {
142
- const headers = {
143
- "content-type": "application/x-www-form-urlencoded",
144
- };
122
+ const headers = SHARED_HEADERS;
145
123
  let body;
146
124
  body = buildFormUrlencodedString({
147
125
  ...se_CreateOrUpdateTagsType(input, context),
@@ -152,9 +130,7 @@ const se_CreateOrUpdateTagsCommand = async (input, context) => {
152
130
  };
153
131
  exports.se_CreateOrUpdateTagsCommand = se_CreateOrUpdateTagsCommand;
154
132
  const se_DeleteAutoScalingGroupCommand = async (input, context) => {
155
- const headers = {
156
- "content-type": "application/x-www-form-urlencoded",
157
- };
133
+ const headers = SHARED_HEADERS;
158
134
  let body;
159
135
  body = buildFormUrlencodedString({
160
136
  ...se_DeleteAutoScalingGroupType(input, context),
@@ -165,9 +141,7 @@ const se_DeleteAutoScalingGroupCommand = async (input, context) => {
165
141
  };
166
142
  exports.se_DeleteAutoScalingGroupCommand = se_DeleteAutoScalingGroupCommand;
167
143
  const se_DeleteLaunchConfigurationCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-www-form-urlencoded",
170
- };
144
+ const headers = SHARED_HEADERS;
171
145
  let body;
172
146
  body = buildFormUrlencodedString({
173
147
  ...se_LaunchConfigurationNameType(input, context),
@@ -178,9 +152,7 @@ const se_DeleteLaunchConfigurationCommand = async (input, context) => {
178
152
  };
179
153
  exports.se_DeleteLaunchConfigurationCommand = se_DeleteLaunchConfigurationCommand;
180
154
  const se_DeleteLifecycleHookCommand = async (input, context) => {
181
- const headers = {
182
- "content-type": "application/x-www-form-urlencoded",
183
- };
155
+ const headers = SHARED_HEADERS;
184
156
  let body;
185
157
  body = buildFormUrlencodedString({
186
158
  ...se_DeleteLifecycleHookType(input, context),
@@ -191,9 +163,7 @@ const se_DeleteLifecycleHookCommand = async (input, context) => {
191
163
  };
192
164
  exports.se_DeleteLifecycleHookCommand = se_DeleteLifecycleHookCommand;
193
165
  const se_DeleteNotificationConfigurationCommand = async (input, context) => {
194
- const headers = {
195
- "content-type": "application/x-www-form-urlencoded",
196
- };
166
+ const headers = SHARED_HEADERS;
197
167
  let body;
198
168
  body = buildFormUrlencodedString({
199
169
  ...se_DeleteNotificationConfigurationType(input, context),
@@ -204,9 +174,7 @@ const se_DeleteNotificationConfigurationCommand = async (input, context) => {
204
174
  };
205
175
  exports.se_DeleteNotificationConfigurationCommand = se_DeleteNotificationConfigurationCommand;
206
176
  const se_DeletePolicyCommand = async (input, context) => {
207
- const headers = {
208
- "content-type": "application/x-www-form-urlencoded",
209
- };
177
+ const headers = SHARED_HEADERS;
210
178
  let body;
211
179
  body = buildFormUrlencodedString({
212
180
  ...se_DeletePolicyType(input, context),
@@ -217,9 +185,7 @@ const se_DeletePolicyCommand = async (input, context) => {
217
185
  };
218
186
  exports.se_DeletePolicyCommand = se_DeletePolicyCommand;
219
187
  const se_DeleteScheduledActionCommand = async (input, context) => {
220
- const headers = {
221
- "content-type": "application/x-www-form-urlencoded",
222
- };
188
+ const headers = SHARED_HEADERS;
223
189
  let body;
224
190
  body = buildFormUrlencodedString({
225
191
  ...se_DeleteScheduledActionType(input, context),
@@ -230,9 +196,7 @@ const se_DeleteScheduledActionCommand = async (input, context) => {
230
196
  };
231
197
  exports.se_DeleteScheduledActionCommand = se_DeleteScheduledActionCommand;
232
198
  const se_DeleteTagsCommand = async (input, context) => {
233
- const headers = {
234
- "content-type": "application/x-www-form-urlencoded",
235
- };
199
+ const headers = SHARED_HEADERS;
236
200
  let body;
237
201
  body = buildFormUrlencodedString({
238
202
  ...se_DeleteTagsType(input, context),
@@ -243,9 +207,7 @@ const se_DeleteTagsCommand = async (input, context) => {
243
207
  };
244
208
  exports.se_DeleteTagsCommand = se_DeleteTagsCommand;
245
209
  const se_DeleteWarmPoolCommand = async (input, context) => {
246
- const headers = {
247
- "content-type": "application/x-www-form-urlencoded",
248
- };
210
+ const headers = SHARED_HEADERS;
249
211
  let body;
250
212
  body = buildFormUrlencodedString({
251
213
  ...se_DeleteWarmPoolType(input, context),
@@ -256,9 +218,7 @@ const se_DeleteWarmPoolCommand = async (input, context) => {
256
218
  };
257
219
  exports.se_DeleteWarmPoolCommand = se_DeleteWarmPoolCommand;
258
220
  const se_DescribeAccountLimitsCommand = async (input, context) => {
259
- const headers = {
260
- "content-type": "application/x-www-form-urlencoded",
261
- };
221
+ const headers = SHARED_HEADERS;
262
222
  const body = buildFormUrlencodedString({
263
223
  Action: "DescribeAccountLimits",
264
224
  Version: "2011-01-01",
@@ -267,9 +227,7 @@ const se_DescribeAccountLimitsCommand = async (input, context) => {
267
227
  };
268
228
  exports.se_DescribeAccountLimitsCommand = se_DescribeAccountLimitsCommand;
269
229
  const se_DescribeAdjustmentTypesCommand = async (input, context) => {
270
- const headers = {
271
- "content-type": "application/x-www-form-urlencoded",
272
- };
230
+ const headers = SHARED_HEADERS;
273
231
  const body = buildFormUrlencodedString({
274
232
  Action: "DescribeAdjustmentTypes",
275
233
  Version: "2011-01-01",
@@ -278,9 +236,7 @@ const se_DescribeAdjustmentTypesCommand = async (input, context) => {
278
236
  };
279
237
  exports.se_DescribeAdjustmentTypesCommand = se_DescribeAdjustmentTypesCommand;
280
238
  const se_DescribeAutoScalingGroupsCommand = async (input, context) => {
281
- const headers = {
282
- "content-type": "application/x-www-form-urlencoded",
283
- };
239
+ const headers = SHARED_HEADERS;
284
240
  let body;
285
241
  body = buildFormUrlencodedString({
286
242
  ...se_AutoScalingGroupNamesType(input, context),
@@ -291,9 +247,7 @@ const se_DescribeAutoScalingGroupsCommand = async (input, context) => {
291
247
  };
292
248
  exports.se_DescribeAutoScalingGroupsCommand = se_DescribeAutoScalingGroupsCommand;
293
249
  const se_DescribeAutoScalingInstancesCommand = async (input, context) => {
294
- const headers = {
295
- "content-type": "application/x-www-form-urlencoded",
296
- };
250
+ const headers = SHARED_HEADERS;
297
251
  let body;
298
252
  body = buildFormUrlencodedString({
299
253
  ...se_DescribeAutoScalingInstancesType(input, context),
@@ -304,9 +258,7 @@ const se_DescribeAutoScalingInstancesCommand = async (input, context) => {
304
258
  };
305
259
  exports.se_DescribeAutoScalingInstancesCommand = se_DescribeAutoScalingInstancesCommand;
306
260
  const se_DescribeAutoScalingNotificationTypesCommand = async (input, context) => {
307
- const headers = {
308
- "content-type": "application/x-www-form-urlencoded",
309
- };
261
+ const headers = SHARED_HEADERS;
310
262
  const body = buildFormUrlencodedString({
311
263
  Action: "DescribeAutoScalingNotificationTypes",
312
264
  Version: "2011-01-01",
@@ -315,9 +267,7 @@ const se_DescribeAutoScalingNotificationTypesCommand = async (input, context) =>
315
267
  };
316
268
  exports.se_DescribeAutoScalingNotificationTypesCommand = se_DescribeAutoScalingNotificationTypesCommand;
317
269
  const se_DescribeInstanceRefreshesCommand = async (input, context) => {
318
- const headers = {
319
- "content-type": "application/x-www-form-urlencoded",
320
- };
270
+ const headers = SHARED_HEADERS;
321
271
  let body;
322
272
  body = buildFormUrlencodedString({
323
273
  ...se_DescribeInstanceRefreshesType(input, context),
@@ -328,9 +278,7 @@ const se_DescribeInstanceRefreshesCommand = async (input, context) => {
328
278
  };
329
279
  exports.se_DescribeInstanceRefreshesCommand = se_DescribeInstanceRefreshesCommand;
330
280
  const se_DescribeLaunchConfigurationsCommand = async (input, context) => {
331
- const headers = {
332
- "content-type": "application/x-www-form-urlencoded",
333
- };
281
+ const headers = SHARED_HEADERS;
334
282
  let body;
335
283
  body = buildFormUrlencodedString({
336
284
  ...se_LaunchConfigurationNamesType(input, context),
@@ -341,9 +289,7 @@ const se_DescribeLaunchConfigurationsCommand = async (input, context) => {
341
289
  };
342
290
  exports.se_DescribeLaunchConfigurationsCommand = se_DescribeLaunchConfigurationsCommand;
343
291
  const se_DescribeLifecycleHooksCommand = async (input, context) => {
344
- const headers = {
345
- "content-type": "application/x-www-form-urlencoded",
346
- };
292
+ const headers = SHARED_HEADERS;
347
293
  let body;
348
294
  body = buildFormUrlencodedString({
349
295
  ...se_DescribeLifecycleHooksType(input, context),
@@ -354,9 +300,7 @@ const se_DescribeLifecycleHooksCommand = async (input, context) => {
354
300
  };
355
301
  exports.se_DescribeLifecycleHooksCommand = se_DescribeLifecycleHooksCommand;
356
302
  const se_DescribeLifecycleHookTypesCommand = async (input, context) => {
357
- const headers = {
358
- "content-type": "application/x-www-form-urlencoded",
359
- };
303
+ const headers = SHARED_HEADERS;
360
304
  const body = buildFormUrlencodedString({
361
305
  Action: "DescribeLifecycleHookTypes",
362
306
  Version: "2011-01-01",
@@ -365,9 +309,7 @@ const se_DescribeLifecycleHookTypesCommand = async (input, context) => {
365
309
  };
366
310
  exports.se_DescribeLifecycleHookTypesCommand = se_DescribeLifecycleHookTypesCommand;
367
311
  const se_DescribeLoadBalancersCommand = async (input, context) => {
368
- const headers = {
369
- "content-type": "application/x-www-form-urlencoded",
370
- };
312
+ const headers = SHARED_HEADERS;
371
313
  let body;
372
314
  body = buildFormUrlencodedString({
373
315
  ...se_DescribeLoadBalancersRequest(input, context),
@@ -378,9 +320,7 @@ const se_DescribeLoadBalancersCommand = async (input, context) => {
378
320
  };
379
321
  exports.se_DescribeLoadBalancersCommand = se_DescribeLoadBalancersCommand;
380
322
  const se_DescribeLoadBalancerTargetGroupsCommand = async (input, context) => {
381
- const headers = {
382
- "content-type": "application/x-www-form-urlencoded",
383
- };
323
+ const headers = SHARED_HEADERS;
384
324
  let body;
385
325
  body = buildFormUrlencodedString({
386
326
  ...se_DescribeLoadBalancerTargetGroupsRequest(input, context),
@@ -391,9 +331,7 @@ const se_DescribeLoadBalancerTargetGroupsCommand = async (input, context) => {
391
331
  };
392
332
  exports.se_DescribeLoadBalancerTargetGroupsCommand = se_DescribeLoadBalancerTargetGroupsCommand;
393
333
  const se_DescribeMetricCollectionTypesCommand = async (input, context) => {
394
- const headers = {
395
- "content-type": "application/x-www-form-urlencoded",
396
- };
334
+ const headers = SHARED_HEADERS;
397
335
  const body = buildFormUrlencodedString({
398
336
  Action: "DescribeMetricCollectionTypes",
399
337
  Version: "2011-01-01",
@@ -402,9 +340,7 @@ const se_DescribeMetricCollectionTypesCommand = async (input, context) => {
402
340
  };
403
341
  exports.se_DescribeMetricCollectionTypesCommand = se_DescribeMetricCollectionTypesCommand;
404
342
  const se_DescribeNotificationConfigurationsCommand = async (input, context) => {
405
- const headers = {
406
- "content-type": "application/x-www-form-urlencoded",
407
- };
343
+ const headers = SHARED_HEADERS;
408
344
  let body;
409
345
  body = buildFormUrlencodedString({
410
346
  ...se_DescribeNotificationConfigurationsType(input, context),
@@ -415,9 +351,7 @@ const se_DescribeNotificationConfigurationsCommand = async (input, context) => {
415
351
  };
416
352
  exports.se_DescribeNotificationConfigurationsCommand = se_DescribeNotificationConfigurationsCommand;
417
353
  const se_DescribePoliciesCommand = async (input, context) => {
418
- const headers = {
419
- "content-type": "application/x-www-form-urlencoded",
420
- };
354
+ const headers = SHARED_HEADERS;
421
355
  let body;
422
356
  body = buildFormUrlencodedString({
423
357
  ...se_DescribePoliciesType(input, context),
@@ -428,9 +362,7 @@ const se_DescribePoliciesCommand = async (input, context) => {
428
362
  };
429
363
  exports.se_DescribePoliciesCommand = se_DescribePoliciesCommand;
430
364
  const se_DescribeScalingActivitiesCommand = async (input, context) => {
431
- const headers = {
432
- "content-type": "application/x-www-form-urlencoded",
433
- };
365
+ const headers = SHARED_HEADERS;
434
366
  let body;
435
367
  body = buildFormUrlencodedString({
436
368
  ...se_DescribeScalingActivitiesType(input, context),
@@ -441,9 +373,7 @@ const se_DescribeScalingActivitiesCommand = async (input, context) => {
441
373
  };
442
374
  exports.se_DescribeScalingActivitiesCommand = se_DescribeScalingActivitiesCommand;
443
375
  const se_DescribeScalingProcessTypesCommand = async (input, context) => {
444
- const headers = {
445
- "content-type": "application/x-www-form-urlencoded",
446
- };
376
+ const headers = SHARED_HEADERS;
447
377
  const body = buildFormUrlencodedString({
448
378
  Action: "DescribeScalingProcessTypes",
449
379
  Version: "2011-01-01",
@@ -452,9 +382,7 @@ const se_DescribeScalingProcessTypesCommand = async (input, context) => {
452
382
  };
453
383
  exports.se_DescribeScalingProcessTypesCommand = se_DescribeScalingProcessTypesCommand;
454
384
  const se_DescribeScheduledActionsCommand = async (input, context) => {
455
- const headers = {
456
- "content-type": "application/x-www-form-urlencoded",
457
- };
385
+ const headers = SHARED_HEADERS;
458
386
  let body;
459
387
  body = buildFormUrlencodedString({
460
388
  ...se_DescribeScheduledActionsType(input, context),
@@ -465,9 +393,7 @@ const se_DescribeScheduledActionsCommand = async (input, context) => {
465
393
  };
466
394
  exports.se_DescribeScheduledActionsCommand = se_DescribeScheduledActionsCommand;
467
395
  const se_DescribeTagsCommand = async (input, context) => {
468
- const headers = {
469
- "content-type": "application/x-www-form-urlencoded",
470
- };
396
+ const headers = SHARED_HEADERS;
471
397
  let body;
472
398
  body = buildFormUrlencodedString({
473
399
  ...se_DescribeTagsType(input, context),
@@ -478,9 +404,7 @@ const se_DescribeTagsCommand = async (input, context) => {
478
404
  };
479
405
  exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
480
406
  const se_DescribeTerminationPolicyTypesCommand = async (input, context) => {
481
- const headers = {
482
- "content-type": "application/x-www-form-urlencoded",
483
- };
407
+ const headers = SHARED_HEADERS;
484
408
  const body = buildFormUrlencodedString({
485
409
  Action: "DescribeTerminationPolicyTypes",
486
410
  Version: "2011-01-01",
@@ -489,9 +413,7 @@ const se_DescribeTerminationPolicyTypesCommand = async (input, context) => {
489
413
  };
490
414
  exports.se_DescribeTerminationPolicyTypesCommand = se_DescribeTerminationPolicyTypesCommand;
491
415
  const se_DescribeTrafficSourcesCommand = async (input, context) => {
492
- const headers = {
493
- "content-type": "application/x-www-form-urlencoded",
494
- };
416
+ const headers = SHARED_HEADERS;
495
417
  let body;
496
418
  body = buildFormUrlencodedString({
497
419
  ...se_DescribeTrafficSourcesRequest(input, context),
@@ -502,9 +424,7 @@ const se_DescribeTrafficSourcesCommand = async (input, context) => {
502
424
  };
503
425
  exports.se_DescribeTrafficSourcesCommand = se_DescribeTrafficSourcesCommand;
504
426
  const se_DescribeWarmPoolCommand = async (input, context) => {
505
- const headers = {
506
- "content-type": "application/x-www-form-urlencoded",
507
- };
427
+ const headers = SHARED_HEADERS;
508
428
  let body;
509
429
  body = buildFormUrlencodedString({
510
430
  ...se_DescribeWarmPoolType(input, context),
@@ -515,9 +435,7 @@ const se_DescribeWarmPoolCommand = async (input, context) => {
515
435
  };
516
436
  exports.se_DescribeWarmPoolCommand = se_DescribeWarmPoolCommand;
517
437
  const se_DetachInstancesCommand = async (input, context) => {
518
- const headers = {
519
- "content-type": "application/x-www-form-urlencoded",
520
- };
438
+ const headers = SHARED_HEADERS;
521
439
  let body;
522
440
  body = buildFormUrlencodedString({
523
441
  ...se_DetachInstancesQuery(input, context),
@@ -528,9 +446,7 @@ const se_DetachInstancesCommand = async (input, context) => {
528
446
  };
529
447
  exports.se_DetachInstancesCommand = se_DetachInstancesCommand;
530
448
  const se_DetachLoadBalancersCommand = async (input, context) => {
531
- const headers = {
532
- "content-type": "application/x-www-form-urlencoded",
533
- };
449
+ const headers = SHARED_HEADERS;
534
450
  let body;
535
451
  body = buildFormUrlencodedString({
536
452
  ...se_DetachLoadBalancersType(input, context),
@@ -541,9 +457,7 @@ const se_DetachLoadBalancersCommand = async (input, context) => {
541
457
  };
542
458
  exports.se_DetachLoadBalancersCommand = se_DetachLoadBalancersCommand;
543
459
  const se_DetachLoadBalancerTargetGroupsCommand = async (input, context) => {
544
- const headers = {
545
- "content-type": "application/x-www-form-urlencoded",
546
- };
460
+ const headers = SHARED_HEADERS;
547
461
  let body;
548
462
  body = buildFormUrlencodedString({
549
463
  ...se_DetachLoadBalancerTargetGroupsType(input, context),
@@ -554,9 +468,7 @@ const se_DetachLoadBalancerTargetGroupsCommand = async (input, context) => {
554
468
  };
555
469
  exports.se_DetachLoadBalancerTargetGroupsCommand = se_DetachLoadBalancerTargetGroupsCommand;
556
470
  const se_DetachTrafficSourcesCommand = async (input, context) => {
557
- const headers = {
558
- "content-type": "application/x-www-form-urlencoded",
559
- };
471
+ const headers = SHARED_HEADERS;
560
472
  let body;
561
473
  body = buildFormUrlencodedString({
562
474
  ...se_DetachTrafficSourcesType(input, context),
@@ -567,9 +479,7 @@ const se_DetachTrafficSourcesCommand = async (input, context) => {
567
479
  };
568
480
  exports.se_DetachTrafficSourcesCommand = se_DetachTrafficSourcesCommand;
569
481
  const se_DisableMetricsCollectionCommand = async (input, context) => {
570
- const headers = {
571
- "content-type": "application/x-www-form-urlencoded",
572
- };
482
+ const headers = SHARED_HEADERS;
573
483
  let body;
574
484
  body = buildFormUrlencodedString({
575
485
  ...se_DisableMetricsCollectionQuery(input, context),
@@ -580,9 +490,7 @@ const se_DisableMetricsCollectionCommand = async (input, context) => {
580
490
  };
581
491
  exports.se_DisableMetricsCollectionCommand = se_DisableMetricsCollectionCommand;
582
492
  const se_EnableMetricsCollectionCommand = async (input, context) => {
583
- const headers = {
584
- "content-type": "application/x-www-form-urlencoded",
585
- };
493
+ const headers = SHARED_HEADERS;
586
494
  let body;
587
495
  body = buildFormUrlencodedString({
588
496
  ...se_EnableMetricsCollectionQuery(input, context),
@@ -593,9 +501,7 @@ const se_EnableMetricsCollectionCommand = async (input, context) => {
593
501
  };
594
502
  exports.se_EnableMetricsCollectionCommand = se_EnableMetricsCollectionCommand;
595
503
  const se_EnterStandbyCommand = async (input, context) => {
596
- const headers = {
597
- "content-type": "application/x-www-form-urlencoded",
598
- };
504
+ const headers = SHARED_HEADERS;
599
505
  let body;
600
506
  body = buildFormUrlencodedString({
601
507
  ...se_EnterStandbyQuery(input, context),
@@ -606,9 +512,7 @@ const se_EnterStandbyCommand = async (input, context) => {
606
512
  };
607
513
  exports.se_EnterStandbyCommand = se_EnterStandbyCommand;
608
514
  const se_ExecutePolicyCommand = async (input, context) => {
609
- const headers = {
610
- "content-type": "application/x-www-form-urlencoded",
611
- };
515
+ const headers = SHARED_HEADERS;
612
516
  let body;
613
517
  body = buildFormUrlencodedString({
614
518
  ...se_ExecutePolicyType(input, context),
@@ -619,9 +523,7 @@ const se_ExecutePolicyCommand = async (input, context) => {
619
523
  };
620
524
  exports.se_ExecutePolicyCommand = se_ExecutePolicyCommand;
621
525
  const se_ExitStandbyCommand = async (input, context) => {
622
- const headers = {
623
- "content-type": "application/x-www-form-urlencoded",
624
- };
526
+ const headers = SHARED_HEADERS;
625
527
  let body;
626
528
  body = buildFormUrlencodedString({
627
529
  ...se_ExitStandbyQuery(input, context),
@@ -632,9 +534,7 @@ const se_ExitStandbyCommand = async (input, context) => {
632
534
  };
633
535
  exports.se_ExitStandbyCommand = se_ExitStandbyCommand;
634
536
  const se_GetPredictiveScalingForecastCommand = async (input, context) => {
635
- const headers = {
636
- "content-type": "application/x-www-form-urlencoded",
637
- };
537
+ const headers = SHARED_HEADERS;
638
538
  let body;
639
539
  body = buildFormUrlencodedString({
640
540
  ...se_GetPredictiveScalingForecastType(input, context),
@@ -645,9 +545,7 @@ const se_GetPredictiveScalingForecastCommand = async (input, context) => {
645
545
  };
646
546
  exports.se_GetPredictiveScalingForecastCommand = se_GetPredictiveScalingForecastCommand;
647
547
  const se_PutLifecycleHookCommand = async (input, context) => {
648
- const headers = {
649
- "content-type": "application/x-www-form-urlencoded",
650
- };
548
+ const headers = SHARED_HEADERS;
651
549
  let body;
652
550
  body = buildFormUrlencodedString({
653
551
  ...se_PutLifecycleHookType(input, context),
@@ -658,9 +556,7 @@ const se_PutLifecycleHookCommand = async (input, context) => {
658
556
  };
659
557
  exports.se_PutLifecycleHookCommand = se_PutLifecycleHookCommand;
660
558
  const se_PutNotificationConfigurationCommand = async (input, context) => {
661
- const headers = {
662
- "content-type": "application/x-www-form-urlencoded",
663
- };
559
+ const headers = SHARED_HEADERS;
664
560
  let body;
665
561
  body = buildFormUrlencodedString({
666
562
  ...se_PutNotificationConfigurationType(input, context),
@@ -671,9 +567,7 @@ const se_PutNotificationConfigurationCommand = async (input, context) => {
671
567
  };
672
568
  exports.se_PutNotificationConfigurationCommand = se_PutNotificationConfigurationCommand;
673
569
  const se_PutScalingPolicyCommand = async (input, context) => {
674
- const headers = {
675
- "content-type": "application/x-www-form-urlencoded",
676
- };
570
+ const headers = SHARED_HEADERS;
677
571
  let body;
678
572
  body = buildFormUrlencodedString({
679
573
  ...se_PutScalingPolicyType(input, context),
@@ -684,9 +578,7 @@ const se_PutScalingPolicyCommand = async (input, context) => {
684
578
  };
685
579
  exports.se_PutScalingPolicyCommand = se_PutScalingPolicyCommand;
686
580
  const se_PutScheduledUpdateGroupActionCommand = async (input, context) => {
687
- const headers = {
688
- "content-type": "application/x-www-form-urlencoded",
689
- };
581
+ const headers = SHARED_HEADERS;
690
582
  let body;
691
583
  body = buildFormUrlencodedString({
692
584
  ...se_PutScheduledUpdateGroupActionType(input, context),
@@ -697,9 +589,7 @@ const se_PutScheduledUpdateGroupActionCommand = async (input, context) => {
697
589
  };
698
590
  exports.se_PutScheduledUpdateGroupActionCommand = se_PutScheduledUpdateGroupActionCommand;
699
591
  const se_PutWarmPoolCommand = async (input, context) => {
700
- const headers = {
701
- "content-type": "application/x-www-form-urlencoded",
702
- };
592
+ const headers = SHARED_HEADERS;
703
593
  let body;
704
594
  body = buildFormUrlencodedString({
705
595
  ...se_PutWarmPoolType(input, context),
@@ -710,9 +600,7 @@ const se_PutWarmPoolCommand = async (input, context) => {
710
600
  };
711
601
  exports.se_PutWarmPoolCommand = se_PutWarmPoolCommand;
712
602
  const se_RecordLifecycleActionHeartbeatCommand = async (input, context) => {
713
- const headers = {
714
- "content-type": "application/x-www-form-urlencoded",
715
- };
603
+ const headers = SHARED_HEADERS;
716
604
  let body;
717
605
  body = buildFormUrlencodedString({
718
606
  ...se_RecordLifecycleActionHeartbeatType(input, context),
@@ -723,9 +611,7 @@ const se_RecordLifecycleActionHeartbeatCommand = async (input, context) => {
723
611
  };
724
612
  exports.se_RecordLifecycleActionHeartbeatCommand = se_RecordLifecycleActionHeartbeatCommand;
725
613
  const se_ResumeProcessesCommand = async (input, context) => {
726
- const headers = {
727
- "content-type": "application/x-www-form-urlencoded",
728
- };
614
+ const headers = SHARED_HEADERS;
729
615
  let body;
730
616
  body = buildFormUrlencodedString({
731
617
  ...se_ScalingProcessQuery(input, context),
@@ -736,9 +622,7 @@ const se_ResumeProcessesCommand = async (input, context) => {
736
622
  };
737
623
  exports.se_ResumeProcessesCommand = se_ResumeProcessesCommand;
738
624
  const se_RollbackInstanceRefreshCommand = async (input, context) => {
739
- const headers = {
740
- "content-type": "application/x-www-form-urlencoded",
741
- };
625
+ const headers = SHARED_HEADERS;
742
626
  let body;
743
627
  body = buildFormUrlencodedString({
744
628
  ...se_RollbackInstanceRefreshType(input, context),
@@ -749,9 +633,7 @@ const se_RollbackInstanceRefreshCommand = async (input, context) => {
749
633
  };
750
634
  exports.se_RollbackInstanceRefreshCommand = se_RollbackInstanceRefreshCommand;
751
635
  const se_SetDesiredCapacityCommand = async (input, context) => {
752
- const headers = {
753
- "content-type": "application/x-www-form-urlencoded",
754
- };
636
+ const headers = SHARED_HEADERS;
755
637
  let body;
756
638
  body = buildFormUrlencodedString({
757
639
  ...se_SetDesiredCapacityType(input, context),
@@ -762,9 +644,7 @@ const se_SetDesiredCapacityCommand = async (input, context) => {
762
644
  };
763
645
  exports.se_SetDesiredCapacityCommand = se_SetDesiredCapacityCommand;
764
646
  const se_SetInstanceHealthCommand = async (input, context) => {
765
- const headers = {
766
- "content-type": "application/x-www-form-urlencoded",
767
- };
647
+ const headers = SHARED_HEADERS;
768
648
  let body;
769
649
  body = buildFormUrlencodedString({
770
650
  ...se_SetInstanceHealthQuery(input, context),
@@ -775,9 +655,7 @@ const se_SetInstanceHealthCommand = async (input, context) => {
775
655
  };
776
656
  exports.se_SetInstanceHealthCommand = se_SetInstanceHealthCommand;
777
657
  const se_SetInstanceProtectionCommand = async (input, context) => {
778
- const headers = {
779
- "content-type": "application/x-www-form-urlencoded",
780
- };
658
+ const headers = SHARED_HEADERS;
781
659
  let body;
782
660
  body = buildFormUrlencodedString({
783
661
  ...se_SetInstanceProtectionQuery(input, context),
@@ -788,9 +666,7 @@ const se_SetInstanceProtectionCommand = async (input, context) => {
788
666
  };
789
667
  exports.se_SetInstanceProtectionCommand = se_SetInstanceProtectionCommand;
790
668
  const se_StartInstanceRefreshCommand = async (input, context) => {
791
- const headers = {
792
- "content-type": "application/x-www-form-urlencoded",
793
- };
669
+ const headers = SHARED_HEADERS;
794
670
  let body;
795
671
  body = buildFormUrlencodedString({
796
672
  ...se_StartInstanceRefreshType(input, context),
@@ -801,9 +677,7 @@ const se_StartInstanceRefreshCommand = async (input, context) => {
801
677
  };
802
678
  exports.se_StartInstanceRefreshCommand = se_StartInstanceRefreshCommand;
803
679
  const se_SuspendProcessesCommand = async (input, context) => {
804
- const headers = {
805
- "content-type": "application/x-www-form-urlencoded",
806
- };
680
+ const headers = SHARED_HEADERS;
807
681
  let body;
808
682
  body = buildFormUrlencodedString({
809
683
  ...se_ScalingProcessQuery(input, context),
@@ -814,9 +688,7 @@ const se_SuspendProcessesCommand = async (input, context) => {
814
688
  };
815
689
  exports.se_SuspendProcessesCommand = se_SuspendProcessesCommand;
816
690
  const se_TerminateInstanceInAutoScalingGroupCommand = async (input, context) => {
817
- const headers = {
818
- "content-type": "application/x-www-form-urlencoded",
819
- };
691
+ const headers = SHARED_HEADERS;
820
692
  let body;
821
693
  body = buildFormUrlencodedString({
822
694
  ...se_TerminateInstanceInAutoScalingGroupType(input, context),
@@ -827,9 +699,7 @@ const se_TerminateInstanceInAutoScalingGroupCommand = async (input, context) =>
827
699
  };
828
700
  exports.se_TerminateInstanceInAutoScalingGroupCommand = se_TerminateInstanceInAutoScalingGroupCommand;
829
701
  const se_UpdateAutoScalingGroupCommand = async (input, context) => {
830
- const headers = {
831
- "content-type": "application/x-www-form-urlencoded",
832
- };
702
+ const headers = SHARED_HEADERS;
833
703
  let body;
834
704
  body = buildFormUrlencodedString({
835
705
  ...se_UpdateAutoScalingGroupType(input, context),
@@ -8234,6 +8104,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
8234
8104
  }
8235
8105
  return new protocol_http_1.HttpRequest(contents);
8236
8106
  };
8107
+ const SHARED_HEADERS = {
8108
+ "content-type": "application/x-www-form-urlencoded",
8109
+ };
8237
8110
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
8238
8111
  if (encoded.length) {
8239
8112
  const parser = new fast_xml_parser_1.XMLParser({