@aws-sdk/client-neptune 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.
@@ -4,9 +4,7 @@ import { XMLParser } from "fast-xml-parser";
4
4
  import { AuthorizationNotFoundFault, CertificateNotFoundFault, DBClusterAlreadyExistsFault, DBClusterEndpointAlreadyExistsFault, DBClusterEndpointNotFoundFault, DBClusterEndpointQuotaExceededFault, DBClusterNotFoundFault, DBClusterParameterGroupNotFoundFault, DBClusterQuotaExceededFault, DBClusterRoleAlreadyExistsFault, DBClusterRoleNotFoundFault, DBClusterRoleQuotaExceededFault, DBClusterSnapshotAlreadyExistsFault, DBClusterSnapshotNotFoundFault, DBInstanceAlreadyExistsFault, DBInstanceNotFoundFault, DBParameterGroupAlreadyExistsFault, DBParameterGroupNotFoundFault, DBParameterGroupQuotaExceededFault, DBSecurityGroupNotFoundFault, DBSnapshotAlreadyExistsFault, DBSnapshotNotFoundFault, DBSubnetGroupAlreadyExistsFault, DBSubnetGroupDoesNotCoverEnoughAZs, DBSubnetGroupNotFoundFault, DBSubnetGroupQuotaExceededFault, DBSubnetQuotaExceededFault, DBUpgradeDependencyFailureFault, DomainNotFoundFault, EventSubscriptionQuotaExceededFault, GlobalClusterAlreadyExistsFault, GlobalClusterNotFoundFault, GlobalClusterQuotaExceededFault, InstanceQuotaExceededFault, InsufficientDBClusterCapacityFault, InsufficientDBInstanceCapacityFault, InsufficientStorageClusterCapacityFault, InvalidDBClusterEndpointStateFault, InvalidDBClusterSnapshotStateFault, InvalidDBClusterStateFault, InvalidDBInstanceStateFault, InvalidDBParameterGroupStateFault, InvalidDBSecurityGroupStateFault, InvalidDBSnapshotStateFault, InvalidDBSubnetGroupStateFault, InvalidDBSubnetStateFault, InvalidEventSubscriptionStateFault, InvalidGlobalClusterStateFault, InvalidRestoreFault, InvalidSubnet, InvalidVPCNetworkStateFault, KMSKeyNotAccessibleFault, OptionGroupNotFoundFault, ProvisionedIopsNotAvailableInAZFault, ResourceNotFoundFault, SharedSnapshotQuotaExceededFault, SnapshotQuotaExceededFault, SNSInvalidTopicFault, SNSNoAuthorizationFault, SNSTopicArnNotFoundFault, SourceNotFoundFault, StorageQuotaExceededFault, StorageTypeNotSupportedFault, SubnetAlreadyInUse, SubscriptionAlreadyExistFault, SubscriptionCategoryNotFoundFault, SubscriptionNotFoundFault, } from "../models/models_0";
5
5
  import { NeptuneServiceException as __BaseException } from "../models/NeptuneServiceException";
6
6
  export const se_AddRoleToDBClusterCommand = async (input, context) => {
7
- const headers = {
8
- "content-type": "application/x-www-form-urlencoded",
9
- };
7
+ const headers = SHARED_HEADERS;
10
8
  let body;
11
9
  body = buildFormUrlencodedString({
12
10
  ...se_AddRoleToDBClusterMessage(input, context),
@@ -16,9 +14,7 @@ export const se_AddRoleToDBClusterCommand = async (input, context) => {
16
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
15
  };
18
16
  export const se_AddSourceIdentifierToSubscriptionCommand = async (input, context) => {
19
- const headers = {
20
- "content-type": "application/x-www-form-urlencoded",
21
- };
17
+ const headers = SHARED_HEADERS;
22
18
  let body;
23
19
  body = buildFormUrlencodedString({
24
20
  ...se_AddSourceIdentifierToSubscriptionMessage(input, context),
@@ -28,9 +24,7 @@ export const se_AddSourceIdentifierToSubscriptionCommand = async (input, context
28
24
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
25
  };
30
26
  export const se_AddTagsToResourceCommand = async (input, context) => {
31
- const headers = {
32
- "content-type": "application/x-www-form-urlencoded",
33
- };
27
+ const headers = SHARED_HEADERS;
34
28
  let body;
35
29
  body = buildFormUrlencodedString({
36
30
  ...se_AddTagsToResourceMessage(input, context),
@@ -40,9 +34,7 @@ export const se_AddTagsToResourceCommand = async (input, context) => {
40
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
35
  };
42
36
  export const se_ApplyPendingMaintenanceActionCommand = async (input, context) => {
43
- const headers = {
44
- "content-type": "application/x-www-form-urlencoded",
45
- };
37
+ const headers = SHARED_HEADERS;
46
38
  let body;
47
39
  body = buildFormUrlencodedString({
48
40
  ...se_ApplyPendingMaintenanceActionMessage(input, context),
@@ -52,9 +44,7 @@ export const se_ApplyPendingMaintenanceActionCommand = async (input, context) =>
52
44
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
45
  };
54
46
  export const se_CopyDBClusterParameterGroupCommand = async (input, context) => {
55
- const headers = {
56
- "content-type": "application/x-www-form-urlencoded",
57
- };
47
+ const headers = SHARED_HEADERS;
58
48
  let body;
59
49
  body = buildFormUrlencodedString({
60
50
  ...se_CopyDBClusterParameterGroupMessage(input, context),
@@ -64,9 +54,7 @@ export const se_CopyDBClusterParameterGroupCommand = async (input, context) => {
64
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
55
  };
66
56
  export const se_CopyDBClusterSnapshotCommand = async (input, context) => {
67
- const headers = {
68
- "content-type": "application/x-www-form-urlencoded",
69
- };
57
+ const headers = SHARED_HEADERS;
70
58
  let body;
71
59
  body = buildFormUrlencodedString({
72
60
  ...se_CopyDBClusterSnapshotMessage(input, context),
@@ -76,9 +64,7 @@ export const se_CopyDBClusterSnapshotCommand = async (input, context) => {
76
64
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
65
  };
78
66
  export const se_CopyDBParameterGroupCommand = async (input, context) => {
79
- const headers = {
80
- "content-type": "application/x-www-form-urlencoded",
81
- };
67
+ const headers = SHARED_HEADERS;
82
68
  let body;
83
69
  body = buildFormUrlencodedString({
84
70
  ...se_CopyDBParameterGroupMessage(input, context),
@@ -88,9 +74,7 @@ export const se_CopyDBParameterGroupCommand = async (input, context) => {
88
74
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
75
  };
90
76
  export const se_CreateDBClusterCommand = async (input, context) => {
91
- const headers = {
92
- "content-type": "application/x-www-form-urlencoded",
93
- };
77
+ const headers = SHARED_HEADERS;
94
78
  let body;
95
79
  body = buildFormUrlencodedString({
96
80
  ...se_CreateDBClusterMessage(input, context),
@@ -100,9 +84,7 @@ export const se_CreateDBClusterCommand = async (input, context) => {
100
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
85
  };
102
86
  export const se_CreateDBClusterEndpointCommand = async (input, context) => {
103
- const headers = {
104
- "content-type": "application/x-www-form-urlencoded",
105
- };
87
+ const headers = SHARED_HEADERS;
106
88
  let body;
107
89
  body = buildFormUrlencodedString({
108
90
  ...se_CreateDBClusterEndpointMessage(input, context),
@@ -112,9 +94,7 @@ export const se_CreateDBClusterEndpointCommand = async (input, context) => {
112
94
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
95
  };
114
96
  export const se_CreateDBClusterParameterGroupCommand = async (input, context) => {
115
- const headers = {
116
- "content-type": "application/x-www-form-urlencoded",
117
- };
97
+ const headers = SHARED_HEADERS;
118
98
  let body;
119
99
  body = buildFormUrlencodedString({
120
100
  ...se_CreateDBClusterParameterGroupMessage(input, context),
@@ -124,9 +104,7 @@ export const se_CreateDBClusterParameterGroupCommand = async (input, context) =>
124
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
105
  };
126
106
  export const se_CreateDBClusterSnapshotCommand = async (input, context) => {
127
- const headers = {
128
- "content-type": "application/x-www-form-urlencoded",
129
- };
107
+ const headers = SHARED_HEADERS;
130
108
  let body;
131
109
  body = buildFormUrlencodedString({
132
110
  ...se_CreateDBClusterSnapshotMessage(input, context),
@@ -136,9 +114,7 @@ export const se_CreateDBClusterSnapshotCommand = async (input, context) => {
136
114
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
115
  };
138
116
  export const se_CreateDBInstanceCommand = async (input, context) => {
139
- const headers = {
140
- "content-type": "application/x-www-form-urlencoded",
141
- };
117
+ const headers = SHARED_HEADERS;
142
118
  let body;
143
119
  body = buildFormUrlencodedString({
144
120
  ...se_CreateDBInstanceMessage(input, context),
@@ -148,9 +124,7 @@ export const se_CreateDBInstanceCommand = async (input, context) => {
148
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
125
  };
150
126
  export const se_CreateDBParameterGroupCommand = async (input, context) => {
151
- const headers = {
152
- "content-type": "application/x-www-form-urlencoded",
153
- };
127
+ const headers = SHARED_HEADERS;
154
128
  let body;
155
129
  body = buildFormUrlencodedString({
156
130
  ...se_CreateDBParameterGroupMessage(input, context),
@@ -160,9 +134,7 @@ export const se_CreateDBParameterGroupCommand = async (input, context) => {
160
134
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
135
  };
162
136
  export const se_CreateDBSubnetGroupCommand = async (input, context) => {
163
- const headers = {
164
- "content-type": "application/x-www-form-urlencoded",
165
- };
137
+ const headers = SHARED_HEADERS;
166
138
  let body;
167
139
  body = buildFormUrlencodedString({
168
140
  ...se_CreateDBSubnetGroupMessage(input, context),
@@ -172,9 +144,7 @@ export const se_CreateDBSubnetGroupCommand = async (input, context) => {
172
144
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
145
  };
174
146
  export const se_CreateEventSubscriptionCommand = async (input, context) => {
175
- const headers = {
176
- "content-type": "application/x-www-form-urlencoded",
177
- };
147
+ const headers = SHARED_HEADERS;
178
148
  let body;
179
149
  body = buildFormUrlencodedString({
180
150
  ...se_CreateEventSubscriptionMessage(input, context),
@@ -184,9 +154,7 @@ export const se_CreateEventSubscriptionCommand = async (input, context) => {
184
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
155
  };
186
156
  export const se_CreateGlobalClusterCommand = async (input, context) => {
187
- const headers = {
188
- "content-type": "application/x-www-form-urlencoded",
189
- };
157
+ const headers = SHARED_HEADERS;
190
158
  let body;
191
159
  body = buildFormUrlencodedString({
192
160
  ...se_CreateGlobalClusterMessage(input, context),
@@ -196,9 +164,7 @@ export const se_CreateGlobalClusterCommand = async (input, context) => {
196
164
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
165
  };
198
166
  export const se_DeleteDBClusterCommand = async (input, context) => {
199
- const headers = {
200
- "content-type": "application/x-www-form-urlencoded",
201
- };
167
+ const headers = SHARED_HEADERS;
202
168
  let body;
203
169
  body = buildFormUrlencodedString({
204
170
  ...se_DeleteDBClusterMessage(input, context),
@@ -208,9 +174,7 @@ export const se_DeleteDBClusterCommand = async (input, context) => {
208
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
175
  };
210
176
  export const se_DeleteDBClusterEndpointCommand = async (input, context) => {
211
- const headers = {
212
- "content-type": "application/x-www-form-urlencoded",
213
- };
177
+ const headers = SHARED_HEADERS;
214
178
  let body;
215
179
  body = buildFormUrlencodedString({
216
180
  ...se_DeleteDBClusterEndpointMessage(input, context),
@@ -220,9 +184,7 @@ export const se_DeleteDBClusterEndpointCommand = async (input, context) => {
220
184
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
185
  };
222
186
  export const se_DeleteDBClusterParameterGroupCommand = async (input, context) => {
223
- const headers = {
224
- "content-type": "application/x-www-form-urlencoded",
225
- };
187
+ const headers = SHARED_HEADERS;
226
188
  let body;
227
189
  body = buildFormUrlencodedString({
228
190
  ...se_DeleteDBClusterParameterGroupMessage(input, context),
@@ -232,9 +194,7 @@ export const se_DeleteDBClusterParameterGroupCommand = async (input, context) =>
232
194
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
195
  };
234
196
  export const se_DeleteDBClusterSnapshotCommand = async (input, context) => {
235
- const headers = {
236
- "content-type": "application/x-www-form-urlencoded",
237
- };
197
+ const headers = SHARED_HEADERS;
238
198
  let body;
239
199
  body = buildFormUrlencodedString({
240
200
  ...se_DeleteDBClusterSnapshotMessage(input, context),
@@ -244,9 +204,7 @@ export const se_DeleteDBClusterSnapshotCommand = async (input, context) => {
244
204
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
205
  };
246
206
  export const se_DeleteDBInstanceCommand = async (input, context) => {
247
- const headers = {
248
- "content-type": "application/x-www-form-urlencoded",
249
- };
207
+ const headers = SHARED_HEADERS;
250
208
  let body;
251
209
  body = buildFormUrlencodedString({
252
210
  ...se_DeleteDBInstanceMessage(input, context),
@@ -256,9 +214,7 @@ export const se_DeleteDBInstanceCommand = async (input, context) => {
256
214
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
215
  };
258
216
  export const se_DeleteDBParameterGroupCommand = async (input, context) => {
259
- const headers = {
260
- "content-type": "application/x-www-form-urlencoded",
261
- };
217
+ const headers = SHARED_HEADERS;
262
218
  let body;
263
219
  body = buildFormUrlencodedString({
264
220
  ...se_DeleteDBParameterGroupMessage(input, context),
@@ -268,9 +224,7 @@ export const se_DeleteDBParameterGroupCommand = async (input, context) => {
268
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
225
  };
270
226
  export const se_DeleteDBSubnetGroupCommand = async (input, context) => {
271
- const headers = {
272
- "content-type": "application/x-www-form-urlencoded",
273
- };
227
+ const headers = SHARED_HEADERS;
274
228
  let body;
275
229
  body = buildFormUrlencodedString({
276
230
  ...se_DeleteDBSubnetGroupMessage(input, context),
@@ -280,9 +234,7 @@ export const se_DeleteDBSubnetGroupCommand = async (input, context) => {
280
234
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
235
  };
282
236
  export const se_DeleteEventSubscriptionCommand = async (input, context) => {
283
- const headers = {
284
- "content-type": "application/x-www-form-urlencoded",
285
- };
237
+ const headers = SHARED_HEADERS;
286
238
  let body;
287
239
  body = buildFormUrlencodedString({
288
240
  ...se_DeleteEventSubscriptionMessage(input, context),
@@ -292,9 +244,7 @@ export const se_DeleteEventSubscriptionCommand = async (input, context) => {
292
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
293
245
  };
294
246
  export const se_DeleteGlobalClusterCommand = async (input, context) => {
295
- const headers = {
296
- "content-type": "application/x-www-form-urlencoded",
297
- };
247
+ const headers = SHARED_HEADERS;
298
248
  let body;
299
249
  body = buildFormUrlencodedString({
300
250
  ...se_DeleteGlobalClusterMessage(input, context),
@@ -304,9 +254,7 @@ export const se_DeleteGlobalClusterCommand = async (input, context) => {
304
254
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
255
  };
306
256
  export const se_DescribeDBClusterEndpointsCommand = async (input, context) => {
307
- const headers = {
308
- "content-type": "application/x-www-form-urlencoded",
309
- };
257
+ const headers = SHARED_HEADERS;
310
258
  let body;
311
259
  body = buildFormUrlencodedString({
312
260
  ...se_DescribeDBClusterEndpointsMessage(input, context),
@@ -316,9 +264,7 @@ export const se_DescribeDBClusterEndpointsCommand = async (input, context) => {
316
264
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
265
  };
318
266
  export const se_DescribeDBClusterParameterGroupsCommand = async (input, context) => {
319
- const headers = {
320
- "content-type": "application/x-www-form-urlencoded",
321
- };
267
+ const headers = SHARED_HEADERS;
322
268
  let body;
323
269
  body = buildFormUrlencodedString({
324
270
  ...se_DescribeDBClusterParameterGroupsMessage(input, context),
@@ -328,9 +274,7 @@ export const se_DescribeDBClusterParameterGroupsCommand = async (input, context)
328
274
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
275
  };
330
276
  export const se_DescribeDBClusterParametersCommand = async (input, context) => {
331
- const headers = {
332
- "content-type": "application/x-www-form-urlencoded",
333
- };
277
+ const headers = SHARED_HEADERS;
334
278
  let body;
335
279
  body = buildFormUrlencodedString({
336
280
  ...se_DescribeDBClusterParametersMessage(input, context),
@@ -340,9 +284,7 @@ export const se_DescribeDBClusterParametersCommand = async (input, context) => {
340
284
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
341
285
  };
342
286
  export const se_DescribeDBClustersCommand = async (input, context) => {
343
- const headers = {
344
- "content-type": "application/x-www-form-urlencoded",
345
- };
287
+ const headers = SHARED_HEADERS;
346
288
  let body;
347
289
  body = buildFormUrlencodedString({
348
290
  ...se_DescribeDBClustersMessage(input, context),
@@ -352,9 +294,7 @@ export const se_DescribeDBClustersCommand = async (input, context) => {
352
294
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
295
  };
354
296
  export const se_DescribeDBClusterSnapshotAttributesCommand = async (input, context) => {
355
- const headers = {
356
- "content-type": "application/x-www-form-urlencoded",
357
- };
297
+ const headers = SHARED_HEADERS;
358
298
  let body;
359
299
  body = buildFormUrlencodedString({
360
300
  ...se_DescribeDBClusterSnapshotAttributesMessage(input, context),
@@ -364,9 +304,7 @@ export const se_DescribeDBClusterSnapshotAttributesCommand = async (input, conte
364
304
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
305
  };
366
306
  export const se_DescribeDBClusterSnapshotsCommand = async (input, context) => {
367
- const headers = {
368
- "content-type": "application/x-www-form-urlencoded",
369
- };
307
+ const headers = SHARED_HEADERS;
370
308
  let body;
371
309
  body = buildFormUrlencodedString({
372
310
  ...se_DescribeDBClusterSnapshotsMessage(input, context),
@@ -376,9 +314,7 @@ export const se_DescribeDBClusterSnapshotsCommand = async (input, context) => {
376
314
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
315
  };
378
316
  export const se_DescribeDBEngineVersionsCommand = async (input, context) => {
379
- const headers = {
380
- "content-type": "application/x-www-form-urlencoded",
381
- };
317
+ const headers = SHARED_HEADERS;
382
318
  let body;
383
319
  body = buildFormUrlencodedString({
384
320
  ...se_DescribeDBEngineVersionsMessage(input, context),
@@ -388,9 +324,7 @@ export const se_DescribeDBEngineVersionsCommand = async (input, context) => {
388
324
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
389
325
  };
390
326
  export const se_DescribeDBInstancesCommand = async (input, context) => {
391
- const headers = {
392
- "content-type": "application/x-www-form-urlencoded",
393
- };
327
+ const headers = SHARED_HEADERS;
394
328
  let body;
395
329
  body = buildFormUrlencodedString({
396
330
  ...se_DescribeDBInstancesMessage(input, context),
@@ -400,9 +334,7 @@ export const se_DescribeDBInstancesCommand = async (input, context) => {
400
334
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
401
335
  };
402
336
  export const se_DescribeDBParameterGroupsCommand = async (input, context) => {
403
- const headers = {
404
- "content-type": "application/x-www-form-urlencoded",
405
- };
337
+ const headers = SHARED_HEADERS;
406
338
  let body;
407
339
  body = buildFormUrlencodedString({
408
340
  ...se_DescribeDBParameterGroupsMessage(input, context),
@@ -412,9 +344,7 @@ export const se_DescribeDBParameterGroupsCommand = async (input, context) => {
412
344
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
413
345
  };
414
346
  export const se_DescribeDBParametersCommand = async (input, context) => {
415
- const headers = {
416
- "content-type": "application/x-www-form-urlencoded",
417
- };
347
+ const headers = SHARED_HEADERS;
418
348
  let body;
419
349
  body = buildFormUrlencodedString({
420
350
  ...se_DescribeDBParametersMessage(input, context),
@@ -424,9 +354,7 @@ export const se_DescribeDBParametersCommand = async (input, context) => {
424
354
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
425
355
  };
426
356
  export const se_DescribeDBSubnetGroupsCommand = async (input, context) => {
427
- const headers = {
428
- "content-type": "application/x-www-form-urlencoded",
429
- };
357
+ const headers = SHARED_HEADERS;
430
358
  let body;
431
359
  body = buildFormUrlencodedString({
432
360
  ...se_DescribeDBSubnetGroupsMessage(input, context),
@@ -436,9 +364,7 @@ export const se_DescribeDBSubnetGroupsCommand = async (input, context) => {
436
364
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
365
  };
438
366
  export const se_DescribeEngineDefaultClusterParametersCommand = async (input, context) => {
439
- const headers = {
440
- "content-type": "application/x-www-form-urlencoded",
441
- };
367
+ const headers = SHARED_HEADERS;
442
368
  let body;
443
369
  body = buildFormUrlencodedString({
444
370
  ...se_DescribeEngineDefaultClusterParametersMessage(input, context),
@@ -448,9 +374,7 @@ export const se_DescribeEngineDefaultClusterParametersCommand = async (input, co
448
374
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
375
  };
450
376
  export const se_DescribeEngineDefaultParametersCommand = async (input, context) => {
451
- const headers = {
452
- "content-type": "application/x-www-form-urlencoded",
453
- };
377
+ const headers = SHARED_HEADERS;
454
378
  let body;
455
379
  body = buildFormUrlencodedString({
456
380
  ...se_DescribeEngineDefaultParametersMessage(input, context),
@@ -460,9 +384,7 @@ export const se_DescribeEngineDefaultParametersCommand = async (input, context)
460
384
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
461
385
  };
462
386
  export const se_DescribeEventCategoriesCommand = async (input, context) => {
463
- const headers = {
464
- "content-type": "application/x-www-form-urlencoded",
465
- };
387
+ const headers = SHARED_HEADERS;
466
388
  let body;
467
389
  body = buildFormUrlencodedString({
468
390
  ...se_DescribeEventCategoriesMessage(input, context),
@@ -472,9 +394,7 @@ export const se_DescribeEventCategoriesCommand = async (input, context) => {
472
394
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
473
395
  };
474
396
  export const se_DescribeEventsCommand = async (input, context) => {
475
- const headers = {
476
- "content-type": "application/x-www-form-urlencoded",
477
- };
397
+ const headers = SHARED_HEADERS;
478
398
  let body;
479
399
  body = buildFormUrlencodedString({
480
400
  ...se_DescribeEventsMessage(input, context),
@@ -484,9 +404,7 @@ export const se_DescribeEventsCommand = async (input, context) => {
484
404
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
485
405
  };
486
406
  export const se_DescribeEventSubscriptionsCommand = async (input, context) => {
487
- const headers = {
488
- "content-type": "application/x-www-form-urlencoded",
489
- };
407
+ const headers = SHARED_HEADERS;
490
408
  let body;
491
409
  body = buildFormUrlencodedString({
492
410
  ...se_DescribeEventSubscriptionsMessage(input, context),
@@ -496,9 +414,7 @@ export const se_DescribeEventSubscriptionsCommand = async (input, context) => {
496
414
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
497
415
  };
498
416
  export const se_DescribeGlobalClustersCommand = async (input, context) => {
499
- const headers = {
500
- "content-type": "application/x-www-form-urlencoded",
501
- };
417
+ const headers = SHARED_HEADERS;
502
418
  let body;
503
419
  body = buildFormUrlencodedString({
504
420
  ...se_DescribeGlobalClustersMessage(input, context),
@@ -508,9 +424,7 @@ export const se_DescribeGlobalClustersCommand = async (input, context) => {
508
424
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
509
425
  };
510
426
  export const se_DescribeOrderableDBInstanceOptionsCommand = async (input, context) => {
511
- const headers = {
512
- "content-type": "application/x-www-form-urlencoded",
513
- };
427
+ const headers = SHARED_HEADERS;
514
428
  let body;
515
429
  body = buildFormUrlencodedString({
516
430
  ...se_DescribeOrderableDBInstanceOptionsMessage(input, context),
@@ -520,9 +434,7 @@ export const se_DescribeOrderableDBInstanceOptionsCommand = async (input, contex
520
434
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
521
435
  };
522
436
  export const se_DescribePendingMaintenanceActionsCommand = async (input, context) => {
523
- const headers = {
524
- "content-type": "application/x-www-form-urlencoded",
525
- };
437
+ const headers = SHARED_HEADERS;
526
438
  let body;
527
439
  body = buildFormUrlencodedString({
528
440
  ...se_DescribePendingMaintenanceActionsMessage(input, context),
@@ -532,9 +444,7 @@ export const se_DescribePendingMaintenanceActionsCommand = async (input, context
532
444
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
533
445
  };
534
446
  export const se_DescribeValidDBInstanceModificationsCommand = async (input, context) => {
535
- const headers = {
536
- "content-type": "application/x-www-form-urlencoded",
537
- };
447
+ const headers = SHARED_HEADERS;
538
448
  let body;
539
449
  body = buildFormUrlencodedString({
540
450
  ...se_DescribeValidDBInstanceModificationsMessage(input, context),
@@ -544,9 +454,7 @@ export const se_DescribeValidDBInstanceModificationsCommand = async (input, cont
544
454
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
545
455
  };
546
456
  export const se_FailoverDBClusterCommand = async (input, context) => {
547
- const headers = {
548
- "content-type": "application/x-www-form-urlencoded",
549
- };
457
+ const headers = SHARED_HEADERS;
550
458
  let body;
551
459
  body = buildFormUrlencodedString({
552
460
  ...se_FailoverDBClusterMessage(input, context),
@@ -556,9 +464,7 @@ export const se_FailoverDBClusterCommand = async (input, context) => {
556
464
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
557
465
  };
558
466
  export const se_FailoverGlobalClusterCommand = async (input, context) => {
559
- const headers = {
560
- "content-type": "application/x-www-form-urlencoded",
561
- };
467
+ const headers = SHARED_HEADERS;
562
468
  let body;
563
469
  body = buildFormUrlencodedString({
564
470
  ...se_FailoverGlobalClusterMessage(input, context),
@@ -568,9 +474,7 @@ export const se_FailoverGlobalClusterCommand = async (input, context) => {
568
474
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
569
475
  };
570
476
  export const se_ListTagsForResourceCommand = async (input, context) => {
571
- const headers = {
572
- "content-type": "application/x-www-form-urlencoded",
573
- };
477
+ const headers = SHARED_HEADERS;
574
478
  let body;
575
479
  body = buildFormUrlencodedString({
576
480
  ...se_ListTagsForResourceMessage(input, context),
@@ -580,9 +484,7 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
580
484
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
581
485
  };
582
486
  export const se_ModifyDBClusterCommand = async (input, context) => {
583
- const headers = {
584
- "content-type": "application/x-www-form-urlencoded",
585
- };
487
+ const headers = SHARED_HEADERS;
586
488
  let body;
587
489
  body = buildFormUrlencodedString({
588
490
  ...se_ModifyDBClusterMessage(input, context),
@@ -592,9 +494,7 @@ export const se_ModifyDBClusterCommand = async (input, context) => {
592
494
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
593
495
  };
594
496
  export const se_ModifyDBClusterEndpointCommand = async (input, context) => {
595
- const headers = {
596
- "content-type": "application/x-www-form-urlencoded",
597
- };
497
+ const headers = SHARED_HEADERS;
598
498
  let body;
599
499
  body = buildFormUrlencodedString({
600
500
  ...se_ModifyDBClusterEndpointMessage(input, context),
@@ -604,9 +504,7 @@ export const se_ModifyDBClusterEndpointCommand = async (input, context) => {
604
504
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
605
505
  };
606
506
  export const se_ModifyDBClusterParameterGroupCommand = async (input, context) => {
607
- const headers = {
608
- "content-type": "application/x-www-form-urlencoded",
609
- };
507
+ const headers = SHARED_HEADERS;
610
508
  let body;
611
509
  body = buildFormUrlencodedString({
612
510
  ...se_ModifyDBClusterParameterGroupMessage(input, context),
@@ -616,9 +514,7 @@ export const se_ModifyDBClusterParameterGroupCommand = async (input, context) =>
616
514
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
617
515
  };
618
516
  export const se_ModifyDBClusterSnapshotAttributeCommand = async (input, context) => {
619
- const headers = {
620
- "content-type": "application/x-www-form-urlencoded",
621
- };
517
+ const headers = SHARED_HEADERS;
622
518
  let body;
623
519
  body = buildFormUrlencodedString({
624
520
  ...se_ModifyDBClusterSnapshotAttributeMessage(input, context),
@@ -628,9 +524,7 @@ export const se_ModifyDBClusterSnapshotAttributeCommand = async (input, context)
628
524
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
629
525
  };
630
526
  export const se_ModifyDBInstanceCommand = async (input, context) => {
631
- const headers = {
632
- "content-type": "application/x-www-form-urlencoded",
633
- };
527
+ const headers = SHARED_HEADERS;
634
528
  let body;
635
529
  body = buildFormUrlencodedString({
636
530
  ...se_ModifyDBInstanceMessage(input, context),
@@ -640,9 +534,7 @@ export const se_ModifyDBInstanceCommand = async (input, context) => {
640
534
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
641
535
  };
642
536
  export const se_ModifyDBParameterGroupCommand = async (input, context) => {
643
- const headers = {
644
- "content-type": "application/x-www-form-urlencoded",
645
- };
537
+ const headers = SHARED_HEADERS;
646
538
  let body;
647
539
  body = buildFormUrlencodedString({
648
540
  ...se_ModifyDBParameterGroupMessage(input, context),
@@ -652,9 +544,7 @@ export const se_ModifyDBParameterGroupCommand = async (input, context) => {
652
544
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
653
545
  };
654
546
  export const se_ModifyDBSubnetGroupCommand = async (input, context) => {
655
- const headers = {
656
- "content-type": "application/x-www-form-urlencoded",
657
- };
547
+ const headers = SHARED_HEADERS;
658
548
  let body;
659
549
  body = buildFormUrlencodedString({
660
550
  ...se_ModifyDBSubnetGroupMessage(input, context),
@@ -664,9 +554,7 @@ export const se_ModifyDBSubnetGroupCommand = async (input, context) => {
664
554
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
665
555
  };
666
556
  export const se_ModifyEventSubscriptionCommand = async (input, context) => {
667
- const headers = {
668
- "content-type": "application/x-www-form-urlencoded",
669
- };
557
+ const headers = SHARED_HEADERS;
670
558
  let body;
671
559
  body = buildFormUrlencodedString({
672
560
  ...se_ModifyEventSubscriptionMessage(input, context),
@@ -676,9 +564,7 @@ export const se_ModifyEventSubscriptionCommand = async (input, context) => {
676
564
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
677
565
  };
678
566
  export const se_ModifyGlobalClusterCommand = async (input, context) => {
679
- const headers = {
680
- "content-type": "application/x-www-form-urlencoded",
681
- };
567
+ const headers = SHARED_HEADERS;
682
568
  let body;
683
569
  body = buildFormUrlencodedString({
684
570
  ...se_ModifyGlobalClusterMessage(input, context),
@@ -688,9 +574,7 @@ export const se_ModifyGlobalClusterCommand = async (input, context) => {
688
574
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
689
575
  };
690
576
  export const se_PromoteReadReplicaDBClusterCommand = async (input, context) => {
691
- const headers = {
692
- "content-type": "application/x-www-form-urlencoded",
693
- };
577
+ const headers = SHARED_HEADERS;
694
578
  let body;
695
579
  body = buildFormUrlencodedString({
696
580
  ...se_PromoteReadReplicaDBClusterMessage(input, context),
@@ -700,9 +584,7 @@ export const se_PromoteReadReplicaDBClusterCommand = async (input, context) => {
700
584
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
701
585
  };
702
586
  export const se_RebootDBInstanceCommand = async (input, context) => {
703
- const headers = {
704
- "content-type": "application/x-www-form-urlencoded",
705
- };
587
+ const headers = SHARED_HEADERS;
706
588
  let body;
707
589
  body = buildFormUrlencodedString({
708
590
  ...se_RebootDBInstanceMessage(input, context),
@@ -712,9 +594,7 @@ export const se_RebootDBInstanceCommand = async (input, context) => {
712
594
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
713
595
  };
714
596
  export const se_RemoveFromGlobalClusterCommand = async (input, context) => {
715
- const headers = {
716
- "content-type": "application/x-www-form-urlencoded",
717
- };
597
+ const headers = SHARED_HEADERS;
718
598
  let body;
719
599
  body = buildFormUrlencodedString({
720
600
  ...se_RemoveFromGlobalClusterMessage(input, context),
@@ -724,9 +604,7 @@ export const se_RemoveFromGlobalClusterCommand = async (input, context) => {
724
604
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
725
605
  };
726
606
  export const se_RemoveRoleFromDBClusterCommand = async (input, context) => {
727
- const headers = {
728
- "content-type": "application/x-www-form-urlencoded",
729
- };
607
+ const headers = SHARED_HEADERS;
730
608
  let body;
731
609
  body = buildFormUrlencodedString({
732
610
  ...se_RemoveRoleFromDBClusterMessage(input, context),
@@ -736,9 +614,7 @@ export const se_RemoveRoleFromDBClusterCommand = async (input, context) => {
736
614
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
737
615
  };
738
616
  export const se_RemoveSourceIdentifierFromSubscriptionCommand = async (input, context) => {
739
- const headers = {
740
- "content-type": "application/x-www-form-urlencoded",
741
- };
617
+ const headers = SHARED_HEADERS;
742
618
  let body;
743
619
  body = buildFormUrlencodedString({
744
620
  ...se_RemoveSourceIdentifierFromSubscriptionMessage(input, context),
@@ -748,9 +624,7 @@ export const se_RemoveSourceIdentifierFromSubscriptionCommand = async (input, co
748
624
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
749
625
  };
750
626
  export const se_RemoveTagsFromResourceCommand = async (input, context) => {
751
- const headers = {
752
- "content-type": "application/x-www-form-urlencoded",
753
- };
627
+ const headers = SHARED_HEADERS;
754
628
  let body;
755
629
  body = buildFormUrlencodedString({
756
630
  ...se_RemoveTagsFromResourceMessage(input, context),
@@ -760,9 +634,7 @@ export const se_RemoveTagsFromResourceCommand = async (input, context) => {
760
634
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
761
635
  };
762
636
  export const se_ResetDBClusterParameterGroupCommand = async (input, context) => {
763
- const headers = {
764
- "content-type": "application/x-www-form-urlencoded",
765
- };
637
+ const headers = SHARED_HEADERS;
766
638
  let body;
767
639
  body = buildFormUrlencodedString({
768
640
  ...se_ResetDBClusterParameterGroupMessage(input, context),
@@ -772,9 +644,7 @@ export const se_ResetDBClusterParameterGroupCommand = async (input, context) =>
772
644
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
773
645
  };
774
646
  export const se_ResetDBParameterGroupCommand = async (input, context) => {
775
- const headers = {
776
- "content-type": "application/x-www-form-urlencoded",
777
- };
647
+ const headers = SHARED_HEADERS;
778
648
  let body;
779
649
  body = buildFormUrlencodedString({
780
650
  ...se_ResetDBParameterGroupMessage(input, context),
@@ -784,9 +654,7 @@ export const se_ResetDBParameterGroupCommand = async (input, context) => {
784
654
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
785
655
  };
786
656
  export const se_RestoreDBClusterFromSnapshotCommand = async (input, context) => {
787
- const headers = {
788
- "content-type": "application/x-www-form-urlencoded",
789
- };
657
+ const headers = SHARED_HEADERS;
790
658
  let body;
791
659
  body = buildFormUrlencodedString({
792
660
  ...se_RestoreDBClusterFromSnapshotMessage(input, context),
@@ -796,9 +664,7 @@ export const se_RestoreDBClusterFromSnapshotCommand = async (input, context) =>
796
664
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
797
665
  };
798
666
  export const se_RestoreDBClusterToPointInTimeCommand = async (input, context) => {
799
- const headers = {
800
- "content-type": "application/x-www-form-urlencoded",
801
- };
667
+ const headers = SHARED_HEADERS;
802
668
  let body;
803
669
  body = buildFormUrlencodedString({
804
670
  ...se_RestoreDBClusterToPointInTimeMessage(input, context),
@@ -808,9 +674,7 @@ export const se_RestoreDBClusterToPointInTimeCommand = async (input, context) =>
808
674
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
809
675
  };
810
676
  export const se_StartDBClusterCommand = async (input, context) => {
811
- const headers = {
812
- "content-type": "application/x-www-form-urlencoded",
813
- };
677
+ const headers = SHARED_HEADERS;
814
678
  let body;
815
679
  body = buildFormUrlencodedString({
816
680
  ...se_StartDBClusterMessage(input, context),
@@ -820,9 +684,7 @@ export const se_StartDBClusterCommand = async (input, context) => {
820
684
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
821
685
  };
822
686
  export const se_StopDBClusterCommand = async (input, context) => {
823
- const headers = {
824
- "content-type": "application/x-www-form-urlencoded",
825
- };
687
+ const headers = SHARED_HEADERS;
826
688
  let body;
827
689
  body = buildFormUrlencodedString({
828
690
  ...se_StopDBClusterMessage(input, context),
@@ -9032,6 +8894,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
9032
8894
  }
9033
8895
  return new __HttpRequest(contents);
9034
8896
  };
8897
+ const SHARED_HEADERS = {
8898
+ "content-type": "application/x-www-form-urlencoded",
8899
+ };
9035
8900
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
9036
8901
  if (encoded.length) {
9037
8902
  const parser = new XMLParser({