@aws-sdk/client-migrationhuborchestrator 3.474.0 → 3.477.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_StartWorkflowCommand = exports.de_RetryWorkflowStepCommand = exports.de_ListWorkflowStepsCommand = exports.de_ListWorkflowStepGroupsCommand = exports.de_ListWorkflowsCommand = exports.de_ListTemplateStepsCommand = exports.de_ListTemplateStepGroupsCommand = exports.de_ListTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPluginsCommand = exports.de_GetWorkflowStepGroupCommand = exports.de_GetWorkflowStepCommand = exports.de_GetWorkflowCommand = exports.de_GetTemplateStepGroupCommand = exports.de_GetTemplateStepCommand = exports.de_GetTemplateCommand = exports.de_DeleteWorkflowStepGroupCommand = exports.de_DeleteWorkflowStepCommand = exports.de_DeleteWorkflowCommand = exports.de_CreateWorkflowStepGroupCommand = exports.de_CreateWorkflowStepCommand = exports.de_CreateWorkflowCommand = exports.se_UpdateWorkflowStepGroupCommand = exports.se_UpdateWorkflowStepCommand = exports.se_UpdateWorkflowCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopWorkflowCommand = exports.se_StartWorkflowCommand = exports.se_RetryWorkflowStepCommand = exports.se_ListWorkflowStepsCommand = exports.se_ListWorkflowStepGroupsCommand = exports.se_ListWorkflowsCommand = exports.se_ListTemplateStepsCommand = exports.se_ListTemplateStepGroupsCommand = exports.se_ListTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPluginsCommand = exports.se_GetWorkflowStepGroupCommand = exports.se_GetWorkflowStepCommand = exports.se_GetWorkflowCommand = exports.se_GetTemplateStepGroupCommand = exports.se_GetTemplateStepCommand = exports.se_GetTemplateCommand = exports.se_DeleteWorkflowStepGroupCommand = exports.se_DeleteWorkflowStepCommand = exports.se_DeleteWorkflowCommand = exports.se_CreateWorkflowStepGroupCommand = exports.se_CreateWorkflowStepCommand = exports.se_CreateWorkflowCommand = void 0;
4
4
  exports.de_UpdateWorkflowStepGroupCommand = exports.de_UpdateWorkflowStepCommand = exports.de_UpdateWorkflowCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopWorkflowCommand = 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 MigrationHubOrchestratorServiceException_1 = require("../models/MigrationHubOrchestratorServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_CreateWorkflowCommand = 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 || ""}` + "/migrationworkflow";
14
+ b.bp("/migrationworkflow");
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  applicationConfigurationId: [],
@@ -22,23 +22,16 @@ const se_CreateWorkflowCommand = async (input, context) => {
22
22
  tags: (_) => (0, smithy_client_1._json)(_),
23
23
  templateId: [],
24
24
  }));
25
- return new protocol_http_1.HttpRequest({
26
- protocol,
27
- hostname,
28
- port,
29
- method: "POST",
30
- headers,
31
- path: resolvedPath,
32
- body,
33
- });
25
+ b.m("POST").h(headers).b(body);
26
+ return b.build();
34
27
  };
35
28
  exports.se_CreateWorkflowCommand = se_CreateWorkflowCommand;
36
29
  const se_CreateWorkflowStepCommand = async (input, context) => {
37
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
30
+ const b = (0, core_1.requestBuilder)(input, context);
38
31
  const headers = {
39
32
  "content-type": "application/json",
40
33
  };
41
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep";
34
+ b.bp("/workflowstep");
42
35
  let body;
43
36
  body = JSON.stringify((0, smithy_client_1.take)(input, {
44
37
  description: [],
@@ -52,23 +45,16 @@ const se_CreateWorkflowStepCommand = async (input, context) => {
52
45
  workflowId: [],
53
46
  workflowStepAutomationConfiguration: (_) => (0, smithy_client_1._json)(_),
54
47
  }));
55
- return new protocol_http_1.HttpRequest({
56
- protocol,
57
- hostname,
58
- port,
59
- method: "POST",
60
- headers,
61
- path: resolvedPath,
62
- body,
63
- });
48
+ b.m("POST").h(headers).b(body);
49
+ return b.build();
64
50
  };
65
51
  exports.se_CreateWorkflowStepCommand = se_CreateWorkflowStepCommand;
66
52
  const se_CreateWorkflowStepGroupCommand = async (input, context) => {
67
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
+ const b = (0, core_1.requestBuilder)(input, context);
68
54
  const headers = {
69
55
  "content-type": "application/json",
70
56
  };
71
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroups";
57
+ b.bp("/workflowstepgroups");
72
58
  let body;
73
59
  body = JSON.stringify((0, smithy_client_1.take)(input, {
74
60
  description: [],
@@ -77,479 +63,303 @@ const se_CreateWorkflowStepGroupCommand = async (input, context) => {
77
63
  previous: (_) => (0, smithy_client_1._json)(_),
78
64
  workflowId: [],
79
65
  }));
80
- return new protocol_http_1.HttpRequest({
81
- protocol,
82
- hostname,
83
- port,
84
- method: "POST",
85
- headers,
86
- path: resolvedPath,
87
- body,
88
- });
66
+ b.m("POST").h(headers).b(body);
67
+ return b.build();
89
68
  };
90
69
  exports.se_CreateWorkflowStepGroupCommand = se_CreateWorkflowStepGroupCommand;
91
70
  const se_DeleteWorkflowCommand = async (input, context) => {
92
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
71
+ const b = (0, core_1.requestBuilder)(input, context);
93
72
  const headers = {};
94
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}";
95
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
73
+ b.bp("/migrationworkflow/{id}");
74
+ b.p("id", () => input.id, "{id}", false);
96
75
  let body;
97
- return new protocol_http_1.HttpRequest({
98
- protocol,
99
- hostname,
100
- port,
101
- method: "DELETE",
102
- headers,
103
- path: resolvedPath,
104
- body,
105
- });
76
+ b.m("DELETE").h(headers).b(body);
77
+ return b.build();
106
78
  };
107
79
  exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
108
80
  const se_DeleteWorkflowStepCommand = async (input, context) => {
109
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
81
+ const b = (0, core_1.requestBuilder)(input, context);
110
82
  const headers = {};
111
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep/{id}";
112
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
83
+ b.bp("/workflowstep/{id}");
84
+ b.p("id", () => input.id, "{id}", false);
113
85
  const query = (0, smithy_client_1.map)({
114
- stepGroupId: [, (0, smithy_client_1.expectNonNull)(input.stepGroupId, `stepGroupId`)],
115
- workflowId: [, (0, smithy_client_1.expectNonNull)(input.workflowId, `workflowId`)],
86
+ [_sGI]: [, (0, smithy_client_1.expectNonNull)(input[_sGI], `stepGroupId`)],
87
+ [_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
116
88
  });
117
89
  let body;
118
- return new protocol_http_1.HttpRequest({
119
- protocol,
120
- hostname,
121
- port,
122
- method: "DELETE",
123
- headers,
124
- path: resolvedPath,
125
- query,
126
- body,
127
- });
90
+ b.m("DELETE").h(headers).q(query).b(body);
91
+ return b.build();
128
92
  };
129
93
  exports.se_DeleteWorkflowStepCommand = se_DeleteWorkflowStepCommand;
130
94
  const se_DeleteWorkflowStepGroupCommand = async (input, context) => {
131
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
95
+ const b = (0, core_1.requestBuilder)(input, context);
132
96
  const headers = {};
133
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroup/{id}";
134
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
97
+ b.bp("/workflowstepgroup/{id}");
98
+ b.p("id", () => input.id, "{id}", false);
135
99
  const query = (0, smithy_client_1.map)({
136
- workflowId: [, (0, smithy_client_1.expectNonNull)(input.workflowId, `workflowId`)],
100
+ [_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
137
101
  });
138
102
  let body;
139
- return new protocol_http_1.HttpRequest({
140
- protocol,
141
- hostname,
142
- port,
143
- method: "DELETE",
144
- headers,
145
- path: resolvedPath,
146
- query,
147
- body,
148
- });
103
+ b.m("DELETE").h(headers).q(query).b(body);
104
+ return b.build();
149
105
  };
150
106
  exports.se_DeleteWorkflowStepGroupCommand = se_DeleteWorkflowStepGroupCommand;
151
107
  const se_GetTemplateCommand = async (input, context) => {
152
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
108
+ const b = (0, core_1.requestBuilder)(input, context);
153
109
  const headers = {};
154
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflowtemplate/{id}";
155
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
110
+ b.bp("/migrationworkflowtemplate/{id}");
111
+ b.p("id", () => input.id, "{id}", false);
156
112
  let body;
157
- return new protocol_http_1.HttpRequest({
158
- protocol,
159
- hostname,
160
- port,
161
- method: "GET",
162
- headers,
163
- path: resolvedPath,
164
- body,
165
- });
113
+ b.m("GET").h(headers).b(body);
114
+ return b.build();
166
115
  };
167
116
  exports.se_GetTemplateCommand = se_GetTemplateCommand;
168
117
  const se_GetTemplateStepCommand = async (input, context) => {
169
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
118
+ const b = (0, core_1.requestBuilder)(input, context);
170
119
  const headers = {};
171
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templatestep/{id}";
172
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
120
+ b.bp("/templatestep/{id}");
121
+ b.p("id", () => input.id, "{id}", false);
173
122
  const query = (0, smithy_client_1.map)({
174
- templateId: [, (0, smithy_client_1.expectNonNull)(input.templateId, `templateId`)],
175
- stepGroupId: [, (0, smithy_client_1.expectNonNull)(input.stepGroupId, `stepGroupId`)],
123
+ [_tI]: [, (0, smithy_client_1.expectNonNull)(input[_tI], `templateId`)],
124
+ [_sGI]: [, (0, smithy_client_1.expectNonNull)(input[_sGI], `stepGroupId`)],
176
125
  });
177
126
  let body;
178
- return new protocol_http_1.HttpRequest({
179
- protocol,
180
- hostname,
181
- port,
182
- method: "GET",
183
- headers,
184
- path: resolvedPath,
185
- query,
186
- body,
187
- });
127
+ b.m("GET").h(headers).q(query).b(body);
128
+ return b.build();
188
129
  };
189
130
  exports.se_GetTemplateStepCommand = se_GetTemplateStepCommand;
190
131
  const se_GetTemplateStepGroupCommand = async (input, context) => {
191
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
132
+ const b = (0, core_1.requestBuilder)(input, context);
192
133
  const headers = {};
193
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/{templateId}/stepgroups/{id}";
194
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateId", () => input.templateId, "{templateId}", false);
195
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
134
+ b.bp("/templates/{templateId}/stepgroups/{id}");
135
+ b.p("templateId", () => input.templateId, "{templateId}", false);
136
+ b.p("id", () => input.id, "{id}", false);
196
137
  let body;
197
- return new protocol_http_1.HttpRequest({
198
- protocol,
199
- hostname,
200
- port,
201
- method: "GET",
202
- headers,
203
- path: resolvedPath,
204
- body,
205
- });
138
+ b.m("GET").h(headers).b(body);
139
+ return b.build();
206
140
  };
207
141
  exports.se_GetTemplateStepGroupCommand = se_GetTemplateStepGroupCommand;
208
142
  const se_GetWorkflowCommand = async (input, context) => {
209
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
143
+ const b = (0, core_1.requestBuilder)(input, context);
210
144
  const headers = {};
211
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}";
212
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
145
+ b.bp("/migrationworkflow/{id}");
146
+ b.p("id", () => input.id, "{id}", false);
213
147
  let body;
214
- return new protocol_http_1.HttpRequest({
215
- protocol,
216
- hostname,
217
- port,
218
- method: "GET",
219
- headers,
220
- path: resolvedPath,
221
- body,
222
- });
148
+ b.m("GET").h(headers).b(body);
149
+ return b.build();
223
150
  };
224
151
  exports.se_GetWorkflowCommand = se_GetWorkflowCommand;
225
152
  const se_GetWorkflowStepCommand = async (input, context) => {
226
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
+ const b = (0, core_1.requestBuilder)(input, context);
227
154
  const headers = {};
228
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep/{id}";
229
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
155
+ b.bp("/workflowstep/{id}");
156
+ b.p("id", () => input.id, "{id}", false);
230
157
  const query = (0, smithy_client_1.map)({
231
- workflowId: [, (0, smithy_client_1.expectNonNull)(input.workflowId, `workflowId`)],
232
- stepGroupId: [, (0, smithy_client_1.expectNonNull)(input.stepGroupId, `stepGroupId`)],
158
+ [_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
159
+ [_sGI]: [, (0, smithy_client_1.expectNonNull)(input[_sGI], `stepGroupId`)],
233
160
  });
234
161
  let body;
235
- return new protocol_http_1.HttpRequest({
236
- protocol,
237
- hostname,
238
- port,
239
- method: "GET",
240
- headers,
241
- path: resolvedPath,
242
- query,
243
- body,
244
- });
162
+ b.m("GET").h(headers).q(query).b(body);
163
+ return b.build();
245
164
  };
246
165
  exports.se_GetWorkflowStepCommand = se_GetWorkflowStepCommand;
247
166
  const se_GetWorkflowStepGroupCommand = async (input, context) => {
248
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
167
+ const b = (0, core_1.requestBuilder)(input, context);
249
168
  const headers = {};
250
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroup/{id}";
251
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
169
+ b.bp("/workflowstepgroup/{id}");
170
+ b.p("id", () => input.id, "{id}", false);
252
171
  const query = (0, smithy_client_1.map)({
253
- workflowId: [, (0, smithy_client_1.expectNonNull)(input.workflowId, `workflowId`)],
172
+ [_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
254
173
  });
255
174
  let body;
256
- return new protocol_http_1.HttpRequest({
257
- protocol,
258
- hostname,
259
- port,
260
- method: "GET",
261
- headers,
262
- path: resolvedPath,
263
- query,
264
- body,
265
- });
175
+ b.m("GET").h(headers).q(query).b(body);
176
+ return b.build();
266
177
  };
267
178
  exports.se_GetWorkflowStepGroupCommand = se_GetWorkflowStepGroupCommand;
268
179
  const se_ListPluginsCommand = async (input, context) => {
269
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
180
+ const b = (0, core_1.requestBuilder)(input, context);
270
181
  const headers = {};
271
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/plugins";
182
+ b.bp("/plugins");
272
183
  const query = (0, smithy_client_1.map)({
273
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
274
- nextToken: [, input.nextToken],
184
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
185
+ [_nT]: [, input[_nT]],
275
186
  });
276
187
  let body;
277
- return new protocol_http_1.HttpRequest({
278
- protocol,
279
- hostname,
280
- port,
281
- method: "GET",
282
- headers,
283
- path: resolvedPath,
284
- query,
285
- body,
286
- });
188
+ b.m("GET").h(headers).q(query).b(body);
189
+ return b.build();
287
190
  };
288
191
  exports.se_ListPluginsCommand = se_ListPluginsCommand;
289
192
  const se_ListTagsForResourceCommand = async (input, context) => {
290
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const b = (0, core_1.requestBuilder)(input, context);
291
194
  const headers = {};
292
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
293
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
195
+ b.bp("/tags/{resourceArn}");
196
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
294
197
  let body;
295
- return new protocol_http_1.HttpRequest({
296
- protocol,
297
- hostname,
298
- port,
299
- method: "GET",
300
- headers,
301
- path: resolvedPath,
302
- body,
303
- });
198
+ b.m("GET").h(headers).b(body);
199
+ return b.build();
304
200
  };
305
201
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
306
202
  const se_ListTemplatesCommand = async (input, context) => {
307
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
203
+ const b = (0, core_1.requestBuilder)(input, context);
308
204
  const headers = {};
309
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflowtemplates";
205
+ b.bp("/migrationworkflowtemplates");
310
206
  const query = (0, smithy_client_1.map)({
311
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
312
- nextToken: [, input.nextToken],
313
- name: [, input.name],
207
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
208
+ [_nT]: [, input[_nT]],
209
+ [_n]: [, input[_n]],
314
210
  });
315
211
  let body;
316
- return new protocol_http_1.HttpRequest({
317
- protocol,
318
- hostname,
319
- port,
320
- method: "GET",
321
- headers,
322
- path: resolvedPath,
323
- query,
324
- body,
325
- });
212
+ b.m("GET").h(headers).q(query).b(body);
213
+ return b.build();
326
214
  };
327
215
  exports.se_ListTemplatesCommand = se_ListTemplatesCommand;
328
216
  const se_ListTemplateStepGroupsCommand = async (input, context) => {
329
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
217
+ const b = (0, core_1.requestBuilder)(input, context);
330
218
  const headers = {};
331
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templatestepgroups/{templateId}";
332
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateId", () => input.templateId, "{templateId}", false);
219
+ b.bp("/templatestepgroups/{templateId}");
220
+ b.p("templateId", () => input.templateId, "{templateId}", false);
333
221
  const query = (0, smithy_client_1.map)({
334
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
335
- nextToken: [, input.nextToken],
222
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
223
+ [_nT]: [, input[_nT]],
336
224
  });
337
225
  let body;
338
- return new protocol_http_1.HttpRequest({
339
- protocol,
340
- hostname,
341
- port,
342
- method: "GET",
343
- headers,
344
- path: resolvedPath,
345
- query,
346
- body,
347
- });
226
+ b.m("GET").h(headers).q(query).b(body);
227
+ return b.build();
348
228
  };
349
229
  exports.se_ListTemplateStepGroupsCommand = se_ListTemplateStepGroupsCommand;
350
230
  const se_ListTemplateStepsCommand = async (input, context) => {
351
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
+ const b = (0, core_1.requestBuilder)(input, context);
352
232
  const headers = {};
353
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templatesteps";
233
+ b.bp("/templatesteps");
354
234
  const query = (0, smithy_client_1.map)({
355
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
356
- nextToken: [, input.nextToken],
357
- templateId: [, (0, smithy_client_1.expectNonNull)(input.templateId, `templateId`)],
358
- stepGroupId: [, (0, smithy_client_1.expectNonNull)(input.stepGroupId, `stepGroupId`)],
235
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
236
+ [_nT]: [, input[_nT]],
237
+ [_tI]: [, (0, smithy_client_1.expectNonNull)(input[_tI], `templateId`)],
238
+ [_sGI]: [, (0, smithy_client_1.expectNonNull)(input[_sGI], `stepGroupId`)],
359
239
  });
360
240
  let body;
361
- return new protocol_http_1.HttpRequest({
362
- protocol,
363
- hostname,
364
- port,
365
- method: "GET",
366
- headers,
367
- path: resolvedPath,
368
- query,
369
- body,
370
- });
241
+ b.m("GET").h(headers).q(query).b(body);
242
+ return b.build();
371
243
  };
372
244
  exports.se_ListTemplateStepsCommand = se_ListTemplateStepsCommand;
373
245
  const se_ListWorkflowsCommand = async (input, context) => {
374
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
246
+ const b = (0, core_1.requestBuilder)(input, context);
375
247
  const headers = {};
376
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflows";
248
+ b.bp("/migrationworkflows");
377
249
  const query = (0, smithy_client_1.map)({
378
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
379
- nextToken: [, input.nextToken],
380
- templateId: [, input.templateId],
381
- adsApplicationConfigurationName: [, input.adsApplicationConfigurationName],
382
- status: [, input.status],
383
- name: [, input.name],
250
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
251
+ [_nT]: [, input[_nT]],
252
+ [_tI]: [, input[_tI]],
253
+ [_aACN]: [, input[_aACN]],
254
+ [_s]: [, input[_s]],
255
+ [_n]: [, input[_n]],
384
256
  });
385
257
  let body;
386
- return new protocol_http_1.HttpRequest({
387
- protocol,
388
- hostname,
389
- port,
390
- method: "GET",
391
- headers,
392
- path: resolvedPath,
393
- query,
394
- body,
395
- });
258
+ b.m("GET").h(headers).q(query).b(body);
259
+ return b.build();
396
260
  };
397
261
  exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
398
262
  const se_ListWorkflowStepGroupsCommand = async (input, context) => {
399
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
263
+ const b = (0, core_1.requestBuilder)(input, context);
400
264
  const headers = {};
401
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroups";
265
+ b.bp("/workflowstepgroups");
402
266
  const query = (0, smithy_client_1.map)({
403
- nextToken: [, input.nextToken],
404
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
405
- workflowId: [, (0, smithy_client_1.expectNonNull)(input.workflowId, `workflowId`)],
267
+ [_nT]: [, input[_nT]],
268
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
269
+ [_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
406
270
  });
407
271
  let body;
408
- return new protocol_http_1.HttpRequest({
409
- protocol,
410
- hostname,
411
- port,
412
- method: "GET",
413
- headers,
414
- path: resolvedPath,
415
- query,
416
- body,
417
- });
272
+ b.m("GET").h(headers).q(query).b(body);
273
+ return b.build();
418
274
  };
419
275
  exports.se_ListWorkflowStepGroupsCommand = se_ListWorkflowStepGroupsCommand;
420
276
  const se_ListWorkflowStepsCommand = async (input, context) => {
421
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
+ const b = (0, core_1.requestBuilder)(input, context);
422
278
  const headers = {};
423
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
424
- "/workflow/{workflowId}/workflowstepgroups/{stepGroupId}/workflowsteps";
425
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workflowId", () => input.workflowId, "{workflowId}", false);
426
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "stepGroupId", () => input.stepGroupId, "{stepGroupId}", false);
279
+ b.bp("/workflow/{workflowId}/workflowstepgroups/{stepGroupId}/workflowsteps");
280
+ b.p("workflowId", () => input.workflowId, "{workflowId}", false);
281
+ b.p("stepGroupId", () => input.stepGroupId, "{stepGroupId}", false);
427
282
  const query = (0, smithy_client_1.map)({
428
- nextToken: [, input.nextToken],
429
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
283
+ [_nT]: [, input[_nT]],
284
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
430
285
  });
431
286
  let body;
432
- return new protocol_http_1.HttpRequest({
433
- protocol,
434
- hostname,
435
- port,
436
- method: "GET",
437
- headers,
438
- path: resolvedPath,
439
- query,
440
- body,
441
- });
287
+ b.m("GET").h(headers).q(query).b(body);
288
+ return b.build();
442
289
  };
443
290
  exports.se_ListWorkflowStepsCommand = se_ListWorkflowStepsCommand;
444
291
  const se_RetryWorkflowStepCommand = async (input, context) => {
445
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const b = (0, core_1.requestBuilder)(input, context);
446
293
  const headers = {};
447
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/retryworkflowstep/{id}";
448
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
294
+ b.bp("/retryworkflowstep/{id}");
295
+ b.p("id", () => input.id, "{id}", false);
449
296
  const query = (0, smithy_client_1.map)({
450
- workflowId: [, (0, smithy_client_1.expectNonNull)(input.workflowId, `workflowId`)],
451
- stepGroupId: [, (0, smithy_client_1.expectNonNull)(input.stepGroupId, `stepGroupId`)],
297
+ [_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
298
+ [_sGI]: [, (0, smithy_client_1.expectNonNull)(input[_sGI], `stepGroupId`)],
452
299
  });
453
300
  let body;
454
- return new protocol_http_1.HttpRequest({
455
- protocol,
456
- hostname,
457
- port,
458
- method: "POST",
459
- headers,
460
- path: resolvedPath,
461
- query,
462
- body,
463
- });
301
+ b.m("POST").h(headers).q(query).b(body);
302
+ return b.build();
464
303
  };
465
304
  exports.se_RetryWorkflowStepCommand = se_RetryWorkflowStepCommand;
466
305
  const se_StartWorkflowCommand = async (input, context) => {
467
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
306
+ const b = (0, core_1.requestBuilder)(input, context);
468
307
  const headers = {};
469
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}/start";
470
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
308
+ b.bp("/migrationworkflow/{id}/start");
309
+ b.p("id", () => input.id, "{id}", false);
471
310
  let body;
472
- return new protocol_http_1.HttpRequest({
473
- protocol,
474
- hostname,
475
- port,
476
- method: "POST",
477
- headers,
478
- path: resolvedPath,
479
- body,
480
- });
311
+ b.m("POST").h(headers).b(body);
312
+ return b.build();
481
313
  };
482
314
  exports.se_StartWorkflowCommand = se_StartWorkflowCommand;
483
315
  const se_StopWorkflowCommand = async (input, context) => {
484
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
316
+ const b = (0, core_1.requestBuilder)(input, context);
485
317
  const headers = {};
486
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}/stop";
487
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
318
+ b.bp("/migrationworkflow/{id}/stop");
319
+ b.p("id", () => input.id, "{id}", false);
488
320
  let body;
489
- return new protocol_http_1.HttpRequest({
490
- protocol,
491
- hostname,
492
- port,
493
- method: "POST",
494
- headers,
495
- path: resolvedPath,
496
- body,
497
- });
321
+ b.m("POST").h(headers).b(body);
322
+ return b.build();
498
323
  };
499
324
  exports.se_StopWorkflowCommand = se_StopWorkflowCommand;
500
325
  const se_TagResourceCommand = async (input, context) => {
501
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
326
+ const b = (0, core_1.requestBuilder)(input, context);
502
327
  const headers = {
503
328
  "content-type": "application/json",
504
329
  };
505
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
506
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
330
+ b.bp("/tags/{resourceArn}");
331
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
507
332
  let body;
508
333
  body = JSON.stringify((0, smithy_client_1.take)(input, {
509
334
  tags: (_) => (0, smithy_client_1._json)(_),
510
335
  }));
511
- return new protocol_http_1.HttpRequest({
512
- protocol,
513
- hostname,
514
- port,
515
- method: "POST",
516
- headers,
517
- path: resolvedPath,
518
- body,
519
- });
336
+ b.m("POST").h(headers).b(body);
337
+ return b.build();
520
338
  };
521
339
  exports.se_TagResourceCommand = se_TagResourceCommand;
522
340
  const se_UntagResourceCommand = async (input, context) => {
523
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
341
+ const b = (0, core_1.requestBuilder)(input, context);
524
342
  const headers = {};
525
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
526
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
343
+ b.bp("/tags/{resourceArn}");
344
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
527
345
  const query = (0, smithy_client_1.map)({
528
- tagKeys: [
346
+ [_tK]: [
529
347
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
530
- () => (input.tagKeys || []).map((_entry) => _entry),
348
+ () => (input[_tK] || []).map((_entry) => _entry),
531
349
  ],
532
350
  });
533
351
  let body;
534
- return new protocol_http_1.HttpRequest({
535
- protocol,
536
- hostname,
537
- port,
538
- method: "DELETE",
539
- headers,
540
- path: resolvedPath,
541
- query,
542
- body,
543
- });
352
+ b.m("DELETE").h(headers).q(query).b(body);
353
+ return b.build();
544
354
  };
545
355
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
546
356
  const se_UpdateWorkflowCommand = async (input, context) => {
547
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
357
+ const b = (0, core_1.requestBuilder)(input, context);
548
358
  const headers = {
549
359
  "content-type": "application/json",
550
360
  };
551
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}";
552
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
361
+ b.bp("/migrationworkflow/{id}");
362
+ b.p("id", () => input.id, "{id}", false);
553
363
  let body;
554
364
  body = JSON.stringify((0, smithy_client_1.take)(input, {
555
365
  description: [],
@@ -557,24 +367,17 @@ const se_UpdateWorkflowCommand = async (input, context) => {
557
367
  name: [],
558
368
  stepTargets: (_) => (0, smithy_client_1._json)(_),
559
369
  }));
560
- return new protocol_http_1.HttpRequest({
561
- protocol,
562
- hostname,
563
- port,
564
- method: "POST",
565
- headers,
566
- path: resolvedPath,
567
- body,
568
- });
370
+ b.m("POST").h(headers).b(body);
371
+ return b.build();
569
372
  };
570
373
  exports.se_UpdateWorkflowCommand = se_UpdateWorkflowCommand;
571
374
  const se_UpdateWorkflowStepCommand = async (input, context) => {
572
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
375
+ const b = (0, core_1.requestBuilder)(input, context);
573
376
  const headers = {
574
377
  "content-type": "application/json",
575
378
  };
576
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep/{id}";
577
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
379
+ b.bp("/workflowstep/{id}");
380
+ b.p("id", () => input.id, "{id}", false);
578
381
  let body;
579
382
  body = JSON.stringify((0, smithy_client_1.take)(input, {
580
383
  description: [],
@@ -589,26 +392,19 @@ const se_UpdateWorkflowStepCommand = async (input, context) => {
589
392
  workflowId: [],
590
393
  workflowStepAutomationConfiguration: (_) => (0, smithy_client_1._json)(_),
591
394
  }));
592
- return new protocol_http_1.HttpRequest({
593
- protocol,
594
- hostname,
595
- port,
596
- method: "POST",
597
- headers,
598
- path: resolvedPath,
599
- body,
600
- });
395
+ b.m("POST").h(headers).b(body);
396
+ return b.build();
601
397
  };
602
398
  exports.se_UpdateWorkflowStepCommand = se_UpdateWorkflowStepCommand;
603
399
  const se_UpdateWorkflowStepGroupCommand = async (input, context) => {
604
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
400
+ const b = (0, core_1.requestBuilder)(input, context);
605
401
  const headers = {
606
402
  "content-type": "application/json",
607
403
  };
608
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroup/{id}";
609
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
404
+ b.bp("/workflowstepgroup/{id}");
405
+ b.p("id", () => input.id, "{id}", false);
610
406
  const query = (0, smithy_client_1.map)({
611
- workflowId: [, (0, smithy_client_1.expectNonNull)(input.workflowId, `workflowId`)],
407
+ [_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
612
408
  });
613
409
  let body;
614
410
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -617,16 +413,8 @@ const se_UpdateWorkflowStepGroupCommand = async (input, context) => {
617
413
  next: (_) => (0, smithy_client_1._json)(_),
618
414
  previous: (_) => (0, smithy_client_1._json)(_),
619
415
  }));
620
- return new protocol_http_1.HttpRequest({
621
- protocol,
622
- hostname,
623
- port,
624
- method: "POST",
625
- headers,
626
- path: resolvedPath,
627
- query,
628
- body,
629
- });
416
+ b.m("POST").h(headers).q(query).b(body);
417
+ return b.build();
630
418
  };
631
419
  exports.se_UpdateWorkflowStepGroupCommand = se_UpdateWorkflowStepGroupCommand;
632
420
  const de_CreateWorkflowCommand = async (output, context) => {
@@ -2071,6 +1859,15 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2071
1859
  value !== "" &&
2072
1860
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2073
1861
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1862
+ const _aACN = "adsApplicationConfigurationName";
1863
+ const _mR = "maxResults";
1864
+ const _n = "name";
1865
+ const _nT = "nextToken";
1866
+ const _s = "status";
1867
+ const _sGI = "stepGroupId";
1868
+ const _tI = "templateId";
1869
+ const _tK = "tagKeys";
1870
+ const _wI = "workflowId";
2074
1871
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2075
1872
  if (encoded.length) {
2076
1873
  return JSON.parse(encoded);