@aws-sdk/client-migrationhuborchestrator 3.183.0 → 3.186.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 (48) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/MigrationHubOrchestrator.js +121 -114
  4. package/dist-es/MigrationHubOrchestratorClient.js +28 -22
  5. package/dist-es/commands/CreateWorkflowCommand.js +28 -21
  6. package/dist-es/commands/CreateWorkflowStepCommand.js +28 -21
  7. package/dist-es/commands/CreateWorkflowStepGroupCommand.js +28 -21
  8. package/dist-es/commands/DeleteWorkflowCommand.js +28 -21
  9. package/dist-es/commands/DeleteWorkflowStepCommand.js +28 -21
  10. package/dist-es/commands/DeleteWorkflowStepGroupCommand.js +28 -21
  11. package/dist-es/commands/GetTemplateCommand.js +28 -21
  12. package/dist-es/commands/GetTemplateStepCommand.js +28 -21
  13. package/dist-es/commands/GetTemplateStepGroupCommand.js +28 -21
  14. package/dist-es/commands/GetWorkflowCommand.js +28 -21
  15. package/dist-es/commands/GetWorkflowStepCommand.js +28 -21
  16. package/dist-es/commands/GetWorkflowStepGroupCommand.js +28 -21
  17. package/dist-es/commands/ListPluginsCommand.js +28 -21
  18. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  19. package/dist-es/commands/ListTemplateStepGroupsCommand.js +28 -21
  20. package/dist-es/commands/ListTemplateStepsCommand.js +28 -21
  21. package/dist-es/commands/ListTemplatesCommand.js +28 -21
  22. package/dist-es/commands/ListWorkflowStepGroupsCommand.js +28 -21
  23. package/dist-es/commands/ListWorkflowStepsCommand.js +28 -21
  24. package/dist-es/commands/ListWorkflowsCommand.js +28 -21
  25. package/dist-es/commands/RetryWorkflowStepCommand.js +28 -21
  26. package/dist-es/commands/StartWorkflowCommand.js +28 -21
  27. package/dist-es/commands/StopWorkflowCommand.js +28 -21
  28. package/dist-es/commands/TagResourceCommand.js +28 -21
  29. package/dist-es/commands/UntagResourceCommand.js +28 -21
  30. package/dist-es/commands/UpdateWorkflowCommand.js +28 -21
  31. package/dist-es/commands/UpdateWorkflowStepCommand.js +28 -21
  32. package/dist-es/commands/UpdateWorkflowStepGroupCommand.js +28 -21
  33. package/dist-es/endpoints.js +8 -8
  34. package/dist-es/models/MigrationHubOrchestratorServiceException.js +10 -5
  35. package/dist-es/models/models_0.js +137 -285
  36. package/dist-es/pagination/ListPluginsPaginator.js +68 -25
  37. package/dist-es/pagination/ListTemplateStepGroupsPaginator.js +68 -25
  38. package/dist-es/pagination/ListTemplateStepsPaginator.js +68 -25
  39. package/dist-es/pagination/ListTemplatesPaginator.js +68 -25
  40. package/dist-es/pagination/ListWorkflowStepGroupsPaginator.js +68 -25
  41. package/dist-es/pagination/ListWorkflowStepsPaginator.js +68 -25
  42. package/dist-es/pagination/ListWorkflowsPaginator.js +68 -25
  43. package/dist-es/protocols/Aws_restJson1.js +3204 -2363
  44. package/dist-es/runtimeConfig.browser.js +12 -26
  45. package/dist-es/runtimeConfig.js +12 -30
  46. package/dist-es/runtimeConfig.native.js +5 -8
  47. package/dist-es/runtimeConfig.shared.js +11 -8
  48. package/package.json +33 -33
@@ -1,46 +1,47 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
3
  import { MigrationHubOrchestratorServiceException as __BaseException } from "./MigrationHubOrchestratorServiceException";
3
- export class AccessDeniedException extends __BaseException {
4
- constructor(opts) {
5
- super({
6
- name: "AccessDeniedException",
7
- $fault: "client",
8
- ...opts,
9
- });
10
- this.name = "AccessDeniedException";
11
- this.$fault = "client";
12
- this.$retryable = {};
13
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
4
+ var AccessDeniedException = (function (_super) {
5
+ __extends(AccessDeniedException, _super);
6
+ function AccessDeniedException(opts) {
7
+ var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
8
+ _this.name = "AccessDeniedException";
9
+ _this.$fault = "client";
10
+ _this.$retryable = {};
11
+ Object.setPrototypeOf(_this, AccessDeniedException.prototype);
12
+ return _this;
14
13
  }
15
- }
16
- export class ResourceNotFoundException extends __BaseException {
17
- constructor(opts) {
18
- super({
19
- name: "ResourceNotFoundException",
20
- $fault: "client",
21
- ...opts,
22
- });
23
- this.name = "ResourceNotFoundException";
24
- this.$fault = "client";
25
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
14
+ return AccessDeniedException;
15
+ }(__BaseException));
16
+ export { AccessDeniedException };
17
+ var ResourceNotFoundException = (function (_super) {
18
+ __extends(ResourceNotFoundException, _super);
19
+ function ResourceNotFoundException(opts) {
20
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
21
+ _this.name = "ResourceNotFoundException";
22
+ _this.$fault = "client";
23
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
24
+ return _this;
26
25
  }
27
- }
28
- export class ValidationException extends __BaseException {
29
- constructor(opts) {
30
- super({
31
- name: "ValidationException",
32
- $fault: "client",
33
- ...opts,
34
- });
35
- this.name = "ValidationException";
36
- this.$fault = "client";
37
- this.$retryable = {};
38
- Object.setPrototypeOf(this, ValidationException.prototype);
26
+ return ResourceNotFoundException;
27
+ }(__BaseException));
28
+ export { ResourceNotFoundException };
29
+ var ValidationException = (function (_super) {
30
+ __extends(ValidationException, _super);
31
+ function ValidationException(opts) {
32
+ var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
33
+ _this.name = "ValidationException";
34
+ _this.$fault = "client";
35
+ _this.$retryable = {};
36
+ Object.setPrototypeOf(_this, ValidationException.prototype);
37
+ return _this;
39
38
  }
40
- }
39
+ return ValidationException;
40
+ }(__BaseException));
41
+ export { ValidationException };
41
42
  export var StepInput;
42
43
  (function (StepInput) {
43
- StepInput.visit = (value, visitor) => {
44
+ StepInput.visit = function (value, visitor) {
44
45
  if (value.integerValue !== undefined)
45
46
  return visitor.integerValue(value.integerValue);
46
47
  if (value.stringValue !== undefined)
@@ -69,30 +70,30 @@ export var MigrationWorkflowStatusEnum;
69
70
  MigrationWorkflowStatusEnum["USER_ATTENTION_REQUIRED"] = "USER_ATTENTION_REQUIRED";
70
71
  MigrationWorkflowStatusEnum["WORKFLOW_FAILED"] = "WORKFLOW_FAILED";
71
72
  })(MigrationWorkflowStatusEnum || (MigrationWorkflowStatusEnum = {}));
72
- export class InternalServerException extends __BaseException {
73
- constructor(opts) {
74
- super({
75
- name: "InternalServerException",
76
- $fault: "server",
77
- ...opts,
78
- });
79
- this.name = "InternalServerException";
80
- this.$fault = "server";
81
- Object.setPrototypeOf(this, InternalServerException.prototype);
73
+ var InternalServerException = (function (_super) {
74
+ __extends(InternalServerException, _super);
75
+ function InternalServerException(opts) {
76
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
77
+ _this.name = "InternalServerException";
78
+ _this.$fault = "server";
79
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
80
+ return _this;
82
81
  }
83
- }
84
- export class ThrottlingException extends __BaseException {
85
- constructor(opts) {
86
- super({
87
- name: "ThrottlingException",
88
- $fault: "client",
89
- ...opts,
90
- });
91
- this.name = "ThrottlingException";
92
- this.$fault = "client";
93
- Object.setPrototypeOf(this, ThrottlingException.prototype);
82
+ return InternalServerException;
83
+ }(__BaseException));
84
+ export { InternalServerException };
85
+ var ThrottlingException = (function (_super) {
86
+ __extends(ThrottlingException, _super);
87
+ function ThrottlingException(opts) {
88
+ var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
89
+ _this.name = "ThrottlingException";
90
+ _this.$fault = "client";
91
+ Object.setPrototypeOf(_this, ThrottlingException.prototype);
92
+ return _this;
94
93
  }
95
- }
94
+ return ThrottlingException;
95
+ }(__BaseException));
96
+ export { ThrottlingException };
96
97
  export var DataType;
97
98
  (function (DataType) {
98
99
  DataType["INTEGER"] = "INTEGER";
@@ -143,7 +144,7 @@ export var StepGroupStatus;
143
144
  })(StepGroupStatus || (StepGroupStatus = {}));
144
145
  export var WorkflowStepOutputUnion;
145
146
  (function (WorkflowStepOutputUnion) {
146
- WorkflowStepOutputUnion.visit = (value, visitor) => {
147
+ WorkflowStepOutputUnion.visit = function (value, visitor) {
147
148
  if (value.integerValue !== undefined)
148
149
  return visitor.integerValue(value.integerValue);
149
150
  if (value.stringValue !== undefined)
@@ -163,13 +164,10 @@ export var StepStatus;
163
164
  StepStatus["READY"] = "READY";
164
165
  StepStatus["USER_ATTENTION_REQUIRED"] = "USER_ATTENTION_REQUIRED";
165
166
  })(StepStatus || (StepStatus = {}));
166
- export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
167
- ...obj,
168
- });
169
- export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
170
- ...obj,
171
- });
172
- export const StepInputFilterSensitiveLog = (obj) => {
167
+ export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
168
+ export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
169
+ export var StepInputFilterSensitiveLog = function (obj) {
170
+ var _a;
173
171
  if (obj.integerValue !== undefined)
174
172
  return { integerValue: obj.integerValue };
175
173
  if (obj.stringValue !== undefined)
@@ -179,143 +177,53 @@ export const StepInputFilterSensitiveLog = (obj) => {
179
177
  if (obj.mapOfStringValue !== undefined)
180
178
  return { mapOfStringValue: obj.mapOfStringValue };
181
179
  if (obj.$unknown !== undefined)
182
- return { [obj.$unknown[0]]: "UNKNOWN" };
180
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
183
181
  };
184
- export const CreateMigrationWorkflowRequestFilterSensitiveLog = (obj) => ({
185
- ...obj,
186
- ...(obj.inputParameters && { inputParameters: SENSITIVE_STRING }),
187
- });
188
- export const CreateMigrationWorkflowResponseFilterSensitiveLog = (obj) => ({
189
- ...obj,
190
- ...(obj.workflowInputs && { workflowInputs: SENSITIVE_STRING }),
191
- });
192
- export const DeleteMigrationWorkflowRequestFilterSensitiveLog = (obj) => ({
193
- ...obj,
194
- });
195
- export const DeleteMigrationWorkflowResponseFilterSensitiveLog = (obj) => ({
196
- ...obj,
197
- });
198
- export const GetMigrationWorkflowRequestFilterSensitiveLog = (obj) => ({
199
- ...obj,
200
- });
201
- export const ToolFilterSensitiveLog = (obj) => ({
202
- ...obj,
203
- });
204
- export const GetMigrationWorkflowResponseFilterSensitiveLog = (obj) => ({
205
- ...obj,
206
- ...(obj.workflowInputs && { workflowInputs: SENSITIVE_STRING }),
207
- });
208
- export const ListMigrationWorkflowsRequestFilterSensitiveLog = (obj) => ({
209
- ...obj,
210
- });
211
- export const MigrationWorkflowSummaryFilterSensitiveLog = (obj) => ({
212
- ...obj,
213
- });
214
- export const ListMigrationWorkflowsResponseFilterSensitiveLog = (obj) => ({
215
- ...obj,
216
- });
217
- export const StartMigrationWorkflowRequestFilterSensitiveLog = (obj) => ({
218
- ...obj,
219
- });
220
- export const StartMigrationWorkflowResponseFilterSensitiveLog = (obj) => ({
221
- ...obj,
222
- });
223
- export const StopMigrationWorkflowRequestFilterSensitiveLog = (obj) => ({
224
- ...obj,
225
- });
226
- export const StopMigrationWorkflowResponseFilterSensitiveLog = (obj) => ({
227
- ...obj,
228
- });
229
- export const UpdateMigrationWorkflowRequestFilterSensitiveLog = (obj) => ({
230
- ...obj,
231
- ...(obj.inputParameters && { inputParameters: SENSITIVE_STRING }),
232
- });
233
- export const UpdateMigrationWorkflowResponseFilterSensitiveLog = (obj) => ({
234
- ...obj,
235
- ...(obj.workflowInputs && { workflowInputs: SENSITIVE_STRING }),
236
- });
237
- export const GetMigrationWorkflowTemplateRequestFilterSensitiveLog = (obj) => ({
238
- ...obj,
239
- });
240
- export const TemplateInputFilterSensitiveLog = (obj) => ({
241
- ...obj,
242
- });
243
- export const GetMigrationWorkflowTemplateResponseFilterSensitiveLog = (obj) => ({
244
- ...obj,
245
- });
246
- export const ListMigrationWorkflowTemplatesRequestFilterSensitiveLog = (obj) => ({
247
- ...obj,
248
- });
249
- export const TemplateSummaryFilterSensitiveLog = (obj) => ({
250
- ...obj,
251
- });
252
- export const ListMigrationWorkflowTemplatesResponseFilterSensitiveLog = (obj) => ({
253
- ...obj,
254
- });
255
- export const ListPluginsRequestFilterSensitiveLog = (obj) => ({
256
- ...obj,
257
- });
258
- export const PluginSummaryFilterSensitiveLog = (obj) => ({
259
- ...obj,
260
- });
261
- export const ListPluginsResponseFilterSensitiveLog = (obj) => ({
262
- ...obj,
263
- });
264
- export const TagResourceRequestFilterSensitiveLog = (obj) => ({
265
- ...obj,
266
- });
267
- export const TagResourceResponseFilterSensitiveLog = (obj) => ({
268
- ...obj,
269
- });
270
- export const GetTemplateStepRequestFilterSensitiveLog = (obj) => ({
271
- ...obj,
272
- });
273
- export const StepOutputFilterSensitiveLog = (obj) => ({
274
- ...obj,
275
- });
276
- export const PlatformCommandFilterSensitiveLog = (obj) => ({
277
- ...obj,
278
- });
279
- export const PlatformScriptKeyFilterSensitiveLog = (obj) => ({
280
- ...obj,
281
- });
282
- export const StepAutomationConfigurationFilterSensitiveLog = (obj) => ({
283
- ...obj,
284
- });
285
- export const GetTemplateStepResponseFilterSensitiveLog = (obj) => ({
286
- ...obj,
287
- });
288
- export const ListTemplateStepsRequestFilterSensitiveLog = (obj) => ({
289
- ...obj,
290
- });
291
- export const TemplateStepSummaryFilterSensitiveLog = (obj) => ({
292
- ...obj,
293
- });
294
- export const ListTemplateStepsResponseFilterSensitiveLog = (obj) => ({
295
- ...obj,
296
- });
297
- export const GetTemplateStepGroupRequestFilterSensitiveLog = (obj) => ({
298
- ...obj,
299
- });
300
- export const GetTemplateStepGroupResponseFilterSensitiveLog = (obj) => ({
301
- ...obj,
302
- });
303
- export const ListTemplateStepGroupsRequestFilterSensitiveLog = (obj) => ({
304
- ...obj,
305
- });
306
- export const TemplateStepGroupSummaryFilterSensitiveLog = (obj) => ({
307
- ...obj,
308
- });
309
- export const ListTemplateStepGroupsResponseFilterSensitiveLog = (obj) => ({
310
- ...obj,
311
- });
312
- export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
313
- ...obj,
314
- });
315
- export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
316
- ...obj,
317
- });
318
- export const WorkflowStepOutputUnionFilterSensitiveLog = (obj) => {
182
+ export var CreateMigrationWorkflowRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.inputParameters && { inputParameters: SENSITIVE_STRING }))); };
183
+ export var CreateMigrationWorkflowResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.workflowInputs && { workflowInputs: SENSITIVE_STRING }))); };
184
+ export var DeleteMigrationWorkflowRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
185
+ export var DeleteMigrationWorkflowResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
186
+ export var GetMigrationWorkflowRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
187
+ export var ToolFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
188
+ export var GetMigrationWorkflowResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.workflowInputs && { workflowInputs: SENSITIVE_STRING }))); };
189
+ export var ListMigrationWorkflowsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
190
+ export var MigrationWorkflowSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
191
+ export var ListMigrationWorkflowsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
192
+ export var StartMigrationWorkflowRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
+ export var StartMigrationWorkflowResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
194
+ export var StopMigrationWorkflowRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
+ export var StopMigrationWorkflowResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
196
+ export var UpdateMigrationWorkflowRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.inputParameters && { inputParameters: SENSITIVE_STRING }))); };
197
+ export var UpdateMigrationWorkflowResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.workflowInputs && { workflowInputs: SENSITIVE_STRING }))); };
198
+ export var GetMigrationWorkflowTemplateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
199
+ export var TemplateInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
200
+ export var GetMigrationWorkflowTemplateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
201
+ export var ListMigrationWorkflowTemplatesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
202
+ export var TemplateSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
203
+ export var ListMigrationWorkflowTemplatesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
204
+ export var ListPluginsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
205
+ export var PluginSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
206
+ export var ListPluginsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
207
+ export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
208
+ export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
209
+ export var GetTemplateStepRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
210
+ export var StepOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
211
+ export var PlatformCommandFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
212
+ export var PlatformScriptKeyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
213
+ export var StepAutomationConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
214
+ export var GetTemplateStepResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
215
+ export var ListTemplateStepsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
216
+ export var TemplateStepSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
217
+ export var ListTemplateStepsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
218
+ export var GetTemplateStepGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
219
+ export var GetTemplateStepGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
220
+ export var ListTemplateStepGroupsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
221
+ export var TemplateStepGroupSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
222
+ export var ListTemplateStepGroupsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
223
+ export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
224
+ export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
225
+ export var WorkflowStepOutputUnionFilterSensitiveLog = function (obj) {
226
+ var _a;
319
227
  if (obj.integerValue !== undefined)
320
228
  return { integerValue: obj.integerValue };
321
229
  if (obj.stringValue !== undefined)
@@ -323,87 +231,31 @@ export const WorkflowStepOutputUnionFilterSensitiveLog = (obj) => {
323
231
  if (obj.listOfStringValue !== undefined)
324
232
  return { listOfStringValue: obj.listOfStringValue };
325
233
  if (obj.$unknown !== undefined)
326
- return { [obj.$unknown[0]]: "UNKNOWN" };
234
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
327
235
  };
328
- export const WorkflowStepOutputFilterSensitiveLog = (obj) => ({
329
- ...obj,
330
- ...(obj.value && { value: WorkflowStepOutputUnionFilterSensitiveLog(obj.value) }),
331
- });
332
- export const WorkflowStepAutomationConfigurationFilterSensitiveLog = (obj) => ({
333
- ...obj,
334
- });
335
- export const CreateWorkflowStepRequestFilterSensitiveLog = (obj) => ({
336
- ...obj,
337
- ...(obj.outputs && { outputs: obj.outputs.map((item) => WorkflowStepOutputFilterSensitiveLog(item)) }),
338
- });
339
- export const CreateWorkflowStepResponseFilterSensitiveLog = (obj) => ({
340
- ...obj,
341
- });
342
- export const DeleteWorkflowStepRequestFilterSensitiveLog = (obj) => ({
343
- ...obj,
344
- });
345
- export const DeleteWorkflowStepResponseFilterSensitiveLog = (obj) => ({
346
- ...obj,
347
- });
348
- export const GetWorkflowStepRequestFilterSensitiveLog = (obj) => ({
349
- ...obj,
350
- });
351
- export const GetWorkflowStepResponseFilterSensitiveLog = (obj) => ({
352
- ...obj,
353
- ...(obj.outputs && { outputs: obj.outputs.map((item) => WorkflowStepOutputFilterSensitiveLog(item)) }),
354
- });
355
- export const ListWorkflowStepsRequestFilterSensitiveLog = (obj) => ({
356
- ...obj,
357
- });
358
- export const WorkflowStepSummaryFilterSensitiveLog = (obj) => ({
359
- ...obj,
360
- });
361
- export const ListWorkflowStepsResponseFilterSensitiveLog = (obj) => ({
362
- ...obj,
363
- });
364
- export const RetryWorkflowStepRequestFilterSensitiveLog = (obj) => ({
365
- ...obj,
366
- });
367
- export const RetryWorkflowStepResponseFilterSensitiveLog = (obj) => ({
368
- ...obj,
369
- });
370
- export const UpdateWorkflowStepRequestFilterSensitiveLog = (obj) => ({
371
- ...obj,
372
- ...(obj.outputs && { outputs: obj.outputs.map((item) => WorkflowStepOutputFilterSensitiveLog(item)) }),
373
- });
374
- export const UpdateWorkflowStepResponseFilterSensitiveLog = (obj) => ({
375
- ...obj,
376
- });
377
- export const CreateWorkflowStepGroupRequestFilterSensitiveLog = (obj) => ({
378
- ...obj,
379
- });
380
- export const CreateWorkflowStepGroupResponseFilterSensitiveLog = (obj) => ({
381
- ...obj,
382
- });
383
- export const DeleteWorkflowStepGroupRequestFilterSensitiveLog = (obj) => ({
384
- ...obj,
385
- });
386
- export const DeleteWorkflowStepGroupResponseFilterSensitiveLog = (obj) => ({
387
- ...obj,
388
- });
389
- export const GetWorkflowStepGroupRequestFilterSensitiveLog = (obj) => ({
390
- ...obj,
391
- });
392
- export const GetWorkflowStepGroupResponseFilterSensitiveLog = (obj) => ({
393
- ...obj,
394
- });
395
- export const ListWorkflowStepGroupsRequestFilterSensitiveLog = (obj) => ({
396
- ...obj,
397
- });
398
- export const WorkflowStepGroupSummaryFilterSensitiveLog = (obj) => ({
399
- ...obj,
400
- });
401
- export const ListWorkflowStepGroupsResponseFilterSensitiveLog = (obj) => ({
402
- ...obj,
403
- });
404
- export const UpdateWorkflowStepGroupRequestFilterSensitiveLog = (obj) => ({
405
- ...obj,
406
- });
407
- export const UpdateWorkflowStepGroupResponseFilterSensitiveLog = (obj) => ({
408
- ...obj,
409
- });
236
+ export var WorkflowStepOutputFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.value && { value: WorkflowStepOutputUnionFilterSensitiveLog(obj.value) }))); };
237
+ export var WorkflowStepAutomationConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
238
+ export var CreateWorkflowStepRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.outputs && { outputs: obj.outputs.map(function (item) { return WorkflowStepOutputFilterSensitiveLog(item); }) }))); };
239
+ export var CreateWorkflowStepResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
240
+ export var DeleteWorkflowStepRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
241
+ export var DeleteWorkflowStepResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
242
+ export var GetWorkflowStepRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
243
+ export var GetWorkflowStepResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.outputs && { outputs: obj.outputs.map(function (item) { return WorkflowStepOutputFilterSensitiveLog(item); }) }))); };
244
+ export var ListWorkflowStepsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
245
+ export var WorkflowStepSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
246
+ export var ListWorkflowStepsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
247
+ export var RetryWorkflowStepRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
248
+ export var RetryWorkflowStepResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
249
+ export var UpdateWorkflowStepRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.outputs && { outputs: obj.outputs.map(function (item) { return WorkflowStepOutputFilterSensitiveLog(item); }) }))); };
250
+ export var UpdateWorkflowStepResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
251
+ export var CreateWorkflowStepGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
252
+ export var CreateWorkflowStepGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
253
+ export var DeleteWorkflowStepGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
254
+ export var DeleteWorkflowStepGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
255
+ export var GetWorkflowStepGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
256
+ export var GetWorkflowStepGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
257
+ export var ListWorkflowStepGroupsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
258
+ export var WorkflowStepGroupSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
259
+ export var ListWorkflowStepGroupsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
260
+ export var UpdateWorkflowStepGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
261
+ export var UpdateWorkflowStepGroupResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,32 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
1
2
  import { ListPluginsCommand } from "../commands/ListPluginsCommand";
2
3
  import { MigrationHubOrchestrator } from "../MigrationHubOrchestrator";
3
4
  import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
4
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new ListPluginsCommand(input), ...args);
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListPluginsCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
6
18
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listPlugins(input, ...args);
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listPlugins.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
9
32
  };
10
- export async function* paginateListPlugins(config, input, ...additionalArguments) {
11
- let token = config.startingToken || undefined;
12
- let hasNext = true;
13
- let page;
14
- while (hasNext) {
15
- input.nextToken = token;
16
- input["maxResults"] = config.pageSize;
17
- if (config.client instanceof MigrationHubOrchestrator) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MigrationHubOrchestratorClient) {
21
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
- }
23
- else {
24
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
25
- }
26
- yield page;
27
- const prevToken = token;
28
- token = page.nextToken;
29
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ export function paginateListPlugins(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
30
37
  }
31
- return undefined;
38
+ return __asyncGenerator(this, arguments, function paginateListPlugins_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ input["maxResults"] = config.pageSize;
50
+ if (!(config.client instanceof MigrationHubOrchestrator)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof MigrationHubOrchestratorClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ prevToken = token;
67
+ token = page.nextToken;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
+ return [3, 1];
70
+ case 9: return [4, __await(undefined)];
71
+ case 10: return [2, _a.sent()];
72
+ }
73
+ });
74
+ });
32
75
  }