@aws-sdk/client-mgn 3.476.0 → 3.477.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.
@@ -3,130 +3,95 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.se_RetryDataReplicationCommand = exports.se_ResumeReplicationCommand = exports.se_RemoveTemplateActionCommand = exports.se_RemoveSourceServerActionCommand = exports.se_PutTemplateActionCommand = exports.se_PutSourceServerActionCommand = exports.se_PauseReplicationCommand = exports.se_MarkAsArchivedCommand = exports.se_ListWavesCommand = exports.se_ListTemplateActionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSourceServerActionsCommand = exports.se_ListManagedAccountsCommand = exports.se_ListImportsCommand = exports.se_ListImportErrorsCommand = exports.se_ListExportsCommand = exports.se_ListExportErrorsCommand = exports.se_ListConnectorsCommand = exports.se_ListApplicationsCommand = exports.se_InitializeServiceCommand = exports.se_GetReplicationConfigurationCommand = exports.se_GetLaunchConfigurationCommand = exports.se_FinalizeCutoverCommand = exports.se_DisconnectFromServiceCommand = exports.se_DisassociateSourceServersCommand = exports.se_DisassociateApplicationsCommand = exports.se_DescribeVcenterClientsCommand = exports.se_DescribeSourceServersCommand = exports.se_DescribeReplicationConfigurationTemplatesCommand = exports.se_DescribeLaunchConfigurationTemplatesCommand = exports.se_DescribeJobsCommand = exports.se_DescribeJobLogItemsCommand = exports.se_DeleteWaveCommand = exports.se_DeleteVcenterClientCommand = exports.se_DeleteSourceServerCommand = exports.se_DeleteReplicationConfigurationTemplateCommand = exports.se_DeleteLaunchConfigurationTemplateCommand = exports.se_DeleteJobCommand = exports.se_DeleteConnectorCommand = exports.se_DeleteApplicationCommand = exports.se_CreateWaveCommand = exports.se_CreateReplicationConfigurationTemplateCommand = exports.se_CreateLaunchConfigurationTemplateCommand = exports.se_CreateConnectorCommand = exports.se_CreateApplicationCommand = exports.se_ChangeServerLifeCycleStateCommand = exports.se_AssociateSourceServersCommand = exports.se_AssociateApplicationsCommand = exports.se_ArchiveWaveCommand = exports.se_ArchiveApplicationCommand = void 0;
4
4
  exports.de_GetReplicationConfigurationCommand = exports.de_GetLaunchConfigurationCommand = exports.de_FinalizeCutoverCommand = exports.de_DisconnectFromServiceCommand = exports.de_DisassociateSourceServersCommand = exports.de_DisassociateApplicationsCommand = exports.de_DescribeVcenterClientsCommand = exports.de_DescribeSourceServersCommand = exports.de_DescribeReplicationConfigurationTemplatesCommand = exports.de_DescribeLaunchConfigurationTemplatesCommand = exports.de_DescribeJobsCommand = exports.de_DescribeJobLogItemsCommand = exports.de_DeleteWaveCommand = exports.de_DeleteVcenterClientCommand = exports.de_DeleteSourceServerCommand = exports.de_DeleteReplicationConfigurationTemplateCommand = exports.de_DeleteLaunchConfigurationTemplateCommand = exports.de_DeleteJobCommand = exports.de_DeleteConnectorCommand = exports.de_DeleteApplicationCommand = exports.de_CreateWaveCommand = exports.de_CreateReplicationConfigurationTemplateCommand = exports.de_CreateLaunchConfigurationTemplateCommand = exports.de_CreateConnectorCommand = exports.de_CreateApplicationCommand = exports.de_ChangeServerLifeCycleStateCommand = exports.de_AssociateSourceServersCommand = exports.de_AssociateApplicationsCommand = exports.de_ArchiveWaveCommand = exports.de_ArchiveApplicationCommand = exports.se_UpdateWaveCommand = exports.se_UpdateSourceServerReplicationTypeCommand = exports.se_UpdateSourceServerCommand = exports.se_UpdateReplicationConfigurationTemplateCommand = exports.se_UpdateReplicationConfigurationCommand = exports.se_UpdateLaunchConfigurationTemplateCommand = exports.se_UpdateLaunchConfigurationCommand = exports.se_UpdateConnectorCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_UnarchiveWaveCommand = exports.se_UnarchiveApplicationCommand = exports.se_TerminateTargetInstancesCommand = exports.se_TagResourceCommand = exports.se_StopReplicationCommand = exports.se_StartTestCommand = exports.se_StartReplicationCommand = exports.se_StartImportCommand = exports.se_StartExportCommand = exports.se_StartCutoverCommand = void 0;
5
5
  exports.de_UpdateWaveCommand = exports.de_UpdateSourceServerReplicationTypeCommand = exports.de_UpdateSourceServerCommand = exports.de_UpdateReplicationConfigurationTemplateCommand = exports.de_UpdateReplicationConfigurationCommand = exports.de_UpdateLaunchConfigurationTemplateCommand = exports.de_UpdateLaunchConfigurationCommand = exports.de_UpdateConnectorCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_UnarchiveWaveCommand = exports.de_UnarchiveApplicationCommand = exports.de_TerminateTargetInstancesCommand = exports.de_TagResourceCommand = exports.de_StopReplicationCommand = exports.de_StartTestCommand = exports.de_StartReplicationCommand = exports.de_StartImportCommand = exports.de_StartExportCommand = exports.de_StartCutoverCommand = exports.de_RetryDataReplicationCommand = exports.de_ResumeReplicationCommand = exports.de_RemoveTemplateActionCommand = exports.de_RemoveSourceServerActionCommand = exports.de_PutTemplateActionCommand = exports.de_PutSourceServerActionCommand = exports.de_PauseReplicationCommand = exports.de_MarkAsArchivedCommand = exports.de_ListWavesCommand = exports.de_ListTemplateActionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSourceServerActionsCommand = exports.de_ListManagedAccountsCommand = exports.de_ListImportsCommand = exports.de_ListImportErrorsCommand = exports.de_ListExportsCommand = exports.de_ListExportErrorsCommand = exports.de_ListConnectorsCommand = exports.de_ListApplicationsCommand = exports.de_InitializeServiceCommand = void 0;
6
- const protocol_http_1 = require("@smithy/protocol-http");
6
+ const core_1 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const uuid_1 = require("uuid");
9
9
  const MgnServiceException_1 = require("../models/MgnServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_ArchiveApplicationCommand = async (input, context) => {
12
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_1.requestBuilder)(input, context);
13
13
  const headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ArchiveApplication";
16
+ b.bp("/ArchiveApplication");
17
17
  let body;
18
18
  body = JSON.stringify((0, smithy_client_1.take)(input, {
19
19
  accountID: [],
20
20
  applicationID: [],
21
21
  }));
22
- return new protocol_http_1.HttpRequest({
23
- protocol,
24
- hostname,
25
- port,
26
- method: "POST",
27
- headers,
28
- path: resolvedPath,
29
- body,
30
- });
22
+ b.m("POST").h(headers).b(body);
23
+ return b.build();
31
24
  };
32
25
  exports.se_ArchiveApplicationCommand = se_ArchiveApplicationCommand;
33
26
  const se_ArchiveWaveCommand = async (input, context) => {
34
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = (0, core_1.requestBuilder)(input, context);
35
28
  const headers = {
36
29
  "content-type": "application/json",
37
30
  };
38
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ArchiveWave";
31
+ b.bp("/ArchiveWave");
39
32
  let body;
40
33
  body = JSON.stringify((0, smithy_client_1.take)(input, {
41
34
  accountID: [],
42
35
  waveID: [],
43
36
  }));
44
- return new protocol_http_1.HttpRequest({
45
- protocol,
46
- hostname,
47
- port,
48
- method: "POST",
49
- headers,
50
- path: resolvedPath,
51
- body,
52
- });
37
+ b.m("POST").h(headers).b(body);
38
+ return b.build();
53
39
  };
54
40
  exports.se_ArchiveWaveCommand = se_ArchiveWaveCommand;
55
41
  const se_AssociateApplicationsCommand = async (input, context) => {
56
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
42
+ const b = (0, core_1.requestBuilder)(input, context);
57
43
  const headers = {
58
44
  "content-type": "application/json",
59
45
  };
60
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateApplications";
46
+ b.bp("/AssociateApplications");
61
47
  let body;
62
48
  body = JSON.stringify((0, smithy_client_1.take)(input, {
63
49
  accountID: [],
64
50
  applicationIDs: (_) => (0, smithy_client_1._json)(_),
65
51
  waveID: [],
66
52
  }));
67
- return new protocol_http_1.HttpRequest({
68
- protocol,
69
- hostname,
70
- port,
71
- method: "POST",
72
- headers,
73
- path: resolvedPath,
74
- body,
75
- });
53
+ b.m("POST").h(headers).b(body);
54
+ return b.build();
76
55
  };
77
56
  exports.se_AssociateApplicationsCommand = se_AssociateApplicationsCommand;
78
57
  const se_AssociateSourceServersCommand = async (input, context) => {
79
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
58
+ const b = (0, core_1.requestBuilder)(input, context);
80
59
  const headers = {
81
60
  "content-type": "application/json",
82
61
  };
83
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateSourceServers";
62
+ b.bp("/AssociateSourceServers");
84
63
  let body;
85
64
  body = JSON.stringify((0, smithy_client_1.take)(input, {
86
65
  accountID: [],
87
66
  applicationID: [],
88
67
  sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
89
68
  }));
90
- return new protocol_http_1.HttpRequest({
91
- protocol,
92
- hostname,
93
- port,
94
- method: "POST",
95
- headers,
96
- path: resolvedPath,
97
- body,
98
- });
69
+ b.m("POST").h(headers).b(body);
70
+ return b.build();
99
71
  };
100
72
  exports.se_AssociateSourceServersCommand = se_AssociateSourceServersCommand;
101
73
  const se_ChangeServerLifeCycleStateCommand = async (input, context) => {
102
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
74
+ const b = (0, core_1.requestBuilder)(input, context);
103
75
  const headers = {
104
76
  "content-type": "application/json",
105
77
  };
106
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ChangeServerLifeCycleState";
78
+ b.bp("/ChangeServerLifeCycleState");
107
79
  let body;
108
80
  body = JSON.stringify((0, smithy_client_1.take)(input, {
109
81
  accountID: [],
110
82
  lifeCycle: (_) => (0, smithy_client_1._json)(_),
111
83
  sourceServerID: [],
112
84
  }));
113
- return new protocol_http_1.HttpRequest({
114
- protocol,
115
- hostname,
116
- port,
117
- method: "POST",
118
- headers,
119
- path: resolvedPath,
120
- body,
121
- });
85
+ b.m("POST").h(headers).b(body);
86
+ return b.build();
122
87
  };
123
88
  exports.se_ChangeServerLifeCycleStateCommand = se_ChangeServerLifeCycleStateCommand;
124
89
  const se_CreateApplicationCommand = async (input, context) => {
125
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
+ const b = (0, core_1.requestBuilder)(input, context);
126
91
  const headers = {
127
92
  "content-type": "application/json",
128
93
  };
129
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateApplication";
94
+ b.bp("/CreateApplication");
130
95
  let body;
131
96
  body = JSON.stringify((0, smithy_client_1.take)(input, {
132
97
  accountID: [],
@@ -134,23 +99,16 @@ const se_CreateApplicationCommand = async (input, context) => {
134
99
  name: [],
135
100
  tags: (_) => (0, smithy_client_1._json)(_),
136
101
  }));
137
- return new protocol_http_1.HttpRequest({
138
- protocol,
139
- hostname,
140
- port,
141
- method: "POST",
142
- headers,
143
- path: resolvedPath,
144
- body,
145
- });
102
+ b.m("POST").h(headers).b(body);
103
+ return b.build();
146
104
  };
147
105
  exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
148
106
  const se_CreateConnectorCommand = async (input, context) => {
149
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
+ const b = (0, core_1.requestBuilder)(input, context);
150
108
  const headers = {
151
109
  "content-type": "application/json",
152
110
  };
153
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateConnector";
111
+ b.bp("/CreateConnector");
154
112
  let body;
155
113
  body = JSON.stringify((0, smithy_client_1.take)(input, {
156
114
  name: [],
@@ -158,23 +116,16 @@ const se_CreateConnectorCommand = async (input, context) => {
158
116
  ssmInstanceID: [],
159
117
  tags: (_) => (0, smithy_client_1._json)(_),
160
118
  }));
161
- return new protocol_http_1.HttpRequest({
162
- protocol,
163
- hostname,
164
- port,
165
- method: "POST",
166
- headers,
167
- path: resolvedPath,
168
- body,
169
- });
119
+ b.m("POST").h(headers).b(body);
120
+ return b.build();
170
121
  };
171
122
  exports.se_CreateConnectorCommand = se_CreateConnectorCommand;
172
123
  const se_CreateLaunchConfigurationTemplateCommand = async (input, context) => {
173
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
124
+ const b = (0, core_1.requestBuilder)(input, context);
174
125
  const headers = {
175
126
  "content-type": "application/json",
176
127
  };
177
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLaunchConfigurationTemplate";
128
+ b.bp("/CreateLaunchConfigurationTemplate");
178
129
  let body;
179
130
  body = JSON.stringify((0, smithy_client_1.take)(input, {
180
131
  associatePublicIpAddress: [],
@@ -192,23 +143,16 @@ const se_CreateLaunchConfigurationTemplateCommand = async (input, context) => {
192
143
  tags: (_) => (0, smithy_client_1._json)(_),
193
144
  targetInstanceTypeRightSizingMethod: [],
194
145
  }));
195
- return new protocol_http_1.HttpRequest({
196
- protocol,
197
- hostname,
198
- port,
199
- method: "POST",
200
- headers,
201
- path: resolvedPath,
202
- body,
203
- });
146
+ b.m("POST").h(headers).b(body);
147
+ return b.build();
204
148
  };
205
149
  exports.se_CreateLaunchConfigurationTemplateCommand = se_CreateLaunchConfigurationTemplateCommand;
206
150
  const se_CreateReplicationConfigurationTemplateCommand = async (input, context) => {
207
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
151
+ const b = (0, core_1.requestBuilder)(input, context);
208
152
  const headers = {
209
153
  "content-type": "application/json",
210
154
  };
211
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateReplicationConfigurationTemplate";
155
+ b.bp("/CreateReplicationConfigurationTemplate");
212
156
  let body;
213
157
  body = JSON.stringify((0, smithy_client_1.take)(input, {
214
158
  associateDefaultSecurityGroup: [],
@@ -226,23 +170,16 @@ const se_CreateReplicationConfigurationTemplateCommand = async (input, context)
226
170
  useDedicatedReplicationServer: [],
227
171
  useFipsEndpoint: [],
228
172
  }));
229
- return new protocol_http_1.HttpRequest({
230
- protocol,
231
- hostname,
232
- port,
233
- method: "POST",
234
- headers,
235
- path: resolvedPath,
236
- body,
237
- });
173
+ b.m("POST").h(headers).b(body);
174
+ return b.build();
238
175
  };
239
176
  exports.se_CreateReplicationConfigurationTemplateCommand = se_CreateReplicationConfigurationTemplateCommand;
240
177
  const se_CreateWaveCommand = async (input, context) => {
241
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
178
+ const b = (0, core_1.requestBuilder)(input, context);
242
179
  const headers = {
243
180
  "content-type": "application/json",
244
181
  };
245
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateWave";
182
+ b.bp("/CreateWave");
246
183
  let body;
247
184
  body = JSON.stringify((0, smithy_client_1.take)(input, {
248
185
  accountID: [],
@@ -250,195 +187,132 @@ const se_CreateWaveCommand = async (input, context) => {
250
187
  name: [],
251
188
  tags: (_) => (0, smithy_client_1._json)(_),
252
189
  }));
253
- return new protocol_http_1.HttpRequest({
254
- protocol,
255
- hostname,
256
- port,
257
- method: "POST",
258
- headers,
259
- path: resolvedPath,
260
- body,
261
- });
190
+ b.m("POST").h(headers).b(body);
191
+ return b.build();
262
192
  };
263
193
  exports.se_CreateWaveCommand = se_CreateWaveCommand;
264
194
  const se_DeleteApplicationCommand = async (input, context) => {
265
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
195
+ const b = (0, core_1.requestBuilder)(input, context);
266
196
  const headers = {
267
197
  "content-type": "application/json",
268
198
  };
269
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteApplication";
199
+ b.bp("/DeleteApplication");
270
200
  let body;
271
201
  body = JSON.stringify((0, smithy_client_1.take)(input, {
272
202
  accountID: [],
273
203
  applicationID: [],
274
204
  }));
275
- return new protocol_http_1.HttpRequest({
276
- protocol,
277
- hostname,
278
- port,
279
- method: "POST",
280
- headers,
281
- path: resolvedPath,
282
- body,
283
- });
205
+ b.m("POST").h(headers).b(body);
206
+ return b.build();
284
207
  };
285
208
  exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
286
209
  const se_DeleteConnectorCommand = async (input, context) => {
287
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
210
+ const b = (0, core_1.requestBuilder)(input, context);
288
211
  const headers = {
289
212
  "content-type": "application/json",
290
213
  };
291
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteConnector";
214
+ b.bp("/DeleteConnector");
292
215
  let body;
293
216
  body = JSON.stringify((0, smithy_client_1.take)(input, {
294
217
  connectorID: [],
295
218
  }));
296
- return new protocol_http_1.HttpRequest({
297
- protocol,
298
- hostname,
299
- port,
300
- method: "POST",
301
- headers,
302
- path: resolvedPath,
303
- body,
304
- });
219
+ b.m("POST").h(headers).b(body);
220
+ return b.build();
305
221
  };
306
222
  exports.se_DeleteConnectorCommand = se_DeleteConnectorCommand;
307
223
  const se_DeleteJobCommand = async (input, context) => {
308
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
+ const b = (0, core_1.requestBuilder)(input, context);
309
225
  const headers = {
310
226
  "content-type": "application/json",
311
227
  };
312
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteJob";
228
+ b.bp("/DeleteJob");
313
229
  let body;
314
230
  body = JSON.stringify((0, smithy_client_1.take)(input, {
315
231
  accountID: [],
316
232
  jobID: [],
317
233
  }));
318
- return new protocol_http_1.HttpRequest({
319
- protocol,
320
- hostname,
321
- port,
322
- method: "POST",
323
- headers,
324
- path: resolvedPath,
325
- body,
326
- });
234
+ b.m("POST").h(headers).b(body);
235
+ return b.build();
327
236
  };
328
237
  exports.se_DeleteJobCommand = se_DeleteJobCommand;
329
238
  const se_DeleteLaunchConfigurationTemplateCommand = async (input, context) => {
330
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
239
+ const b = (0, core_1.requestBuilder)(input, context);
331
240
  const headers = {
332
241
  "content-type": "application/json",
333
242
  };
334
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLaunchConfigurationTemplate";
243
+ b.bp("/DeleteLaunchConfigurationTemplate");
335
244
  let body;
336
245
  body = JSON.stringify((0, smithy_client_1.take)(input, {
337
246
  launchConfigurationTemplateID: [],
338
247
  }));
339
- return new protocol_http_1.HttpRequest({
340
- protocol,
341
- hostname,
342
- port,
343
- method: "POST",
344
- headers,
345
- path: resolvedPath,
346
- body,
347
- });
248
+ b.m("POST").h(headers).b(body);
249
+ return b.build();
348
250
  };
349
251
  exports.se_DeleteLaunchConfigurationTemplateCommand = se_DeleteLaunchConfigurationTemplateCommand;
350
252
  const se_DeleteReplicationConfigurationTemplateCommand = async (input, context) => {
351
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = (0, core_1.requestBuilder)(input, context);
352
254
  const headers = {
353
255
  "content-type": "application/json",
354
256
  };
355
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteReplicationConfigurationTemplate";
257
+ b.bp("/DeleteReplicationConfigurationTemplate");
356
258
  let body;
357
259
  body = JSON.stringify((0, smithy_client_1.take)(input, {
358
260
  replicationConfigurationTemplateID: [],
359
261
  }));
360
- return new protocol_http_1.HttpRequest({
361
- protocol,
362
- hostname,
363
- port,
364
- method: "POST",
365
- headers,
366
- path: resolvedPath,
367
- body,
368
- });
262
+ b.m("POST").h(headers).b(body);
263
+ return b.build();
369
264
  };
370
265
  exports.se_DeleteReplicationConfigurationTemplateCommand = se_DeleteReplicationConfigurationTemplateCommand;
371
266
  const se_DeleteSourceServerCommand = async (input, context) => {
372
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
+ const b = (0, core_1.requestBuilder)(input, context);
373
268
  const headers = {
374
269
  "content-type": "application/json",
375
270
  };
376
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSourceServer";
271
+ b.bp("/DeleteSourceServer");
377
272
  let body;
378
273
  body = JSON.stringify((0, smithy_client_1.take)(input, {
379
274
  accountID: [],
380
275
  sourceServerID: [],
381
276
  }));
382
- return new protocol_http_1.HttpRequest({
383
- protocol,
384
- hostname,
385
- port,
386
- method: "POST",
387
- headers,
388
- path: resolvedPath,
389
- body,
390
- });
277
+ b.m("POST").h(headers).b(body);
278
+ return b.build();
391
279
  };
392
280
  exports.se_DeleteSourceServerCommand = se_DeleteSourceServerCommand;
393
281
  const se_DeleteVcenterClientCommand = async (input, context) => {
394
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
282
+ const b = (0, core_1.requestBuilder)(input, context);
395
283
  const headers = {
396
284
  "content-type": "application/json",
397
285
  };
398
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteVcenterClient";
286
+ b.bp("/DeleteVcenterClient");
399
287
  let body;
400
288
  body = JSON.stringify((0, smithy_client_1.take)(input, {
401
289
  vcenterClientID: [],
402
290
  }));
403
- return new protocol_http_1.HttpRequest({
404
- protocol,
405
- hostname,
406
- port,
407
- method: "POST",
408
- headers,
409
- path: resolvedPath,
410
- body,
411
- });
291
+ b.m("POST").h(headers).b(body);
292
+ return b.build();
412
293
  };
413
294
  exports.se_DeleteVcenterClientCommand = se_DeleteVcenterClientCommand;
414
295
  const se_DeleteWaveCommand = async (input, context) => {
415
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
296
+ const b = (0, core_1.requestBuilder)(input, context);
416
297
  const headers = {
417
298
  "content-type": "application/json",
418
299
  };
419
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteWave";
300
+ b.bp("/DeleteWave");
420
301
  let body;
421
302
  body = JSON.stringify((0, smithy_client_1.take)(input, {
422
303
  accountID: [],
423
304
  waveID: [],
424
305
  }));
425
- return new protocol_http_1.HttpRequest({
426
- protocol,
427
- hostname,
428
- port,
429
- method: "POST",
430
- headers,
431
- path: resolvedPath,
432
- body,
433
- });
306
+ b.m("POST").h(headers).b(body);
307
+ return b.build();
434
308
  };
435
309
  exports.se_DeleteWaveCommand = se_DeleteWaveCommand;
436
310
  const se_DescribeJobLogItemsCommand = async (input, context) => {
437
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
311
+ const b = (0, core_1.requestBuilder)(input, context);
438
312
  const headers = {
439
313
  "content-type": "application/json",
440
314
  };
441
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobLogItems";
315
+ b.bp("/DescribeJobLogItems");
442
316
  let body;
443
317
  body = JSON.stringify((0, smithy_client_1.take)(input, {
444
318
  accountID: [],
@@ -446,23 +320,16 @@ const se_DescribeJobLogItemsCommand = async (input, context) => {
446
320
  maxResults: [],
447
321
  nextToken: [],
448
322
  }));
449
- return new protocol_http_1.HttpRequest({
450
- protocol,
451
- hostname,
452
- port,
453
- method: "POST",
454
- headers,
455
- path: resolvedPath,
456
- body,
457
- });
323
+ b.m("POST").h(headers).b(body);
324
+ return b.build();
458
325
  };
459
326
  exports.se_DescribeJobLogItemsCommand = se_DescribeJobLogItemsCommand;
460
327
  const se_DescribeJobsCommand = async (input, context) => {
461
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
328
+ const b = (0, core_1.requestBuilder)(input, context);
462
329
  const headers = {
463
330
  "content-type": "application/json",
464
331
  };
465
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobs";
332
+ b.bp("/DescribeJobs");
466
333
  let body;
467
334
  body = JSON.stringify((0, smithy_client_1.take)(input, {
468
335
  accountID: [],
@@ -470,70 +337,48 @@ const se_DescribeJobsCommand = async (input, context) => {
470
337
  maxResults: [],
471
338
  nextToken: [],
472
339
  }));
473
- return new protocol_http_1.HttpRequest({
474
- protocol,
475
- hostname,
476
- port,
477
- method: "POST",
478
- headers,
479
- path: resolvedPath,
480
- body,
481
- });
340
+ b.m("POST").h(headers).b(body);
341
+ return b.build();
482
342
  };
483
343
  exports.se_DescribeJobsCommand = se_DescribeJobsCommand;
484
344
  const se_DescribeLaunchConfigurationTemplatesCommand = async (input, context) => {
485
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
345
+ const b = (0, core_1.requestBuilder)(input, context);
486
346
  const headers = {
487
347
  "content-type": "application/json",
488
348
  };
489
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeLaunchConfigurationTemplates";
349
+ b.bp("/DescribeLaunchConfigurationTemplates");
490
350
  let body;
491
351
  body = JSON.stringify((0, smithy_client_1.take)(input, {
492
352
  launchConfigurationTemplateIDs: (_) => (0, smithy_client_1._json)(_),
493
353
  maxResults: [],
494
354
  nextToken: [],
495
355
  }));
496
- return new protocol_http_1.HttpRequest({
497
- protocol,
498
- hostname,
499
- port,
500
- method: "POST",
501
- headers,
502
- path: resolvedPath,
503
- body,
504
- });
356
+ b.m("POST").h(headers).b(body);
357
+ return b.build();
505
358
  };
506
359
  exports.se_DescribeLaunchConfigurationTemplatesCommand = se_DescribeLaunchConfigurationTemplatesCommand;
507
360
  const se_DescribeReplicationConfigurationTemplatesCommand = async (input, context) => {
508
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
361
+ const b = (0, core_1.requestBuilder)(input, context);
509
362
  const headers = {
510
363
  "content-type": "application/json",
511
364
  };
512
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
513
- "/DescribeReplicationConfigurationTemplates";
365
+ b.bp("/DescribeReplicationConfigurationTemplates");
514
366
  let body;
515
367
  body = JSON.stringify((0, smithy_client_1.take)(input, {
516
368
  maxResults: [],
517
369
  nextToken: [],
518
370
  replicationConfigurationTemplateIDs: (_) => (0, smithy_client_1._json)(_),
519
371
  }));
520
- return new protocol_http_1.HttpRequest({
521
- protocol,
522
- hostname,
523
- port,
524
- method: "POST",
525
- headers,
526
- path: resolvedPath,
527
- body,
528
- });
372
+ b.m("POST").h(headers).b(body);
373
+ return b.build();
529
374
  };
530
375
  exports.se_DescribeReplicationConfigurationTemplatesCommand = se_DescribeReplicationConfigurationTemplatesCommand;
531
376
  const se_DescribeSourceServersCommand = async (input, context) => {
532
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
377
+ const b = (0, core_1.requestBuilder)(input, context);
533
378
  const headers = {
534
379
  "content-type": "application/json",
535
380
  };
536
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSourceServers";
381
+ b.bp("/DescribeSourceServers");
537
382
  let body;
538
383
  body = JSON.stringify((0, smithy_client_1.take)(input, {
539
384
  accountID: [],
@@ -541,197 +386,133 @@ const se_DescribeSourceServersCommand = async (input, context) => {
541
386
  maxResults: [],
542
387
  nextToken: [],
543
388
  }));
544
- return new protocol_http_1.HttpRequest({
545
- protocol,
546
- hostname,
547
- port,
548
- method: "POST",
549
- headers,
550
- path: resolvedPath,
551
- body,
552
- });
389
+ b.m("POST").h(headers).b(body);
390
+ return b.build();
553
391
  };
554
392
  exports.se_DescribeSourceServersCommand = se_DescribeSourceServersCommand;
555
393
  const se_DescribeVcenterClientsCommand = async (input, context) => {
556
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
394
+ const b = (0, core_1.requestBuilder)(input, context);
557
395
  const headers = {};
558
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeVcenterClients";
396
+ b.bp("/DescribeVcenterClients");
559
397
  const query = (0, smithy_client_1.map)({
560
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
561
- nextToken: [, input.nextToken],
398
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
399
+ [_nT]: [, input[_nT]],
562
400
  });
563
401
  let body;
564
- return new protocol_http_1.HttpRequest({
565
- protocol,
566
- hostname,
567
- port,
568
- method: "GET",
569
- headers,
570
- path: resolvedPath,
571
- query,
572
- body,
573
- });
402
+ b.m("GET").h(headers).q(query).b(body);
403
+ return b.build();
574
404
  };
575
405
  exports.se_DescribeVcenterClientsCommand = se_DescribeVcenterClientsCommand;
576
406
  const se_DisassociateApplicationsCommand = async (input, context) => {
577
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
407
+ const b = (0, core_1.requestBuilder)(input, context);
578
408
  const headers = {
579
409
  "content-type": "application/json",
580
410
  };
581
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisassociateApplications";
411
+ b.bp("/DisassociateApplications");
582
412
  let body;
583
413
  body = JSON.stringify((0, smithy_client_1.take)(input, {
584
414
  accountID: [],
585
415
  applicationIDs: (_) => (0, smithy_client_1._json)(_),
586
416
  waveID: [],
587
417
  }));
588
- return new protocol_http_1.HttpRequest({
589
- protocol,
590
- hostname,
591
- port,
592
- method: "POST",
593
- headers,
594
- path: resolvedPath,
595
- body,
596
- });
418
+ b.m("POST").h(headers).b(body);
419
+ return b.build();
597
420
  };
598
421
  exports.se_DisassociateApplicationsCommand = se_DisassociateApplicationsCommand;
599
422
  const se_DisassociateSourceServersCommand = async (input, context) => {
600
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
423
+ const b = (0, core_1.requestBuilder)(input, context);
601
424
  const headers = {
602
425
  "content-type": "application/json",
603
426
  };
604
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisassociateSourceServers";
427
+ b.bp("/DisassociateSourceServers");
605
428
  let body;
606
429
  body = JSON.stringify((0, smithy_client_1.take)(input, {
607
430
  accountID: [],
608
431
  applicationID: [],
609
432
  sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
610
433
  }));
611
- return new protocol_http_1.HttpRequest({
612
- protocol,
613
- hostname,
614
- port,
615
- method: "POST",
616
- headers,
617
- path: resolvedPath,
618
- body,
619
- });
434
+ b.m("POST").h(headers).b(body);
435
+ return b.build();
620
436
  };
621
437
  exports.se_DisassociateSourceServersCommand = se_DisassociateSourceServersCommand;
622
438
  const se_DisconnectFromServiceCommand = async (input, context) => {
623
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
439
+ const b = (0, core_1.requestBuilder)(input, context);
624
440
  const headers = {
625
441
  "content-type": "application/json",
626
442
  };
627
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectFromService";
443
+ b.bp("/DisconnectFromService");
628
444
  let body;
629
445
  body = JSON.stringify((0, smithy_client_1.take)(input, {
630
446
  accountID: [],
631
447
  sourceServerID: [],
632
448
  }));
633
- return new protocol_http_1.HttpRequest({
634
- protocol,
635
- hostname,
636
- port,
637
- method: "POST",
638
- headers,
639
- path: resolvedPath,
640
- body,
641
- });
449
+ b.m("POST").h(headers).b(body);
450
+ return b.build();
642
451
  };
643
452
  exports.se_DisconnectFromServiceCommand = se_DisconnectFromServiceCommand;
644
453
  const se_FinalizeCutoverCommand = async (input, context) => {
645
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
454
+ const b = (0, core_1.requestBuilder)(input, context);
646
455
  const headers = {
647
456
  "content-type": "application/json",
648
457
  };
649
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/FinalizeCutover";
458
+ b.bp("/FinalizeCutover");
650
459
  let body;
651
460
  body = JSON.stringify((0, smithy_client_1.take)(input, {
652
461
  accountID: [],
653
462
  sourceServerID: [],
654
463
  }));
655
- return new protocol_http_1.HttpRequest({
656
- protocol,
657
- hostname,
658
- port,
659
- method: "POST",
660
- headers,
661
- path: resolvedPath,
662
- body,
663
- });
464
+ b.m("POST").h(headers).b(body);
465
+ return b.build();
664
466
  };
665
467
  exports.se_FinalizeCutoverCommand = se_FinalizeCutoverCommand;
666
468
  const se_GetLaunchConfigurationCommand = async (input, context) => {
667
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
469
+ const b = (0, core_1.requestBuilder)(input, context);
668
470
  const headers = {
669
471
  "content-type": "application/json",
670
472
  };
671
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLaunchConfiguration";
473
+ b.bp("/GetLaunchConfiguration");
672
474
  let body;
673
475
  body = JSON.stringify((0, smithy_client_1.take)(input, {
674
476
  accountID: [],
675
477
  sourceServerID: [],
676
478
  }));
677
- return new protocol_http_1.HttpRequest({
678
- protocol,
679
- hostname,
680
- port,
681
- method: "POST",
682
- headers,
683
- path: resolvedPath,
684
- body,
685
- });
479
+ b.m("POST").h(headers).b(body);
480
+ return b.build();
686
481
  };
687
482
  exports.se_GetLaunchConfigurationCommand = se_GetLaunchConfigurationCommand;
688
483
  const se_GetReplicationConfigurationCommand = async (input, context) => {
689
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
484
+ const b = (0, core_1.requestBuilder)(input, context);
690
485
  const headers = {
691
486
  "content-type": "application/json",
692
487
  };
693
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetReplicationConfiguration";
488
+ b.bp("/GetReplicationConfiguration");
694
489
  let body;
695
490
  body = JSON.stringify((0, smithy_client_1.take)(input, {
696
491
  accountID: [],
697
492
  sourceServerID: [],
698
493
  }));
699
- return new protocol_http_1.HttpRequest({
700
- protocol,
701
- hostname,
702
- port,
703
- method: "POST",
704
- headers,
705
- path: resolvedPath,
706
- body,
707
- });
494
+ b.m("POST").h(headers).b(body);
495
+ return b.build();
708
496
  };
709
497
  exports.se_GetReplicationConfigurationCommand = se_GetReplicationConfigurationCommand;
710
498
  const se_InitializeServiceCommand = async (input, context) => {
711
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
499
+ const b = (0, core_1.requestBuilder)(input, context);
712
500
  const headers = {
713
501
  "content-type": "application/json",
714
502
  };
715
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/InitializeService";
503
+ b.bp("/InitializeService");
716
504
  let body;
717
505
  body = "";
718
- return new protocol_http_1.HttpRequest({
719
- protocol,
720
- hostname,
721
- port,
722
- method: "POST",
723
- headers,
724
- path: resolvedPath,
725
- body,
726
- });
506
+ b.m("POST").h(headers).b(body);
507
+ return b.build();
727
508
  };
728
509
  exports.se_InitializeServiceCommand = se_InitializeServiceCommand;
729
510
  const se_ListApplicationsCommand = async (input, context) => {
730
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
511
+ const b = (0, core_1.requestBuilder)(input, context);
731
512
  const headers = {
732
513
  "content-type": "application/json",
733
514
  };
734
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListApplications";
515
+ b.bp("/ListApplications");
735
516
  let body;
736
517
  body = JSON.stringify((0, smithy_client_1.take)(input, {
737
518
  accountID: [],
@@ -739,160 +520,111 @@ const se_ListApplicationsCommand = async (input, context) => {
739
520
  maxResults: [],
740
521
  nextToken: [],
741
522
  }));
742
- return new protocol_http_1.HttpRequest({
743
- protocol,
744
- hostname,
745
- port,
746
- method: "POST",
747
- headers,
748
- path: resolvedPath,
749
- body,
750
- });
523
+ b.m("POST").h(headers).b(body);
524
+ return b.build();
751
525
  };
752
526
  exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
753
527
  const se_ListConnectorsCommand = async (input, context) => {
754
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
528
+ const b = (0, core_1.requestBuilder)(input, context);
755
529
  const headers = {
756
530
  "content-type": "application/json",
757
531
  };
758
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListConnectors";
532
+ b.bp("/ListConnectors");
759
533
  let body;
760
534
  body = JSON.stringify((0, smithy_client_1.take)(input, {
761
535
  filters: (_) => (0, smithy_client_1._json)(_),
762
536
  maxResults: [],
763
537
  nextToken: [],
764
538
  }));
765
- return new protocol_http_1.HttpRequest({
766
- protocol,
767
- hostname,
768
- port,
769
- method: "POST",
770
- headers,
771
- path: resolvedPath,
772
- body,
773
- });
539
+ b.m("POST").h(headers).b(body);
540
+ return b.build();
774
541
  };
775
542
  exports.se_ListConnectorsCommand = se_ListConnectorsCommand;
776
543
  const se_ListExportErrorsCommand = async (input, context) => {
777
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
544
+ const b = (0, core_1.requestBuilder)(input, context);
778
545
  const headers = {
779
546
  "content-type": "application/json",
780
547
  };
781
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListExportErrors";
548
+ b.bp("/ListExportErrors");
782
549
  let body;
783
550
  body = JSON.stringify((0, smithy_client_1.take)(input, {
784
551
  exportID: [],
785
552
  maxResults: [],
786
553
  nextToken: [],
787
554
  }));
788
- return new protocol_http_1.HttpRequest({
789
- protocol,
790
- hostname,
791
- port,
792
- method: "POST",
793
- headers,
794
- path: resolvedPath,
795
- body,
796
- });
555
+ b.m("POST").h(headers).b(body);
556
+ return b.build();
797
557
  };
798
558
  exports.se_ListExportErrorsCommand = se_ListExportErrorsCommand;
799
559
  const se_ListExportsCommand = async (input, context) => {
800
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
560
+ const b = (0, core_1.requestBuilder)(input, context);
801
561
  const headers = {
802
562
  "content-type": "application/json",
803
563
  };
804
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListExports";
564
+ b.bp("/ListExports");
805
565
  let body;
806
566
  body = JSON.stringify((0, smithy_client_1.take)(input, {
807
567
  filters: (_) => (0, smithy_client_1._json)(_),
808
568
  maxResults: [],
809
569
  nextToken: [],
810
570
  }));
811
- return new protocol_http_1.HttpRequest({
812
- protocol,
813
- hostname,
814
- port,
815
- method: "POST",
816
- headers,
817
- path: resolvedPath,
818
- body,
819
- });
571
+ b.m("POST").h(headers).b(body);
572
+ return b.build();
820
573
  };
821
574
  exports.se_ListExportsCommand = se_ListExportsCommand;
822
575
  const se_ListImportErrorsCommand = async (input, context) => {
823
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
576
+ const b = (0, core_1.requestBuilder)(input, context);
824
577
  const headers = {
825
578
  "content-type": "application/json",
826
579
  };
827
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImportErrors";
580
+ b.bp("/ListImportErrors");
828
581
  let body;
829
582
  body = JSON.stringify((0, smithy_client_1.take)(input, {
830
583
  importID: [],
831
584
  maxResults: [],
832
585
  nextToken: [],
833
586
  }));
834
- return new protocol_http_1.HttpRequest({
835
- protocol,
836
- hostname,
837
- port,
838
- method: "POST",
839
- headers,
840
- path: resolvedPath,
841
- body,
842
- });
587
+ b.m("POST").h(headers).b(body);
588
+ return b.build();
843
589
  };
844
590
  exports.se_ListImportErrorsCommand = se_ListImportErrorsCommand;
845
591
  const se_ListImportsCommand = async (input, context) => {
846
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
592
+ const b = (0, core_1.requestBuilder)(input, context);
847
593
  const headers = {
848
594
  "content-type": "application/json",
849
595
  };
850
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImports";
596
+ b.bp("/ListImports");
851
597
  let body;
852
598
  body = JSON.stringify((0, smithy_client_1.take)(input, {
853
599
  filters: (_) => (0, smithy_client_1._json)(_),
854
600
  maxResults: [],
855
601
  nextToken: [],
856
602
  }));
857
- return new protocol_http_1.HttpRequest({
858
- protocol,
859
- hostname,
860
- port,
861
- method: "POST",
862
- headers,
863
- path: resolvedPath,
864
- body,
865
- });
603
+ b.m("POST").h(headers).b(body);
604
+ return b.build();
866
605
  };
867
606
  exports.se_ListImportsCommand = se_ListImportsCommand;
868
607
  const se_ListManagedAccountsCommand = async (input, context) => {
869
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
608
+ const b = (0, core_1.requestBuilder)(input, context);
870
609
  const headers = {
871
610
  "content-type": "application/json",
872
611
  };
873
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListManagedAccounts";
612
+ b.bp("/ListManagedAccounts");
874
613
  let body;
875
614
  body = JSON.stringify((0, smithy_client_1.take)(input, {
876
615
  maxResults: [],
877
616
  nextToken: [],
878
617
  }));
879
- return new protocol_http_1.HttpRequest({
880
- protocol,
881
- hostname,
882
- port,
883
- method: "POST",
884
- headers,
885
- path: resolvedPath,
886
- body,
887
- });
618
+ b.m("POST").h(headers).b(body);
619
+ return b.build();
888
620
  };
889
621
  exports.se_ListManagedAccountsCommand = se_ListManagedAccountsCommand;
890
622
  const se_ListSourceServerActionsCommand = async (input, context) => {
891
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
623
+ const b = (0, core_1.requestBuilder)(input, context);
892
624
  const headers = {
893
625
  "content-type": "application/json",
894
626
  };
895
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListSourceServerActions";
627
+ b.bp("/ListSourceServerActions");
896
628
  let body;
897
629
  body = JSON.stringify((0, smithy_client_1.take)(input, {
898
630
  accountID: [],
@@ -901,40 +633,26 @@ const se_ListSourceServerActionsCommand = async (input, context) => {
901
633
  nextToken: [],
902
634
  sourceServerID: [],
903
635
  }));
904
- return new protocol_http_1.HttpRequest({
905
- protocol,
906
- hostname,
907
- port,
908
- method: "POST",
909
- headers,
910
- path: resolvedPath,
911
- body,
912
- });
636
+ b.m("POST").h(headers).b(body);
637
+ return b.build();
913
638
  };
914
639
  exports.se_ListSourceServerActionsCommand = se_ListSourceServerActionsCommand;
915
640
  const se_ListTagsForResourceCommand = async (input, context) => {
916
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
641
+ const b = (0, core_1.requestBuilder)(input, context);
917
642
  const headers = {};
918
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
919
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
643
+ b.bp("/tags/{resourceArn}");
644
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
920
645
  let body;
921
- return new protocol_http_1.HttpRequest({
922
- protocol,
923
- hostname,
924
- port,
925
- method: "GET",
926
- headers,
927
- path: resolvedPath,
928
- body,
929
- });
646
+ b.m("GET").h(headers).b(body);
647
+ return b.build();
930
648
  };
931
649
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
932
650
  const se_ListTemplateActionsCommand = async (input, context) => {
933
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
651
+ const b = (0, core_1.requestBuilder)(input, context);
934
652
  const headers = {
935
653
  "content-type": "application/json",
936
654
  };
937
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTemplateActions";
655
+ b.bp("/ListTemplateActions");
938
656
  let body;
939
657
  body = JSON.stringify((0, smithy_client_1.take)(input, {
940
658
  filters: (_) => (0, smithy_client_1._json)(_),
@@ -942,23 +660,16 @@ const se_ListTemplateActionsCommand = async (input, context) => {
942
660
  maxResults: [],
943
661
  nextToken: [],
944
662
  }));
945
- return new protocol_http_1.HttpRequest({
946
- protocol,
947
- hostname,
948
- port,
949
- method: "POST",
950
- headers,
951
- path: resolvedPath,
952
- body,
953
- });
663
+ b.m("POST").h(headers).b(body);
664
+ return b.build();
954
665
  };
955
666
  exports.se_ListTemplateActionsCommand = se_ListTemplateActionsCommand;
956
667
  const se_ListWavesCommand = async (input, context) => {
957
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
668
+ const b = (0, core_1.requestBuilder)(input, context);
958
669
  const headers = {
959
670
  "content-type": "application/json",
960
671
  };
961
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWaves";
672
+ b.bp("/ListWaves");
962
673
  let body;
963
674
  body = JSON.stringify((0, smithy_client_1.take)(input, {
964
675
  accountID: [],
@@ -966,67 +677,46 @@ const se_ListWavesCommand = async (input, context) => {
966
677
  maxResults: [],
967
678
  nextToken: [],
968
679
  }));
969
- return new protocol_http_1.HttpRequest({
970
- protocol,
971
- hostname,
972
- port,
973
- method: "POST",
974
- headers,
975
- path: resolvedPath,
976
- body,
977
- });
680
+ b.m("POST").h(headers).b(body);
681
+ return b.build();
978
682
  };
979
683
  exports.se_ListWavesCommand = se_ListWavesCommand;
980
684
  const se_MarkAsArchivedCommand = async (input, context) => {
981
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
685
+ const b = (0, core_1.requestBuilder)(input, context);
982
686
  const headers = {
983
687
  "content-type": "application/json",
984
688
  };
985
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MarkAsArchived";
689
+ b.bp("/MarkAsArchived");
986
690
  let body;
987
691
  body = JSON.stringify((0, smithy_client_1.take)(input, {
988
692
  accountID: [],
989
693
  sourceServerID: [],
990
694
  }));
991
- return new protocol_http_1.HttpRequest({
992
- protocol,
993
- hostname,
994
- port,
995
- method: "POST",
996
- headers,
997
- path: resolvedPath,
998
- body,
999
- });
695
+ b.m("POST").h(headers).b(body);
696
+ return b.build();
1000
697
  };
1001
698
  exports.se_MarkAsArchivedCommand = se_MarkAsArchivedCommand;
1002
699
  const se_PauseReplicationCommand = async (input, context) => {
1003
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
700
+ const b = (0, core_1.requestBuilder)(input, context);
1004
701
  const headers = {
1005
702
  "content-type": "application/json",
1006
703
  };
1007
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PauseReplication";
704
+ b.bp("/PauseReplication");
1008
705
  let body;
1009
706
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1010
707
  accountID: [],
1011
708
  sourceServerID: [],
1012
709
  }));
1013
- return new protocol_http_1.HttpRequest({
1014
- protocol,
1015
- hostname,
1016
- port,
1017
- method: "POST",
1018
- headers,
1019
- path: resolvedPath,
1020
- body,
1021
- });
710
+ b.m("POST").h(headers).b(body);
711
+ return b.build();
1022
712
  };
1023
713
  exports.se_PauseReplicationCommand = se_PauseReplicationCommand;
1024
714
  const se_PutSourceServerActionCommand = async (input, context) => {
1025
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
715
+ const b = (0, core_1.requestBuilder)(input, context);
1026
716
  const headers = {
1027
717
  "content-type": "application/json",
1028
718
  };
1029
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutSourceServerAction";
719
+ b.bp("/PutSourceServerAction");
1030
720
  let body;
1031
721
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1032
722
  accountID: [],
@@ -1044,23 +734,16 @@ const se_PutSourceServerActionCommand = async (input, context) => {
1044
734
  sourceServerID: [],
1045
735
  timeoutSeconds: [],
1046
736
  }));
1047
- return new protocol_http_1.HttpRequest({
1048
- protocol,
1049
- hostname,
1050
- port,
1051
- method: "POST",
1052
- headers,
1053
- path: resolvedPath,
1054
- body,
1055
- });
737
+ b.m("POST").h(headers).b(body);
738
+ return b.build();
1056
739
  };
1057
740
  exports.se_PutSourceServerActionCommand = se_PutSourceServerActionCommand;
1058
741
  const se_PutTemplateActionCommand = async (input, context) => {
1059
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
742
+ const b = (0, core_1.requestBuilder)(input, context);
1060
743
  const headers = {
1061
744
  "content-type": "application/json",
1062
745
  };
1063
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutTemplateAction";
746
+ b.bp("/PutTemplateAction");
1064
747
  let body;
1065
748
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1066
749
  actionID: [],
@@ -1078,360 +761,247 @@ const se_PutTemplateActionCommand = async (input, context) => {
1078
761
  parameters: (_) => (0, smithy_client_1._json)(_),
1079
762
  timeoutSeconds: [],
1080
763
  }));
1081
- return new protocol_http_1.HttpRequest({
1082
- protocol,
1083
- hostname,
1084
- port,
1085
- method: "POST",
1086
- headers,
1087
- path: resolvedPath,
1088
- body,
1089
- });
764
+ b.m("POST").h(headers).b(body);
765
+ return b.build();
1090
766
  };
1091
767
  exports.se_PutTemplateActionCommand = se_PutTemplateActionCommand;
1092
768
  const se_RemoveSourceServerActionCommand = async (input, context) => {
1093
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
769
+ const b = (0, core_1.requestBuilder)(input, context);
1094
770
  const headers = {
1095
771
  "content-type": "application/json",
1096
772
  };
1097
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RemoveSourceServerAction";
773
+ b.bp("/RemoveSourceServerAction");
1098
774
  let body;
1099
775
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1100
776
  accountID: [],
1101
777
  actionID: [],
1102
778
  sourceServerID: [],
1103
779
  }));
1104
- return new protocol_http_1.HttpRequest({
1105
- protocol,
1106
- hostname,
1107
- port,
1108
- method: "POST",
1109
- headers,
1110
- path: resolvedPath,
1111
- body,
1112
- });
780
+ b.m("POST").h(headers).b(body);
781
+ return b.build();
1113
782
  };
1114
783
  exports.se_RemoveSourceServerActionCommand = se_RemoveSourceServerActionCommand;
1115
784
  const se_RemoveTemplateActionCommand = async (input, context) => {
1116
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
785
+ const b = (0, core_1.requestBuilder)(input, context);
1117
786
  const headers = {
1118
787
  "content-type": "application/json",
1119
788
  };
1120
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RemoveTemplateAction";
789
+ b.bp("/RemoveTemplateAction");
1121
790
  let body;
1122
791
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1123
792
  actionID: [],
1124
793
  launchConfigurationTemplateID: [],
1125
794
  }));
1126
- return new protocol_http_1.HttpRequest({
1127
- protocol,
1128
- hostname,
1129
- port,
1130
- method: "POST",
1131
- headers,
1132
- path: resolvedPath,
1133
- body,
1134
- });
795
+ b.m("POST").h(headers).b(body);
796
+ return b.build();
1135
797
  };
1136
798
  exports.se_RemoveTemplateActionCommand = se_RemoveTemplateActionCommand;
1137
799
  const se_ResumeReplicationCommand = async (input, context) => {
1138
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
800
+ const b = (0, core_1.requestBuilder)(input, context);
1139
801
  const headers = {
1140
802
  "content-type": "application/json",
1141
803
  };
1142
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ResumeReplication";
804
+ b.bp("/ResumeReplication");
1143
805
  let body;
1144
806
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1145
807
  accountID: [],
1146
808
  sourceServerID: [],
1147
809
  }));
1148
- return new protocol_http_1.HttpRequest({
1149
- protocol,
1150
- hostname,
1151
- port,
1152
- method: "POST",
1153
- headers,
1154
- path: resolvedPath,
1155
- body,
1156
- });
810
+ b.m("POST").h(headers).b(body);
811
+ return b.build();
1157
812
  };
1158
813
  exports.se_ResumeReplicationCommand = se_ResumeReplicationCommand;
1159
814
  const se_RetryDataReplicationCommand = async (input, context) => {
1160
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
815
+ const b = (0, core_1.requestBuilder)(input, context);
1161
816
  const headers = {
1162
817
  "content-type": "application/json",
1163
818
  };
1164
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RetryDataReplication";
819
+ b.bp("/RetryDataReplication");
1165
820
  let body;
1166
821
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1167
822
  accountID: [],
1168
823
  sourceServerID: [],
1169
824
  }));
1170
- return new protocol_http_1.HttpRequest({
1171
- protocol,
1172
- hostname,
1173
- port,
1174
- method: "POST",
1175
- headers,
1176
- path: resolvedPath,
1177
- body,
1178
- });
825
+ b.m("POST").h(headers).b(body);
826
+ return b.build();
1179
827
  };
1180
828
  exports.se_RetryDataReplicationCommand = se_RetryDataReplicationCommand;
1181
829
  const se_StartCutoverCommand = async (input, context) => {
1182
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
830
+ const b = (0, core_1.requestBuilder)(input, context);
1183
831
  const headers = {
1184
832
  "content-type": "application/json",
1185
833
  };
1186
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartCutover";
834
+ b.bp("/StartCutover");
1187
835
  let body;
1188
836
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1189
837
  accountID: [],
1190
838
  sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
1191
839
  tags: (_) => (0, smithy_client_1._json)(_),
1192
840
  }));
1193
- return new protocol_http_1.HttpRequest({
1194
- protocol,
1195
- hostname,
1196
- port,
1197
- method: "POST",
1198
- headers,
1199
- path: resolvedPath,
1200
- body,
1201
- });
841
+ b.m("POST").h(headers).b(body);
842
+ return b.build();
1202
843
  };
1203
844
  exports.se_StartCutoverCommand = se_StartCutoverCommand;
1204
845
  const se_StartExportCommand = async (input, context) => {
1205
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
846
+ const b = (0, core_1.requestBuilder)(input, context);
1206
847
  const headers = {
1207
848
  "content-type": "application/json",
1208
849
  };
1209
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartExport";
850
+ b.bp("/StartExport");
1210
851
  let body;
1211
852
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1212
853
  s3Bucket: [],
1213
854
  s3BucketOwner: [],
1214
855
  s3Key: [],
1215
856
  }));
1216
- return new protocol_http_1.HttpRequest({
1217
- protocol,
1218
- hostname,
1219
- port,
1220
- method: "POST",
1221
- headers,
1222
- path: resolvedPath,
1223
- body,
1224
- });
857
+ b.m("POST").h(headers).b(body);
858
+ return b.build();
1225
859
  };
1226
860
  exports.se_StartExportCommand = se_StartExportCommand;
1227
861
  const se_StartImportCommand = async (input, context) => {
1228
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
862
+ const b = (0, core_1.requestBuilder)(input, context);
1229
863
  const headers = {
1230
864
  "content-type": "application/json",
1231
865
  };
1232
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartImport";
866
+ b.bp("/StartImport");
1233
867
  let body;
1234
868
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1235
869
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1236
870
  s3BucketSource: (_) => (0, smithy_client_1._json)(_),
1237
871
  }));
1238
- return new protocol_http_1.HttpRequest({
1239
- protocol,
1240
- hostname,
1241
- port,
1242
- method: "POST",
1243
- headers,
1244
- path: resolvedPath,
1245
- body,
1246
- });
872
+ b.m("POST").h(headers).b(body);
873
+ return b.build();
1247
874
  };
1248
875
  exports.se_StartImportCommand = se_StartImportCommand;
1249
876
  const se_StartReplicationCommand = async (input, context) => {
1250
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
877
+ const b = (0, core_1.requestBuilder)(input, context);
1251
878
  const headers = {
1252
879
  "content-type": "application/json",
1253
880
  };
1254
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartReplication";
881
+ b.bp("/StartReplication");
1255
882
  let body;
1256
883
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1257
884
  accountID: [],
1258
885
  sourceServerID: [],
1259
886
  }));
1260
- return new protocol_http_1.HttpRequest({
1261
- protocol,
1262
- hostname,
1263
- port,
1264
- method: "POST",
1265
- headers,
1266
- path: resolvedPath,
1267
- body,
1268
- });
887
+ b.m("POST").h(headers).b(body);
888
+ return b.build();
1269
889
  };
1270
890
  exports.se_StartReplicationCommand = se_StartReplicationCommand;
1271
891
  const se_StartTestCommand = async (input, context) => {
1272
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
892
+ const b = (0, core_1.requestBuilder)(input, context);
1273
893
  const headers = {
1274
894
  "content-type": "application/json",
1275
895
  };
1276
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartTest";
896
+ b.bp("/StartTest");
1277
897
  let body;
1278
898
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1279
899
  accountID: [],
1280
900
  sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
1281
901
  tags: (_) => (0, smithy_client_1._json)(_),
1282
902
  }));
1283
- return new protocol_http_1.HttpRequest({
1284
- protocol,
1285
- hostname,
1286
- port,
1287
- method: "POST",
1288
- headers,
1289
- path: resolvedPath,
1290
- body,
1291
- });
903
+ b.m("POST").h(headers).b(body);
904
+ return b.build();
1292
905
  };
1293
906
  exports.se_StartTestCommand = se_StartTestCommand;
1294
907
  const se_StopReplicationCommand = async (input, context) => {
1295
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
908
+ const b = (0, core_1.requestBuilder)(input, context);
1296
909
  const headers = {
1297
910
  "content-type": "application/json",
1298
911
  };
1299
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopReplication";
912
+ b.bp("/StopReplication");
1300
913
  let body;
1301
914
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1302
915
  accountID: [],
1303
916
  sourceServerID: [],
1304
917
  }));
1305
- return new protocol_http_1.HttpRequest({
1306
- protocol,
1307
- hostname,
1308
- port,
1309
- method: "POST",
1310
- headers,
1311
- path: resolvedPath,
1312
- body,
1313
- });
918
+ b.m("POST").h(headers).b(body);
919
+ return b.build();
1314
920
  };
1315
921
  exports.se_StopReplicationCommand = se_StopReplicationCommand;
1316
922
  const se_TagResourceCommand = async (input, context) => {
1317
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
923
+ const b = (0, core_1.requestBuilder)(input, context);
1318
924
  const headers = {
1319
925
  "content-type": "application/json",
1320
926
  };
1321
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1322
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
927
+ b.bp("/tags/{resourceArn}");
928
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1323
929
  let body;
1324
930
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1325
931
  tags: (_) => (0, smithy_client_1._json)(_),
1326
932
  }));
1327
- return new protocol_http_1.HttpRequest({
1328
- protocol,
1329
- hostname,
1330
- port,
1331
- method: "POST",
1332
- headers,
1333
- path: resolvedPath,
1334
- body,
1335
- });
933
+ b.m("POST").h(headers).b(body);
934
+ return b.build();
1336
935
  };
1337
936
  exports.se_TagResourceCommand = se_TagResourceCommand;
1338
937
  const se_TerminateTargetInstancesCommand = async (input, context) => {
1339
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
938
+ const b = (0, core_1.requestBuilder)(input, context);
1340
939
  const headers = {
1341
940
  "content-type": "application/json",
1342
941
  };
1343
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TerminateTargetInstances";
942
+ b.bp("/TerminateTargetInstances");
1344
943
  let body;
1345
944
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1346
945
  accountID: [],
1347
946
  sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
1348
947
  tags: (_) => (0, smithy_client_1._json)(_),
1349
948
  }));
1350
- return new protocol_http_1.HttpRequest({
1351
- protocol,
1352
- hostname,
1353
- port,
1354
- method: "POST",
1355
- headers,
1356
- path: resolvedPath,
1357
- body,
1358
- });
949
+ b.m("POST").h(headers).b(body);
950
+ return b.build();
1359
951
  };
1360
952
  exports.se_TerminateTargetInstancesCommand = se_TerminateTargetInstancesCommand;
1361
953
  const se_UnarchiveApplicationCommand = async (input, context) => {
1362
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
954
+ const b = (0, core_1.requestBuilder)(input, context);
1363
955
  const headers = {
1364
956
  "content-type": "application/json",
1365
957
  };
1366
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UnarchiveApplication";
958
+ b.bp("/UnarchiveApplication");
1367
959
  let body;
1368
960
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1369
961
  accountID: [],
1370
962
  applicationID: [],
1371
963
  }));
1372
- return new protocol_http_1.HttpRequest({
1373
- protocol,
1374
- hostname,
1375
- port,
1376
- method: "POST",
1377
- headers,
1378
- path: resolvedPath,
1379
- body,
1380
- });
964
+ b.m("POST").h(headers).b(body);
965
+ return b.build();
1381
966
  };
1382
967
  exports.se_UnarchiveApplicationCommand = se_UnarchiveApplicationCommand;
1383
968
  const se_UnarchiveWaveCommand = async (input, context) => {
1384
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
969
+ const b = (0, core_1.requestBuilder)(input, context);
1385
970
  const headers = {
1386
971
  "content-type": "application/json",
1387
972
  };
1388
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UnarchiveWave";
973
+ b.bp("/UnarchiveWave");
1389
974
  let body;
1390
975
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1391
976
  accountID: [],
1392
977
  waveID: [],
1393
978
  }));
1394
- return new protocol_http_1.HttpRequest({
1395
- protocol,
1396
- hostname,
1397
- port,
1398
- method: "POST",
1399
- headers,
1400
- path: resolvedPath,
1401
- body,
1402
- });
979
+ b.m("POST").h(headers).b(body);
980
+ return b.build();
1403
981
  };
1404
982
  exports.se_UnarchiveWaveCommand = se_UnarchiveWaveCommand;
1405
983
  const se_UntagResourceCommand = async (input, context) => {
1406
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
984
+ const b = (0, core_1.requestBuilder)(input, context);
1407
985
  const headers = {};
1408
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1409
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
986
+ b.bp("/tags/{resourceArn}");
987
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1410
988
  const query = (0, smithy_client_1.map)({
1411
- tagKeys: [
989
+ [_tK]: [
1412
990
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
1413
- () => (input.tagKeys || []).map((_entry) => _entry),
991
+ () => (input[_tK] || []).map((_entry) => _entry),
1414
992
  ],
1415
993
  });
1416
994
  let body;
1417
- return new protocol_http_1.HttpRequest({
1418
- protocol,
1419
- hostname,
1420
- port,
1421
- method: "DELETE",
1422
- headers,
1423
- path: resolvedPath,
1424
- query,
1425
- body,
1426
- });
995
+ b.m("DELETE").h(headers).q(query).b(body);
996
+ return b.build();
1427
997
  };
1428
998
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1429
999
  const se_UpdateApplicationCommand = async (input, context) => {
1430
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1000
+ const b = (0, core_1.requestBuilder)(input, context);
1431
1001
  const headers = {
1432
1002
  "content-type": "application/json",
1433
1003
  };
1434
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateApplication";
1004
+ b.bp("/UpdateApplication");
1435
1005
  let body;
1436
1006
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1437
1007
  accountID: [],
@@ -1439,46 +1009,32 @@ const se_UpdateApplicationCommand = async (input, context) => {
1439
1009
  description: [],
1440
1010
  name: [],
1441
1011
  }));
1442
- return new protocol_http_1.HttpRequest({
1443
- protocol,
1444
- hostname,
1445
- port,
1446
- method: "POST",
1447
- headers,
1448
- path: resolvedPath,
1449
- body,
1450
- });
1012
+ b.m("POST").h(headers).b(body);
1013
+ return b.build();
1451
1014
  };
1452
1015
  exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
1453
1016
  const se_UpdateConnectorCommand = async (input, context) => {
1454
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1017
+ const b = (0, core_1.requestBuilder)(input, context);
1455
1018
  const headers = {
1456
1019
  "content-type": "application/json",
1457
1020
  };
1458
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateConnector";
1021
+ b.bp("/UpdateConnector");
1459
1022
  let body;
1460
1023
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1461
1024
  connectorID: [],
1462
1025
  name: [],
1463
1026
  ssmCommandConfig: (_) => (0, smithy_client_1._json)(_),
1464
1027
  }));
1465
- return new protocol_http_1.HttpRequest({
1466
- protocol,
1467
- hostname,
1468
- port,
1469
- method: "POST",
1470
- headers,
1471
- path: resolvedPath,
1472
- body,
1473
- });
1028
+ b.m("POST").h(headers).b(body);
1029
+ return b.build();
1474
1030
  };
1475
1031
  exports.se_UpdateConnectorCommand = se_UpdateConnectorCommand;
1476
1032
  const se_UpdateLaunchConfigurationCommand = async (input, context) => {
1477
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1033
+ const b = (0, core_1.requestBuilder)(input, context);
1478
1034
  const headers = {
1479
1035
  "content-type": "application/json",
1480
1036
  };
1481
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfiguration";
1037
+ b.bp("/UpdateLaunchConfiguration");
1482
1038
  let body;
1483
1039
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1484
1040
  accountID: [],
@@ -1494,23 +1050,16 @@ const se_UpdateLaunchConfigurationCommand = async (input, context) => {
1494
1050
  sourceServerID: [],
1495
1051
  targetInstanceTypeRightSizingMethod: [],
1496
1052
  }));
1497
- return new protocol_http_1.HttpRequest({
1498
- protocol,
1499
- hostname,
1500
- port,
1501
- method: "POST",
1502
- headers,
1503
- path: resolvedPath,
1504
- body,
1505
- });
1053
+ b.m("POST").h(headers).b(body);
1054
+ return b.build();
1506
1055
  };
1507
1056
  exports.se_UpdateLaunchConfigurationCommand = se_UpdateLaunchConfigurationCommand;
1508
1057
  const se_UpdateLaunchConfigurationTemplateCommand = async (input, context) => {
1509
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1058
+ const b = (0, core_1.requestBuilder)(input, context);
1510
1059
  const headers = {
1511
1060
  "content-type": "application/json",
1512
1061
  };
1513
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfigurationTemplate";
1062
+ b.bp("/UpdateLaunchConfigurationTemplate");
1514
1063
  let body;
1515
1064
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1516
1065
  associatePublicIpAddress: [],
@@ -1528,23 +1077,16 @@ const se_UpdateLaunchConfigurationTemplateCommand = async (input, context) => {
1528
1077
  smallVolumeMaxSize: [],
1529
1078
  targetInstanceTypeRightSizingMethod: [],
1530
1079
  }));
1531
- return new protocol_http_1.HttpRequest({
1532
- protocol,
1533
- hostname,
1534
- port,
1535
- method: "POST",
1536
- headers,
1537
- path: resolvedPath,
1538
- body,
1539
- });
1080
+ b.m("POST").h(headers).b(body);
1081
+ return b.build();
1540
1082
  };
1541
1083
  exports.se_UpdateLaunchConfigurationTemplateCommand = se_UpdateLaunchConfigurationTemplateCommand;
1542
1084
  const se_UpdateReplicationConfigurationCommand = async (input, context) => {
1543
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1085
+ const b = (0, core_1.requestBuilder)(input, context);
1544
1086
  const headers = {
1545
1087
  "content-type": "application/json",
1546
1088
  };
1547
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfiguration";
1089
+ b.bp("/UpdateReplicationConfiguration");
1548
1090
  let body;
1549
1091
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1550
1092
  accountID: [],
@@ -1565,23 +1107,16 @@ const se_UpdateReplicationConfigurationCommand = async (input, context) => {
1565
1107
  useDedicatedReplicationServer: [],
1566
1108
  useFipsEndpoint: [],
1567
1109
  }));
1568
- return new protocol_http_1.HttpRequest({
1569
- protocol,
1570
- hostname,
1571
- port,
1572
- method: "POST",
1573
- headers,
1574
- path: resolvedPath,
1575
- body,
1576
- });
1110
+ b.m("POST").h(headers).b(body);
1111
+ return b.build();
1577
1112
  };
1578
1113
  exports.se_UpdateReplicationConfigurationCommand = se_UpdateReplicationConfigurationCommand;
1579
1114
  const se_UpdateReplicationConfigurationTemplateCommand = async (input, context) => {
1580
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1115
+ const b = (0, core_1.requestBuilder)(input, context);
1581
1116
  const headers = {
1582
1117
  "content-type": "application/json",
1583
1118
  };
1584
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfigurationTemplate";
1119
+ b.bp("/UpdateReplicationConfigurationTemplate");
1585
1120
  let body;
1586
1121
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1587
1122
  arn: [],
@@ -1600,69 +1135,48 @@ const se_UpdateReplicationConfigurationTemplateCommand = async (input, context)
1600
1135
  useDedicatedReplicationServer: [],
1601
1136
  useFipsEndpoint: [],
1602
1137
  }));
1603
- return new protocol_http_1.HttpRequest({
1604
- protocol,
1605
- hostname,
1606
- port,
1607
- method: "POST",
1608
- headers,
1609
- path: resolvedPath,
1610
- body,
1611
- });
1138
+ b.m("POST").h(headers).b(body);
1139
+ return b.build();
1612
1140
  };
1613
1141
  exports.se_UpdateReplicationConfigurationTemplateCommand = se_UpdateReplicationConfigurationTemplateCommand;
1614
1142
  const se_UpdateSourceServerCommand = async (input, context) => {
1615
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1143
+ const b = (0, core_1.requestBuilder)(input, context);
1616
1144
  const headers = {
1617
1145
  "content-type": "application/json",
1618
1146
  };
1619
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateSourceServer";
1147
+ b.bp("/UpdateSourceServer");
1620
1148
  let body;
1621
1149
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1622
1150
  accountID: [],
1623
1151
  connectorAction: (_) => (0, smithy_client_1._json)(_),
1624
1152
  sourceServerID: [],
1625
1153
  }));
1626
- return new protocol_http_1.HttpRequest({
1627
- protocol,
1628
- hostname,
1629
- port,
1630
- method: "POST",
1631
- headers,
1632
- path: resolvedPath,
1633
- body,
1634
- });
1154
+ b.m("POST").h(headers).b(body);
1155
+ return b.build();
1635
1156
  };
1636
1157
  exports.se_UpdateSourceServerCommand = se_UpdateSourceServerCommand;
1637
1158
  const se_UpdateSourceServerReplicationTypeCommand = async (input, context) => {
1638
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1159
+ const b = (0, core_1.requestBuilder)(input, context);
1639
1160
  const headers = {
1640
1161
  "content-type": "application/json",
1641
1162
  };
1642
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateSourceServerReplicationType";
1163
+ b.bp("/UpdateSourceServerReplicationType");
1643
1164
  let body;
1644
1165
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1645
1166
  accountID: [],
1646
1167
  replicationType: [],
1647
1168
  sourceServerID: [],
1648
1169
  }));
1649
- return new protocol_http_1.HttpRequest({
1650
- protocol,
1651
- hostname,
1652
- port,
1653
- method: "POST",
1654
- headers,
1655
- path: resolvedPath,
1656
- body,
1657
- });
1170
+ b.m("POST").h(headers).b(body);
1171
+ return b.build();
1658
1172
  };
1659
1173
  exports.se_UpdateSourceServerReplicationTypeCommand = se_UpdateSourceServerReplicationTypeCommand;
1660
1174
  const se_UpdateWaveCommand = async (input, context) => {
1661
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1175
+ const b = (0, core_1.requestBuilder)(input, context);
1662
1176
  const headers = {
1663
1177
  "content-type": "application/json",
1664
1178
  };
1665
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateWave";
1179
+ b.bp("/UpdateWave");
1666
1180
  let body;
1667
1181
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1668
1182
  accountID: [],
@@ -1670,15 +1184,8 @@ const se_UpdateWaveCommand = async (input, context) => {
1670
1184
  name: [],
1671
1185
  waveID: [],
1672
1186
  }));
1673
- return new protocol_http_1.HttpRequest({
1674
- protocol,
1675
- hostname,
1676
- port,
1677
- method: "POST",
1678
- headers,
1679
- path: resolvedPath,
1680
- body,
1681
- });
1187
+ b.m("POST").h(headers).b(body);
1188
+ return b.build();
1682
1189
  };
1683
1190
  exports.se_UpdateWaveCommand = se_UpdateWaveCommand;
1684
1191
  const de_ArchiveApplicationCommand = async (output, context) => {
@@ -4851,10 +4358,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
4851
4358
  };
4852
4359
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
4853
4360
  const contents = (0, smithy_client_1.map)({
4854
- retryAfterSeconds: [
4855
- () => void 0 !== parsedOutput.headers["retry-after"],
4856
- () => (0, smithy_client_1.strictParseLong)(parsedOutput.headers["retry-after"]),
4857
- ],
4361
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseLong)(parsedOutput.headers[_ra])],
4858
4362
  });
4859
4363
  const data = parsedOutput.body;
4860
4364
  const doc = (0, smithy_client_1.take)(data, {
@@ -4904,7 +4408,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
4904
4408
  };
4905
4409
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
4906
4410
  const contents = (0, smithy_client_1.map)({
4907
- retryAfterSeconds: [, parsedOutput.headers["retry-after"]],
4411
+ [_rAS]: [, parsedOutput.headers[_ra]],
4908
4412
  });
4909
4413
  const data = parsedOutput.body;
4910
4414
  const doc = (0, smithy_client_1.take)(data, {
@@ -5009,6 +4513,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
5009
4513
  value !== "" &&
5010
4514
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
5011
4515
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
4516
+ const _mR = "maxResults";
4517
+ const _nT = "nextToken";
4518
+ const _rAS = "retryAfterSeconds";
4519
+ const _ra = "retry-after";
4520
+ const _tK = "tagKeys";
5012
4521
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5013
4522
  if (encoded.length) {
5014
4523
  return JSON.parse(encoded);