@aws-sdk/client-cloudformation 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.
@@ -5,9 +5,7 @@ import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { CloudFormationServiceException as __BaseException } from "../models/CloudFormationServiceException";
6
6
  import { AlreadyExistsException, CFNRegistryException, ChangeSetNotFoundException, CreatedButModifiedException, InsufficientCapabilitiesException, InvalidChangeSetStatusException, InvalidOperationException, InvalidStateTransitionException, LimitExceededException, NameAlreadyExistsException, OperationIdAlreadyExistsException, OperationInProgressException, OperationNotFoundException, OperationStatusCheckFailedException, StackInstanceNotFoundException, StackNotFoundException, StackSetNotEmptyException, StackSetNotFoundException, StaleRequestException, TokenAlreadyExistsException, TypeConfigurationNotFoundException, TypeNotFoundException, } from "../models/models_0";
7
7
  export const se_ActivateTypeCommand = async (input, context) => {
8
- const headers = {
9
- "content-type": "application/x-www-form-urlencoded",
10
- };
8
+ const headers = SHARED_HEADERS;
11
9
  let body;
12
10
  body = buildFormUrlencodedString({
13
11
  ...se_ActivateTypeInput(input, context),
@@ -17,9 +15,7 @@ export const se_ActivateTypeCommand = async (input, context) => {
17
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
16
  };
19
17
  export const se_BatchDescribeTypeConfigurationsCommand = async (input, context) => {
20
- const headers = {
21
- "content-type": "application/x-www-form-urlencoded",
22
- };
18
+ const headers = SHARED_HEADERS;
23
19
  let body;
24
20
  body = buildFormUrlencodedString({
25
21
  ...se_BatchDescribeTypeConfigurationsInput(input, context),
@@ -29,9 +25,7 @@ export const se_BatchDescribeTypeConfigurationsCommand = async (input, context)
29
25
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
26
  };
31
27
  export const se_CancelUpdateStackCommand = async (input, context) => {
32
- const headers = {
33
- "content-type": "application/x-www-form-urlencoded",
34
- };
28
+ const headers = SHARED_HEADERS;
35
29
  let body;
36
30
  body = buildFormUrlencodedString({
37
31
  ...se_CancelUpdateStackInput(input, context),
@@ -41,9 +35,7 @@ export const se_CancelUpdateStackCommand = async (input, context) => {
41
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
36
  };
43
37
  export const se_ContinueUpdateRollbackCommand = async (input, context) => {
44
- const headers = {
45
- "content-type": "application/x-www-form-urlencoded",
46
- };
38
+ const headers = SHARED_HEADERS;
47
39
  let body;
48
40
  body = buildFormUrlencodedString({
49
41
  ...se_ContinueUpdateRollbackInput(input, context),
@@ -53,9 +45,7 @@ export const se_ContinueUpdateRollbackCommand = async (input, context) => {
53
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
46
  };
55
47
  export const se_CreateChangeSetCommand = async (input, context) => {
56
- const headers = {
57
- "content-type": "application/x-www-form-urlencoded",
58
- };
48
+ const headers = SHARED_HEADERS;
59
49
  let body;
60
50
  body = buildFormUrlencodedString({
61
51
  ...se_CreateChangeSetInput(input, context),
@@ -65,9 +55,7 @@ export const se_CreateChangeSetCommand = async (input, context) => {
65
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
56
  };
67
57
  export const se_CreateStackCommand = async (input, context) => {
68
- const headers = {
69
- "content-type": "application/x-www-form-urlencoded",
70
- };
58
+ const headers = SHARED_HEADERS;
71
59
  let body;
72
60
  body = buildFormUrlencodedString({
73
61
  ...se_CreateStackInput(input, context),
@@ -77,9 +65,7 @@ export const se_CreateStackCommand = async (input, context) => {
77
65
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
66
  };
79
67
  export const se_CreateStackInstancesCommand = async (input, context) => {
80
- const headers = {
81
- "content-type": "application/x-www-form-urlencoded",
82
- };
68
+ const headers = SHARED_HEADERS;
83
69
  let body;
84
70
  body = buildFormUrlencodedString({
85
71
  ...se_CreateStackInstancesInput(input, context),
@@ -89,9 +75,7 @@ export const se_CreateStackInstancesCommand = async (input, context) => {
89
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
76
  };
91
77
  export const se_CreateStackSetCommand = async (input, context) => {
92
- const headers = {
93
- "content-type": "application/x-www-form-urlencoded",
94
- };
78
+ const headers = SHARED_HEADERS;
95
79
  let body;
96
80
  body = buildFormUrlencodedString({
97
81
  ...se_CreateStackSetInput(input, context),
@@ -101,9 +85,7 @@ export const se_CreateStackSetCommand = async (input, context) => {
101
85
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
86
  };
103
87
  export const se_DeactivateTypeCommand = async (input, context) => {
104
- const headers = {
105
- "content-type": "application/x-www-form-urlencoded",
106
- };
88
+ const headers = SHARED_HEADERS;
107
89
  let body;
108
90
  body = buildFormUrlencodedString({
109
91
  ...se_DeactivateTypeInput(input, context),
@@ -113,9 +95,7 @@ export const se_DeactivateTypeCommand = async (input, context) => {
113
95
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
96
  };
115
97
  export const se_DeleteChangeSetCommand = async (input, context) => {
116
- const headers = {
117
- "content-type": "application/x-www-form-urlencoded",
118
- };
98
+ const headers = SHARED_HEADERS;
119
99
  let body;
120
100
  body = buildFormUrlencodedString({
121
101
  ...se_DeleteChangeSetInput(input, context),
@@ -125,9 +105,7 @@ export const se_DeleteChangeSetCommand = async (input, context) => {
125
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
106
  };
127
107
  export const se_DeleteStackCommand = async (input, context) => {
128
- const headers = {
129
- "content-type": "application/x-www-form-urlencoded",
130
- };
108
+ const headers = SHARED_HEADERS;
131
109
  let body;
132
110
  body = buildFormUrlencodedString({
133
111
  ...se_DeleteStackInput(input, context),
@@ -137,9 +115,7 @@ export const se_DeleteStackCommand = async (input, context) => {
137
115
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
116
  };
139
117
  export const se_DeleteStackInstancesCommand = async (input, context) => {
140
- const headers = {
141
- "content-type": "application/x-www-form-urlencoded",
142
- };
118
+ const headers = SHARED_HEADERS;
143
119
  let body;
144
120
  body = buildFormUrlencodedString({
145
121
  ...se_DeleteStackInstancesInput(input, context),
@@ -149,9 +125,7 @@ export const se_DeleteStackInstancesCommand = async (input, context) => {
149
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
126
  };
151
127
  export const se_DeleteStackSetCommand = async (input, context) => {
152
- const headers = {
153
- "content-type": "application/x-www-form-urlencoded",
154
- };
128
+ const headers = SHARED_HEADERS;
155
129
  let body;
156
130
  body = buildFormUrlencodedString({
157
131
  ...se_DeleteStackSetInput(input, context),
@@ -161,9 +135,7 @@ export const se_DeleteStackSetCommand = async (input, context) => {
161
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
136
  };
163
137
  export const se_DeregisterTypeCommand = async (input, context) => {
164
- const headers = {
165
- "content-type": "application/x-www-form-urlencoded",
166
- };
138
+ const headers = SHARED_HEADERS;
167
139
  let body;
168
140
  body = buildFormUrlencodedString({
169
141
  ...se_DeregisterTypeInput(input, context),
@@ -173,9 +145,7 @@ export const se_DeregisterTypeCommand = async (input, context) => {
173
145
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
146
  };
175
147
  export const se_DescribeAccountLimitsCommand = async (input, context) => {
176
- const headers = {
177
- "content-type": "application/x-www-form-urlencoded",
178
- };
148
+ const headers = SHARED_HEADERS;
179
149
  let body;
180
150
  body = buildFormUrlencodedString({
181
151
  ...se_DescribeAccountLimitsInput(input, context),
@@ -185,9 +155,7 @@ export const se_DescribeAccountLimitsCommand = async (input, context) => {
185
155
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
156
  };
187
157
  export const se_DescribeChangeSetCommand = async (input, context) => {
188
- const headers = {
189
- "content-type": "application/x-www-form-urlencoded",
190
- };
158
+ const headers = SHARED_HEADERS;
191
159
  let body;
192
160
  body = buildFormUrlencodedString({
193
161
  ...se_DescribeChangeSetInput(input, context),
@@ -197,9 +165,7 @@ export const se_DescribeChangeSetCommand = async (input, context) => {
197
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
166
  };
199
167
  export const se_DescribeChangeSetHooksCommand = async (input, context) => {
200
- const headers = {
201
- "content-type": "application/x-www-form-urlencoded",
202
- };
168
+ const headers = SHARED_HEADERS;
203
169
  let body;
204
170
  body = buildFormUrlencodedString({
205
171
  ...se_DescribeChangeSetHooksInput(input, context),
@@ -209,9 +175,7 @@ export const se_DescribeChangeSetHooksCommand = async (input, context) => {
209
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
176
  };
211
177
  export const se_DescribePublisherCommand = async (input, context) => {
212
- const headers = {
213
- "content-type": "application/x-www-form-urlencoded",
214
- };
178
+ const headers = SHARED_HEADERS;
215
179
  let body;
216
180
  body = buildFormUrlencodedString({
217
181
  ...se_DescribePublisherInput(input, context),
@@ -221,9 +185,7 @@ export const se_DescribePublisherCommand = async (input, context) => {
221
185
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
186
  };
223
187
  export const se_DescribeStackDriftDetectionStatusCommand = async (input, context) => {
224
- const headers = {
225
- "content-type": "application/x-www-form-urlencoded",
226
- };
188
+ const headers = SHARED_HEADERS;
227
189
  let body;
228
190
  body = buildFormUrlencodedString({
229
191
  ...se_DescribeStackDriftDetectionStatusInput(input, context),
@@ -233,9 +195,7 @@ export const se_DescribeStackDriftDetectionStatusCommand = async (input, context
233
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
196
  };
235
197
  export const se_DescribeStackEventsCommand = async (input, context) => {
236
- const headers = {
237
- "content-type": "application/x-www-form-urlencoded",
238
- };
198
+ const headers = SHARED_HEADERS;
239
199
  let body;
240
200
  body = buildFormUrlencodedString({
241
201
  ...se_DescribeStackEventsInput(input, context),
@@ -245,9 +205,7 @@ export const se_DescribeStackEventsCommand = async (input, context) => {
245
205
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
206
  };
247
207
  export const se_DescribeStackInstanceCommand = async (input, context) => {
248
- const headers = {
249
- "content-type": "application/x-www-form-urlencoded",
250
- };
208
+ const headers = SHARED_HEADERS;
251
209
  let body;
252
210
  body = buildFormUrlencodedString({
253
211
  ...se_DescribeStackInstanceInput(input, context),
@@ -257,9 +215,7 @@ export const se_DescribeStackInstanceCommand = async (input, context) => {
257
215
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
216
  };
259
217
  export const se_DescribeStackResourceCommand = async (input, context) => {
260
- const headers = {
261
- "content-type": "application/x-www-form-urlencoded",
262
- };
218
+ const headers = SHARED_HEADERS;
263
219
  let body;
264
220
  body = buildFormUrlencodedString({
265
221
  ...se_DescribeStackResourceInput(input, context),
@@ -269,9 +225,7 @@ export const se_DescribeStackResourceCommand = async (input, context) => {
269
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
226
  };
271
227
  export const se_DescribeStackResourceDriftsCommand = async (input, context) => {
272
- const headers = {
273
- "content-type": "application/x-www-form-urlencoded",
274
- };
228
+ const headers = SHARED_HEADERS;
275
229
  let body;
276
230
  body = buildFormUrlencodedString({
277
231
  ...se_DescribeStackResourceDriftsInput(input, context),
@@ -281,9 +235,7 @@ export const se_DescribeStackResourceDriftsCommand = async (input, context) => {
281
235
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
282
236
  };
283
237
  export const se_DescribeStackResourcesCommand = async (input, context) => {
284
- const headers = {
285
- "content-type": "application/x-www-form-urlencoded",
286
- };
238
+ const headers = SHARED_HEADERS;
287
239
  let body;
288
240
  body = buildFormUrlencodedString({
289
241
  ...se_DescribeStackResourcesInput(input, context),
@@ -293,9 +245,7 @@ export const se_DescribeStackResourcesCommand = async (input, context) => {
293
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
246
  };
295
247
  export const se_DescribeStacksCommand = async (input, context) => {
296
- const headers = {
297
- "content-type": "application/x-www-form-urlencoded",
298
- };
248
+ const headers = SHARED_HEADERS;
299
249
  let body;
300
250
  body = buildFormUrlencodedString({
301
251
  ...se_DescribeStacksInput(input, context),
@@ -305,9 +255,7 @@ export const se_DescribeStacksCommand = async (input, context) => {
305
255
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
256
  };
307
257
  export const se_DescribeStackSetCommand = async (input, context) => {
308
- const headers = {
309
- "content-type": "application/x-www-form-urlencoded",
310
- };
258
+ const headers = SHARED_HEADERS;
311
259
  let body;
312
260
  body = buildFormUrlencodedString({
313
261
  ...se_DescribeStackSetInput(input, context),
@@ -317,9 +265,7 @@ export const se_DescribeStackSetCommand = async (input, context) => {
317
265
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
266
  };
319
267
  export const se_DescribeStackSetOperationCommand = async (input, context) => {
320
- const headers = {
321
- "content-type": "application/x-www-form-urlencoded",
322
- };
268
+ const headers = SHARED_HEADERS;
323
269
  let body;
324
270
  body = buildFormUrlencodedString({
325
271
  ...se_DescribeStackSetOperationInput(input, context),
@@ -329,9 +275,7 @@ export const se_DescribeStackSetOperationCommand = async (input, context) => {
329
275
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
276
  };
331
277
  export const se_DescribeTypeCommand = async (input, context) => {
332
- const headers = {
333
- "content-type": "application/x-www-form-urlencoded",
334
- };
278
+ const headers = SHARED_HEADERS;
335
279
  let body;
336
280
  body = buildFormUrlencodedString({
337
281
  ...se_DescribeTypeInput(input, context),
@@ -341,9 +285,7 @@ export const se_DescribeTypeCommand = async (input, context) => {
341
285
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
342
286
  };
343
287
  export const se_DescribeTypeRegistrationCommand = async (input, context) => {
344
- const headers = {
345
- "content-type": "application/x-www-form-urlencoded",
346
- };
288
+ const headers = SHARED_HEADERS;
347
289
  let body;
348
290
  body = buildFormUrlencodedString({
349
291
  ...se_DescribeTypeRegistrationInput(input, context),
@@ -353,9 +295,7 @@ export const se_DescribeTypeRegistrationCommand = async (input, context) => {
353
295
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
296
  };
355
297
  export const se_DetectStackDriftCommand = async (input, context) => {
356
- const headers = {
357
- "content-type": "application/x-www-form-urlencoded",
358
- };
298
+ const headers = SHARED_HEADERS;
359
299
  let body;
360
300
  body = buildFormUrlencodedString({
361
301
  ...se_DetectStackDriftInput(input, context),
@@ -365,9 +305,7 @@ export const se_DetectStackDriftCommand = async (input, context) => {
365
305
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
306
  };
367
307
  export const se_DetectStackResourceDriftCommand = async (input, context) => {
368
- const headers = {
369
- "content-type": "application/x-www-form-urlencoded",
370
- };
308
+ const headers = SHARED_HEADERS;
371
309
  let body;
372
310
  body = buildFormUrlencodedString({
373
311
  ...se_DetectStackResourceDriftInput(input, context),
@@ -377,9 +315,7 @@ export const se_DetectStackResourceDriftCommand = async (input, context) => {
377
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
316
  };
379
317
  export const se_DetectStackSetDriftCommand = async (input, context) => {
380
- const headers = {
381
- "content-type": "application/x-www-form-urlencoded",
382
- };
318
+ const headers = SHARED_HEADERS;
383
319
  let body;
384
320
  body = buildFormUrlencodedString({
385
321
  ...se_DetectStackSetDriftInput(input, context),
@@ -389,9 +325,7 @@ export const se_DetectStackSetDriftCommand = async (input, context) => {
389
325
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
326
  };
391
327
  export const se_EstimateTemplateCostCommand = async (input, context) => {
392
- const headers = {
393
- "content-type": "application/x-www-form-urlencoded",
394
- };
328
+ const headers = SHARED_HEADERS;
395
329
  let body;
396
330
  body = buildFormUrlencodedString({
397
331
  ...se_EstimateTemplateCostInput(input, context),
@@ -401,9 +335,7 @@ export const se_EstimateTemplateCostCommand = async (input, context) => {
401
335
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
402
336
  };
403
337
  export const se_ExecuteChangeSetCommand = async (input, context) => {
404
- const headers = {
405
- "content-type": "application/x-www-form-urlencoded",
406
- };
338
+ const headers = SHARED_HEADERS;
407
339
  let body;
408
340
  body = buildFormUrlencodedString({
409
341
  ...se_ExecuteChangeSetInput(input, context),
@@ -413,9 +345,7 @@ export const se_ExecuteChangeSetCommand = async (input, context) => {
413
345
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
346
  };
415
347
  export const se_GetStackPolicyCommand = async (input, context) => {
416
- const headers = {
417
- "content-type": "application/x-www-form-urlencoded",
418
- };
348
+ const headers = SHARED_HEADERS;
419
349
  let body;
420
350
  body = buildFormUrlencodedString({
421
351
  ...se_GetStackPolicyInput(input, context),
@@ -425,9 +355,7 @@ export const se_GetStackPolicyCommand = async (input, context) => {
425
355
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
426
356
  };
427
357
  export const se_GetTemplateCommand = async (input, context) => {
428
- const headers = {
429
- "content-type": "application/x-www-form-urlencoded",
430
- };
358
+ const headers = SHARED_HEADERS;
431
359
  let body;
432
360
  body = buildFormUrlencodedString({
433
361
  ...se_GetTemplateInput(input, context),
@@ -437,9 +365,7 @@ export const se_GetTemplateCommand = async (input, context) => {
437
365
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
438
366
  };
439
367
  export const se_GetTemplateSummaryCommand = async (input, context) => {
440
- const headers = {
441
- "content-type": "application/x-www-form-urlencoded",
442
- };
368
+ const headers = SHARED_HEADERS;
443
369
  let body;
444
370
  body = buildFormUrlencodedString({
445
371
  ...se_GetTemplateSummaryInput(input, context),
@@ -449,9 +375,7 @@ export const se_GetTemplateSummaryCommand = async (input, context) => {
449
375
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
450
376
  };
451
377
  export const se_ImportStacksToStackSetCommand = async (input, context) => {
452
- const headers = {
453
- "content-type": "application/x-www-form-urlencoded",
454
- };
378
+ const headers = SHARED_HEADERS;
455
379
  let body;
456
380
  body = buildFormUrlencodedString({
457
381
  ...se_ImportStacksToStackSetInput(input, context),
@@ -461,9 +385,7 @@ export const se_ImportStacksToStackSetCommand = async (input, context) => {
461
385
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
462
386
  };
463
387
  export const se_ListChangeSetsCommand = async (input, context) => {
464
- const headers = {
465
- "content-type": "application/x-www-form-urlencoded",
466
- };
388
+ const headers = SHARED_HEADERS;
467
389
  let body;
468
390
  body = buildFormUrlencodedString({
469
391
  ...se_ListChangeSetsInput(input, context),
@@ -473,9 +395,7 @@ export const se_ListChangeSetsCommand = async (input, context) => {
473
395
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
474
396
  };
475
397
  export const se_ListExportsCommand = async (input, context) => {
476
- const headers = {
477
- "content-type": "application/x-www-form-urlencoded",
478
- };
398
+ const headers = SHARED_HEADERS;
479
399
  let body;
480
400
  body = buildFormUrlencodedString({
481
401
  ...se_ListExportsInput(input, context),
@@ -485,9 +405,7 @@ export const se_ListExportsCommand = async (input, context) => {
485
405
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
486
406
  };
487
407
  export const se_ListImportsCommand = async (input, context) => {
488
- const headers = {
489
- "content-type": "application/x-www-form-urlencoded",
490
- };
408
+ const headers = SHARED_HEADERS;
491
409
  let body;
492
410
  body = buildFormUrlencodedString({
493
411
  ...se_ListImportsInput(input, context),
@@ -497,9 +415,7 @@ export const se_ListImportsCommand = async (input, context) => {
497
415
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
416
  };
499
417
  export const se_ListStackInstancesCommand = async (input, context) => {
500
- const headers = {
501
- "content-type": "application/x-www-form-urlencoded",
502
- };
418
+ const headers = SHARED_HEADERS;
503
419
  let body;
504
420
  body = buildFormUrlencodedString({
505
421
  ...se_ListStackInstancesInput(input, context),
@@ -509,9 +425,7 @@ export const se_ListStackInstancesCommand = async (input, context) => {
509
425
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
510
426
  };
511
427
  export const se_ListStackResourcesCommand = async (input, context) => {
512
- const headers = {
513
- "content-type": "application/x-www-form-urlencoded",
514
- };
428
+ const headers = SHARED_HEADERS;
515
429
  let body;
516
430
  body = buildFormUrlencodedString({
517
431
  ...se_ListStackResourcesInput(input, context),
@@ -521,9 +435,7 @@ export const se_ListStackResourcesCommand = async (input, context) => {
521
435
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
522
436
  };
523
437
  export const se_ListStacksCommand = async (input, context) => {
524
- const headers = {
525
- "content-type": "application/x-www-form-urlencoded",
526
- };
438
+ const headers = SHARED_HEADERS;
527
439
  let body;
528
440
  body = buildFormUrlencodedString({
529
441
  ...se_ListStacksInput(input, context),
@@ -533,9 +445,7 @@ export const se_ListStacksCommand = async (input, context) => {
533
445
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
534
446
  };
535
447
  export const se_ListStackSetOperationResultsCommand = async (input, context) => {
536
- const headers = {
537
- "content-type": "application/x-www-form-urlencoded",
538
- };
448
+ const headers = SHARED_HEADERS;
539
449
  let body;
540
450
  body = buildFormUrlencodedString({
541
451
  ...se_ListStackSetOperationResultsInput(input, context),
@@ -545,9 +455,7 @@ export const se_ListStackSetOperationResultsCommand = async (input, context) =>
545
455
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
546
456
  };
547
457
  export const se_ListStackSetOperationsCommand = async (input, context) => {
548
- const headers = {
549
- "content-type": "application/x-www-form-urlencoded",
550
- };
458
+ const headers = SHARED_HEADERS;
551
459
  let body;
552
460
  body = buildFormUrlencodedString({
553
461
  ...se_ListStackSetOperationsInput(input, context),
@@ -557,9 +465,7 @@ export const se_ListStackSetOperationsCommand = async (input, context) => {
557
465
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
558
466
  };
559
467
  export const se_ListStackSetsCommand = async (input, context) => {
560
- const headers = {
561
- "content-type": "application/x-www-form-urlencoded",
562
- };
468
+ const headers = SHARED_HEADERS;
563
469
  let body;
564
470
  body = buildFormUrlencodedString({
565
471
  ...se_ListStackSetsInput(input, context),
@@ -569,9 +475,7 @@ export const se_ListStackSetsCommand = async (input, context) => {
569
475
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
570
476
  };
571
477
  export const se_ListTypeRegistrationsCommand = async (input, context) => {
572
- const headers = {
573
- "content-type": "application/x-www-form-urlencoded",
574
- };
478
+ const headers = SHARED_HEADERS;
575
479
  let body;
576
480
  body = buildFormUrlencodedString({
577
481
  ...se_ListTypeRegistrationsInput(input, context),
@@ -581,9 +485,7 @@ export const se_ListTypeRegistrationsCommand = async (input, context) => {
581
485
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
582
486
  };
583
487
  export const se_ListTypesCommand = async (input, context) => {
584
- const headers = {
585
- "content-type": "application/x-www-form-urlencoded",
586
- };
488
+ const headers = SHARED_HEADERS;
587
489
  let body;
588
490
  body = buildFormUrlencodedString({
589
491
  ...se_ListTypesInput(input, context),
@@ -593,9 +495,7 @@ export const se_ListTypesCommand = async (input, context) => {
593
495
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
594
496
  };
595
497
  export const se_ListTypeVersionsCommand = async (input, context) => {
596
- const headers = {
597
- "content-type": "application/x-www-form-urlencoded",
598
- };
498
+ const headers = SHARED_HEADERS;
599
499
  let body;
600
500
  body = buildFormUrlencodedString({
601
501
  ...se_ListTypeVersionsInput(input, context),
@@ -605,9 +505,7 @@ export const se_ListTypeVersionsCommand = async (input, context) => {
605
505
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
606
506
  };
607
507
  export const se_PublishTypeCommand = async (input, context) => {
608
- const headers = {
609
- "content-type": "application/x-www-form-urlencoded",
610
- };
508
+ const headers = SHARED_HEADERS;
611
509
  let body;
612
510
  body = buildFormUrlencodedString({
613
511
  ...se_PublishTypeInput(input, context),
@@ -617,9 +515,7 @@ export const se_PublishTypeCommand = async (input, context) => {
617
515
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
618
516
  };
619
517
  export const se_RecordHandlerProgressCommand = async (input, context) => {
620
- const headers = {
621
- "content-type": "application/x-www-form-urlencoded",
622
- };
518
+ const headers = SHARED_HEADERS;
623
519
  let body;
624
520
  body = buildFormUrlencodedString({
625
521
  ...se_RecordHandlerProgressInput(input, context),
@@ -629,9 +525,7 @@ export const se_RecordHandlerProgressCommand = async (input, context) => {
629
525
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
630
526
  };
631
527
  export const se_RegisterPublisherCommand = async (input, context) => {
632
- const headers = {
633
- "content-type": "application/x-www-form-urlencoded",
634
- };
528
+ const headers = SHARED_HEADERS;
635
529
  let body;
636
530
  body = buildFormUrlencodedString({
637
531
  ...se_RegisterPublisherInput(input, context),
@@ -641,9 +535,7 @@ export const se_RegisterPublisherCommand = async (input, context) => {
641
535
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
642
536
  };
643
537
  export const se_RegisterTypeCommand = async (input, context) => {
644
- const headers = {
645
- "content-type": "application/x-www-form-urlencoded",
646
- };
538
+ const headers = SHARED_HEADERS;
647
539
  let body;
648
540
  body = buildFormUrlencodedString({
649
541
  ...se_RegisterTypeInput(input, context),
@@ -653,9 +545,7 @@ export const se_RegisterTypeCommand = async (input, context) => {
653
545
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
654
546
  };
655
547
  export const se_RollbackStackCommand = async (input, context) => {
656
- const headers = {
657
- "content-type": "application/x-www-form-urlencoded",
658
- };
548
+ const headers = SHARED_HEADERS;
659
549
  let body;
660
550
  body = buildFormUrlencodedString({
661
551
  ...se_RollbackStackInput(input, context),
@@ -665,9 +555,7 @@ export const se_RollbackStackCommand = async (input, context) => {
665
555
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
666
556
  };
667
557
  export const se_SetStackPolicyCommand = async (input, context) => {
668
- const headers = {
669
- "content-type": "application/x-www-form-urlencoded",
670
- };
558
+ const headers = SHARED_HEADERS;
671
559
  let body;
672
560
  body = buildFormUrlencodedString({
673
561
  ...se_SetStackPolicyInput(input, context),
@@ -677,9 +565,7 @@ export const se_SetStackPolicyCommand = async (input, context) => {
677
565
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
678
566
  };
679
567
  export const se_SetTypeConfigurationCommand = async (input, context) => {
680
- const headers = {
681
- "content-type": "application/x-www-form-urlencoded",
682
- };
568
+ const headers = SHARED_HEADERS;
683
569
  let body;
684
570
  body = buildFormUrlencodedString({
685
571
  ...se_SetTypeConfigurationInput(input, context),
@@ -689,9 +575,7 @@ export const se_SetTypeConfigurationCommand = async (input, context) => {
689
575
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
690
576
  };
691
577
  export const se_SetTypeDefaultVersionCommand = async (input, context) => {
692
- const headers = {
693
- "content-type": "application/x-www-form-urlencoded",
694
- };
578
+ const headers = SHARED_HEADERS;
695
579
  let body;
696
580
  body = buildFormUrlencodedString({
697
581
  ...se_SetTypeDefaultVersionInput(input, context),
@@ -701,9 +585,7 @@ export const se_SetTypeDefaultVersionCommand = async (input, context) => {
701
585
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
702
586
  };
703
587
  export const se_SignalResourceCommand = async (input, context) => {
704
- const headers = {
705
- "content-type": "application/x-www-form-urlencoded",
706
- };
588
+ const headers = SHARED_HEADERS;
707
589
  let body;
708
590
  body = buildFormUrlencodedString({
709
591
  ...se_SignalResourceInput(input, context),
@@ -713,9 +595,7 @@ export const se_SignalResourceCommand = async (input, context) => {
713
595
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
714
596
  };
715
597
  export const se_StopStackSetOperationCommand = async (input, context) => {
716
- const headers = {
717
- "content-type": "application/x-www-form-urlencoded",
718
- };
598
+ const headers = SHARED_HEADERS;
719
599
  let body;
720
600
  body = buildFormUrlencodedString({
721
601
  ...se_StopStackSetOperationInput(input, context),
@@ -725,9 +605,7 @@ export const se_StopStackSetOperationCommand = async (input, context) => {
725
605
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
726
606
  };
727
607
  export const se_TestTypeCommand = async (input, context) => {
728
- const headers = {
729
- "content-type": "application/x-www-form-urlencoded",
730
- };
608
+ const headers = SHARED_HEADERS;
731
609
  let body;
732
610
  body = buildFormUrlencodedString({
733
611
  ...se_TestTypeInput(input, context),
@@ -737,9 +615,7 @@ export const se_TestTypeCommand = async (input, context) => {
737
615
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
738
616
  };
739
617
  export const se_UpdateStackCommand = async (input, context) => {
740
- const headers = {
741
- "content-type": "application/x-www-form-urlencoded",
742
- };
618
+ const headers = SHARED_HEADERS;
743
619
  let body;
744
620
  body = buildFormUrlencodedString({
745
621
  ...se_UpdateStackInput(input, context),
@@ -749,9 +625,7 @@ export const se_UpdateStackCommand = async (input, context) => {
749
625
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
750
626
  };
751
627
  export const se_UpdateStackInstancesCommand = async (input, context) => {
752
- const headers = {
753
- "content-type": "application/x-www-form-urlencoded",
754
- };
628
+ const headers = SHARED_HEADERS;
755
629
  let body;
756
630
  body = buildFormUrlencodedString({
757
631
  ...se_UpdateStackInstancesInput(input, context),
@@ -761,9 +635,7 @@ export const se_UpdateStackInstancesCommand = async (input, context) => {
761
635
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
762
636
  };
763
637
  export const se_UpdateStackSetCommand = async (input, context) => {
764
- const headers = {
765
- "content-type": "application/x-www-form-urlencoded",
766
- };
638
+ const headers = SHARED_HEADERS;
767
639
  let body;
768
640
  body = buildFormUrlencodedString({
769
641
  ...se_UpdateStackSetInput(input, context),
@@ -773,9 +645,7 @@ export const se_UpdateStackSetCommand = async (input, context) => {
773
645
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
774
646
  };
775
647
  export const se_UpdateTerminationProtectionCommand = async (input, context) => {
776
- const headers = {
777
- "content-type": "application/x-www-form-urlencoded",
778
- };
648
+ const headers = SHARED_HEADERS;
779
649
  let body;
780
650
  body = buildFormUrlencodedString({
781
651
  ...se_UpdateTerminationProtectionInput(input, context),
@@ -785,9 +655,7 @@ export const se_UpdateTerminationProtectionCommand = async (input, context) => {
785
655
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
786
656
  };
787
657
  export const se_ValidateTemplateCommand = async (input, context) => {
788
- const headers = {
789
- "content-type": "application/x-www-form-urlencoded",
790
- };
658
+ const headers = SHARED_HEADERS;
791
659
  let body;
792
660
  body = buildFormUrlencodedString({
793
661
  ...se_ValidateTemplateInput(input, context),
@@ -7841,6 +7709,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
7841
7709
  }
7842
7710
  return new __HttpRequest(contents);
7843
7711
  };
7712
+ const SHARED_HEADERS = {
7713
+ "content-type": "application/x-www-form-urlencoded",
7714
+ };
7844
7715
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
7845
7716
  if (encoded.length) {
7846
7717
  const parser = new XMLParser({