@aws-sdk/client-elasticache 3.310.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 ElastiCacheServiceException_1 = require("../models/ElastiCacheServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_AddTagsToResourceCommand = 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_AddTagsToResourceMessage(input, context),
@@ -22,9 +20,7 @@ const se_AddTagsToResourceCommand = async (input, context) => {
22
20
  };
23
21
  exports.se_AddTagsToResourceCommand = se_AddTagsToResourceCommand;
24
22
  const se_AuthorizeCacheSecurityGroupIngressCommand = 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_AuthorizeCacheSecurityGroupIngressMessage(input, context),
@@ -35,9 +31,7 @@ const se_AuthorizeCacheSecurityGroupIngressCommand = async (input, context) => {
35
31
  };
36
32
  exports.se_AuthorizeCacheSecurityGroupIngressCommand = se_AuthorizeCacheSecurityGroupIngressCommand;
37
33
  const se_BatchApplyUpdateActionCommand = 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_BatchApplyUpdateActionMessage(input, context),
@@ -48,9 +42,7 @@ const se_BatchApplyUpdateActionCommand = async (input, context) => {
48
42
  };
49
43
  exports.se_BatchApplyUpdateActionCommand = se_BatchApplyUpdateActionCommand;
50
44
  const se_BatchStopUpdateActionCommand = 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_BatchStopUpdateActionMessage(input, context),
@@ -61,9 +53,7 @@ const se_BatchStopUpdateActionCommand = async (input, context) => {
61
53
  };
62
54
  exports.se_BatchStopUpdateActionCommand = se_BatchStopUpdateActionCommand;
63
55
  const se_CompleteMigrationCommand = 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_CompleteMigrationMessage(input, context),
@@ -74,9 +64,7 @@ const se_CompleteMigrationCommand = async (input, context) => {
74
64
  };
75
65
  exports.se_CompleteMigrationCommand = se_CompleteMigrationCommand;
76
66
  const se_CopySnapshotCommand = 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_CopySnapshotMessage(input, context),
@@ -87,9 +75,7 @@ const se_CopySnapshotCommand = async (input, context) => {
87
75
  };
88
76
  exports.se_CopySnapshotCommand = se_CopySnapshotCommand;
89
77
  const se_CreateCacheClusterCommand = 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_CreateCacheClusterMessage(input, context),
@@ -100,9 +86,7 @@ const se_CreateCacheClusterCommand = async (input, context) => {
100
86
  };
101
87
  exports.se_CreateCacheClusterCommand = se_CreateCacheClusterCommand;
102
88
  const se_CreateCacheParameterGroupCommand = 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_CreateCacheParameterGroupMessage(input, context),
@@ -113,9 +97,7 @@ const se_CreateCacheParameterGroupCommand = async (input, context) => {
113
97
  };
114
98
  exports.se_CreateCacheParameterGroupCommand = se_CreateCacheParameterGroupCommand;
115
99
  const se_CreateCacheSecurityGroupCommand = 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_CreateCacheSecurityGroupMessage(input, context),
@@ -126,9 +108,7 @@ const se_CreateCacheSecurityGroupCommand = async (input, context) => {
126
108
  };
127
109
  exports.se_CreateCacheSecurityGroupCommand = se_CreateCacheSecurityGroupCommand;
128
110
  const se_CreateCacheSubnetGroupCommand = 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_CreateCacheSubnetGroupMessage(input, context),
@@ -139,9 +119,7 @@ const se_CreateCacheSubnetGroupCommand = async (input, context) => {
139
119
  };
140
120
  exports.se_CreateCacheSubnetGroupCommand = se_CreateCacheSubnetGroupCommand;
141
121
  const se_CreateGlobalReplicationGroupCommand = 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_CreateGlobalReplicationGroupMessage(input, context),
@@ -152,9 +130,7 @@ const se_CreateGlobalReplicationGroupCommand = async (input, context) => {
152
130
  };
153
131
  exports.se_CreateGlobalReplicationGroupCommand = se_CreateGlobalReplicationGroupCommand;
154
132
  const se_CreateReplicationGroupCommand = 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_CreateReplicationGroupMessage(input, context),
@@ -165,9 +141,7 @@ const se_CreateReplicationGroupCommand = async (input, context) => {
165
141
  };
166
142
  exports.se_CreateReplicationGroupCommand = se_CreateReplicationGroupCommand;
167
143
  const se_CreateSnapshotCommand = 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_CreateSnapshotMessage(input, context),
@@ -178,9 +152,7 @@ const se_CreateSnapshotCommand = async (input, context) => {
178
152
  };
179
153
  exports.se_CreateSnapshotCommand = se_CreateSnapshotCommand;
180
154
  const se_CreateUserCommand = 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_CreateUserMessage(input, context),
@@ -191,9 +163,7 @@ const se_CreateUserCommand = async (input, context) => {
191
163
  };
192
164
  exports.se_CreateUserCommand = se_CreateUserCommand;
193
165
  const se_CreateUserGroupCommand = 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_CreateUserGroupMessage(input, context),
@@ -204,9 +174,7 @@ const se_CreateUserGroupCommand = async (input, context) => {
204
174
  };
205
175
  exports.se_CreateUserGroupCommand = se_CreateUserGroupCommand;
206
176
  const se_DecreaseNodeGroupsInGlobalReplicationGroupCommand = 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_DecreaseNodeGroupsInGlobalReplicationGroupMessage(input, context),
@@ -217,9 +185,7 @@ const se_DecreaseNodeGroupsInGlobalReplicationGroupCommand = async (input, conte
217
185
  };
218
186
  exports.se_DecreaseNodeGroupsInGlobalReplicationGroupCommand = se_DecreaseNodeGroupsInGlobalReplicationGroupCommand;
219
187
  const se_DecreaseReplicaCountCommand = 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_DecreaseReplicaCountMessage(input, context),
@@ -230,9 +196,7 @@ const se_DecreaseReplicaCountCommand = async (input, context) => {
230
196
  };
231
197
  exports.se_DecreaseReplicaCountCommand = se_DecreaseReplicaCountCommand;
232
198
  const se_DeleteCacheClusterCommand = 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_DeleteCacheClusterMessage(input, context),
@@ -243,9 +207,7 @@ const se_DeleteCacheClusterCommand = async (input, context) => {
243
207
  };
244
208
  exports.se_DeleteCacheClusterCommand = se_DeleteCacheClusterCommand;
245
209
  const se_DeleteCacheParameterGroupCommand = 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_DeleteCacheParameterGroupMessage(input, context),
@@ -256,9 +218,7 @@ const se_DeleteCacheParameterGroupCommand = async (input, context) => {
256
218
  };
257
219
  exports.se_DeleteCacheParameterGroupCommand = se_DeleteCacheParameterGroupCommand;
258
220
  const se_DeleteCacheSecurityGroupCommand = async (input, context) => {
259
- const headers = {
260
- "content-type": "application/x-www-form-urlencoded",
261
- };
221
+ const headers = SHARED_HEADERS;
262
222
  let body;
263
223
  body = buildFormUrlencodedString({
264
224
  ...se_DeleteCacheSecurityGroupMessage(input, context),
@@ -269,9 +229,7 @@ const se_DeleteCacheSecurityGroupCommand = async (input, context) => {
269
229
  };
270
230
  exports.se_DeleteCacheSecurityGroupCommand = se_DeleteCacheSecurityGroupCommand;
271
231
  const se_DeleteCacheSubnetGroupCommand = async (input, context) => {
272
- const headers = {
273
- "content-type": "application/x-www-form-urlencoded",
274
- };
232
+ const headers = SHARED_HEADERS;
275
233
  let body;
276
234
  body = buildFormUrlencodedString({
277
235
  ...se_DeleteCacheSubnetGroupMessage(input, context),
@@ -282,9 +240,7 @@ const se_DeleteCacheSubnetGroupCommand = async (input, context) => {
282
240
  };
283
241
  exports.se_DeleteCacheSubnetGroupCommand = se_DeleteCacheSubnetGroupCommand;
284
242
  const se_DeleteGlobalReplicationGroupCommand = async (input, context) => {
285
- const headers = {
286
- "content-type": "application/x-www-form-urlencoded",
287
- };
243
+ const headers = SHARED_HEADERS;
288
244
  let body;
289
245
  body = buildFormUrlencodedString({
290
246
  ...se_DeleteGlobalReplicationGroupMessage(input, context),
@@ -295,9 +251,7 @@ const se_DeleteGlobalReplicationGroupCommand = async (input, context) => {
295
251
  };
296
252
  exports.se_DeleteGlobalReplicationGroupCommand = se_DeleteGlobalReplicationGroupCommand;
297
253
  const se_DeleteReplicationGroupCommand = async (input, context) => {
298
- const headers = {
299
- "content-type": "application/x-www-form-urlencoded",
300
- };
254
+ const headers = SHARED_HEADERS;
301
255
  let body;
302
256
  body = buildFormUrlencodedString({
303
257
  ...se_DeleteReplicationGroupMessage(input, context),
@@ -308,9 +262,7 @@ const se_DeleteReplicationGroupCommand = async (input, context) => {
308
262
  };
309
263
  exports.se_DeleteReplicationGroupCommand = se_DeleteReplicationGroupCommand;
310
264
  const se_DeleteSnapshotCommand = async (input, context) => {
311
- const headers = {
312
- "content-type": "application/x-www-form-urlencoded",
313
- };
265
+ const headers = SHARED_HEADERS;
314
266
  let body;
315
267
  body = buildFormUrlencodedString({
316
268
  ...se_DeleteSnapshotMessage(input, context),
@@ -321,9 +273,7 @@ const se_DeleteSnapshotCommand = async (input, context) => {
321
273
  };
322
274
  exports.se_DeleteSnapshotCommand = se_DeleteSnapshotCommand;
323
275
  const se_DeleteUserCommand = async (input, context) => {
324
- const headers = {
325
- "content-type": "application/x-www-form-urlencoded",
326
- };
276
+ const headers = SHARED_HEADERS;
327
277
  let body;
328
278
  body = buildFormUrlencodedString({
329
279
  ...se_DeleteUserMessage(input, context),
@@ -334,9 +284,7 @@ const se_DeleteUserCommand = async (input, context) => {
334
284
  };
335
285
  exports.se_DeleteUserCommand = se_DeleteUserCommand;
336
286
  const se_DeleteUserGroupCommand = async (input, context) => {
337
- const headers = {
338
- "content-type": "application/x-www-form-urlencoded",
339
- };
287
+ const headers = SHARED_HEADERS;
340
288
  let body;
341
289
  body = buildFormUrlencodedString({
342
290
  ...se_DeleteUserGroupMessage(input, context),
@@ -347,9 +295,7 @@ const se_DeleteUserGroupCommand = async (input, context) => {
347
295
  };
348
296
  exports.se_DeleteUserGroupCommand = se_DeleteUserGroupCommand;
349
297
  const se_DescribeCacheClustersCommand = async (input, context) => {
350
- const headers = {
351
- "content-type": "application/x-www-form-urlencoded",
352
- };
298
+ const headers = SHARED_HEADERS;
353
299
  let body;
354
300
  body = buildFormUrlencodedString({
355
301
  ...se_DescribeCacheClustersMessage(input, context),
@@ -360,9 +306,7 @@ const se_DescribeCacheClustersCommand = async (input, context) => {
360
306
  };
361
307
  exports.se_DescribeCacheClustersCommand = se_DescribeCacheClustersCommand;
362
308
  const se_DescribeCacheEngineVersionsCommand = async (input, context) => {
363
- const headers = {
364
- "content-type": "application/x-www-form-urlencoded",
365
- };
309
+ const headers = SHARED_HEADERS;
366
310
  let body;
367
311
  body = buildFormUrlencodedString({
368
312
  ...se_DescribeCacheEngineVersionsMessage(input, context),
@@ -373,9 +317,7 @@ const se_DescribeCacheEngineVersionsCommand = async (input, context) => {
373
317
  };
374
318
  exports.se_DescribeCacheEngineVersionsCommand = se_DescribeCacheEngineVersionsCommand;
375
319
  const se_DescribeCacheParameterGroupsCommand = async (input, context) => {
376
- const headers = {
377
- "content-type": "application/x-www-form-urlencoded",
378
- };
320
+ const headers = SHARED_HEADERS;
379
321
  let body;
380
322
  body = buildFormUrlencodedString({
381
323
  ...se_DescribeCacheParameterGroupsMessage(input, context),
@@ -386,9 +328,7 @@ const se_DescribeCacheParameterGroupsCommand = async (input, context) => {
386
328
  };
387
329
  exports.se_DescribeCacheParameterGroupsCommand = se_DescribeCacheParameterGroupsCommand;
388
330
  const se_DescribeCacheParametersCommand = async (input, context) => {
389
- const headers = {
390
- "content-type": "application/x-www-form-urlencoded",
391
- };
331
+ const headers = SHARED_HEADERS;
392
332
  let body;
393
333
  body = buildFormUrlencodedString({
394
334
  ...se_DescribeCacheParametersMessage(input, context),
@@ -399,9 +339,7 @@ const se_DescribeCacheParametersCommand = async (input, context) => {
399
339
  };
400
340
  exports.se_DescribeCacheParametersCommand = se_DescribeCacheParametersCommand;
401
341
  const se_DescribeCacheSecurityGroupsCommand = async (input, context) => {
402
- const headers = {
403
- "content-type": "application/x-www-form-urlencoded",
404
- };
342
+ const headers = SHARED_HEADERS;
405
343
  let body;
406
344
  body = buildFormUrlencodedString({
407
345
  ...se_DescribeCacheSecurityGroupsMessage(input, context),
@@ -412,9 +350,7 @@ const se_DescribeCacheSecurityGroupsCommand = async (input, context) => {
412
350
  };
413
351
  exports.se_DescribeCacheSecurityGroupsCommand = se_DescribeCacheSecurityGroupsCommand;
414
352
  const se_DescribeCacheSubnetGroupsCommand = async (input, context) => {
415
- const headers = {
416
- "content-type": "application/x-www-form-urlencoded",
417
- };
353
+ const headers = SHARED_HEADERS;
418
354
  let body;
419
355
  body = buildFormUrlencodedString({
420
356
  ...se_DescribeCacheSubnetGroupsMessage(input, context),
@@ -425,9 +361,7 @@ const se_DescribeCacheSubnetGroupsCommand = async (input, context) => {
425
361
  };
426
362
  exports.se_DescribeCacheSubnetGroupsCommand = se_DescribeCacheSubnetGroupsCommand;
427
363
  const se_DescribeEngineDefaultParametersCommand = async (input, context) => {
428
- const headers = {
429
- "content-type": "application/x-www-form-urlencoded",
430
- };
364
+ const headers = SHARED_HEADERS;
431
365
  let body;
432
366
  body = buildFormUrlencodedString({
433
367
  ...se_DescribeEngineDefaultParametersMessage(input, context),
@@ -438,9 +372,7 @@ const se_DescribeEngineDefaultParametersCommand = async (input, context) => {
438
372
  };
439
373
  exports.se_DescribeEngineDefaultParametersCommand = se_DescribeEngineDefaultParametersCommand;
440
374
  const se_DescribeEventsCommand = async (input, context) => {
441
- const headers = {
442
- "content-type": "application/x-www-form-urlencoded",
443
- };
375
+ const headers = SHARED_HEADERS;
444
376
  let body;
445
377
  body = buildFormUrlencodedString({
446
378
  ...se_DescribeEventsMessage(input, context),
@@ -451,9 +383,7 @@ const se_DescribeEventsCommand = async (input, context) => {
451
383
  };
452
384
  exports.se_DescribeEventsCommand = se_DescribeEventsCommand;
453
385
  const se_DescribeGlobalReplicationGroupsCommand = async (input, context) => {
454
- const headers = {
455
- "content-type": "application/x-www-form-urlencoded",
456
- };
386
+ const headers = SHARED_HEADERS;
457
387
  let body;
458
388
  body = buildFormUrlencodedString({
459
389
  ...se_DescribeGlobalReplicationGroupsMessage(input, context),
@@ -464,9 +394,7 @@ const se_DescribeGlobalReplicationGroupsCommand = async (input, context) => {
464
394
  };
465
395
  exports.se_DescribeGlobalReplicationGroupsCommand = se_DescribeGlobalReplicationGroupsCommand;
466
396
  const se_DescribeReplicationGroupsCommand = async (input, context) => {
467
- const headers = {
468
- "content-type": "application/x-www-form-urlencoded",
469
- };
397
+ const headers = SHARED_HEADERS;
470
398
  let body;
471
399
  body = buildFormUrlencodedString({
472
400
  ...se_DescribeReplicationGroupsMessage(input, context),
@@ -477,9 +405,7 @@ const se_DescribeReplicationGroupsCommand = async (input, context) => {
477
405
  };
478
406
  exports.se_DescribeReplicationGroupsCommand = se_DescribeReplicationGroupsCommand;
479
407
  const se_DescribeReservedCacheNodesCommand = async (input, context) => {
480
- const headers = {
481
- "content-type": "application/x-www-form-urlencoded",
482
- };
408
+ const headers = SHARED_HEADERS;
483
409
  let body;
484
410
  body = buildFormUrlencodedString({
485
411
  ...se_DescribeReservedCacheNodesMessage(input, context),
@@ -490,9 +416,7 @@ const se_DescribeReservedCacheNodesCommand = async (input, context) => {
490
416
  };
491
417
  exports.se_DescribeReservedCacheNodesCommand = se_DescribeReservedCacheNodesCommand;
492
418
  const se_DescribeReservedCacheNodesOfferingsCommand = async (input, context) => {
493
- const headers = {
494
- "content-type": "application/x-www-form-urlencoded",
495
- };
419
+ const headers = SHARED_HEADERS;
496
420
  let body;
497
421
  body = buildFormUrlencodedString({
498
422
  ...se_DescribeReservedCacheNodesOfferingsMessage(input, context),
@@ -503,9 +427,7 @@ const se_DescribeReservedCacheNodesOfferingsCommand = async (input, context) =>
503
427
  };
504
428
  exports.se_DescribeReservedCacheNodesOfferingsCommand = se_DescribeReservedCacheNodesOfferingsCommand;
505
429
  const se_DescribeServiceUpdatesCommand = async (input, context) => {
506
- const headers = {
507
- "content-type": "application/x-www-form-urlencoded",
508
- };
430
+ const headers = SHARED_HEADERS;
509
431
  let body;
510
432
  body = buildFormUrlencodedString({
511
433
  ...se_DescribeServiceUpdatesMessage(input, context),
@@ -516,9 +438,7 @@ const se_DescribeServiceUpdatesCommand = async (input, context) => {
516
438
  };
517
439
  exports.se_DescribeServiceUpdatesCommand = se_DescribeServiceUpdatesCommand;
518
440
  const se_DescribeSnapshotsCommand = async (input, context) => {
519
- const headers = {
520
- "content-type": "application/x-www-form-urlencoded",
521
- };
441
+ const headers = SHARED_HEADERS;
522
442
  let body;
523
443
  body = buildFormUrlencodedString({
524
444
  ...se_DescribeSnapshotsMessage(input, context),
@@ -529,9 +449,7 @@ const se_DescribeSnapshotsCommand = async (input, context) => {
529
449
  };
530
450
  exports.se_DescribeSnapshotsCommand = se_DescribeSnapshotsCommand;
531
451
  const se_DescribeUpdateActionsCommand = async (input, context) => {
532
- const headers = {
533
- "content-type": "application/x-www-form-urlencoded",
534
- };
452
+ const headers = SHARED_HEADERS;
535
453
  let body;
536
454
  body = buildFormUrlencodedString({
537
455
  ...se_DescribeUpdateActionsMessage(input, context),
@@ -542,9 +460,7 @@ const se_DescribeUpdateActionsCommand = async (input, context) => {
542
460
  };
543
461
  exports.se_DescribeUpdateActionsCommand = se_DescribeUpdateActionsCommand;
544
462
  const se_DescribeUserGroupsCommand = async (input, context) => {
545
- const headers = {
546
- "content-type": "application/x-www-form-urlencoded",
547
- };
463
+ const headers = SHARED_HEADERS;
548
464
  let body;
549
465
  body = buildFormUrlencodedString({
550
466
  ...se_DescribeUserGroupsMessage(input, context),
@@ -555,9 +471,7 @@ const se_DescribeUserGroupsCommand = async (input, context) => {
555
471
  };
556
472
  exports.se_DescribeUserGroupsCommand = se_DescribeUserGroupsCommand;
557
473
  const se_DescribeUsersCommand = async (input, context) => {
558
- const headers = {
559
- "content-type": "application/x-www-form-urlencoded",
560
- };
474
+ const headers = SHARED_HEADERS;
561
475
  let body;
562
476
  body = buildFormUrlencodedString({
563
477
  ...se_DescribeUsersMessage(input, context),
@@ -568,9 +482,7 @@ const se_DescribeUsersCommand = async (input, context) => {
568
482
  };
569
483
  exports.se_DescribeUsersCommand = se_DescribeUsersCommand;
570
484
  const se_DisassociateGlobalReplicationGroupCommand = async (input, context) => {
571
- const headers = {
572
- "content-type": "application/x-www-form-urlencoded",
573
- };
485
+ const headers = SHARED_HEADERS;
574
486
  let body;
575
487
  body = buildFormUrlencodedString({
576
488
  ...se_DisassociateGlobalReplicationGroupMessage(input, context),
@@ -581,9 +493,7 @@ const se_DisassociateGlobalReplicationGroupCommand = async (input, context) => {
581
493
  };
582
494
  exports.se_DisassociateGlobalReplicationGroupCommand = se_DisassociateGlobalReplicationGroupCommand;
583
495
  const se_FailoverGlobalReplicationGroupCommand = async (input, context) => {
584
- const headers = {
585
- "content-type": "application/x-www-form-urlencoded",
586
- };
496
+ const headers = SHARED_HEADERS;
587
497
  let body;
588
498
  body = buildFormUrlencodedString({
589
499
  ...se_FailoverGlobalReplicationGroupMessage(input, context),
@@ -594,9 +504,7 @@ const se_FailoverGlobalReplicationGroupCommand = async (input, context) => {
594
504
  };
595
505
  exports.se_FailoverGlobalReplicationGroupCommand = se_FailoverGlobalReplicationGroupCommand;
596
506
  const se_IncreaseNodeGroupsInGlobalReplicationGroupCommand = async (input, context) => {
597
- const headers = {
598
- "content-type": "application/x-www-form-urlencoded",
599
- };
507
+ const headers = SHARED_HEADERS;
600
508
  let body;
601
509
  body = buildFormUrlencodedString({
602
510
  ...se_IncreaseNodeGroupsInGlobalReplicationGroupMessage(input, context),
@@ -607,9 +515,7 @@ const se_IncreaseNodeGroupsInGlobalReplicationGroupCommand = async (input, conte
607
515
  };
608
516
  exports.se_IncreaseNodeGroupsInGlobalReplicationGroupCommand = se_IncreaseNodeGroupsInGlobalReplicationGroupCommand;
609
517
  const se_IncreaseReplicaCountCommand = async (input, context) => {
610
- const headers = {
611
- "content-type": "application/x-www-form-urlencoded",
612
- };
518
+ const headers = SHARED_HEADERS;
613
519
  let body;
614
520
  body = buildFormUrlencodedString({
615
521
  ...se_IncreaseReplicaCountMessage(input, context),
@@ -620,9 +526,7 @@ const se_IncreaseReplicaCountCommand = async (input, context) => {
620
526
  };
621
527
  exports.se_IncreaseReplicaCountCommand = se_IncreaseReplicaCountCommand;
622
528
  const se_ListAllowedNodeTypeModificationsCommand = async (input, context) => {
623
- const headers = {
624
- "content-type": "application/x-www-form-urlencoded",
625
- };
529
+ const headers = SHARED_HEADERS;
626
530
  let body;
627
531
  body = buildFormUrlencodedString({
628
532
  ...se_ListAllowedNodeTypeModificationsMessage(input, context),
@@ -633,9 +537,7 @@ const se_ListAllowedNodeTypeModificationsCommand = async (input, context) => {
633
537
  };
634
538
  exports.se_ListAllowedNodeTypeModificationsCommand = se_ListAllowedNodeTypeModificationsCommand;
635
539
  const se_ListTagsForResourceCommand = async (input, context) => {
636
- const headers = {
637
- "content-type": "application/x-www-form-urlencoded",
638
- };
540
+ const headers = SHARED_HEADERS;
639
541
  let body;
640
542
  body = buildFormUrlencodedString({
641
543
  ...se_ListTagsForResourceMessage(input, context),
@@ -646,9 +548,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
646
548
  };
647
549
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
648
550
  const se_ModifyCacheClusterCommand = async (input, context) => {
649
- const headers = {
650
- "content-type": "application/x-www-form-urlencoded",
651
- };
551
+ const headers = SHARED_HEADERS;
652
552
  let body;
653
553
  body = buildFormUrlencodedString({
654
554
  ...se_ModifyCacheClusterMessage(input, context),
@@ -659,9 +559,7 @@ const se_ModifyCacheClusterCommand = async (input, context) => {
659
559
  };
660
560
  exports.se_ModifyCacheClusterCommand = se_ModifyCacheClusterCommand;
661
561
  const se_ModifyCacheParameterGroupCommand = async (input, context) => {
662
- const headers = {
663
- "content-type": "application/x-www-form-urlencoded",
664
- };
562
+ const headers = SHARED_HEADERS;
665
563
  let body;
666
564
  body = buildFormUrlencodedString({
667
565
  ...se_ModifyCacheParameterGroupMessage(input, context),
@@ -672,9 +570,7 @@ const se_ModifyCacheParameterGroupCommand = async (input, context) => {
672
570
  };
673
571
  exports.se_ModifyCacheParameterGroupCommand = se_ModifyCacheParameterGroupCommand;
674
572
  const se_ModifyCacheSubnetGroupCommand = async (input, context) => {
675
- const headers = {
676
- "content-type": "application/x-www-form-urlencoded",
677
- };
573
+ const headers = SHARED_HEADERS;
678
574
  let body;
679
575
  body = buildFormUrlencodedString({
680
576
  ...se_ModifyCacheSubnetGroupMessage(input, context),
@@ -685,9 +581,7 @@ const se_ModifyCacheSubnetGroupCommand = async (input, context) => {
685
581
  };
686
582
  exports.se_ModifyCacheSubnetGroupCommand = se_ModifyCacheSubnetGroupCommand;
687
583
  const se_ModifyGlobalReplicationGroupCommand = async (input, context) => {
688
- const headers = {
689
- "content-type": "application/x-www-form-urlencoded",
690
- };
584
+ const headers = SHARED_HEADERS;
691
585
  let body;
692
586
  body = buildFormUrlencodedString({
693
587
  ...se_ModifyGlobalReplicationGroupMessage(input, context),
@@ -698,9 +592,7 @@ const se_ModifyGlobalReplicationGroupCommand = async (input, context) => {
698
592
  };
699
593
  exports.se_ModifyGlobalReplicationGroupCommand = se_ModifyGlobalReplicationGroupCommand;
700
594
  const se_ModifyReplicationGroupCommand = async (input, context) => {
701
- const headers = {
702
- "content-type": "application/x-www-form-urlencoded",
703
- };
595
+ const headers = SHARED_HEADERS;
704
596
  let body;
705
597
  body = buildFormUrlencodedString({
706
598
  ...se_ModifyReplicationGroupMessage(input, context),
@@ -711,9 +603,7 @@ const se_ModifyReplicationGroupCommand = async (input, context) => {
711
603
  };
712
604
  exports.se_ModifyReplicationGroupCommand = se_ModifyReplicationGroupCommand;
713
605
  const se_ModifyReplicationGroupShardConfigurationCommand = async (input, context) => {
714
- const headers = {
715
- "content-type": "application/x-www-form-urlencoded",
716
- };
606
+ const headers = SHARED_HEADERS;
717
607
  let body;
718
608
  body = buildFormUrlencodedString({
719
609
  ...se_ModifyReplicationGroupShardConfigurationMessage(input, context),
@@ -724,9 +614,7 @@ const se_ModifyReplicationGroupShardConfigurationCommand = async (input, context
724
614
  };
725
615
  exports.se_ModifyReplicationGroupShardConfigurationCommand = se_ModifyReplicationGroupShardConfigurationCommand;
726
616
  const se_ModifyUserCommand = async (input, context) => {
727
- const headers = {
728
- "content-type": "application/x-www-form-urlencoded",
729
- };
617
+ const headers = SHARED_HEADERS;
730
618
  let body;
731
619
  body = buildFormUrlencodedString({
732
620
  ...se_ModifyUserMessage(input, context),
@@ -737,9 +625,7 @@ const se_ModifyUserCommand = async (input, context) => {
737
625
  };
738
626
  exports.se_ModifyUserCommand = se_ModifyUserCommand;
739
627
  const se_ModifyUserGroupCommand = async (input, context) => {
740
- const headers = {
741
- "content-type": "application/x-www-form-urlencoded",
742
- };
628
+ const headers = SHARED_HEADERS;
743
629
  let body;
744
630
  body = buildFormUrlencodedString({
745
631
  ...se_ModifyUserGroupMessage(input, context),
@@ -750,9 +636,7 @@ const se_ModifyUserGroupCommand = async (input, context) => {
750
636
  };
751
637
  exports.se_ModifyUserGroupCommand = se_ModifyUserGroupCommand;
752
638
  const se_PurchaseReservedCacheNodesOfferingCommand = async (input, context) => {
753
- const headers = {
754
- "content-type": "application/x-www-form-urlencoded",
755
- };
639
+ const headers = SHARED_HEADERS;
756
640
  let body;
757
641
  body = buildFormUrlencodedString({
758
642
  ...se_PurchaseReservedCacheNodesOfferingMessage(input, context),
@@ -763,9 +647,7 @@ const se_PurchaseReservedCacheNodesOfferingCommand = async (input, context) => {
763
647
  };
764
648
  exports.se_PurchaseReservedCacheNodesOfferingCommand = se_PurchaseReservedCacheNodesOfferingCommand;
765
649
  const se_RebalanceSlotsInGlobalReplicationGroupCommand = async (input, context) => {
766
- const headers = {
767
- "content-type": "application/x-www-form-urlencoded",
768
- };
650
+ const headers = SHARED_HEADERS;
769
651
  let body;
770
652
  body = buildFormUrlencodedString({
771
653
  ...se_RebalanceSlotsInGlobalReplicationGroupMessage(input, context),
@@ -776,9 +658,7 @@ const se_RebalanceSlotsInGlobalReplicationGroupCommand = async (input, context)
776
658
  };
777
659
  exports.se_RebalanceSlotsInGlobalReplicationGroupCommand = se_RebalanceSlotsInGlobalReplicationGroupCommand;
778
660
  const se_RebootCacheClusterCommand = async (input, context) => {
779
- const headers = {
780
- "content-type": "application/x-www-form-urlencoded",
781
- };
661
+ const headers = SHARED_HEADERS;
782
662
  let body;
783
663
  body = buildFormUrlencodedString({
784
664
  ...se_RebootCacheClusterMessage(input, context),
@@ -789,9 +669,7 @@ const se_RebootCacheClusterCommand = async (input, context) => {
789
669
  };
790
670
  exports.se_RebootCacheClusterCommand = se_RebootCacheClusterCommand;
791
671
  const se_RemoveTagsFromResourceCommand = async (input, context) => {
792
- const headers = {
793
- "content-type": "application/x-www-form-urlencoded",
794
- };
672
+ const headers = SHARED_HEADERS;
795
673
  let body;
796
674
  body = buildFormUrlencodedString({
797
675
  ...se_RemoveTagsFromResourceMessage(input, context),
@@ -802,9 +680,7 @@ const se_RemoveTagsFromResourceCommand = async (input, context) => {
802
680
  };
803
681
  exports.se_RemoveTagsFromResourceCommand = se_RemoveTagsFromResourceCommand;
804
682
  const se_ResetCacheParameterGroupCommand = async (input, context) => {
805
- const headers = {
806
- "content-type": "application/x-www-form-urlencoded",
807
- };
683
+ const headers = SHARED_HEADERS;
808
684
  let body;
809
685
  body = buildFormUrlencodedString({
810
686
  ...se_ResetCacheParameterGroupMessage(input, context),
@@ -815,9 +691,7 @@ const se_ResetCacheParameterGroupCommand = async (input, context) => {
815
691
  };
816
692
  exports.se_ResetCacheParameterGroupCommand = se_ResetCacheParameterGroupCommand;
817
693
  const se_RevokeCacheSecurityGroupIngressCommand = async (input, context) => {
818
- const headers = {
819
- "content-type": "application/x-www-form-urlencoded",
820
- };
694
+ const headers = SHARED_HEADERS;
821
695
  let body;
822
696
  body = buildFormUrlencodedString({
823
697
  ...se_RevokeCacheSecurityGroupIngressMessage(input, context),
@@ -828,9 +702,7 @@ const se_RevokeCacheSecurityGroupIngressCommand = async (input, context) => {
828
702
  };
829
703
  exports.se_RevokeCacheSecurityGroupIngressCommand = se_RevokeCacheSecurityGroupIngressCommand;
830
704
  const se_StartMigrationCommand = async (input, context) => {
831
- const headers = {
832
- "content-type": "application/x-www-form-urlencoded",
833
- };
705
+ const headers = SHARED_HEADERS;
834
706
  let body;
835
707
  body = buildFormUrlencodedString({
836
708
  ...se_StartMigrationMessage(input, context),
@@ -841,9 +713,7 @@ const se_StartMigrationCommand = async (input, context) => {
841
713
  };
842
714
  exports.se_StartMigrationCommand = se_StartMigrationCommand;
843
715
  const se_TestFailoverCommand = async (input, context) => {
844
- const headers = {
845
- "content-type": "application/x-www-form-urlencoded",
846
- };
716
+ const headers = SHARED_HEADERS;
847
717
  let body;
848
718
  body = buildFormUrlencodedString({
849
719
  ...se_TestFailoverMessage(input, context),
@@ -9653,6 +9523,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
9653
9523
  }
9654
9524
  return new protocol_http_1.HttpRequest(contents);
9655
9525
  };
9526
+ const SHARED_HEADERS = {
9527
+ "content-type": "application/x-www-form-urlencoded",
9528
+ };
9656
9529
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
9657
9530
  if (encoded.length) {
9658
9531
  const parser = new fast_xml_parser_1.XMLParser({