@aws-sdk/client-drs 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 (47) 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/DescribeRecoveryInstancesPaginator.js +2 -24
  5. package/dist-cjs/pagination/DescribeRecoverySnapshotsPaginator.js +2 -24
  6. package/dist-cjs/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +2 -24
  7. package/dist-cjs/pagination/DescribeSourceNetworksPaginator.js +2 -24
  8. package/dist-cjs/pagination/DescribeSourceServersPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListExtensibleSourceServersPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListLaunchActionsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListStagingAccountsPaginator.js +2 -24
  12. package/dist-cjs/protocols/Aws_restJson1.js +215 -566
  13. package/dist-es/pagination/DescribeJobLogItemsPaginator.js +2 -23
  14. package/dist-es/pagination/DescribeJobsPaginator.js +2 -23
  15. package/dist-es/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +2 -23
  16. package/dist-es/pagination/DescribeRecoveryInstancesPaginator.js +2 -23
  17. package/dist-es/pagination/DescribeRecoverySnapshotsPaginator.js +2 -23
  18. package/dist-es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +2 -23
  19. package/dist-es/pagination/DescribeSourceNetworksPaginator.js +2 -23
  20. package/dist-es/pagination/DescribeSourceServersPaginator.js +2 -23
  21. package/dist-es/pagination/ListExtensibleSourceServersPaginator.js +2 -23
  22. package/dist-es/pagination/ListLaunchActionsPaginator.js +2 -23
  23. package/dist-es/pagination/ListStagingAccountsPaginator.js +2 -23
  24. package/dist-es/protocols/Aws_restJson1.js +216 -567
  25. package/dist-types/pagination/DescribeJobLogItemsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/DescribeJobsPaginator.d.ts +1 -1
  27. package/dist-types/pagination/DescribeLaunchConfigurationTemplatesPaginator.d.ts +1 -1
  28. package/dist-types/pagination/DescribeRecoveryInstancesPaginator.d.ts +1 -1
  29. package/dist-types/pagination/DescribeRecoverySnapshotsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/DescribeReplicationConfigurationTemplatesPaginator.d.ts +1 -1
  31. package/dist-types/pagination/DescribeSourceNetworksPaginator.d.ts +1 -1
  32. package/dist-types/pagination/DescribeSourceServersPaginator.d.ts +1 -1
  33. package/dist-types/pagination/ListExtensibleSourceServersPaginator.d.ts +1 -1
  34. package/dist-types/pagination/ListLaunchActionsPaginator.d.ts +1 -1
  35. package/dist-types/pagination/ListStagingAccountsPaginator.d.ts +1 -1
  36. package/dist-types/ts3.4/pagination/DescribeJobLogItemsPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/DescribeJobsPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/DescribeLaunchConfigurationTemplatesPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/DescribeRecoveryInstancesPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/DescribeRecoverySnapshotsPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/DescribeReplicationConfigurationTemplatesPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/DescribeSourceNetworksPaginator.d.ts +3 -3
  43. package/dist-types/ts3.4/pagination/DescribeSourceServersPaginator.d.ts +3 -3
  44. package/dist-types/ts3.4/pagination/ListExtensibleSourceServersPaginator.d.ts +3 -3
  45. package/dist-types/ts3.4/pagination/ListLaunchActionsPaginator.d.ts +3 -3
  46. package/dist-types/ts3.4/pagination/ListStagingAccountsPaginator.d.ts +3 -3
  47. package/package.json +7 -6
@@ -2,60 +2,46 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.se_UpdateReplicationConfigurationTemplateCommand = exports.se_UpdateReplicationConfigurationCommand = exports.se_UpdateLaunchConfigurationTemplateCommand = exports.se_UpdateLaunchConfigurationCommand = exports.se_UpdateFailbackReplicationConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TerminateRecoveryInstancesCommand = exports.se_TagResourceCommand = exports.se_StopSourceNetworkReplicationCommand = exports.se_StopReplicationCommand = exports.se_StopFailbackCommand = exports.se_StartSourceNetworkReplicationCommand = exports.se_StartSourceNetworkRecoveryCommand = exports.se_StartReplicationCommand = exports.se_StartRecoveryCommand = exports.se_StartFailbackLaunchCommand = exports.se_ReverseReplicationCommand = exports.se_RetryDataReplicationCommand = exports.se_PutLaunchActionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStagingAccountsCommand = exports.se_ListLaunchActionsCommand = exports.se_ListExtensibleSourceServersCommand = exports.se_InitializeServiceCommand = exports.se_GetReplicationConfigurationCommand = exports.se_GetLaunchConfigurationCommand = exports.se_GetFailbackReplicationConfigurationCommand = exports.se_ExportSourceNetworkCfnTemplateCommand = exports.se_DisconnectSourceServerCommand = exports.se_DisconnectRecoveryInstanceCommand = exports.se_DescribeSourceServersCommand = exports.se_DescribeSourceNetworksCommand = exports.se_DescribeReplicationConfigurationTemplatesCommand = exports.se_DescribeRecoverySnapshotsCommand = exports.se_DescribeRecoveryInstancesCommand = exports.se_DescribeLaunchConfigurationTemplatesCommand = exports.se_DescribeJobsCommand = exports.se_DescribeJobLogItemsCommand = exports.se_DeleteSourceServerCommand = exports.se_DeleteSourceNetworkCommand = exports.se_DeleteReplicationConfigurationTemplateCommand = exports.se_DeleteRecoveryInstanceCommand = exports.se_DeleteLaunchConfigurationTemplateCommand = exports.se_DeleteLaunchActionCommand = exports.se_DeleteJobCommand = exports.se_CreateSourceNetworkCommand = exports.se_CreateReplicationConfigurationTemplateCommand = exports.se_CreateLaunchConfigurationTemplateCommand = exports.se_CreateExtendedSourceServerCommand = exports.se_AssociateSourceNetworkStackCommand = void 0;
4
4
  exports.de_UpdateReplicationConfigurationTemplateCommand = exports.de_UpdateReplicationConfigurationCommand = exports.de_UpdateLaunchConfigurationTemplateCommand = exports.de_UpdateLaunchConfigurationCommand = exports.de_UpdateFailbackReplicationConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TerminateRecoveryInstancesCommand = exports.de_TagResourceCommand = exports.de_StopSourceNetworkReplicationCommand = exports.de_StopReplicationCommand = exports.de_StopFailbackCommand = exports.de_StartSourceNetworkReplicationCommand = exports.de_StartSourceNetworkRecoveryCommand = exports.de_StartReplicationCommand = exports.de_StartRecoveryCommand = exports.de_StartFailbackLaunchCommand = exports.de_ReverseReplicationCommand = exports.de_RetryDataReplicationCommand = exports.de_PutLaunchActionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStagingAccountsCommand = exports.de_ListLaunchActionsCommand = exports.de_ListExtensibleSourceServersCommand = exports.de_InitializeServiceCommand = exports.de_GetReplicationConfigurationCommand = exports.de_GetLaunchConfigurationCommand = exports.de_GetFailbackReplicationConfigurationCommand = exports.de_ExportSourceNetworkCfnTemplateCommand = exports.de_DisconnectSourceServerCommand = exports.de_DisconnectRecoveryInstanceCommand = exports.de_DescribeSourceServersCommand = exports.de_DescribeSourceNetworksCommand = exports.de_DescribeReplicationConfigurationTemplatesCommand = exports.de_DescribeRecoverySnapshotsCommand = exports.de_DescribeRecoveryInstancesCommand = exports.de_DescribeLaunchConfigurationTemplatesCommand = exports.de_DescribeJobsCommand = exports.de_DescribeJobLogItemsCommand = exports.de_DeleteSourceServerCommand = exports.de_DeleteSourceNetworkCommand = exports.de_DeleteReplicationConfigurationTemplateCommand = exports.de_DeleteRecoveryInstanceCommand = exports.de_DeleteLaunchConfigurationTemplateCommand = exports.de_DeleteLaunchActionCommand = exports.de_DeleteJobCommand = exports.de_CreateSourceNetworkCommand = exports.de_CreateReplicationConfigurationTemplateCommand = exports.de_CreateLaunchConfigurationTemplateCommand = exports.de_CreateExtendedSourceServerCommand = exports.de_AssociateSourceNetworkStackCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const DrsServiceException_1 = require("../models/DrsServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_AssociateSourceNetworkStackCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateSourceNetworkStack";
14
+ b.bp("/AssociateSourceNetworkStack");
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  cfnStackName: [],
18
18
  sourceNetworkID: [],
19
19
  }));
20
- return new protocol_http_1.HttpRequest({
21
- protocol,
22
- hostname,
23
- port,
24
- method: "POST",
25
- headers,
26
- path: resolvedPath,
27
- body,
28
- });
20
+ b.m("POST").h(headers).b(body);
21
+ return b.build();
29
22
  };
30
23
  exports.se_AssociateSourceNetworkStackCommand = se_AssociateSourceNetworkStackCommand;
31
24
  const se_CreateExtendedSourceServerCommand = async (input, context) => {
32
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
25
+ const b = (0, core_1.requestBuilder)(input, context);
33
26
  const headers = {
34
27
  "content-type": "application/json",
35
28
  };
36
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateExtendedSourceServer";
29
+ b.bp("/CreateExtendedSourceServer");
37
30
  let body;
38
31
  body = JSON.stringify((0, smithy_client_1.take)(input, {
39
32
  sourceServerArn: [],
40
33
  tags: (_) => (0, smithy_client_1._json)(_),
41
34
  }));
42
- return new protocol_http_1.HttpRequest({
43
- protocol,
44
- hostname,
45
- port,
46
- method: "POST",
47
- headers,
48
- path: resolvedPath,
49
- body,
50
- });
35
+ b.m("POST").h(headers).b(body);
36
+ return b.build();
51
37
  };
52
38
  exports.se_CreateExtendedSourceServerCommand = se_CreateExtendedSourceServerCommand;
53
39
  const se_CreateLaunchConfigurationTemplateCommand = async (input, context) => {
54
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
40
+ const b = (0, core_1.requestBuilder)(input, context);
55
41
  const headers = {
56
42
  "content-type": "application/json",
57
43
  };
58
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLaunchConfigurationTemplate";
44
+ b.bp("/CreateLaunchConfigurationTemplate");
59
45
  let body;
60
46
  body = JSON.stringify((0, smithy_client_1.take)(input, {
61
47
  copyPrivateIp: [],
@@ -68,23 +54,16 @@ const se_CreateLaunchConfigurationTemplateCommand = async (input, context) => {
68
54
  tags: (_) => (0, smithy_client_1._json)(_),
69
55
  targetInstanceTypeRightSizingMethod: [],
70
56
  }));
71
- return new protocol_http_1.HttpRequest({
72
- protocol,
73
- hostname,
74
- port,
75
- method: "POST",
76
- headers,
77
- path: resolvedPath,
78
- body,
79
- });
57
+ b.m("POST").h(headers).b(body);
58
+ return b.build();
80
59
  };
81
60
  exports.se_CreateLaunchConfigurationTemplateCommand = se_CreateLaunchConfigurationTemplateCommand;
82
61
  const se_CreateReplicationConfigurationTemplateCommand = async (input, context) => {
83
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
+ const b = (0, core_1.requestBuilder)(input, context);
84
63
  const headers = {
85
64
  "content-type": "application/json",
86
65
  };
87
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateReplicationConfigurationTemplate";
66
+ b.bp("/CreateReplicationConfigurationTemplate");
88
67
  let body;
89
68
  body = JSON.stringify((0, smithy_client_1.take)(input, {
90
69
  associateDefaultSecurityGroup: [],
@@ -103,23 +82,16 @@ const se_CreateReplicationConfigurationTemplateCommand = async (input, context)
103
82
  tags: (_) => (0, smithy_client_1._json)(_),
104
83
  useDedicatedReplicationServer: [],
105
84
  }));
106
- return new protocol_http_1.HttpRequest({
107
- protocol,
108
- hostname,
109
- port,
110
- method: "POST",
111
- headers,
112
- path: resolvedPath,
113
- body,
114
- });
85
+ b.m("POST").h(headers).b(body);
86
+ return b.build();
115
87
  };
116
88
  exports.se_CreateReplicationConfigurationTemplateCommand = se_CreateReplicationConfigurationTemplateCommand;
117
89
  const se_CreateSourceNetworkCommand = async (input, context) => {
118
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
+ const b = (0, core_1.requestBuilder)(input, context);
119
91
  const headers = {
120
92
  "content-type": "application/json",
121
93
  };
122
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateSourceNetwork";
94
+ b.bp("/CreateSourceNetwork");
123
95
  let body;
124
96
  body = JSON.stringify((0, smithy_client_1.take)(input, {
125
97
  originAccountID: [],
@@ -127,263 +99,179 @@ const se_CreateSourceNetworkCommand = async (input, context) => {
127
99
  tags: (_) => (0, smithy_client_1._json)(_),
128
100
  vpcID: [],
129
101
  }));
130
- return new protocol_http_1.HttpRequest({
131
- protocol,
132
- hostname,
133
- port,
134
- method: "POST",
135
- headers,
136
- path: resolvedPath,
137
- body,
138
- });
102
+ b.m("POST").h(headers).b(body);
103
+ return b.build();
139
104
  };
140
105
  exports.se_CreateSourceNetworkCommand = se_CreateSourceNetworkCommand;
141
106
  const se_DeleteJobCommand = async (input, context) => {
142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
+ const b = (0, core_1.requestBuilder)(input, context);
143
108
  const headers = {
144
109
  "content-type": "application/json",
145
110
  };
146
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteJob";
111
+ b.bp("/DeleteJob");
147
112
  let body;
148
113
  body = JSON.stringify((0, smithy_client_1.take)(input, {
149
114
  jobID: [],
150
115
  }));
151
- return new protocol_http_1.HttpRequest({
152
- protocol,
153
- hostname,
154
- port,
155
- method: "POST",
156
- headers,
157
- path: resolvedPath,
158
- body,
159
- });
116
+ b.m("POST").h(headers).b(body);
117
+ return b.build();
160
118
  };
161
119
  exports.se_DeleteJobCommand = se_DeleteJobCommand;
162
120
  const se_DeleteLaunchActionCommand = async (input, context) => {
163
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
+ const b = (0, core_1.requestBuilder)(input, context);
164
122
  const headers = {
165
123
  "content-type": "application/json",
166
124
  };
167
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLaunchAction";
125
+ b.bp("/DeleteLaunchAction");
168
126
  let body;
169
127
  body = JSON.stringify((0, smithy_client_1.take)(input, {
170
128
  actionId: [],
171
129
  resourceId: [],
172
130
  }));
173
- return new protocol_http_1.HttpRequest({
174
- protocol,
175
- hostname,
176
- port,
177
- method: "POST",
178
- headers,
179
- path: resolvedPath,
180
- body,
181
- });
131
+ b.m("POST").h(headers).b(body);
132
+ return b.build();
182
133
  };
183
134
  exports.se_DeleteLaunchActionCommand = se_DeleteLaunchActionCommand;
184
135
  const se_DeleteLaunchConfigurationTemplateCommand = async (input, context) => {
185
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
+ const b = (0, core_1.requestBuilder)(input, context);
186
137
  const headers = {
187
138
  "content-type": "application/json",
188
139
  };
189
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLaunchConfigurationTemplate";
140
+ b.bp("/DeleteLaunchConfigurationTemplate");
190
141
  let body;
191
142
  body = JSON.stringify((0, smithy_client_1.take)(input, {
192
143
  launchConfigurationTemplateID: [],
193
144
  }));
194
- return new protocol_http_1.HttpRequest({
195
- protocol,
196
- hostname,
197
- port,
198
- method: "POST",
199
- headers,
200
- path: resolvedPath,
201
- body,
202
- });
145
+ b.m("POST").h(headers).b(body);
146
+ return b.build();
203
147
  };
204
148
  exports.se_DeleteLaunchConfigurationTemplateCommand = se_DeleteLaunchConfigurationTemplateCommand;
205
149
  const se_DeleteRecoveryInstanceCommand = async (input, context) => {
206
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
150
+ const b = (0, core_1.requestBuilder)(input, context);
207
151
  const headers = {
208
152
  "content-type": "application/json",
209
153
  };
210
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRecoveryInstance";
154
+ b.bp("/DeleteRecoveryInstance");
211
155
  let body;
212
156
  body = JSON.stringify((0, smithy_client_1.take)(input, {
213
157
  recoveryInstanceID: [],
214
158
  }));
215
- return new protocol_http_1.HttpRequest({
216
- protocol,
217
- hostname,
218
- port,
219
- method: "POST",
220
- headers,
221
- path: resolvedPath,
222
- body,
223
- });
159
+ b.m("POST").h(headers).b(body);
160
+ return b.build();
224
161
  };
225
162
  exports.se_DeleteRecoveryInstanceCommand = se_DeleteRecoveryInstanceCommand;
226
163
  const se_DeleteReplicationConfigurationTemplateCommand = async (input, context) => {
227
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
164
+ const b = (0, core_1.requestBuilder)(input, context);
228
165
  const headers = {
229
166
  "content-type": "application/json",
230
167
  };
231
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteReplicationConfigurationTemplate";
168
+ b.bp("/DeleteReplicationConfigurationTemplate");
232
169
  let body;
233
170
  body = JSON.stringify((0, smithy_client_1.take)(input, {
234
171
  replicationConfigurationTemplateID: [],
235
172
  }));
236
- return new protocol_http_1.HttpRequest({
237
- protocol,
238
- hostname,
239
- port,
240
- method: "POST",
241
- headers,
242
- path: resolvedPath,
243
- body,
244
- });
173
+ b.m("POST").h(headers).b(body);
174
+ return b.build();
245
175
  };
246
176
  exports.se_DeleteReplicationConfigurationTemplateCommand = se_DeleteReplicationConfigurationTemplateCommand;
247
177
  const se_DeleteSourceNetworkCommand = async (input, context) => {
248
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
178
+ const b = (0, core_1.requestBuilder)(input, context);
249
179
  const headers = {
250
180
  "content-type": "application/json",
251
181
  };
252
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSourceNetwork";
182
+ b.bp("/DeleteSourceNetwork");
253
183
  let body;
254
184
  body = JSON.stringify((0, smithy_client_1.take)(input, {
255
185
  sourceNetworkID: [],
256
186
  }));
257
- return new protocol_http_1.HttpRequest({
258
- protocol,
259
- hostname,
260
- port,
261
- method: "POST",
262
- headers,
263
- path: resolvedPath,
264
- body,
265
- });
187
+ b.m("POST").h(headers).b(body);
188
+ return b.build();
266
189
  };
267
190
  exports.se_DeleteSourceNetworkCommand = se_DeleteSourceNetworkCommand;
268
191
  const se_DeleteSourceServerCommand = async (input, context) => {
269
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
192
+ const b = (0, core_1.requestBuilder)(input, context);
270
193
  const headers = {
271
194
  "content-type": "application/json",
272
195
  };
273
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteSourceServer";
196
+ b.bp("/DeleteSourceServer");
274
197
  let body;
275
198
  body = JSON.stringify((0, smithy_client_1.take)(input, {
276
199
  sourceServerID: [],
277
200
  }));
278
- return new protocol_http_1.HttpRequest({
279
- protocol,
280
- hostname,
281
- port,
282
- method: "POST",
283
- headers,
284
- path: resolvedPath,
285
- body,
286
- });
201
+ b.m("POST").h(headers).b(body);
202
+ return b.build();
287
203
  };
288
204
  exports.se_DeleteSourceServerCommand = se_DeleteSourceServerCommand;
289
205
  const se_DescribeJobLogItemsCommand = async (input, context) => {
290
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
206
+ const b = (0, core_1.requestBuilder)(input, context);
291
207
  const headers = {
292
208
  "content-type": "application/json",
293
209
  };
294
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobLogItems";
210
+ b.bp("/DescribeJobLogItems");
295
211
  let body;
296
212
  body = JSON.stringify((0, smithy_client_1.take)(input, {
297
213
  jobID: [],
298
214
  maxResults: [],
299
215
  nextToken: [],
300
216
  }));
301
- return new protocol_http_1.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
  exports.se_DescribeJobLogItemsCommand = se_DescribeJobLogItemsCommand;
312
221
  const se_DescribeJobsCommand = async (input, context) => {
313
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
222
+ const b = (0, core_1.requestBuilder)(input, context);
314
223
  const headers = {
315
224
  "content-type": "application/json",
316
225
  };
317
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeJobs";
226
+ b.bp("/DescribeJobs");
318
227
  let body;
319
228
  body = JSON.stringify((0, smithy_client_1.take)(input, {
320
229
  filters: (_) => (0, smithy_client_1._json)(_),
321
230
  maxResults: [],
322
231
  nextToken: [],
323
232
  }));
324
- return new protocol_http_1.HttpRequest({
325
- protocol,
326
- hostname,
327
- port,
328
- method: "POST",
329
- headers,
330
- path: resolvedPath,
331
- body,
332
- });
233
+ b.m("POST").h(headers).b(body);
234
+ return b.build();
333
235
  };
334
236
  exports.se_DescribeJobsCommand = se_DescribeJobsCommand;
335
237
  const se_DescribeLaunchConfigurationTemplatesCommand = async (input, context) => {
336
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
238
+ const b = (0, core_1.requestBuilder)(input, context);
337
239
  const headers = {
338
240
  "content-type": "application/json",
339
241
  };
340
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeLaunchConfigurationTemplates";
242
+ b.bp("/DescribeLaunchConfigurationTemplates");
341
243
  let body;
342
244
  body = JSON.stringify((0, smithy_client_1.take)(input, {
343
245
  launchConfigurationTemplateIDs: (_) => (0, smithy_client_1._json)(_),
344
246
  maxResults: [],
345
247
  nextToken: [],
346
248
  }));
347
- return new protocol_http_1.HttpRequest({
348
- protocol,
349
- hostname,
350
- port,
351
- method: "POST",
352
- headers,
353
- path: resolvedPath,
354
- body,
355
- });
249
+ b.m("POST").h(headers).b(body);
250
+ return b.build();
356
251
  };
357
252
  exports.se_DescribeLaunchConfigurationTemplatesCommand = se_DescribeLaunchConfigurationTemplatesCommand;
358
253
  const se_DescribeRecoveryInstancesCommand = async (input, context) => {
359
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
254
+ const b = (0, core_1.requestBuilder)(input, context);
360
255
  const headers = {
361
256
  "content-type": "application/json",
362
257
  };
363
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeRecoveryInstances";
258
+ b.bp("/DescribeRecoveryInstances");
364
259
  let body;
365
260
  body = JSON.stringify((0, smithy_client_1.take)(input, {
366
261
  filters: (_) => (0, smithy_client_1._json)(_),
367
262
  maxResults: [],
368
263
  nextToken: [],
369
264
  }));
370
- return new protocol_http_1.HttpRequest({
371
- protocol,
372
- hostname,
373
- port,
374
- method: "POST",
375
- headers,
376
- path: resolvedPath,
377
- body,
378
- });
265
+ b.m("POST").h(headers).b(body);
266
+ return b.build();
379
267
  };
380
268
  exports.se_DescribeRecoveryInstancesCommand = se_DescribeRecoveryInstancesCommand;
381
269
  const se_DescribeRecoverySnapshotsCommand = async (input, context) => {
382
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
270
+ const b = (0, core_1.requestBuilder)(input, context);
383
271
  const headers = {
384
272
  "content-type": "application/json",
385
273
  };
386
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeRecoverySnapshots";
274
+ b.bp("/DescribeRecoverySnapshots");
387
275
  let body;
388
276
  body = JSON.stringify((0, smithy_client_1.take)(input, {
389
277
  filters: (_) => (0, smithy_client_1._json)(_),
@@ -392,261 +280,176 @@ const se_DescribeRecoverySnapshotsCommand = async (input, context) => {
392
280
  order: [],
393
281
  sourceServerID: [],
394
282
  }));
395
- return new protocol_http_1.HttpRequest({
396
- protocol,
397
- hostname,
398
- port,
399
- method: "POST",
400
- headers,
401
- path: resolvedPath,
402
- body,
403
- });
283
+ b.m("POST").h(headers).b(body);
284
+ return b.build();
404
285
  };
405
286
  exports.se_DescribeRecoverySnapshotsCommand = se_DescribeRecoverySnapshotsCommand;
406
287
  const se_DescribeReplicationConfigurationTemplatesCommand = async (input, context) => {
407
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
288
+ const b = (0, core_1.requestBuilder)(input, context);
408
289
  const headers = {
409
290
  "content-type": "application/json",
410
291
  };
411
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
412
- "/DescribeReplicationConfigurationTemplates";
292
+ b.bp("/DescribeReplicationConfigurationTemplates");
413
293
  let body;
414
294
  body = JSON.stringify((0, smithy_client_1.take)(input, {
415
295
  maxResults: [],
416
296
  nextToken: [],
417
297
  replicationConfigurationTemplateIDs: (_) => (0, smithy_client_1._json)(_),
418
298
  }));
419
- return new protocol_http_1.HttpRequest({
420
- protocol,
421
- hostname,
422
- port,
423
- method: "POST",
424
- headers,
425
- path: resolvedPath,
426
- body,
427
- });
299
+ b.m("POST").h(headers).b(body);
300
+ return b.build();
428
301
  };
429
302
  exports.se_DescribeReplicationConfigurationTemplatesCommand = se_DescribeReplicationConfigurationTemplatesCommand;
430
303
  const se_DescribeSourceNetworksCommand = async (input, context) => {
431
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
304
+ const b = (0, core_1.requestBuilder)(input, context);
432
305
  const headers = {
433
306
  "content-type": "application/json",
434
307
  };
435
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSourceNetworks";
308
+ b.bp("/DescribeSourceNetworks");
436
309
  let body;
437
310
  body = JSON.stringify((0, smithy_client_1.take)(input, {
438
311
  filters: (_) => (0, smithy_client_1._json)(_),
439
312
  maxResults: [],
440
313
  nextToken: [],
441
314
  }));
442
- return new protocol_http_1.HttpRequest({
443
- protocol,
444
- hostname,
445
- port,
446
- method: "POST",
447
- headers,
448
- path: resolvedPath,
449
- body,
450
- });
315
+ b.m("POST").h(headers).b(body);
316
+ return b.build();
451
317
  };
452
318
  exports.se_DescribeSourceNetworksCommand = se_DescribeSourceNetworksCommand;
453
319
  const se_DescribeSourceServersCommand = async (input, context) => {
454
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
320
+ const b = (0, core_1.requestBuilder)(input, context);
455
321
  const headers = {
456
322
  "content-type": "application/json",
457
323
  };
458
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSourceServers";
324
+ b.bp("/DescribeSourceServers");
459
325
  let body;
460
326
  body = JSON.stringify((0, smithy_client_1.take)(input, {
461
327
  filters: (_) => (0, smithy_client_1._json)(_),
462
328
  maxResults: [],
463
329
  nextToken: [],
464
330
  }));
465
- return new protocol_http_1.HttpRequest({
466
- protocol,
467
- hostname,
468
- port,
469
- method: "POST",
470
- headers,
471
- path: resolvedPath,
472
- body,
473
- });
331
+ b.m("POST").h(headers).b(body);
332
+ return b.build();
474
333
  };
475
334
  exports.se_DescribeSourceServersCommand = se_DescribeSourceServersCommand;
476
335
  const se_DisconnectRecoveryInstanceCommand = async (input, context) => {
477
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
336
+ const b = (0, core_1.requestBuilder)(input, context);
478
337
  const headers = {
479
338
  "content-type": "application/json",
480
339
  };
481
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectRecoveryInstance";
340
+ b.bp("/DisconnectRecoveryInstance");
482
341
  let body;
483
342
  body = JSON.stringify((0, smithy_client_1.take)(input, {
484
343
  recoveryInstanceID: [],
485
344
  }));
486
- return new protocol_http_1.HttpRequest({
487
- protocol,
488
- hostname,
489
- port,
490
- method: "POST",
491
- headers,
492
- path: resolvedPath,
493
- body,
494
- });
345
+ b.m("POST").h(headers).b(body);
346
+ return b.build();
495
347
  };
496
348
  exports.se_DisconnectRecoveryInstanceCommand = se_DisconnectRecoveryInstanceCommand;
497
349
  const se_DisconnectSourceServerCommand = async (input, context) => {
498
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
350
+ const b = (0, core_1.requestBuilder)(input, context);
499
351
  const headers = {
500
352
  "content-type": "application/json",
501
353
  };
502
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectSourceServer";
354
+ b.bp("/DisconnectSourceServer");
503
355
  let body;
504
356
  body = JSON.stringify((0, smithy_client_1.take)(input, {
505
357
  sourceServerID: [],
506
358
  }));
507
- return new protocol_http_1.HttpRequest({
508
- protocol,
509
- hostname,
510
- port,
511
- method: "POST",
512
- headers,
513
- path: resolvedPath,
514
- body,
515
- });
359
+ b.m("POST").h(headers).b(body);
360
+ return b.build();
516
361
  };
517
362
  exports.se_DisconnectSourceServerCommand = se_DisconnectSourceServerCommand;
518
363
  const se_ExportSourceNetworkCfnTemplateCommand = async (input, context) => {
519
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
364
+ const b = (0, core_1.requestBuilder)(input, context);
520
365
  const headers = {
521
366
  "content-type": "application/json",
522
367
  };
523
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ExportSourceNetworkCfnTemplate";
368
+ b.bp("/ExportSourceNetworkCfnTemplate");
524
369
  let body;
525
370
  body = JSON.stringify((0, smithy_client_1.take)(input, {
526
371
  sourceNetworkID: [],
527
372
  }));
528
- return new protocol_http_1.HttpRequest({
529
- protocol,
530
- hostname,
531
- port,
532
- method: "POST",
533
- headers,
534
- path: resolvedPath,
535
- body,
536
- });
373
+ b.m("POST").h(headers).b(body);
374
+ return b.build();
537
375
  };
538
376
  exports.se_ExportSourceNetworkCfnTemplateCommand = se_ExportSourceNetworkCfnTemplateCommand;
539
377
  const se_GetFailbackReplicationConfigurationCommand = async (input, context) => {
540
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
378
+ const b = (0, core_1.requestBuilder)(input, context);
541
379
  const headers = {
542
380
  "content-type": "application/json",
543
381
  };
544
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetFailbackReplicationConfiguration";
382
+ b.bp("/GetFailbackReplicationConfiguration");
545
383
  let body;
546
384
  body = JSON.stringify((0, smithy_client_1.take)(input, {
547
385
  recoveryInstanceID: [],
548
386
  }));
549
- return new protocol_http_1.HttpRequest({
550
- protocol,
551
- hostname,
552
- port,
553
- method: "POST",
554
- headers,
555
- path: resolvedPath,
556
- body,
557
- });
387
+ b.m("POST").h(headers).b(body);
388
+ return b.build();
558
389
  };
559
390
  exports.se_GetFailbackReplicationConfigurationCommand = se_GetFailbackReplicationConfigurationCommand;
560
391
  const se_GetLaunchConfigurationCommand = async (input, context) => {
561
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
392
+ const b = (0, core_1.requestBuilder)(input, context);
562
393
  const headers = {
563
394
  "content-type": "application/json",
564
395
  };
565
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetLaunchConfiguration";
396
+ b.bp("/GetLaunchConfiguration");
566
397
  let body;
567
398
  body = JSON.stringify((0, smithy_client_1.take)(input, {
568
399
  sourceServerID: [],
569
400
  }));
570
- return new protocol_http_1.HttpRequest({
571
- protocol,
572
- hostname,
573
- port,
574
- method: "POST",
575
- headers,
576
- path: resolvedPath,
577
- body,
578
- });
401
+ b.m("POST").h(headers).b(body);
402
+ return b.build();
579
403
  };
580
404
  exports.se_GetLaunchConfigurationCommand = se_GetLaunchConfigurationCommand;
581
405
  const se_GetReplicationConfigurationCommand = async (input, context) => {
582
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
406
+ const b = (0, core_1.requestBuilder)(input, context);
583
407
  const headers = {
584
408
  "content-type": "application/json",
585
409
  };
586
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetReplicationConfiguration";
410
+ b.bp("/GetReplicationConfiguration");
587
411
  let body;
588
412
  body = JSON.stringify((0, smithy_client_1.take)(input, {
589
413
  sourceServerID: [],
590
414
  }));
591
- return new protocol_http_1.HttpRequest({
592
- protocol,
593
- hostname,
594
- port,
595
- method: "POST",
596
- headers,
597
- path: resolvedPath,
598
- body,
599
- });
415
+ b.m("POST").h(headers).b(body);
416
+ return b.build();
600
417
  };
601
418
  exports.se_GetReplicationConfigurationCommand = se_GetReplicationConfigurationCommand;
602
419
  const se_InitializeServiceCommand = async (input, context) => {
603
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
420
+ const b = (0, core_1.requestBuilder)(input, context);
604
421
  const headers = {
605
422
  "content-type": "application/json",
606
423
  };
607
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/InitializeService";
424
+ b.bp("/InitializeService");
608
425
  let body;
609
426
  body = "";
610
- return new protocol_http_1.HttpRequest({
611
- protocol,
612
- hostname,
613
- port,
614
- method: "POST",
615
- headers,
616
- path: resolvedPath,
617
- body,
618
- });
427
+ b.m("POST").h(headers).b(body);
428
+ return b.build();
619
429
  };
620
430
  exports.se_InitializeServiceCommand = se_InitializeServiceCommand;
621
431
  const se_ListExtensibleSourceServersCommand = async (input, context) => {
622
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
432
+ const b = (0, core_1.requestBuilder)(input, context);
623
433
  const headers = {
624
434
  "content-type": "application/json",
625
435
  };
626
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListExtensibleSourceServers";
436
+ b.bp("/ListExtensibleSourceServers");
627
437
  let body;
628
438
  body = JSON.stringify((0, smithy_client_1.take)(input, {
629
439
  maxResults: [],
630
440
  nextToken: [],
631
441
  stagingAccountID: [],
632
442
  }));
633
- return new protocol_http_1.HttpRequest({
634
- protocol,
635
- hostname,
636
- port,
637
- method: "POST",
638
- headers,
639
- path: resolvedPath,
640
- body,
641
- });
443
+ b.m("POST").h(headers).b(body);
444
+ return b.build();
642
445
  };
643
446
  exports.se_ListExtensibleSourceServersCommand = se_ListExtensibleSourceServersCommand;
644
447
  const se_ListLaunchActionsCommand = async (input, context) => {
645
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
448
+ const b = (0, core_1.requestBuilder)(input, context);
646
449
  const headers = {
647
450
  "content-type": "application/json",
648
451
  };
649
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLaunchActions";
452
+ b.bp("/ListLaunchActions");
650
453
  let body;
651
454
  body = JSON.stringify((0, smithy_client_1.take)(input, {
652
455
  filters: (_) => (0, smithy_client_1._json)(_),
@@ -654,61 +457,39 @@ const se_ListLaunchActionsCommand = async (input, context) => {
654
457
  nextToken: [],
655
458
  resourceId: [],
656
459
  }));
657
- return new protocol_http_1.HttpRequest({
658
- protocol,
659
- hostname,
660
- port,
661
- method: "POST",
662
- headers,
663
- path: resolvedPath,
664
- body,
665
- });
460
+ b.m("POST").h(headers).b(body);
461
+ return b.build();
666
462
  };
667
463
  exports.se_ListLaunchActionsCommand = se_ListLaunchActionsCommand;
668
464
  const se_ListStagingAccountsCommand = async (input, context) => {
669
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
465
+ const b = (0, core_1.requestBuilder)(input, context);
670
466
  const headers = {};
671
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStagingAccounts";
467
+ b.bp("/ListStagingAccounts");
672
468
  const query = (0, smithy_client_1.map)({
673
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
674
- nextToken: [, input.nextToken],
469
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
470
+ [_nT]: [, input[_nT]],
675
471
  });
676
472
  let body;
677
- return new protocol_http_1.HttpRequest({
678
- protocol,
679
- hostname,
680
- port,
681
- method: "GET",
682
- headers,
683
- path: resolvedPath,
684
- query,
685
- body,
686
- });
473
+ b.m("GET").h(headers).q(query).b(body);
474
+ return b.build();
687
475
  };
688
476
  exports.se_ListStagingAccountsCommand = se_ListStagingAccountsCommand;
689
477
  const se_ListTagsForResourceCommand = async (input, context) => {
690
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
478
+ const b = (0, core_1.requestBuilder)(input, context);
691
479
  const headers = {};
692
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
693
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
480
+ b.bp("/tags/{resourceArn}");
481
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
694
482
  let body;
695
- return new protocol_http_1.HttpRequest({
696
- protocol,
697
- hostname,
698
- port,
699
- method: "GET",
700
- headers,
701
- path: resolvedPath,
702
- body,
703
- });
483
+ b.m("GET").h(headers).b(body);
484
+ return b.build();
704
485
  };
705
486
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
706
487
  const se_PutLaunchActionCommand = async (input, context) => {
707
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
488
+ const b = (0, core_1.requestBuilder)(input, context);
708
489
  const headers = {
709
490
  "content-type": "application/json",
710
491
  };
711
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutLaunchAction";
492
+ b.bp("/PutLaunchAction");
712
493
  let body;
713
494
  body = JSON.stringify((0, smithy_client_1.take)(input, {
714
495
  actionCode: [],
@@ -723,305 +504,206 @@ const se_PutLaunchActionCommand = async (input, context) => {
723
504
  parameters: (_) => (0, smithy_client_1._json)(_),
724
505
  resourceId: [],
725
506
  }));
726
- return new protocol_http_1.HttpRequest({
727
- protocol,
728
- hostname,
729
- port,
730
- method: "POST",
731
- headers,
732
- path: resolvedPath,
733
- body,
734
- });
507
+ b.m("POST").h(headers).b(body);
508
+ return b.build();
735
509
  };
736
510
  exports.se_PutLaunchActionCommand = se_PutLaunchActionCommand;
737
511
  const se_RetryDataReplicationCommand = async (input, context) => {
738
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
512
+ const b = (0, core_1.requestBuilder)(input, context);
739
513
  const headers = {
740
514
  "content-type": "application/json",
741
515
  };
742
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RetryDataReplication";
516
+ b.bp("/RetryDataReplication");
743
517
  let body;
744
518
  body = JSON.stringify((0, smithy_client_1.take)(input, {
745
519
  sourceServerID: [],
746
520
  }));
747
- return new protocol_http_1.HttpRequest({
748
- protocol,
749
- hostname,
750
- port,
751
- method: "POST",
752
- headers,
753
- path: resolvedPath,
754
- body,
755
- });
521
+ b.m("POST").h(headers).b(body);
522
+ return b.build();
756
523
  };
757
524
  exports.se_RetryDataReplicationCommand = se_RetryDataReplicationCommand;
758
525
  const se_ReverseReplicationCommand = async (input, context) => {
759
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
526
+ const b = (0, core_1.requestBuilder)(input, context);
760
527
  const headers = {
761
528
  "content-type": "application/json",
762
529
  };
763
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ReverseReplication";
530
+ b.bp("/ReverseReplication");
764
531
  let body;
765
532
  body = JSON.stringify((0, smithy_client_1.take)(input, {
766
533
  recoveryInstanceID: [],
767
534
  }));
768
- return new protocol_http_1.HttpRequest({
769
- protocol,
770
- hostname,
771
- port,
772
- method: "POST",
773
- headers,
774
- path: resolvedPath,
775
- body,
776
- });
535
+ b.m("POST").h(headers).b(body);
536
+ return b.build();
777
537
  };
778
538
  exports.se_ReverseReplicationCommand = se_ReverseReplicationCommand;
779
539
  const se_StartFailbackLaunchCommand = async (input, context) => {
780
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
540
+ const b = (0, core_1.requestBuilder)(input, context);
781
541
  const headers = {
782
542
  "content-type": "application/json",
783
543
  };
784
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartFailbackLaunch";
544
+ b.bp("/StartFailbackLaunch");
785
545
  let body;
786
546
  body = JSON.stringify((0, smithy_client_1.take)(input, {
787
547
  recoveryInstanceIDs: (_) => (0, smithy_client_1._json)(_),
788
548
  tags: (_) => (0, smithy_client_1._json)(_),
789
549
  }));
790
- return new protocol_http_1.HttpRequest({
791
- protocol,
792
- hostname,
793
- port,
794
- method: "POST",
795
- headers,
796
- path: resolvedPath,
797
- body,
798
- });
550
+ b.m("POST").h(headers).b(body);
551
+ return b.build();
799
552
  };
800
553
  exports.se_StartFailbackLaunchCommand = se_StartFailbackLaunchCommand;
801
554
  const se_StartRecoveryCommand = async (input, context) => {
802
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
555
+ const b = (0, core_1.requestBuilder)(input, context);
803
556
  const headers = {
804
557
  "content-type": "application/json",
805
558
  };
806
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartRecovery";
559
+ b.bp("/StartRecovery");
807
560
  let body;
808
561
  body = JSON.stringify((0, smithy_client_1.take)(input, {
809
562
  isDrill: [],
810
563
  sourceServers: (_) => (0, smithy_client_1._json)(_),
811
564
  tags: (_) => (0, smithy_client_1._json)(_),
812
565
  }));
813
- return new protocol_http_1.HttpRequest({
814
- protocol,
815
- hostname,
816
- port,
817
- method: "POST",
818
- headers,
819
- path: resolvedPath,
820
- body,
821
- });
566
+ b.m("POST").h(headers).b(body);
567
+ return b.build();
822
568
  };
823
569
  exports.se_StartRecoveryCommand = se_StartRecoveryCommand;
824
570
  const se_StartReplicationCommand = async (input, context) => {
825
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
571
+ const b = (0, core_1.requestBuilder)(input, context);
826
572
  const headers = {
827
573
  "content-type": "application/json",
828
574
  };
829
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartReplication";
575
+ b.bp("/StartReplication");
830
576
  let body;
831
577
  body = JSON.stringify((0, smithy_client_1.take)(input, {
832
578
  sourceServerID: [],
833
579
  }));
834
- return new protocol_http_1.HttpRequest({
835
- protocol,
836
- hostname,
837
- port,
838
- method: "POST",
839
- headers,
840
- path: resolvedPath,
841
- body,
842
- });
580
+ b.m("POST").h(headers).b(body);
581
+ return b.build();
843
582
  };
844
583
  exports.se_StartReplicationCommand = se_StartReplicationCommand;
845
584
  const se_StartSourceNetworkRecoveryCommand = async (input, context) => {
846
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
585
+ const b = (0, core_1.requestBuilder)(input, context);
847
586
  const headers = {
848
587
  "content-type": "application/json",
849
588
  };
850
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartSourceNetworkRecovery";
589
+ b.bp("/StartSourceNetworkRecovery");
851
590
  let body;
852
591
  body = JSON.stringify((0, smithy_client_1.take)(input, {
853
592
  deployAsNew: [],
854
593
  sourceNetworks: (_) => (0, smithy_client_1._json)(_),
855
594
  tags: (_) => (0, smithy_client_1._json)(_),
856
595
  }));
857
- return new protocol_http_1.HttpRequest({
858
- protocol,
859
- hostname,
860
- port,
861
- method: "POST",
862
- headers,
863
- path: resolvedPath,
864
- body,
865
- });
596
+ b.m("POST").h(headers).b(body);
597
+ return b.build();
866
598
  };
867
599
  exports.se_StartSourceNetworkRecoveryCommand = se_StartSourceNetworkRecoveryCommand;
868
600
  const se_StartSourceNetworkReplicationCommand = async (input, context) => {
869
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
601
+ const b = (0, core_1.requestBuilder)(input, context);
870
602
  const headers = {
871
603
  "content-type": "application/json",
872
604
  };
873
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartSourceNetworkReplication";
605
+ b.bp("/StartSourceNetworkReplication");
874
606
  let body;
875
607
  body = JSON.stringify((0, smithy_client_1.take)(input, {
876
608
  sourceNetworkID: [],
877
609
  }));
878
- return new protocol_http_1.HttpRequest({
879
- protocol,
880
- hostname,
881
- port,
882
- method: "POST",
883
- headers,
884
- path: resolvedPath,
885
- body,
886
- });
610
+ b.m("POST").h(headers).b(body);
611
+ return b.build();
887
612
  };
888
613
  exports.se_StartSourceNetworkReplicationCommand = se_StartSourceNetworkReplicationCommand;
889
614
  const se_StopFailbackCommand = async (input, context) => {
890
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
615
+ const b = (0, core_1.requestBuilder)(input, context);
891
616
  const headers = {
892
617
  "content-type": "application/json",
893
618
  };
894
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopFailback";
619
+ b.bp("/StopFailback");
895
620
  let body;
896
621
  body = JSON.stringify((0, smithy_client_1.take)(input, {
897
622
  recoveryInstanceID: [],
898
623
  }));
899
- return new protocol_http_1.HttpRequest({
900
- protocol,
901
- hostname,
902
- port,
903
- method: "POST",
904
- headers,
905
- path: resolvedPath,
906
- body,
907
- });
624
+ b.m("POST").h(headers).b(body);
625
+ return b.build();
908
626
  };
909
627
  exports.se_StopFailbackCommand = se_StopFailbackCommand;
910
628
  const se_StopReplicationCommand = async (input, context) => {
911
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
629
+ const b = (0, core_1.requestBuilder)(input, context);
912
630
  const headers = {
913
631
  "content-type": "application/json",
914
632
  };
915
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopReplication";
633
+ b.bp("/StopReplication");
916
634
  let body;
917
635
  body = JSON.stringify((0, smithy_client_1.take)(input, {
918
636
  sourceServerID: [],
919
637
  }));
920
- return new protocol_http_1.HttpRequest({
921
- protocol,
922
- hostname,
923
- port,
924
- method: "POST",
925
- headers,
926
- path: resolvedPath,
927
- body,
928
- });
638
+ b.m("POST").h(headers).b(body);
639
+ return b.build();
929
640
  };
930
641
  exports.se_StopReplicationCommand = se_StopReplicationCommand;
931
642
  const se_StopSourceNetworkReplicationCommand = async (input, context) => {
932
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
643
+ const b = (0, core_1.requestBuilder)(input, context);
933
644
  const headers = {
934
645
  "content-type": "application/json",
935
646
  };
936
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopSourceNetworkReplication";
647
+ b.bp("/StopSourceNetworkReplication");
937
648
  let body;
938
649
  body = JSON.stringify((0, smithy_client_1.take)(input, {
939
650
  sourceNetworkID: [],
940
651
  }));
941
- return new protocol_http_1.HttpRequest({
942
- protocol,
943
- hostname,
944
- port,
945
- method: "POST",
946
- headers,
947
- path: resolvedPath,
948
- body,
949
- });
652
+ b.m("POST").h(headers).b(body);
653
+ return b.build();
950
654
  };
951
655
  exports.se_StopSourceNetworkReplicationCommand = se_StopSourceNetworkReplicationCommand;
952
656
  const se_TagResourceCommand = async (input, context) => {
953
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
657
+ const b = (0, core_1.requestBuilder)(input, context);
954
658
  const headers = {
955
659
  "content-type": "application/json",
956
660
  };
957
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
958
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
661
+ b.bp("/tags/{resourceArn}");
662
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
959
663
  let body;
960
664
  body = JSON.stringify((0, smithy_client_1.take)(input, {
961
665
  tags: (_) => (0, smithy_client_1._json)(_),
962
666
  }));
963
- return new protocol_http_1.HttpRequest({
964
- protocol,
965
- hostname,
966
- port,
967
- method: "POST",
968
- headers,
969
- path: resolvedPath,
970
- body,
971
- });
667
+ b.m("POST").h(headers).b(body);
668
+ return b.build();
972
669
  };
973
670
  exports.se_TagResourceCommand = se_TagResourceCommand;
974
671
  const se_TerminateRecoveryInstancesCommand = async (input, context) => {
975
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
672
+ const b = (0, core_1.requestBuilder)(input, context);
976
673
  const headers = {
977
674
  "content-type": "application/json",
978
675
  };
979
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TerminateRecoveryInstances";
676
+ b.bp("/TerminateRecoveryInstances");
980
677
  let body;
981
678
  body = JSON.stringify((0, smithy_client_1.take)(input, {
982
679
  recoveryInstanceIDs: (_) => (0, smithy_client_1._json)(_),
983
680
  }));
984
- return new protocol_http_1.HttpRequest({
985
- protocol,
986
- hostname,
987
- port,
988
- method: "POST",
989
- headers,
990
- path: resolvedPath,
991
- body,
992
- });
681
+ b.m("POST").h(headers).b(body);
682
+ return b.build();
993
683
  };
994
684
  exports.se_TerminateRecoveryInstancesCommand = se_TerminateRecoveryInstancesCommand;
995
685
  const se_UntagResourceCommand = async (input, context) => {
996
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
686
+ const b = (0, core_1.requestBuilder)(input, context);
997
687
  const headers = {};
998
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
999
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
688
+ b.bp("/tags/{resourceArn}");
689
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1000
690
  const query = (0, smithy_client_1.map)({
1001
- tagKeys: [
691
+ [_tK]: [
1002
692
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
1003
- () => (input.tagKeys || []).map((_entry) => _entry),
693
+ () => (input[_tK] || []).map((_entry) => _entry),
1004
694
  ],
1005
695
  });
1006
696
  let body;
1007
- return new protocol_http_1.HttpRequest({
1008
- protocol,
1009
- hostname,
1010
- port,
1011
- method: "DELETE",
1012
- headers,
1013
- path: resolvedPath,
1014
- query,
1015
- body,
1016
- });
697
+ b.m("DELETE").h(headers).q(query).b(body);
698
+ return b.build();
1017
699
  };
1018
700
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1019
701
  const se_UpdateFailbackReplicationConfigurationCommand = async (input, context) => {
1020
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
702
+ const b = (0, core_1.requestBuilder)(input, context);
1021
703
  const headers = {
1022
704
  "content-type": "application/json",
1023
705
  };
1024
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateFailbackReplicationConfiguration";
706
+ b.bp("/UpdateFailbackReplicationConfiguration");
1025
707
  let body;
1026
708
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1027
709
  bandwidthThrottling: [],
@@ -1029,23 +711,16 @@ const se_UpdateFailbackReplicationConfigurationCommand = async (input, context)
1029
711
  recoveryInstanceID: [],
1030
712
  usePrivateIP: [],
1031
713
  }));
1032
- return new protocol_http_1.HttpRequest({
1033
- protocol,
1034
- hostname,
1035
- port,
1036
- method: "POST",
1037
- headers,
1038
- path: resolvedPath,
1039
- body,
1040
- });
714
+ b.m("POST").h(headers).b(body);
715
+ return b.build();
1041
716
  };
1042
717
  exports.se_UpdateFailbackReplicationConfigurationCommand = se_UpdateFailbackReplicationConfigurationCommand;
1043
718
  const se_UpdateLaunchConfigurationCommand = async (input, context) => {
1044
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
719
+ const b = (0, core_1.requestBuilder)(input, context);
1045
720
  const headers = {
1046
721
  "content-type": "application/json",
1047
722
  };
1048
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfiguration";
723
+ b.bp("/UpdateLaunchConfiguration");
1049
724
  let body;
1050
725
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1051
726
  copyPrivateIp: [],
@@ -1058,23 +733,16 @@ const se_UpdateLaunchConfigurationCommand = async (input, context) => {
1058
733
  sourceServerID: [],
1059
734
  targetInstanceTypeRightSizingMethod: [],
1060
735
  }));
1061
- return new protocol_http_1.HttpRequest({
1062
- protocol,
1063
- hostname,
1064
- port,
1065
- method: "POST",
1066
- headers,
1067
- path: resolvedPath,
1068
- body,
1069
- });
736
+ b.m("POST").h(headers).b(body);
737
+ return b.build();
1070
738
  };
1071
739
  exports.se_UpdateLaunchConfigurationCommand = se_UpdateLaunchConfigurationCommand;
1072
740
  const se_UpdateLaunchConfigurationTemplateCommand = async (input, context) => {
1073
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
741
+ const b = (0, core_1.requestBuilder)(input, context);
1074
742
  const headers = {
1075
743
  "content-type": "application/json",
1076
744
  };
1077
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfigurationTemplate";
745
+ b.bp("/UpdateLaunchConfigurationTemplate");
1078
746
  let body;
1079
747
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1080
748
  copyPrivateIp: [],
@@ -1087,23 +755,16 @@ const se_UpdateLaunchConfigurationTemplateCommand = async (input, context) => {
1087
755
  postLaunchEnabled: [],
1088
756
  targetInstanceTypeRightSizingMethod: [],
1089
757
  }));
1090
- return new protocol_http_1.HttpRequest({
1091
- protocol,
1092
- hostname,
1093
- port,
1094
- method: "POST",
1095
- headers,
1096
- path: resolvedPath,
1097
- body,
1098
- });
758
+ b.m("POST").h(headers).b(body);
759
+ return b.build();
1099
760
  };
1100
761
  exports.se_UpdateLaunchConfigurationTemplateCommand = se_UpdateLaunchConfigurationTemplateCommand;
1101
762
  const se_UpdateReplicationConfigurationCommand = async (input, context) => {
1102
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
763
+ const b = (0, core_1.requestBuilder)(input, context);
1103
764
  const headers = {
1104
765
  "content-type": "application/json",
1105
766
  };
1106
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfiguration";
767
+ b.bp("/UpdateReplicationConfiguration");
1107
768
  let body;
1108
769
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1109
770
  associateDefaultSecurityGroup: [],
@@ -1124,23 +785,16 @@ const se_UpdateReplicationConfigurationCommand = async (input, context) => {
1124
785
  stagingAreaTags: (_) => (0, smithy_client_1._json)(_),
1125
786
  useDedicatedReplicationServer: [],
1126
787
  }));
1127
- return new protocol_http_1.HttpRequest({
1128
- protocol,
1129
- hostname,
1130
- port,
1131
- method: "POST",
1132
- headers,
1133
- path: resolvedPath,
1134
- body,
1135
- });
788
+ b.m("POST").h(headers).b(body);
789
+ return b.build();
1136
790
  };
1137
791
  exports.se_UpdateReplicationConfigurationCommand = se_UpdateReplicationConfigurationCommand;
1138
792
  const se_UpdateReplicationConfigurationTemplateCommand = async (input, context) => {
1139
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
793
+ const b = (0, core_1.requestBuilder)(input, context);
1140
794
  const headers = {
1141
795
  "content-type": "application/json",
1142
796
  };
1143
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateReplicationConfigurationTemplate";
797
+ b.bp("/UpdateReplicationConfigurationTemplate");
1144
798
  let body;
1145
799
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1146
800
  arn: [],
@@ -1160,15 +814,8 @@ const se_UpdateReplicationConfigurationTemplateCommand = async (input, context)
1160
814
  stagingAreaTags: (_) => (0, smithy_client_1._json)(_),
1161
815
  useDedicatedReplicationServer: [],
1162
816
  }));
1163
- return new protocol_http_1.HttpRequest({
1164
- protocol,
1165
- hostname,
1166
- port,
1167
- method: "POST",
1168
- headers,
1169
- path: resolvedPath,
1170
- body,
1171
- });
817
+ b.m("POST").h(headers).b(body);
818
+ return b.build();
1172
819
  };
1173
820
  exports.se_UpdateReplicationConfigurationTemplateCommand = se_UpdateReplicationConfigurationTemplateCommand;
1174
821
  const de_AssociateSourceNetworkStackCommand = async (output, context) => {
@@ -3621,10 +3268,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
3621
3268
  };
3622
3269
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
3623
3270
  const contents = (0, smithy_client_1.map)({
3624
- retryAfterSeconds: [
3625
- () => void 0 !== parsedOutput.headers["retry-after"],
3626
- () => (0, smithy_client_1.strictParseLong)(parsedOutput.headers["retry-after"]),
3627
- ],
3271
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseLong)(parsedOutput.headers[_ra])],
3628
3272
  });
3629
3273
  const data = parsedOutput.body;
3630
3274
  const doc = (0, smithy_client_1.take)(data, {
@@ -3673,7 +3317,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
3673
3317
  };
3674
3318
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
3675
3319
  const contents = (0, smithy_client_1.map)({
3676
- retryAfterSeconds: [, parsedOutput.headers["retry-after"]],
3320
+ [_rAS]: [, parsedOutput.headers[_ra]],
3677
3321
  });
3678
3322
  const data = parsedOutput.body;
3679
3323
  const doc = (0, smithy_client_1.take)(data, {
@@ -3760,6 +3404,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
3760
3404
  value !== "" &&
3761
3405
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
3762
3406
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
3407
+ const _mR = "maxResults";
3408
+ const _nT = "nextToken";
3409
+ const _rAS = "retryAfterSeconds";
3410
+ const _ra = "retry-after";
3411
+ const _tK = "tagKeys";
3763
3412
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3764
3413
  if (encoded.length) {
3765
3414
  return JSON.parse(encoded);