@aws-sdk/client-database-migration-service 3.309.0 → 3.312.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,689 +8,482 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const DatabaseMigrationServiceServiceException_1 = require("../models/DatabaseMigrationServiceServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_AddTagsToResourceCommand = async (input, context) => {
11
- const headers = {
12
- "content-type": "application/x-amz-json-1.1",
13
- "x-amz-target": "AmazonDMSv20160101.AddTagsToResource",
14
- };
11
+ const headers = sharedHeaders("AddTagsToResource");
15
12
  let body;
16
13
  body = JSON.stringify(se_AddTagsToResourceMessage(input, context));
17
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
15
  };
19
16
  exports.se_AddTagsToResourceCommand = se_AddTagsToResourceCommand;
20
17
  const se_ApplyPendingMaintenanceActionCommand = async (input, context) => {
21
- const headers = {
22
- "content-type": "application/x-amz-json-1.1",
23
- "x-amz-target": "AmazonDMSv20160101.ApplyPendingMaintenanceAction",
24
- };
18
+ const headers = sharedHeaders("ApplyPendingMaintenanceAction");
25
19
  let body;
26
20
  body = JSON.stringify(se_ApplyPendingMaintenanceActionMessage(input, context));
27
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
22
  };
29
23
  exports.se_ApplyPendingMaintenanceActionCommand = se_ApplyPendingMaintenanceActionCommand;
30
24
  const se_BatchStartRecommendationsCommand = async (input, context) => {
31
- const headers = {
32
- "content-type": "application/x-amz-json-1.1",
33
- "x-amz-target": "AmazonDMSv20160101.BatchStartRecommendations",
34
- };
25
+ const headers = sharedHeaders("BatchStartRecommendations");
35
26
  let body;
36
27
  body = JSON.stringify(se_BatchStartRecommendationsRequest(input, context));
37
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
38
29
  };
39
30
  exports.se_BatchStartRecommendationsCommand = se_BatchStartRecommendationsCommand;
40
31
  const se_CancelReplicationTaskAssessmentRunCommand = async (input, context) => {
41
- const headers = {
42
- "content-type": "application/x-amz-json-1.1",
43
- "x-amz-target": "AmazonDMSv20160101.CancelReplicationTaskAssessmentRun",
44
- };
32
+ const headers = sharedHeaders("CancelReplicationTaskAssessmentRun");
45
33
  let body;
46
34
  body = JSON.stringify(se_CancelReplicationTaskAssessmentRunMessage(input, context));
47
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
36
  };
49
37
  exports.se_CancelReplicationTaskAssessmentRunCommand = se_CancelReplicationTaskAssessmentRunCommand;
50
38
  const se_CreateEndpointCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "AmazonDMSv20160101.CreateEndpoint",
54
- };
39
+ const headers = sharedHeaders("CreateEndpoint");
55
40
  let body;
56
41
  body = JSON.stringify(se_CreateEndpointMessage(input, context));
57
42
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
43
  };
59
44
  exports.se_CreateEndpointCommand = se_CreateEndpointCommand;
60
45
  const se_CreateEventSubscriptionCommand = async (input, context) => {
61
- const headers = {
62
- "content-type": "application/x-amz-json-1.1",
63
- "x-amz-target": "AmazonDMSv20160101.CreateEventSubscription",
64
- };
46
+ const headers = sharedHeaders("CreateEventSubscription");
65
47
  let body;
66
48
  body = JSON.stringify(se_CreateEventSubscriptionMessage(input, context));
67
49
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
68
50
  };
69
51
  exports.se_CreateEventSubscriptionCommand = se_CreateEventSubscriptionCommand;
70
52
  const se_CreateFleetAdvisorCollectorCommand = async (input, context) => {
71
- const headers = {
72
- "content-type": "application/x-amz-json-1.1",
73
- "x-amz-target": "AmazonDMSv20160101.CreateFleetAdvisorCollector",
74
- };
53
+ const headers = sharedHeaders("CreateFleetAdvisorCollector");
75
54
  let body;
76
55
  body = JSON.stringify(se_CreateFleetAdvisorCollectorRequest(input, context));
77
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
57
  };
79
58
  exports.se_CreateFleetAdvisorCollectorCommand = se_CreateFleetAdvisorCollectorCommand;
80
59
  const se_CreateReplicationInstanceCommand = async (input, context) => {
81
- const headers = {
82
- "content-type": "application/x-amz-json-1.1",
83
- "x-amz-target": "AmazonDMSv20160101.CreateReplicationInstance",
84
- };
60
+ const headers = sharedHeaders("CreateReplicationInstance");
85
61
  let body;
86
62
  body = JSON.stringify(se_CreateReplicationInstanceMessage(input, context));
87
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
64
  };
89
65
  exports.se_CreateReplicationInstanceCommand = se_CreateReplicationInstanceCommand;
90
66
  const se_CreateReplicationSubnetGroupCommand = async (input, context) => {
91
- const headers = {
92
- "content-type": "application/x-amz-json-1.1",
93
- "x-amz-target": "AmazonDMSv20160101.CreateReplicationSubnetGroup",
94
- };
67
+ const headers = sharedHeaders("CreateReplicationSubnetGroup");
95
68
  let body;
96
69
  body = JSON.stringify(se_CreateReplicationSubnetGroupMessage(input, context));
97
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
71
  };
99
72
  exports.se_CreateReplicationSubnetGroupCommand = se_CreateReplicationSubnetGroupCommand;
100
73
  const se_CreateReplicationTaskCommand = async (input, context) => {
101
- const headers = {
102
- "content-type": "application/x-amz-json-1.1",
103
- "x-amz-target": "AmazonDMSv20160101.CreateReplicationTask",
104
- };
74
+ const headers = sharedHeaders("CreateReplicationTask");
105
75
  let body;
106
76
  body = JSON.stringify(se_CreateReplicationTaskMessage(input, context));
107
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
78
  };
109
79
  exports.se_CreateReplicationTaskCommand = se_CreateReplicationTaskCommand;
110
80
  const se_DeleteCertificateCommand = async (input, context) => {
111
- const headers = {
112
- "content-type": "application/x-amz-json-1.1",
113
- "x-amz-target": "AmazonDMSv20160101.DeleteCertificate",
114
- };
81
+ const headers = sharedHeaders("DeleteCertificate");
115
82
  let body;
116
83
  body = JSON.stringify(se_DeleteCertificateMessage(input, context));
117
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
85
  };
119
86
  exports.se_DeleteCertificateCommand = se_DeleteCertificateCommand;
120
87
  const se_DeleteConnectionCommand = async (input, context) => {
121
- const headers = {
122
- "content-type": "application/x-amz-json-1.1",
123
- "x-amz-target": "AmazonDMSv20160101.DeleteConnection",
124
- };
88
+ const headers = sharedHeaders("DeleteConnection");
125
89
  let body;
126
90
  body = JSON.stringify(se_DeleteConnectionMessage(input, context));
127
91
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
128
92
  };
129
93
  exports.se_DeleteConnectionCommand = se_DeleteConnectionCommand;
130
94
  const se_DeleteEndpointCommand = async (input, context) => {
131
- const headers = {
132
- "content-type": "application/x-amz-json-1.1",
133
- "x-amz-target": "AmazonDMSv20160101.DeleteEndpoint",
134
- };
95
+ const headers = sharedHeaders("DeleteEndpoint");
135
96
  let body;
136
97
  body = JSON.stringify(se_DeleteEndpointMessage(input, context));
137
98
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
99
  };
139
100
  exports.se_DeleteEndpointCommand = se_DeleteEndpointCommand;
140
101
  const se_DeleteEventSubscriptionCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "AmazonDMSv20160101.DeleteEventSubscription",
144
- };
102
+ const headers = sharedHeaders("DeleteEventSubscription");
145
103
  let body;
146
104
  body = JSON.stringify(se_DeleteEventSubscriptionMessage(input, context));
147
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
106
  };
149
107
  exports.se_DeleteEventSubscriptionCommand = se_DeleteEventSubscriptionCommand;
150
108
  const se_DeleteFleetAdvisorCollectorCommand = async (input, context) => {
151
- const headers = {
152
- "content-type": "application/x-amz-json-1.1",
153
- "x-amz-target": "AmazonDMSv20160101.DeleteFleetAdvisorCollector",
154
- };
109
+ const headers = sharedHeaders("DeleteFleetAdvisorCollector");
155
110
  let body;
156
111
  body = JSON.stringify(se_DeleteCollectorRequest(input, context));
157
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
158
113
  };
159
114
  exports.se_DeleteFleetAdvisorCollectorCommand = se_DeleteFleetAdvisorCollectorCommand;
160
115
  const se_DeleteFleetAdvisorDatabasesCommand = async (input, context) => {
161
- const headers = {
162
- "content-type": "application/x-amz-json-1.1",
163
- "x-amz-target": "AmazonDMSv20160101.DeleteFleetAdvisorDatabases",
164
- };
116
+ const headers = sharedHeaders("DeleteFleetAdvisorDatabases");
165
117
  let body;
166
118
  body = JSON.stringify(se_DeleteFleetAdvisorDatabasesRequest(input, context));
167
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
120
  };
169
121
  exports.se_DeleteFleetAdvisorDatabasesCommand = se_DeleteFleetAdvisorDatabasesCommand;
170
122
  const se_DeleteReplicationInstanceCommand = async (input, context) => {
171
- const headers = {
172
- "content-type": "application/x-amz-json-1.1",
173
- "x-amz-target": "AmazonDMSv20160101.DeleteReplicationInstance",
174
- };
123
+ const headers = sharedHeaders("DeleteReplicationInstance");
175
124
  let body;
176
125
  body = JSON.stringify(se_DeleteReplicationInstanceMessage(input, context));
177
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
127
  };
179
128
  exports.se_DeleteReplicationInstanceCommand = se_DeleteReplicationInstanceCommand;
180
129
  const se_DeleteReplicationSubnetGroupCommand = async (input, context) => {
181
- const headers = {
182
- "content-type": "application/x-amz-json-1.1",
183
- "x-amz-target": "AmazonDMSv20160101.DeleteReplicationSubnetGroup",
184
- };
130
+ const headers = sharedHeaders("DeleteReplicationSubnetGroup");
185
131
  let body;
186
132
  body = JSON.stringify(se_DeleteReplicationSubnetGroupMessage(input, context));
187
133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
188
134
  };
189
135
  exports.se_DeleteReplicationSubnetGroupCommand = se_DeleteReplicationSubnetGroupCommand;
190
136
  const se_DeleteReplicationTaskCommand = async (input, context) => {
191
- const headers = {
192
- "content-type": "application/x-amz-json-1.1",
193
- "x-amz-target": "AmazonDMSv20160101.DeleteReplicationTask",
194
- };
137
+ const headers = sharedHeaders("DeleteReplicationTask");
195
138
  let body;
196
139
  body = JSON.stringify(se_DeleteReplicationTaskMessage(input, context));
197
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
141
  };
199
142
  exports.se_DeleteReplicationTaskCommand = se_DeleteReplicationTaskCommand;
200
143
  const se_DeleteReplicationTaskAssessmentRunCommand = async (input, context) => {
201
- const headers = {
202
- "content-type": "application/x-amz-json-1.1",
203
- "x-amz-target": "AmazonDMSv20160101.DeleteReplicationTaskAssessmentRun",
204
- };
144
+ const headers = sharedHeaders("DeleteReplicationTaskAssessmentRun");
205
145
  let body;
206
146
  body = JSON.stringify(se_DeleteReplicationTaskAssessmentRunMessage(input, context));
207
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
148
  };
209
149
  exports.se_DeleteReplicationTaskAssessmentRunCommand = se_DeleteReplicationTaskAssessmentRunCommand;
210
150
  const se_DescribeAccountAttributesCommand = async (input, context) => {
211
- const headers = {
212
- "content-type": "application/x-amz-json-1.1",
213
- "x-amz-target": "AmazonDMSv20160101.DescribeAccountAttributes",
214
- };
151
+ const headers = sharedHeaders("DescribeAccountAttributes");
215
152
  let body;
216
153
  body = JSON.stringify(se_DescribeAccountAttributesMessage(input, context));
217
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
155
  };
219
156
  exports.se_DescribeAccountAttributesCommand = se_DescribeAccountAttributesCommand;
220
157
  const se_DescribeApplicableIndividualAssessmentsCommand = async (input, context) => {
221
- const headers = {
222
- "content-type": "application/x-amz-json-1.1",
223
- "x-amz-target": "AmazonDMSv20160101.DescribeApplicableIndividualAssessments",
224
- };
158
+ const headers = sharedHeaders("DescribeApplicableIndividualAssessments");
225
159
  let body;
226
160
  body = JSON.stringify(se_DescribeApplicableIndividualAssessmentsMessage(input, context));
227
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
162
  };
229
163
  exports.se_DescribeApplicableIndividualAssessmentsCommand = se_DescribeApplicableIndividualAssessmentsCommand;
230
164
  const se_DescribeCertificatesCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.1",
233
- "x-amz-target": "AmazonDMSv20160101.DescribeCertificates",
234
- };
165
+ const headers = sharedHeaders("DescribeCertificates");
235
166
  let body;
236
167
  body = JSON.stringify(se_DescribeCertificatesMessage(input, context));
237
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
169
  };
239
170
  exports.se_DescribeCertificatesCommand = se_DescribeCertificatesCommand;
240
171
  const se_DescribeConnectionsCommand = async (input, context) => {
241
- const headers = {
242
- "content-type": "application/x-amz-json-1.1",
243
- "x-amz-target": "AmazonDMSv20160101.DescribeConnections",
244
- };
172
+ const headers = sharedHeaders("DescribeConnections");
245
173
  let body;
246
174
  body = JSON.stringify(se_DescribeConnectionsMessage(input, context));
247
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
248
176
  };
249
177
  exports.se_DescribeConnectionsCommand = se_DescribeConnectionsCommand;
250
178
  const se_DescribeEndpointsCommand = async (input, context) => {
251
- const headers = {
252
- "content-type": "application/x-amz-json-1.1",
253
- "x-amz-target": "AmazonDMSv20160101.DescribeEndpoints",
254
- };
179
+ const headers = sharedHeaders("DescribeEndpoints");
255
180
  let body;
256
181
  body = JSON.stringify(se_DescribeEndpointsMessage(input, context));
257
182
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
183
  };
259
184
  exports.se_DescribeEndpointsCommand = se_DescribeEndpointsCommand;
260
185
  const se_DescribeEndpointSettingsCommand = async (input, context) => {
261
- const headers = {
262
- "content-type": "application/x-amz-json-1.1",
263
- "x-amz-target": "AmazonDMSv20160101.DescribeEndpointSettings",
264
- };
186
+ const headers = sharedHeaders("DescribeEndpointSettings");
265
187
  let body;
266
188
  body = JSON.stringify(se_DescribeEndpointSettingsMessage(input, context));
267
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
190
  };
269
191
  exports.se_DescribeEndpointSettingsCommand = se_DescribeEndpointSettingsCommand;
270
192
  const se_DescribeEndpointTypesCommand = async (input, context) => {
271
- const headers = {
272
- "content-type": "application/x-amz-json-1.1",
273
- "x-amz-target": "AmazonDMSv20160101.DescribeEndpointTypes",
274
- };
193
+ const headers = sharedHeaders("DescribeEndpointTypes");
275
194
  let body;
276
195
  body = JSON.stringify(se_DescribeEndpointTypesMessage(input, context));
277
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
278
197
  };
279
198
  exports.se_DescribeEndpointTypesCommand = se_DescribeEndpointTypesCommand;
280
199
  const se_DescribeEventCategoriesCommand = async (input, context) => {
281
- const headers = {
282
- "content-type": "application/x-amz-json-1.1",
283
- "x-amz-target": "AmazonDMSv20160101.DescribeEventCategories",
284
- };
200
+ const headers = sharedHeaders("DescribeEventCategories");
285
201
  let body;
286
202
  body = JSON.stringify(se_DescribeEventCategoriesMessage(input, context));
287
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
204
  };
289
205
  exports.se_DescribeEventCategoriesCommand = se_DescribeEventCategoriesCommand;
290
206
  const se_DescribeEventsCommand = async (input, context) => {
291
- const headers = {
292
- "content-type": "application/x-amz-json-1.1",
293
- "x-amz-target": "AmazonDMSv20160101.DescribeEvents",
294
- };
207
+ const headers = sharedHeaders("DescribeEvents");
295
208
  let body;
296
209
  body = JSON.stringify(se_DescribeEventsMessage(input, context));
297
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
298
211
  };
299
212
  exports.se_DescribeEventsCommand = se_DescribeEventsCommand;
300
213
  const se_DescribeEventSubscriptionsCommand = async (input, context) => {
301
- const headers = {
302
- "content-type": "application/x-amz-json-1.1",
303
- "x-amz-target": "AmazonDMSv20160101.DescribeEventSubscriptions",
304
- };
214
+ const headers = sharedHeaders("DescribeEventSubscriptions");
305
215
  let body;
306
216
  body = JSON.stringify(se_DescribeEventSubscriptionsMessage(input, context));
307
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
308
218
  };
309
219
  exports.se_DescribeEventSubscriptionsCommand = se_DescribeEventSubscriptionsCommand;
310
220
  const se_DescribeFleetAdvisorCollectorsCommand = async (input, context) => {
311
- const headers = {
312
- "content-type": "application/x-amz-json-1.1",
313
- "x-amz-target": "AmazonDMSv20160101.DescribeFleetAdvisorCollectors",
314
- };
221
+ const headers = sharedHeaders("DescribeFleetAdvisorCollectors");
315
222
  let body;
316
223
  body = JSON.stringify(se_DescribeFleetAdvisorCollectorsRequest(input, context));
317
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
225
  };
319
226
  exports.se_DescribeFleetAdvisorCollectorsCommand = se_DescribeFleetAdvisorCollectorsCommand;
320
227
  const se_DescribeFleetAdvisorDatabasesCommand = async (input, context) => {
321
- const headers = {
322
- "content-type": "application/x-amz-json-1.1",
323
- "x-amz-target": "AmazonDMSv20160101.DescribeFleetAdvisorDatabases",
324
- };
228
+ const headers = sharedHeaders("DescribeFleetAdvisorDatabases");
325
229
  let body;
326
230
  body = JSON.stringify(se_DescribeFleetAdvisorDatabasesRequest(input, context));
327
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
232
  };
329
233
  exports.se_DescribeFleetAdvisorDatabasesCommand = se_DescribeFleetAdvisorDatabasesCommand;
330
234
  const se_DescribeFleetAdvisorLsaAnalysisCommand = async (input, context) => {
331
- const headers = {
332
- "content-type": "application/x-amz-json-1.1",
333
- "x-amz-target": "AmazonDMSv20160101.DescribeFleetAdvisorLsaAnalysis",
334
- };
235
+ const headers = sharedHeaders("DescribeFleetAdvisorLsaAnalysis");
335
236
  let body;
336
237
  body = JSON.stringify(se_DescribeFleetAdvisorLsaAnalysisRequest(input, context));
337
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
338
239
  };
339
240
  exports.se_DescribeFleetAdvisorLsaAnalysisCommand = se_DescribeFleetAdvisorLsaAnalysisCommand;
340
241
  const se_DescribeFleetAdvisorSchemaObjectSummaryCommand = async (input, context) => {
341
- const headers = {
342
- "content-type": "application/x-amz-json-1.1",
343
- "x-amz-target": "AmazonDMSv20160101.DescribeFleetAdvisorSchemaObjectSummary",
344
- };
242
+ const headers = sharedHeaders("DescribeFleetAdvisorSchemaObjectSummary");
345
243
  let body;
346
244
  body = JSON.stringify(se_DescribeFleetAdvisorSchemaObjectSummaryRequest(input, context));
347
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
246
  };
349
247
  exports.se_DescribeFleetAdvisorSchemaObjectSummaryCommand = se_DescribeFleetAdvisorSchemaObjectSummaryCommand;
350
248
  const se_DescribeFleetAdvisorSchemasCommand = async (input, context) => {
351
- const headers = {
352
- "content-type": "application/x-amz-json-1.1",
353
- "x-amz-target": "AmazonDMSv20160101.DescribeFleetAdvisorSchemas",
354
- };
249
+ const headers = sharedHeaders("DescribeFleetAdvisorSchemas");
355
250
  let body;
356
251
  body = JSON.stringify(se_DescribeFleetAdvisorSchemasRequest(input, context));
357
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
253
  };
359
254
  exports.se_DescribeFleetAdvisorSchemasCommand = se_DescribeFleetAdvisorSchemasCommand;
360
255
  const se_DescribeOrderableReplicationInstancesCommand = async (input, context) => {
361
- const headers = {
362
- "content-type": "application/x-amz-json-1.1",
363
- "x-amz-target": "AmazonDMSv20160101.DescribeOrderableReplicationInstances",
364
- };
256
+ const headers = sharedHeaders("DescribeOrderableReplicationInstances");
365
257
  let body;
366
258
  body = JSON.stringify(se_DescribeOrderableReplicationInstancesMessage(input, context));
367
259
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
368
260
  };
369
261
  exports.se_DescribeOrderableReplicationInstancesCommand = se_DescribeOrderableReplicationInstancesCommand;
370
262
  const se_DescribePendingMaintenanceActionsCommand = async (input, context) => {
371
- const headers = {
372
- "content-type": "application/x-amz-json-1.1",
373
- "x-amz-target": "AmazonDMSv20160101.DescribePendingMaintenanceActions",
374
- };
263
+ const headers = sharedHeaders("DescribePendingMaintenanceActions");
375
264
  let body;
376
265
  body = JSON.stringify(se_DescribePendingMaintenanceActionsMessage(input, context));
377
266
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
267
  };
379
268
  exports.se_DescribePendingMaintenanceActionsCommand = se_DescribePendingMaintenanceActionsCommand;
380
269
  const se_DescribeRecommendationLimitationsCommand = async (input, context) => {
381
- const headers = {
382
- "content-type": "application/x-amz-json-1.1",
383
- "x-amz-target": "AmazonDMSv20160101.DescribeRecommendationLimitations",
384
- };
270
+ const headers = sharedHeaders("DescribeRecommendationLimitations");
385
271
  let body;
386
272
  body = JSON.stringify(se_DescribeRecommendationLimitationsRequest(input, context));
387
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
388
274
  };
389
275
  exports.se_DescribeRecommendationLimitationsCommand = se_DescribeRecommendationLimitationsCommand;
390
276
  const se_DescribeRecommendationsCommand = async (input, context) => {
391
- const headers = {
392
- "content-type": "application/x-amz-json-1.1",
393
- "x-amz-target": "AmazonDMSv20160101.DescribeRecommendations",
394
- };
277
+ const headers = sharedHeaders("DescribeRecommendations");
395
278
  let body;
396
279
  body = JSON.stringify(se_DescribeRecommendationsRequest(input, context));
397
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
398
281
  };
399
282
  exports.se_DescribeRecommendationsCommand = se_DescribeRecommendationsCommand;
400
283
  const se_DescribeRefreshSchemasStatusCommand = async (input, context) => {
401
- const headers = {
402
- "content-type": "application/x-amz-json-1.1",
403
- "x-amz-target": "AmazonDMSv20160101.DescribeRefreshSchemasStatus",
404
- };
284
+ const headers = sharedHeaders("DescribeRefreshSchemasStatus");
405
285
  let body;
406
286
  body = JSON.stringify(se_DescribeRefreshSchemasStatusMessage(input, context));
407
287
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
408
288
  };
409
289
  exports.se_DescribeRefreshSchemasStatusCommand = se_DescribeRefreshSchemasStatusCommand;
410
290
  const se_DescribeReplicationInstancesCommand = async (input, context) => {
411
- const headers = {
412
- "content-type": "application/x-amz-json-1.1",
413
- "x-amz-target": "AmazonDMSv20160101.DescribeReplicationInstances",
414
- };
291
+ const headers = sharedHeaders("DescribeReplicationInstances");
415
292
  let body;
416
293
  body = JSON.stringify(se_DescribeReplicationInstancesMessage(input, context));
417
294
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
418
295
  };
419
296
  exports.se_DescribeReplicationInstancesCommand = se_DescribeReplicationInstancesCommand;
420
297
  const se_DescribeReplicationInstanceTaskLogsCommand = async (input, context) => {
421
- const headers = {
422
- "content-type": "application/x-amz-json-1.1",
423
- "x-amz-target": "AmazonDMSv20160101.DescribeReplicationInstanceTaskLogs",
424
- };
298
+ const headers = sharedHeaders("DescribeReplicationInstanceTaskLogs");
425
299
  let body;
426
300
  body = JSON.stringify(se_DescribeReplicationInstanceTaskLogsMessage(input, context));
427
301
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
428
302
  };
429
303
  exports.se_DescribeReplicationInstanceTaskLogsCommand = se_DescribeReplicationInstanceTaskLogsCommand;
430
304
  const se_DescribeReplicationSubnetGroupsCommand = async (input, context) => {
431
- const headers = {
432
- "content-type": "application/x-amz-json-1.1",
433
- "x-amz-target": "AmazonDMSv20160101.DescribeReplicationSubnetGroups",
434
- };
305
+ const headers = sharedHeaders("DescribeReplicationSubnetGroups");
435
306
  let body;
436
307
  body = JSON.stringify(se_DescribeReplicationSubnetGroupsMessage(input, context));
437
308
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
438
309
  };
439
310
  exports.se_DescribeReplicationSubnetGroupsCommand = se_DescribeReplicationSubnetGroupsCommand;
440
311
  const se_DescribeReplicationTaskAssessmentResultsCommand = async (input, context) => {
441
- const headers = {
442
- "content-type": "application/x-amz-json-1.1",
443
- "x-amz-target": "AmazonDMSv20160101.DescribeReplicationTaskAssessmentResults",
444
- };
312
+ const headers = sharedHeaders("DescribeReplicationTaskAssessmentResults");
445
313
  let body;
446
314
  body = JSON.stringify(se_DescribeReplicationTaskAssessmentResultsMessage(input, context));
447
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
448
316
  };
449
317
  exports.se_DescribeReplicationTaskAssessmentResultsCommand = se_DescribeReplicationTaskAssessmentResultsCommand;
450
318
  const se_DescribeReplicationTaskAssessmentRunsCommand = async (input, context) => {
451
- const headers = {
452
- "content-type": "application/x-amz-json-1.1",
453
- "x-amz-target": "AmazonDMSv20160101.DescribeReplicationTaskAssessmentRuns",
454
- };
319
+ const headers = sharedHeaders("DescribeReplicationTaskAssessmentRuns");
455
320
  let body;
456
321
  body = JSON.stringify(se_DescribeReplicationTaskAssessmentRunsMessage(input, context));
457
322
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
458
323
  };
459
324
  exports.se_DescribeReplicationTaskAssessmentRunsCommand = se_DescribeReplicationTaskAssessmentRunsCommand;
460
325
  const se_DescribeReplicationTaskIndividualAssessmentsCommand = async (input, context) => {
461
- const headers = {
462
- "content-type": "application/x-amz-json-1.1",
463
- "x-amz-target": "AmazonDMSv20160101.DescribeReplicationTaskIndividualAssessments",
464
- };
326
+ const headers = sharedHeaders("DescribeReplicationTaskIndividualAssessments");
465
327
  let body;
466
328
  body = JSON.stringify(se_DescribeReplicationTaskIndividualAssessmentsMessage(input, context));
467
329
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
468
330
  };
469
331
  exports.se_DescribeReplicationTaskIndividualAssessmentsCommand = se_DescribeReplicationTaskIndividualAssessmentsCommand;
470
332
  const se_DescribeReplicationTasksCommand = async (input, context) => {
471
- const headers = {
472
- "content-type": "application/x-amz-json-1.1",
473
- "x-amz-target": "AmazonDMSv20160101.DescribeReplicationTasks",
474
- };
333
+ const headers = sharedHeaders("DescribeReplicationTasks");
475
334
  let body;
476
335
  body = JSON.stringify(se_DescribeReplicationTasksMessage(input, context));
477
336
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
478
337
  };
479
338
  exports.se_DescribeReplicationTasksCommand = se_DescribeReplicationTasksCommand;
480
339
  const se_DescribeSchemasCommand = async (input, context) => {
481
- const headers = {
482
- "content-type": "application/x-amz-json-1.1",
483
- "x-amz-target": "AmazonDMSv20160101.DescribeSchemas",
484
- };
340
+ const headers = sharedHeaders("DescribeSchemas");
485
341
  let body;
486
342
  body = JSON.stringify(se_DescribeSchemasMessage(input, context));
487
343
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
488
344
  };
489
345
  exports.se_DescribeSchemasCommand = se_DescribeSchemasCommand;
490
346
  const se_DescribeTableStatisticsCommand = async (input, context) => {
491
- const headers = {
492
- "content-type": "application/x-amz-json-1.1",
493
- "x-amz-target": "AmazonDMSv20160101.DescribeTableStatistics",
494
- };
347
+ const headers = sharedHeaders("DescribeTableStatistics");
495
348
  let body;
496
349
  body = JSON.stringify(se_DescribeTableStatisticsMessage(input, context));
497
350
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
351
  };
499
352
  exports.se_DescribeTableStatisticsCommand = se_DescribeTableStatisticsCommand;
500
353
  const se_ImportCertificateCommand = async (input, context) => {
501
- const headers = {
502
- "content-type": "application/x-amz-json-1.1",
503
- "x-amz-target": "AmazonDMSv20160101.ImportCertificate",
504
- };
354
+ const headers = sharedHeaders("ImportCertificate");
505
355
  let body;
506
356
  body = JSON.stringify(se_ImportCertificateMessage(input, context));
507
357
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
508
358
  };
509
359
  exports.se_ImportCertificateCommand = se_ImportCertificateCommand;
510
360
  const se_ListTagsForResourceCommand = async (input, context) => {
511
- const headers = {
512
- "content-type": "application/x-amz-json-1.1",
513
- "x-amz-target": "AmazonDMSv20160101.ListTagsForResource",
514
- };
361
+ const headers = sharedHeaders("ListTagsForResource");
515
362
  let body;
516
363
  body = JSON.stringify(se_ListTagsForResourceMessage(input, context));
517
364
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
518
365
  };
519
366
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
520
367
  const se_ModifyEndpointCommand = async (input, context) => {
521
- const headers = {
522
- "content-type": "application/x-amz-json-1.1",
523
- "x-amz-target": "AmazonDMSv20160101.ModifyEndpoint",
524
- };
368
+ const headers = sharedHeaders("ModifyEndpoint");
525
369
  let body;
526
370
  body = JSON.stringify(se_ModifyEndpointMessage(input, context));
527
371
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
528
372
  };
529
373
  exports.se_ModifyEndpointCommand = se_ModifyEndpointCommand;
530
374
  const se_ModifyEventSubscriptionCommand = async (input, context) => {
531
- const headers = {
532
- "content-type": "application/x-amz-json-1.1",
533
- "x-amz-target": "AmazonDMSv20160101.ModifyEventSubscription",
534
- };
375
+ const headers = sharedHeaders("ModifyEventSubscription");
535
376
  let body;
536
377
  body = JSON.stringify(se_ModifyEventSubscriptionMessage(input, context));
537
378
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
538
379
  };
539
380
  exports.se_ModifyEventSubscriptionCommand = se_ModifyEventSubscriptionCommand;
540
381
  const se_ModifyReplicationInstanceCommand = async (input, context) => {
541
- const headers = {
542
- "content-type": "application/x-amz-json-1.1",
543
- "x-amz-target": "AmazonDMSv20160101.ModifyReplicationInstance",
544
- };
382
+ const headers = sharedHeaders("ModifyReplicationInstance");
545
383
  let body;
546
384
  body = JSON.stringify(se_ModifyReplicationInstanceMessage(input, context));
547
385
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
548
386
  };
549
387
  exports.se_ModifyReplicationInstanceCommand = se_ModifyReplicationInstanceCommand;
550
388
  const se_ModifyReplicationSubnetGroupCommand = async (input, context) => {
551
- const headers = {
552
- "content-type": "application/x-amz-json-1.1",
553
- "x-amz-target": "AmazonDMSv20160101.ModifyReplicationSubnetGroup",
554
- };
389
+ const headers = sharedHeaders("ModifyReplicationSubnetGroup");
555
390
  let body;
556
391
  body = JSON.stringify(se_ModifyReplicationSubnetGroupMessage(input, context));
557
392
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
558
393
  };
559
394
  exports.se_ModifyReplicationSubnetGroupCommand = se_ModifyReplicationSubnetGroupCommand;
560
395
  const se_ModifyReplicationTaskCommand = async (input, context) => {
561
- const headers = {
562
- "content-type": "application/x-amz-json-1.1",
563
- "x-amz-target": "AmazonDMSv20160101.ModifyReplicationTask",
564
- };
396
+ const headers = sharedHeaders("ModifyReplicationTask");
565
397
  let body;
566
398
  body = JSON.stringify(se_ModifyReplicationTaskMessage(input, context));
567
399
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
568
400
  };
569
401
  exports.se_ModifyReplicationTaskCommand = se_ModifyReplicationTaskCommand;
570
402
  const se_MoveReplicationTaskCommand = async (input, context) => {
571
- const headers = {
572
- "content-type": "application/x-amz-json-1.1",
573
- "x-amz-target": "AmazonDMSv20160101.MoveReplicationTask",
574
- };
403
+ const headers = sharedHeaders("MoveReplicationTask");
575
404
  let body;
576
405
  body = JSON.stringify(se_MoveReplicationTaskMessage(input, context));
577
406
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
578
407
  };
579
408
  exports.se_MoveReplicationTaskCommand = se_MoveReplicationTaskCommand;
580
409
  const se_RebootReplicationInstanceCommand = async (input, context) => {
581
- const headers = {
582
- "content-type": "application/x-amz-json-1.1",
583
- "x-amz-target": "AmazonDMSv20160101.RebootReplicationInstance",
584
- };
410
+ const headers = sharedHeaders("RebootReplicationInstance");
585
411
  let body;
586
412
  body = JSON.stringify(se_RebootReplicationInstanceMessage(input, context));
587
413
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
588
414
  };
589
415
  exports.se_RebootReplicationInstanceCommand = se_RebootReplicationInstanceCommand;
590
416
  const se_RefreshSchemasCommand = async (input, context) => {
591
- const headers = {
592
- "content-type": "application/x-amz-json-1.1",
593
- "x-amz-target": "AmazonDMSv20160101.RefreshSchemas",
594
- };
417
+ const headers = sharedHeaders("RefreshSchemas");
595
418
  let body;
596
419
  body = JSON.stringify(se_RefreshSchemasMessage(input, context));
597
420
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
598
421
  };
599
422
  exports.se_RefreshSchemasCommand = se_RefreshSchemasCommand;
600
423
  const se_ReloadTablesCommand = async (input, context) => {
601
- const headers = {
602
- "content-type": "application/x-amz-json-1.1",
603
- "x-amz-target": "AmazonDMSv20160101.ReloadTables",
604
- };
424
+ const headers = sharedHeaders("ReloadTables");
605
425
  let body;
606
426
  body = JSON.stringify(se_ReloadTablesMessage(input, context));
607
427
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
608
428
  };
609
429
  exports.se_ReloadTablesCommand = se_ReloadTablesCommand;
610
430
  const se_RemoveTagsFromResourceCommand = async (input, context) => {
611
- const headers = {
612
- "content-type": "application/x-amz-json-1.1",
613
- "x-amz-target": "AmazonDMSv20160101.RemoveTagsFromResource",
614
- };
431
+ const headers = sharedHeaders("RemoveTagsFromResource");
615
432
  let body;
616
433
  body = JSON.stringify(se_RemoveTagsFromResourceMessage(input, context));
617
434
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
618
435
  };
619
436
  exports.se_RemoveTagsFromResourceCommand = se_RemoveTagsFromResourceCommand;
620
437
  const se_RunFleetAdvisorLsaAnalysisCommand = async (input, context) => {
621
- const headers = {
622
- "content-type": "application/x-amz-json-1.1",
623
- "x-amz-target": "AmazonDMSv20160101.RunFleetAdvisorLsaAnalysis",
624
- };
438
+ const headers = sharedHeaders("RunFleetAdvisorLsaAnalysis");
625
439
  const body = "{}";
626
440
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
627
441
  };
628
442
  exports.se_RunFleetAdvisorLsaAnalysisCommand = se_RunFleetAdvisorLsaAnalysisCommand;
629
443
  const se_StartRecommendationsCommand = async (input, context) => {
630
- const headers = {
631
- "content-type": "application/x-amz-json-1.1",
632
- "x-amz-target": "AmazonDMSv20160101.StartRecommendations",
633
- };
444
+ const headers = sharedHeaders("StartRecommendations");
634
445
  let body;
635
446
  body = JSON.stringify(se_StartRecommendationsRequest(input, context));
636
447
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
637
448
  };
638
449
  exports.se_StartRecommendationsCommand = se_StartRecommendationsCommand;
639
450
  const se_StartReplicationTaskCommand = async (input, context) => {
640
- const headers = {
641
- "content-type": "application/x-amz-json-1.1",
642
- "x-amz-target": "AmazonDMSv20160101.StartReplicationTask",
643
- };
451
+ const headers = sharedHeaders("StartReplicationTask");
644
452
  let body;
645
453
  body = JSON.stringify(se_StartReplicationTaskMessage(input, context));
646
454
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
647
455
  };
648
456
  exports.se_StartReplicationTaskCommand = se_StartReplicationTaskCommand;
649
457
  const se_StartReplicationTaskAssessmentCommand = async (input, context) => {
650
- const headers = {
651
- "content-type": "application/x-amz-json-1.1",
652
- "x-amz-target": "AmazonDMSv20160101.StartReplicationTaskAssessment",
653
- };
458
+ const headers = sharedHeaders("StartReplicationTaskAssessment");
654
459
  let body;
655
460
  body = JSON.stringify(se_StartReplicationTaskAssessmentMessage(input, context));
656
461
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
657
462
  };
658
463
  exports.se_StartReplicationTaskAssessmentCommand = se_StartReplicationTaskAssessmentCommand;
659
464
  const se_StartReplicationTaskAssessmentRunCommand = async (input, context) => {
660
- const headers = {
661
- "content-type": "application/x-amz-json-1.1",
662
- "x-amz-target": "AmazonDMSv20160101.StartReplicationTaskAssessmentRun",
663
- };
465
+ const headers = sharedHeaders("StartReplicationTaskAssessmentRun");
664
466
  let body;
665
467
  body = JSON.stringify(se_StartReplicationTaskAssessmentRunMessage(input, context));
666
468
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
667
469
  };
668
470
  exports.se_StartReplicationTaskAssessmentRunCommand = se_StartReplicationTaskAssessmentRunCommand;
669
471
  const se_StopReplicationTaskCommand = async (input, context) => {
670
- const headers = {
671
- "content-type": "application/x-amz-json-1.1",
672
- "x-amz-target": "AmazonDMSv20160101.StopReplicationTask",
673
- };
472
+ const headers = sharedHeaders("StopReplicationTask");
674
473
  let body;
675
474
  body = JSON.stringify(se_StopReplicationTaskMessage(input, context));
676
475
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
677
476
  };
678
477
  exports.se_StopReplicationTaskCommand = se_StopReplicationTaskCommand;
679
478
  const se_TestConnectionCommand = async (input, context) => {
680
- const headers = {
681
- "content-type": "application/x-amz-json-1.1",
682
- "x-amz-target": "AmazonDMSv20160101.TestConnection",
683
- };
479
+ const headers = sharedHeaders("TestConnection");
684
480
  let body;
685
481
  body = JSON.stringify(se_TestConnectionMessage(input, context));
686
482
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
687
483
  };
688
484
  exports.se_TestConnectionCommand = se_TestConnectionCommand;
689
485
  const se_UpdateSubscriptionsToEventBridgeCommand = async (input, context) => {
690
- const headers = {
691
- "content-type": "application/x-amz-json-1.1",
692
- "x-amz-target": "AmazonDMSv20160101.UpdateSubscriptionsToEventBridge",
693
- };
486
+ const headers = sharedHeaders("UpdateSubscriptionsToEventBridge");
694
487
  let body;
695
488
  body = JSON.stringify(se_UpdateSubscriptionsToEventBridgeMessage(input, context));
696
489
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -6691,6 +6484,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
6691
6484
  }
6692
6485
  return new protocol_http_1.HttpRequest(contents);
6693
6486
  };
6487
+ function sharedHeaders(operation) {
6488
+ return {
6489
+ "content-type": "application/x-amz-json-1.1",
6490
+ "x-amz-target": `AmazonDMSv20160101.${operation}`,
6491
+ };
6492
+ }
6694
6493
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6695
6494
  if (encoded.length) {
6696
6495
  return JSON.parse(encoded);