@aws-sdk/client-migrationhuborchestrator 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 (31) hide show
  1. package/dist-cjs/pagination/ListPluginsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListTemplateStepGroupsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListTemplateStepsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListTemplatesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListWorkflowStepGroupsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListWorkflowStepsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
  8. package/dist-cjs/protocols/Aws_restJson1.js +179 -382
  9. package/dist-es/pagination/ListPluginsPaginator.js +2 -23
  10. package/dist-es/pagination/ListTemplateStepGroupsPaginator.js +2 -23
  11. package/dist-es/pagination/ListTemplateStepsPaginator.js +2 -23
  12. package/dist-es/pagination/ListTemplatesPaginator.js +2 -23
  13. package/dist-es/pagination/ListWorkflowStepGroupsPaginator.js +2 -23
  14. package/dist-es/pagination/ListWorkflowStepsPaginator.js +2 -23
  15. package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
  16. package/dist-es/protocols/Aws_restJson1.js +180 -383
  17. package/dist-types/pagination/ListPluginsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListTemplateStepGroupsPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListTemplateStepsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListTemplatesPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListWorkflowStepGroupsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListWorkflowStepsPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
  24. package/dist-types/ts3.4/pagination/ListPluginsPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListTemplateStepGroupsPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListTemplateStepsPaginator.d.ts +3 -3
  27. package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +3 -3
  28. package/dist-types/ts3.4/pagination/ListWorkflowStepGroupsPaginator.d.ts +3 -3
  29. package/dist-types/ts3.4/pagination/ListWorkflowStepsPaginator.d.ts +3 -3
  30. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
  31. package/package.json +7 -6
@@ -1,13 +1,13 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { MigrationHubOrchestratorServiceException as __BaseException } from "../models/MigrationHubOrchestratorServiceException";
4
4
  import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  export const se_CreateWorkflowCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {
8
8
  "content-type": "application/json",
9
9
  };
10
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow";
10
+ b.bp("/migrationworkflow");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  applicationConfigurationId: [],
@@ -18,22 +18,15 @@ export const se_CreateWorkflowCommand = async (input, context) => {
18
18
  tags: (_) => _json(_),
19
19
  templateId: [],
20
20
  }));
21
- return new __HttpRequest({
22
- protocol,
23
- hostname,
24
- port,
25
- method: "POST",
26
- headers,
27
- path: resolvedPath,
28
- body,
29
- });
21
+ b.m("POST").h(headers).b(body);
22
+ return b.build();
30
23
  };
31
24
  export const se_CreateWorkflowStepCommand = async (input, context) => {
32
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
25
+ const b = rb(input, context);
33
26
  const headers = {
34
27
  "content-type": "application/json",
35
28
  };
36
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep";
29
+ b.bp("/workflowstep");
37
30
  let body;
38
31
  body = JSON.stringify(take(input, {
39
32
  description: [],
@@ -47,22 +40,15 @@ export const se_CreateWorkflowStepCommand = async (input, context) => {
47
40
  workflowId: [],
48
41
  workflowStepAutomationConfiguration: (_) => _json(_),
49
42
  }));
50
- return new __HttpRequest({
51
- protocol,
52
- hostname,
53
- port,
54
- method: "POST",
55
- headers,
56
- path: resolvedPath,
57
- body,
58
- });
43
+ b.m("POST").h(headers).b(body);
44
+ return b.build();
59
45
  };
60
46
  export const se_CreateWorkflowStepGroupCommand = async (input, context) => {
61
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
47
+ const b = rb(input, context);
62
48
  const headers = {
63
49
  "content-type": "application/json",
64
50
  };
65
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroups";
51
+ b.bp("/workflowstepgroups");
66
52
  let body;
67
53
  body = JSON.stringify(take(input, {
68
54
  description: [],
@@ -71,456 +57,280 @@ export const se_CreateWorkflowStepGroupCommand = async (input, context) => {
71
57
  previous: (_) => _json(_),
72
58
  workflowId: [],
73
59
  }));
74
- return new __HttpRequest({
75
- protocol,
76
- hostname,
77
- port,
78
- method: "POST",
79
- headers,
80
- path: resolvedPath,
81
- body,
82
- });
60
+ b.m("POST").h(headers).b(body);
61
+ return b.build();
83
62
  };
84
63
  export const se_DeleteWorkflowCommand = async (input, context) => {
85
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
64
+ const b = rb(input, context);
86
65
  const headers = {};
87
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}";
88
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
66
+ b.bp("/migrationworkflow/{id}");
67
+ b.p("id", () => input.id, "{id}", false);
89
68
  let body;
90
- return new __HttpRequest({
91
- protocol,
92
- hostname,
93
- port,
94
- method: "DELETE",
95
- headers,
96
- path: resolvedPath,
97
- body,
98
- });
69
+ b.m("DELETE").h(headers).b(body);
70
+ return b.build();
99
71
  };
100
72
  export const se_DeleteWorkflowStepCommand = async (input, context) => {
101
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = rb(input, context);
102
74
  const headers = {};
103
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep/{id}";
104
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
75
+ b.bp("/workflowstep/{id}");
76
+ b.p("id", () => input.id, "{id}", false);
105
77
  const query = map({
106
- stepGroupId: [, __expectNonNull(input.stepGroupId, `stepGroupId`)],
107
- workflowId: [, __expectNonNull(input.workflowId, `workflowId`)],
78
+ [_sGI]: [, __expectNonNull(input[_sGI], `stepGroupId`)],
79
+ [_wI]: [, __expectNonNull(input[_wI], `workflowId`)],
108
80
  });
109
81
  let body;
110
- return new __HttpRequest({
111
- protocol,
112
- hostname,
113
- port,
114
- method: "DELETE",
115
- headers,
116
- path: resolvedPath,
117
- query,
118
- body,
119
- });
82
+ b.m("DELETE").h(headers).q(query).b(body);
83
+ return b.build();
120
84
  };
121
85
  export const se_DeleteWorkflowStepGroupCommand = async (input, context) => {
122
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
86
+ const b = rb(input, context);
123
87
  const headers = {};
124
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroup/{id}";
125
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
88
+ b.bp("/workflowstepgroup/{id}");
89
+ b.p("id", () => input.id, "{id}", false);
126
90
  const query = map({
127
- workflowId: [, __expectNonNull(input.workflowId, `workflowId`)],
91
+ [_wI]: [, __expectNonNull(input[_wI], `workflowId`)],
128
92
  });
129
93
  let body;
130
- return new __HttpRequest({
131
- protocol,
132
- hostname,
133
- port,
134
- method: "DELETE",
135
- headers,
136
- path: resolvedPath,
137
- query,
138
- body,
139
- });
94
+ b.m("DELETE").h(headers).q(query).b(body);
95
+ return b.build();
140
96
  };
141
97
  export const se_GetTemplateCommand = async (input, context) => {
142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
98
+ const b = rb(input, context);
143
99
  const headers = {};
144
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflowtemplate/{id}";
145
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
100
+ b.bp("/migrationworkflowtemplate/{id}");
101
+ b.p("id", () => input.id, "{id}", false);
146
102
  let body;
147
- return new __HttpRequest({
148
- protocol,
149
- hostname,
150
- port,
151
- method: "GET",
152
- headers,
153
- path: resolvedPath,
154
- body,
155
- });
103
+ b.m("GET").h(headers).b(body);
104
+ return b.build();
156
105
  };
157
106
  export const se_GetTemplateStepCommand = async (input, context) => {
158
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
+ const b = rb(input, context);
159
108
  const headers = {};
160
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templatestep/{id}";
161
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
109
+ b.bp("/templatestep/{id}");
110
+ b.p("id", () => input.id, "{id}", false);
162
111
  const query = map({
163
- templateId: [, __expectNonNull(input.templateId, `templateId`)],
164
- stepGroupId: [, __expectNonNull(input.stepGroupId, `stepGroupId`)],
112
+ [_tI]: [, __expectNonNull(input[_tI], `templateId`)],
113
+ [_sGI]: [, __expectNonNull(input[_sGI], `stepGroupId`)],
165
114
  });
166
115
  let body;
167
- return new __HttpRequest({
168
- protocol,
169
- hostname,
170
- port,
171
- method: "GET",
172
- headers,
173
- path: resolvedPath,
174
- query,
175
- body,
176
- });
116
+ b.m("GET").h(headers).q(query).b(body);
117
+ return b.build();
177
118
  };
178
119
  export const se_GetTemplateStepGroupCommand = async (input, context) => {
179
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
120
+ const b = rb(input, context);
180
121
  const headers = {};
181
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/{templateId}/stepgroups/{id}";
182
- resolvedPath = __resolvedPath(resolvedPath, input, "templateId", () => input.templateId, "{templateId}", false);
183
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
122
+ b.bp("/templates/{templateId}/stepgroups/{id}");
123
+ b.p("templateId", () => input.templateId, "{templateId}", false);
124
+ b.p("id", () => input.id, "{id}", false);
184
125
  let body;
185
- return new __HttpRequest({
186
- protocol,
187
- hostname,
188
- port,
189
- method: "GET",
190
- headers,
191
- path: resolvedPath,
192
- body,
193
- });
126
+ b.m("GET").h(headers).b(body);
127
+ return b.build();
194
128
  };
195
129
  export const se_GetWorkflowCommand = async (input, context) => {
196
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
130
+ const b = rb(input, context);
197
131
  const headers = {};
198
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}";
199
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
132
+ b.bp("/migrationworkflow/{id}");
133
+ b.p("id", () => input.id, "{id}", false);
200
134
  let body;
201
- return new __HttpRequest({
202
- protocol,
203
- hostname,
204
- port,
205
- method: "GET",
206
- headers,
207
- path: resolvedPath,
208
- body,
209
- });
135
+ b.m("GET").h(headers).b(body);
136
+ return b.build();
210
137
  };
211
138
  export const se_GetWorkflowStepCommand = async (input, context) => {
212
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
+ const b = rb(input, context);
213
140
  const headers = {};
214
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep/{id}";
215
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
141
+ b.bp("/workflowstep/{id}");
142
+ b.p("id", () => input.id, "{id}", false);
216
143
  const query = map({
217
- workflowId: [, __expectNonNull(input.workflowId, `workflowId`)],
218
- stepGroupId: [, __expectNonNull(input.stepGroupId, `stepGroupId`)],
144
+ [_wI]: [, __expectNonNull(input[_wI], `workflowId`)],
145
+ [_sGI]: [, __expectNonNull(input[_sGI], `stepGroupId`)],
219
146
  });
220
147
  let body;
221
- return new __HttpRequest({
222
- protocol,
223
- hostname,
224
- port,
225
- method: "GET",
226
- headers,
227
- path: resolvedPath,
228
- query,
229
- body,
230
- });
148
+ b.m("GET").h(headers).q(query).b(body);
149
+ return b.build();
231
150
  };
232
151
  export const se_GetWorkflowStepGroupCommand = async (input, context) => {
233
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
152
+ const b = rb(input, context);
234
153
  const headers = {};
235
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroup/{id}";
236
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
154
+ b.bp("/workflowstepgroup/{id}");
155
+ b.p("id", () => input.id, "{id}", false);
237
156
  const query = map({
238
- workflowId: [, __expectNonNull(input.workflowId, `workflowId`)],
157
+ [_wI]: [, __expectNonNull(input[_wI], `workflowId`)],
239
158
  });
240
159
  let body;
241
- return new __HttpRequest({
242
- protocol,
243
- hostname,
244
- port,
245
- method: "GET",
246
- headers,
247
- path: resolvedPath,
248
- query,
249
- body,
250
- });
160
+ b.m("GET").h(headers).q(query).b(body);
161
+ return b.build();
251
162
  };
252
163
  export const se_ListPluginsCommand = async (input, context) => {
253
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
164
+ const b = rb(input, context);
254
165
  const headers = {};
255
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/plugins";
166
+ b.bp("/plugins");
256
167
  const query = map({
257
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
258
- nextToken: [, input.nextToken],
168
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
169
+ [_nT]: [, input[_nT]],
259
170
  });
260
171
  let body;
261
- return new __HttpRequest({
262
- protocol,
263
- hostname,
264
- port,
265
- method: "GET",
266
- headers,
267
- path: resolvedPath,
268
- query,
269
- body,
270
- });
172
+ b.m("GET").h(headers).q(query).b(body);
173
+ return b.build();
271
174
  };
272
175
  export const se_ListTagsForResourceCommand = async (input, context) => {
273
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
176
+ const b = rb(input, context);
274
177
  const headers = {};
275
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
276
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
178
+ b.bp("/tags/{resourceArn}");
179
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
277
180
  let body;
278
- return new __HttpRequest({
279
- protocol,
280
- hostname,
281
- port,
282
- method: "GET",
283
- headers,
284
- path: resolvedPath,
285
- body,
286
- });
181
+ b.m("GET").h(headers).b(body);
182
+ return b.build();
287
183
  };
288
184
  export const se_ListTemplatesCommand = async (input, context) => {
289
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
185
+ const b = rb(input, context);
290
186
  const headers = {};
291
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflowtemplates";
187
+ b.bp("/migrationworkflowtemplates");
292
188
  const query = map({
293
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
294
- nextToken: [, input.nextToken],
295
- name: [, input.name],
189
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
190
+ [_nT]: [, input[_nT]],
191
+ [_n]: [, input[_n]],
296
192
  });
297
193
  let body;
298
- return new __HttpRequest({
299
- protocol,
300
- hostname,
301
- port,
302
- method: "GET",
303
- headers,
304
- path: resolvedPath,
305
- query,
306
- body,
307
- });
194
+ b.m("GET").h(headers).q(query).b(body);
195
+ return b.build();
308
196
  };
309
197
  export const se_ListTemplateStepGroupsCommand = async (input, context) => {
310
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
198
+ const b = rb(input, context);
311
199
  const headers = {};
312
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templatestepgroups/{templateId}";
313
- resolvedPath = __resolvedPath(resolvedPath, input, "templateId", () => input.templateId, "{templateId}", false);
200
+ b.bp("/templatestepgroups/{templateId}");
201
+ b.p("templateId", () => input.templateId, "{templateId}", false);
314
202
  const query = map({
315
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
316
- nextToken: [, input.nextToken],
203
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
204
+ [_nT]: [, input[_nT]],
317
205
  });
318
206
  let body;
319
- return new __HttpRequest({
320
- protocol,
321
- hostname,
322
- port,
323
- method: "GET",
324
- headers,
325
- path: resolvedPath,
326
- query,
327
- body,
328
- });
207
+ b.m("GET").h(headers).q(query).b(body);
208
+ return b.build();
329
209
  };
330
210
  export const se_ListTemplateStepsCommand = async (input, context) => {
331
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
211
+ const b = rb(input, context);
332
212
  const headers = {};
333
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templatesteps";
213
+ b.bp("/templatesteps");
334
214
  const query = map({
335
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
336
- nextToken: [, input.nextToken],
337
- templateId: [, __expectNonNull(input.templateId, `templateId`)],
338
- stepGroupId: [, __expectNonNull(input.stepGroupId, `stepGroupId`)],
215
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
216
+ [_nT]: [, input[_nT]],
217
+ [_tI]: [, __expectNonNull(input[_tI], `templateId`)],
218
+ [_sGI]: [, __expectNonNull(input[_sGI], `stepGroupId`)],
339
219
  });
340
220
  let body;
341
- return new __HttpRequest({
342
- protocol,
343
- hostname,
344
- port,
345
- method: "GET",
346
- headers,
347
- path: resolvedPath,
348
- query,
349
- body,
350
- });
221
+ b.m("GET").h(headers).q(query).b(body);
222
+ return b.build();
351
223
  };
352
224
  export const se_ListWorkflowsCommand = async (input, context) => {
353
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
225
+ const b = rb(input, context);
354
226
  const headers = {};
355
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflows";
227
+ b.bp("/migrationworkflows");
356
228
  const query = map({
357
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
358
- nextToken: [, input.nextToken],
359
- templateId: [, input.templateId],
360
- adsApplicationConfigurationName: [, input.adsApplicationConfigurationName],
361
- status: [, input.status],
362
- name: [, input.name],
229
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
230
+ [_nT]: [, input[_nT]],
231
+ [_tI]: [, input[_tI]],
232
+ [_aACN]: [, input[_aACN]],
233
+ [_s]: [, input[_s]],
234
+ [_n]: [, input[_n]],
363
235
  });
364
236
  let body;
365
- return new __HttpRequest({
366
- protocol,
367
- hostname,
368
- port,
369
- method: "GET",
370
- headers,
371
- path: resolvedPath,
372
- query,
373
- body,
374
- });
237
+ b.m("GET").h(headers).q(query).b(body);
238
+ return b.build();
375
239
  };
376
240
  export const se_ListWorkflowStepGroupsCommand = async (input, context) => {
377
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
241
+ const b = rb(input, context);
378
242
  const headers = {};
379
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroups";
243
+ b.bp("/workflowstepgroups");
380
244
  const query = map({
381
- nextToken: [, input.nextToken],
382
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
383
- workflowId: [, __expectNonNull(input.workflowId, `workflowId`)],
245
+ [_nT]: [, input[_nT]],
246
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
247
+ [_wI]: [, __expectNonNull(input[_wI], `workflowId`)],
384
248
  });
385
249
  let body;
386
- return new __HttpRequest({
387
- protocol,
388
- hostname,
389
- port,
390
- method: "GET",
391
- headers,
392
- path: resolvedPath,
393
- query,
394
- body,
395
- });
250
+ b.m("GET").h(headers).q(query).b(body);
251
+ return b.build();
396
252
  };
397
253
  export const se_ListWorkflowStepsCommand = async (input, context) => {
398
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
254
+ const b = rb(input, context);
399
255
  const headers = {};
400
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
401
- "/workflow/{workflowId}/workflowstepgroups/{stepGroupId}/workflowsteps";
402
- resolvedPath = __resolvedPath(resolvedPath, input, "workflowId", () => input.workflowId, "{workflowId}", false);
403
- resolvedPath = __resolvedPath(resolvedPath, input, "stepGroupId", () => input.stepGroupId, "{stepGroupId}", false);
256
+ b.bp("/workflow/{workflowId}/workflowstepgroups/{stepGroupId}/workflowsteps");
257
+ b.p("workflowId", () => input.workflowId, "{workflowId}", false);
258
+ b.p("stepGroupId", () => input.stepGroupId, "{stepGroupId}", false);
404
259
  const query = map({
405
- nextToken: [, input.nextToken],
406
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
260
+ [_nT]: [, input[_nT]],
261
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
407
262
  });
408
263
  let body;
409
- return new __HttpRequest({
410
- protocol,
411
- hostname,
412
- port,
413
- method: "GET",
414
- headers,
415
- path: resolvedPath,
416
- query,
417
- body,
418
- });
264
+ b.m("GET").h(headers).q(query).b(body);
265
+ return b.build();
419
266
  };
420
267
  export const se_RetryWorkflowStepCommand = async (input, context) => {
421
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
268
+ const b = rb(input, context);
422
269
  const headers = {};
423
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/retryworkflowstep/{id}";
424
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
270
+ b.bp("/retryworkflowstep/{id}");
271
+ b.p("id", () => input.id, "{id}", false);
425
272
  const query = map({
426
- workflowId: [, __expectNonNull(input.workflowId, `workflowId`)],
427
- stepGroupId: [, __expectNonNull(input.stepGroupId, `stepGroupId`)],
273
+ [_wI]: [, __expectNonNull(input[_wI], `workflowId`)],
274
+ [_sGI]: [, __expectNonNull(input[_sGI], `stepGroupId`)],
428
275
  });
429
276
  let body;
430
- return new __HttpRequest({
431
- protocol,
432
- hostname,
433
- port,
434
- method: "POST",
435
- headers,
436
- path: resolvedPath,
437
- query,
438
- body,
439
- });
277
+ b.m("POST").h(headers).q(query).b(body);
278
+ return b.build();
440
279
  };
441
280
  export const se_StartWorkflowCommand = async (input, context) => {
442
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
281
+ const b = rb(input, context);
443
282
  const headers = {};
444
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}/start";
445
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
283
+ b.bp("/migrationworkflow/{id}/start");
284
+ b.p("id", () => input.id, "{id}", false);
446
285
  let body;
447
- return new __HttpRequest({
448
- protocol,
449
- hostname,
450
- port,
451
- method: "POST",
452
- headers,
453
- path: resolvedPath,
454
- body,
455
- });
286
+ b.m("POST").h(headers).b(body);
287
+ return b.build();
456
288
  };
457
289
  export const se_StopWorkflowCommand = async (input, context) => {
458
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
290
+ const b = rb(input, context);
459
291
  const headers = {};
460
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}/stop";
461
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
292
+ b.bp("/migrationworkflow/{id}/stop");
293
+ b.p("id", () => input.id, "{id}", false);
462
294
  let body;
463
- return new __HttpRequest({
464
- protocol,
465
- hostname,
466
- port,
467
- method: "POST",
468
- headers,
469
- path: resolvedPath,
470
- body,
471
- });
295
+ b.m("POST").h(headers).b(body);
296
+ return b.build();
472
297
  };
473
298
  export const se_TagResourceCommand = async (input, context) => {
474
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
299
+ const b = rb(input, context);
475
300
  const headers = {
476
301
  "content-type": "application/json",
477
302
  };
478
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
479
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
303
+ b.bp("/tags/{resourceArn}");
304
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
480
305
  let body;
481
306
  body = JSON.stringify(take(input, {
482
307
  tags: (_) => _json(_),
483
308
  }));
484
- return new __HttpRequest({
485
- protocol,
486
- hostname,
487
- port,
488
- method: "POST",
489
- headers,
490
- path: resolvedPath,
491
- body,
492
- });
309
+ b.m("POST").h(headers).b(body);
310
+ return b.build();
493
311
  };
494
312
  export const se_UntagResourceCommand = async (input, context) => {
495
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
313
+ const b = rb(input, context);
496
314
  const headers = {};
497
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
498
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
315
+ b.bp("/tags/{resourceArn}");
316
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
499
317
  const query = map({
500
- tagKeys: [
318
+ [_tK]: [
501
319
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
502
- () => (input.tagKeys || []).map((_entry) => _entry),
320
+ () => (input[_tK] || []).map((_entry) => _entry),
503
321
  ],
504
322
  });
505
323
  let body;
506
- return new __HttpRequest({
507
- protocol,
508
- hostname,
509
- port,
510
- method: "DELETE",
511
- headers,
512
- path: resolvedPath,
513
- query,
514
- body,
515
- });
324
+ b.m("DELETE").h(headers).q(query).b(body);
325
+ return b.build();
516
326
  };
517
327
  export const se_UpdateWorkflowCommand = async (input, context) => {
518
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
328
+ const b = rb(input, context);
519
329
  const headers = {
520
330
  "content-type": "application/json",
521
331
  };
522
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrationworkflow/{id}";
523
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
332
+ b.bp("/migrationworkflow/{id}");
333
+ b.p("id", () => input.id, "{id}", false);
524
334
  let body;
525
335
  body = JSON.stringify(take(input, {
526
336
  description: [],
@@ -528,23 +338,16 @@ export const se_UpdateWorkflowCommand = async (input, context) => {
528
338
  name: [],
529
339
  stepTargets: (_) => _json(_),
530
340
  }));
531
- return new __HttpRequest({
532
- protocol,
533
- hostname,
534
- port,
535
- method: "POST",
536
- headers,
537
- path: resolvedPath,
538
- body,
539
- });
341
+ b.m("POST").h(headers).b(body);
342
+ return b.build();
540
343
  };
541
344
  export const se_UpdateWorkflowStepCommand = async (input, context) => {
542
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
345
+ const b = rb(input, context);
543
346
  const headers = {
544
347
  "content-type": "application/json",
545
348
  };
546
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstep/{id}";
547
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
349
+ b.bp("/workflowstep/{id}");
350
+ b.p("id", () => input.id, "{id}", false);
548
351
  let body;
549
352
  body = JSON.stringify(take(input, {
550
353
  description: [],
@@ -559,25 +362,18 @@ export const se_UpdateWorkflowStepCommand = async (input, context) => {
559
362
  workflowId: [],
560
363
  workflowStepAutomationConfiguration: (_) => _json(_),
561
364
  }));
562
- return new __HttpRequest({
563
- protocol,
564
- hostname,
565
- port,
566
- method: "POST",
567
- headers,
568
- path: resolvedPath,
569
- body,
570
- });
365
+ b.m("POST").h(headers).b(body);
366
+ return b.build();
571
367
  };
572
368
  export const se_UpdateWorkflowStepGroupCommand = async (input, context) => {
573
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
369
+ const b = rb(input, context);
574
370
  const headers = {
575
371
  "content-type": "application/json",
576
372
  };
577
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflowstepgroup/{id}";
578
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
373
+ b.bp("/workflowstepgroup/{id}");
374
+ b.p("id", () => input.id, "{id}", false);
579
375
  const query = map({
580
- workflowId: [, __expectNonNull(input.workflowId, `workflowId`)],
376
+ [_wI]: [, __expectNonNull(input[_wI], `workflowId`)],
581
377
  });
582
378
  let body;
583
379
  body = JSON.stringify(take(input, {
@@ -586,16 +382,8 @@ export const se_UpdateWorkflowStepGroupCommand = async (input, context) => {
586
382
  next: (_) => _json(_),
587
383
  previous: (_) => _json(_),
588
384
  }));
589
- return new __HttpRequest({
590
- protocol,
591
- hostname,
592
- port,
593
- method: "POST",
594
- headers,
595
- path: resolvedPath,
596
- query,
597
- body,
598
- });
385
+ b.m("POST").h(headers).q(query).b(body);
386
+ return b.build();
599
387
  };
600
388
  export const de_CreateWorkflowCommand = async (output, context) => {
601
389
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -2011,6 +1799,15 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2011
1799
  value !== "" &&
2012
1800
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2013
1801
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1802
+ const _aACN = "adsApplicationConfigurationName";
1803
+ const _mR = "maxResults";
1804
+ const _n = "name";
1805
+ const _nT = "nextToken";
1806
+ const _s = "status";
1807
+ const _sGI = "stepGroupId";
1808
+ const _tI = "templateId";
1809
+ const _tK = "tagKeys";
1810
+ const _wI = "workflowId";
2014
1811
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2015
1812
  if (encoded.length) {
2016
1813
  return JSON.parse(encoded);