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