@aws-sdk/client-migrationhuborchestrator 3.181.0 → 3.183.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/MigrationHubOrchestrator.js +114 -121
  3. package/dist-es/MigrationHubOrchestratorClient.js +22 -28
  4. package/dist-es/commands/CreateWorkflowCommand.js +21 -28
  5. package/dist-es/commands/CreateWorkflowStepCommand.js +21 -28
  6. package/dist-es/commands/CreateWorkflowStepGroupCommand.js +21 -28
  7. package/dist-es/commands/DeleteWorkflowCommand.js +21 -28
  8. package/dist-es/commands/DeleteWorkflowStepCommand.js +21 -28
  9. package/dist-es/commands/DeleteWorkflowStepGroupCommand.js +21 -28
  10. package/dist-es/commands/GetTemplateCommand.js +21 -28
  11. package/dist-es/commands/GetTemplateStepCommand.js +21 -28
  12. package/dist-es/commands/GetTemplateStepGroupCommand.js +21 -28
  13. package/dist-es/commands/GetWorkflowCommand.js +21 -28
  14. package/dist-es/commands/GetWorkflowStepCommand.js +21 -28
  15. package/dist-es/commands/GetWorkflowStepGroupCommand.js +21 -28
  16. package/dist-es/commands/ListPluginsCommand.js +21 -28
  17. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  18. package/dist-es/commands/ListTemplateStepGroupsCommand.js +21 -28
  19. package/dist-es/commands/ListTemplateStepsCommand.js +21 -28
  20. package/dist-es/commands/ListTemplatesCommand.js +21 -28
  21. package/dist-es/commands/ListWorkflowStepGroupsCommand.js +21 -28
  22. package/dist-es/commands/ListWorkflowStepsCommand.js +21 -28
  23. package/dist-es/commands/ListWorkflowsCommand.js +21 -28
  24. package/dist-es/commands/RetryWorkflowStepCommand.js +21 -28
  25. package/dist-es/commands/StartWorkflowCommand.js +21 -28
  26. package/dist-es/commands/StopWorkflowCommand.js +21 -28
  27. package/dist-es/commands/TagResourceCommand.js +21 -28
  28. package/dist-es/commands/UntagResourceCommand.js +21 -28
  29. package/dist-es/commands/UpdateWorkflowCommand.js +21 -28
  30. package/dist-es/commands/UpdateWorkflowStepCommand.js +21 -28
  31. package/dist-es/commands/UpdateWorkflowStepGroupCommand.js +21 -28
  32. package/dist-es/endpoints.js +8 -8
  33. package/dist-es/models/MigrationHubOrchestratorServiceException.js +5 -10
  34. package/dist-es/models/models_0.js +285 -137
  35. package/dist-es/pagination/ListPluginsPaginator.js +25 -68
  36. package/dist-es/pagination/ListTemplateStepGroupsPaginator.js +25 -68
  37. package/dist-es/pagination/ListTemplateStepsPaginator.js +25 -68
  38. package/dist-es/pagination/ListTemplatesPaginator.js +25 -68
  39. package/dist-es/pagination/ListWorkflowStepGroupsPaginator.js +25 -68
  40. package/dist-es/pagination/ListWorkflowStepsPaginator.js +25 -68
  41. package/dist-es/pagination/ListWorkflowsPaginator.js +25 -68
  42. package/dist-es/protocols/Aws_restJson1.js +2363 -3204
  43. package/dist-es/runtimeConfig.browser.js +26 -12
  44. package/dist-es/runtimeConfig.js +30 -12
  45. package/dist-es/runtimeConfig.native.js +8 -5
  46. package/dist-es/runtimeConfig.shared.js +8 -11
  47. package/package.json +33 -33
@@ -1,47 +1,46 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { MigrationHubOrchestratorServiceException as __BaseException } from "./MigrationHubOrchestratorServiceException";
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;
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);
13
14
  }
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;
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);
25
26
  }
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;
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);
38
39
  }
39
- return ValidationException;
40
- }(__BaseException));
41
- export { ValidationException };
40
+ }
42
41
  export var StepInput;
43
42
  (function (StepInput) {
44
- StepInput.visit = function (value, visitor) {
43
+ StepInput.visit = (value, visitor) => {
45
44
  if (value.integerValue !== undefined)
46
45
  return visitor.integerValue(value.integerValue);
47
46
  if (value.stringValue !== undefined)
@@ -70,30 +69,30 @@ export var MigrationWorkflowStatusEnum;
70
69
  MigrationWorkflowStatusEnum["USER_ATTENTION_REQUIRED"] = "USER_ATTENTION_REQUIRED";
71
70
  MigrationWorkflowStatusEnum["WORKFLOW_FAILED"] = "WORKFLOW_FAILED";
72
71
  })(MigrationWorkflowStatusEnum || (MigrationWorkflowStatusEnum = {}));
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;
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);
81
82
  }
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;
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);
93
94
  }
94
- return ThrottlingException;
95
- }(__BaseException));
96
- export { ThrottlingException };
95
+ }
97
96
  export var DataType;
98
97
  (function (DataType) {
99
98
  DataType["INTEGER"] = "INTEGER";
@@ -144,7 +143,7 @@ export var StepGroupStatus;
144
143
  })(StepGroupStatus || (StepGroupStatus = {}));
145
144
  export var WorkflowStepOutputUnion;
146
145
  (function (WorkflowStepOutputUnion) {
147
- WorkflowStepOutputUnion.visit = function (value, visitor) {
146
+ WorkflowStepOutputUnion.visit = (value, visitor) => {
148
147
  if (value.integerValue !== undefined)
149
148
  return visitor.integerValue(value.integerValue);
150
149
  if (value.stringValue !== undefined)
@@ -164,10 +163,13 @@ export var StepStatus;
164
163
  StepStatus["READY"] = "READY";
165
164
  StepStatus["USER_ATTENTION_REQUIRED"] = "USER_ATTENTION_REQUIRED";
166
165
  })(StepStatus || (StepStatus = {}));
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;
166
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
167
+ ...obj,
168
+ });
169
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
170
+ ...obj,
171
+ });
172
+ export const StepInputFilterSensitiveLog = (obj) => {
171
173
  if (obj.integerValue !== undefined)
172
174
  return { integerValue: obj.integerValue };
173
175
  if (obj.stringValue !== undefined)
@@ -177,53 +179,143 @@ export var StepInputFilterSensitiveLog = function (obj) {
177
179
  if (obj.mapOfStringValue !== undefined)
178
180
  return { mapOfStringValue: obj.mapOfStringValue };
179
181
  if (obj.$unknown !== undefined)
180
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
182
+ return { [obj.$unknown[0]]: "UNKNOWN" };
181
183
  };
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;
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) => {
227
319
  if (obj.integerValue !== undefined)
228
320
  return { integerValue: obj.integerValue };
229
321
  if (obj.stringValue !== undefined)
@@ -231,31 +323,87 @@ export var WorkflowStepOutputUnionFilterSensitiveLog = function (obj) {
231
323
  if (obj.listOfStringValue !== undefined)
232
324
  return { listOfStringValue: obj.listOfStringValue };
233
325
  if (obj.$unknown !== undefined)
234
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
326
+ return { [obj.$unknown[0]]: "UNKNOWN" };
235
327
  };
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)); };
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
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListPluginsCommand } from "../commands/ListPluginsCommand";
3
2
  import { MigrationHubOrchestrator } from "../MigrationHubOrchestrator";
4
3
  import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
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
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListPluginsCommand(input), ...args);
18
6
  };
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
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listPlugins(input, ...args);
32
9
  };
33
- export function paginateListPlugins(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
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));
37
30
  }
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
- });
31
+ return undefined;
75
32
  }