@aws-sdk/client-migrationhuborchestrator 3.490.0 → 3.496.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 (49) hide show
  1. package/dist-cjs/MigrationHubOrchestrator.js +1 -67
  2. package/dist-cjs/MigrationHubOrchestratorClient.js +1 -43
  3. package/dist-cjs/commands/CreateWorkflowCommand.js +1 -29
  4. package/dist-cjs/commands/CreateWorkflowStepCommand.js +1 -28
  5. package/dist-cjs/commands/CreateWorkflowStepGroupCommand.js +1 -28
  6. package/dist-cjs/commands/DeleteWorkflowCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteWorkflowStepCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteWorkflowStepGroupCommand.js +1 -28
  9. package/dist-cjs/commands/GetTemplateCommand.js +1 -28
  10. package/dist-cjs/commands/GetTemplateStepCommand.js +1 -28
  11. package/dist-cjs/commands/GetTemplateStepGroupCommand.js +1 -28
  12. package/dist-cjs/commands/GetWorkflowCommand.js +1 -29
  13. package/dist-cjs/commands/GetWorkflowStepCommand.js +1 -28
  14. package/dist-cjs/commands/GetWorkflowStepGroupCommand.js +1 -28
  15. package/dist-cjs/commands/ListPluginsCommand.js +1 -28
  16. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  17. package/dist-cjs/commands/ListTemplateStepGroupsCommand.js +1 -28
  18. package/dist-cjs/commands/ListTemplateStepsCommand.js +1 -28
  19. package/dist-cjs/commands/ListTemplatesCommand.js +1 -28
  20. package/dist-cjs/commands/ListWorkflowStepGroupsCommand.js +1 -28
  21. package/dist-cjs/commands/ListWorkflowStepsCommand.js +1 -28
  22. package/dist-cjs/commands/ListWorkflowsCommand.js +1 -28
  23. package/dist-cjs/commands/RetryWorkflowStepCommand.js +1 -28
  24. package/dist-cjs/commands/StartWorkflowCommand.js +1 -28
  25. package/dist-cjs/commands/StopWorkflowCommand.js +1 -28
  26. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  27. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  28. package/dist-cjs/commands/UpdateWorkflowCommand.js +1 -29
  29. package/dist-cjs/commands/UpdateWorkflowStepCommand.js +1 -28
  30. package/dist-cjs/commands/UpdateWorkflowStepGroupCommand.js +1 -28
  31. package/dist-cjs/commands/index.js +1 -31
  32. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  33. package/dist-cjs/extensionConfiguration.js +1 -2
  34. package/dist-cjs/index.js +2859 -11
  35. package/dist-cjs/models/MigrationHubOrchestratorServiceException.js +1 -12
  36. package/dist-cjs/models/index.js +1 -4
  37. package/dist-cjs/models/models_0.js +1 -188
  38. package/dist-cjs/pagination/Interfaces.js +1 -2
  39. package/dist-cjs/pagination/ListPluginsPaginator.js +1 -7
  40. package/dist-cjs/pagination/ListTemplateStepGroupsPaginator.js +1 -7
  41. package/dist-cjs/pagination/ListTemplateStepsPaginator.js +1 -7
  42. package/dist-cjs/pagination/ListTemplatesPaginator.js +1 -7
  43. package/dist-cjs/pagination/ListWorkflowStepGroupsPaginator.js +1 -7
  44. package/dist-cjs/pagination/ListWorkflowStepsPaginator.js +1 -7
  45. package/dist-cjs/pagination/ListWorkflowsPaginator.js +1 -7
  46. package/dist-cjs/pagination/index.js +1 -11
  47. package/dist-cjs/protocols/Aws_restJson1.js +1 -1910
  48. package/dist-cjs/runtimeExtensions.js +1 -22
  49. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2860 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MigrationHubOrchestratorServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./MigrationHubOrchestratorClient"), exports);
6
- tslib_1.__exportStar(require("./MigrationHubOrchestrator"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var MigrationHubOrchestratorServiceException_1 = require("./models/MigrationHubOrchestratorServiceException");
12
- Object.defineProperty(exports, "MigrationHubOrchestratorServiceException", { enumerable: true, get: function () { return MigrationHubOrchestratorServiceException_1.MigrationHubOrchestratorServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ CreateMigrationWorkflowRequestFilterSensitiveLog: () => CreateMigrationWorkflowRequestFilterSensitiveLog,
26
+ CreateMigrationWorkflowResponseFilterSensitiveLog: () => CreateMigrationWorkflowResponseFilterSensitiveLog,
27
+ CreateWorkflowCommand: () => CreateWorkflowCommand,
28
+ CreateWorkflowStepCommand: () => CreateWorkflowStepCommand,
29
+ CreateWorkflowStepGroupCommand: () => CreateWorkflowStepGroupCommand,
30
+ DataType: () => DataType,
31
+ DeleteWorkflowCommand: () => DeleteWorkflowCommand,
32
+ DeleteWorkflowStepCommand: () => DeleteWorkflowStepCommand,
33
+ DeleteWorkflowStepGroupCommand: () => DeleteWorkflowStepGroupCommand,
34
+ GetMigrationWorkflowResponseFilterSensitiveLog: () => GetMigrationWorkflowResponseFilterSensitiveLog,
35
+ GetTemplateCommand: () => GetTemplateCommand,
36
+ GetTemplateStepCommand: () => GetTemplateStepCommand,
37
+ GetTemplateStepGroupCommand: () => GetTemplateStepGroupCommand,
38
+ GetWorkflowCommand: () => GetWorkflowCommand,
39
+ GetWorkflowStepCommand: () => GetWorkflowStepCommand,
40
+ GetWorkflowStepGroupCommand: () => GetWorkflowStepGroupCommand,
41
+ InternalServerException: () => InternalServerException,
42
+ ListPluginsCommand: () => ListPluginsCommand,
43
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
44
+ ListTemplateStepGroupsCommand: () => ListTemplateStepGroupsCommand,
45
+ ListTemplateStepsCommand: () => ListTemplateStepsCommand,
46
+ ListTemplatesCommand: () => ListTemplatesCommand,
47
+ ListWorkflowStepGroupsCommand: () => ListWorkflowStepGroupsCommand,
48
+ ListWorkflowStepsCommand: () => ListWorkflowStepsCommand,
49
+ ListWorkflowsCommand: () => ListWorkflowsCommand,
50
+ MigrationHubOrchestrator: () => MigrationHubOrchestrator,
51
+ MigrationHubOrchestratorClient: () => MigrationHubOrchestratorClient,
52
+ MigrationHubOrchestratorServiceException: () => MigrationHubOrchestratorServiceException,
53
+ MigrationWorkflowStatusEnum: () => MigrationWorkflowStatusEnum,
54
+ Owner: () => Owner,
55
+ PluginHealth: () => PluginHealth,
56
+ ResourceNotFoundException: () => ResourceNotFoundException,
57
+ RetryWorkflowStepCommand: () => RetryWorkflowStepCommand,
58
+ RunEnvironment: () => RunEnvironment,
59
+ StartWorkflowCommand: () => StartWorkflowCommand,
60
+ StepActionType: () => StepActionType,
61
+ StepGroupStatus: () => StepGroupStatus,
62
+ StepInput: () => StepInput,
63
+ StepStatus: () => StepStatus,
64
+ StopWorkflowCommand: () => StopWorkflowCommand,
65
+ TagResourceCommand: () => TagResourceCommand,
66
+ TargetType: () => TargetType,
67
+ TemplateStatus: () => TemplateStatus,
68
+ ThrottlingException: () => ThrottlingException,
69
+ UntagResourceCommand: () => UntagResourceCommand,
70
+ UpdateMigrationWorkflowRequestFilterSensitiveLog: () => UpdateMigrationWorkflowRequestFilterSensitiveLog,
71
+ UpdateMigrationWorkflowResponseFilterSensitiveLog: () => UpdateMigrationWorkflowResponseFilterSensitiveLog,
72
+ UpdateWorkflowCommand: () => UpdateWorkflowCommand,
73
+ UpdateWorkflowStepCommand: () => UpdateWorkflowStepCommand,
74
+ UpdateWorkflowStepGroupCommand: () => UpdateWorkflowStepGroupCommand,
75
+ ValidationException: () => ValidationException,
76
+ WorkflowStepOutputUnion: () => WorkflowStepOutputUnion,
77
+ __Client: () => import_smithy_client.Client,
78
+ paginateListPlugins: () => paginateListPlugins,
79
+ paginateListTemplateStepGroups: () => paginateListTemplateStepGroups,
80
+ paginateListTemplateSteps: () => paginateListTemplateSteps,
81
+ paginateListTemplates: () => paginateListTemplates,
82
+ paginateListWorkflowStepGroups: () => paginateListWorkflowStepGroups,
83
+ paginateListWorkflowSteps: () => paginateListWorkflowSteps,
84
+ paginateListWorkflows: () => paginateListWorkflows
85
+ });
86
+ module.exports = __toCommonJS(src_exports);
87
+
88
+ // src/MigrationHubOrchestratorClient.ts
89
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
90
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
91
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
92
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
93
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
94
+ var import_config_resolver = require("@smithy/config-resolver");
95
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
96
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
97
+ var import_middleware_retry = require("@smithy/middleware-retry");
98
+
99
+
100
+ // src/endpoint/EndpointParameters.ts
101
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
102
+ return {
103
+ ...options,
104
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
105
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
106
+ defaultSigningName: "migrationhub-orchestrator"
107
+ };
108
+ }, "resolveClientEndpointParameters");
109
+ var commonParams = {
110
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
111
+ Endpoint: { type: "builtInParams", name: "endpoint" },
112
+ Region: { type: "builtInParams", name: "region" },
113
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
114
+ };
115
+
116
+ // src/MigrationHubOrchestratorClient.ts
117
+ var import_runtimeConfig = require("././runtimeConfig");
118
+
119
+ // src/runtimeExtensions.ts
120
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
121
+ var import_protocol_http = require("@smithy/protocol-http");
122
+ var import_smithy_client = require("@smithy/smithy-client");
123
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
124
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
125
+ const extensionConfiguration = {
126
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
127
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
128
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
129
+ };
130
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
131
+ return {
132
+ ...runtimeConfig,
133
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
134
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
135
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
136
+ };
137
+ }, "resolveRuntimeExtensions");
138
+
139
+ // src/MigrationHubOrchestratorClient.ts
140
+ var _MigrationHubOrchestratorClient = class _MigrationHubOrchestratorClient extends import_smithy_client.Client {
141
+ constructor(...[configuration]) {
142
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
143
+ const _config_1 = resolveClientEndpointParameters(_config_0);
144
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
145
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
146
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
147
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
148
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
149
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
150
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
151
+ super(_config_8);
152
+ this.config = _config_8;
153
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
154
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
155
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
156
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
157
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
158
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
159
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
160
+ }
161
+ /**
162
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
163
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
164
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
165
+ */
166
+ destroy() {
167
+ super.destroy();
168
+ }
169
+ };
170
+ __name(_MigrationHubOrchestratorClient, "MigrationHubOrchestratorClient");
171
+ var MigrationHubOrchestratorClient = _MigrationHubOrchestratorClient;
172
+
173
+ // src/MigrationHubOrchestrator.ts
174
+
175
+
176
+ // src/commands/CreateWorkflowCommand.ts
177
+
178
+ var import_middleware_serde = require("@smithy/middleware-serde");
179
+
180
+ var import_types = require("@smithy/types");
181
+
182
+ // src/models/models_0.ts
183
+
184
+
185
+ // src/models/MigrationHubOrchestratorServiceException.ts
186
+
187
+ var _MigrationHubOrchestratorServiceException = class _MigrationHubOrchestratorServiceException extends import_smithy_client.ServiceException {
188
+ /**
189
+ * @internal
190
+ */
191
+ constructor(options) {
192
+ super(options);
193
+ Object.setPrototypeOf(this, _MigrationHubOrchestratorServiceException.prototype);
194
+ }
195
+ };
196
+ __name(_MigrationHubOrchestratorServiceException, "MigrationHubOrchestratorServiceException");
197
+ var MigrationHubOrchestratorServiceException = _MigrationHubOrchestratorServiceException;
198
+
199
+ // src/models/models_0.ts
200
+ var _AccessDeniedException = class _AccessDeniedException extends MigrationHubOrchestratorServiceException {
201
+ /**
202
+ * @internal
203
+ */
204
+ constructor(opts) {
205
+ super({
206
+ name: "AccessDeniedException",
207
+ $fault: "client",
208
+ ...opts
209
+ });
210
+ this.name = "AccessDeniedException";
211
+ this.$fault = "client";
212
+ this.$retryable = {};
213
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
214
+ }
215
+ };
216
+ __name(_AccessDeniedException, "AccessDeniedException");
217
+ var AccessDeniedException = _AccessDeniedException;
218
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends MigrationHubOrchestratorServiceException {
219
+ /**
220
+ * @internal
221
+ */
222
+ constructor(opts) {
223
+ super({
224
+ name: "ResourceNotFoundException",
225
+ $fault: "client",
226
+ ...opts
227
+ });
228
+ this.name = "ResourceNotFoundException";
229
+ this.$fault = "client";
230
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
231
+ }
232
+ };
233
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
234
+ var ResourceNotFoundException = _ResourceNotFoundException;
235
+ var _ValidationException = class _ValidationException extends MigrationHubOrchestratorServiceException {
236
+ /**
237
+ * @internal
238
+ */
239
+ constructor(opts) {
240
+ super({
241
+ name: "ValidationException",
242
+ $fault: "client",
243
+ ...opts
244
+ });
245
+ this.name = "ValidationException";
246
+ this.$fault = "client";
247
+ this.$retryable = {};
248
+ Object.setPrototypeOf(this, _ValidationException.prototype);
249
+ }
250
+ };
251
+ __name(_ValidationException, "ValidationException");
252
+ var ValidationException = _ValidationException;
253
+ var StepInput;
254
+ ((StepInput3) => {
255
+ StepInput3.visit = /* @__PURE__ */ __name((value, visitor) => {
256
+ if (value.integerValue !== void 0)
257
+ return visitor.integerValue(value.integerValue);
258
+ if (value.stringValue !== void 0)
259
+ return visitor.stringValue(value.stringValue);
260
+ if (value.listOfStringsValue !== void 0)
261
+ return visitor.listOfStringsValue(value.listOfStringsValue);
262
+ if (value.mapOfStringValue !== void 0)
263
+ return visitor.mapOfStringValue(value.mapOfStringValue);
264
+ return visitor._(value.$unknown[0], value.$unknown[1]);
265
+ }, "visit");
266
+ })(StepInput || (StepInput = {}));
267
+ var MigrationWorkflowStatusEnum = {
268
+ COMPLETED: "COMPLETED",
269
+ CREATING: "CREATING",
270
+ CREATION_FAILED: "CREATION_FAILED",
271
+ DELETED: "DELETED",
272
+ DELETING: "DELETING",
273
+ DELETION_FAILED: "DELETION_FAILED",
274
+ IN_PROGRESS: "IN_PROGRESS",
275
+ NOT_STARTED: "NOT_STARTED",
276
+ PAUSED: "PAUSED",
277
+ PAUSING: "PAUSING",
278
+ PAUSING_FAILED: "PAUSING_FAILED",
279
+ STARTING: "STARTING",
280
+ USER_ATTENTION_REQUIRED: "USER_ATTENTION_REQUIRED",
281
+ WORKFLOW_FAILED: "WORKFLOW_FAILED"
282
+ };
283
+ var _InternalServerException = class _InternalServerException extends MigrationHubOrchestratorServiceException {
284
+ /**
285
+ * @internal
286
+ */
287
+ constructor(opts) {
288
+ super({
289
+ name: "InternalServerException",
290
+ $fault: "server",
291
+ ...opts
292
+ });
293
+ this.name = "InternalServerException";
294
+ this.$fault = "server";
295
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
296
+ }
297
+ };
298
+ __name(_InternalServerException, "InternalServerException");
299
+ var InternalServerException = _InternalServerException;
300
+ var _ThrottlingException = class _ThrottlingException extends MigrationHubOrchestratorServiceException {
301
+ /**
302
+ * @internal
303
+ */
304
+ constructor(opts) {
305
+ super({
306
+ name: "ThrottlingException",
307
+ $fault: "client",
308
+ ...opts
309
+ });
310
+ this.name = "ThrottlingException";
311
+ this.$fault = "client";
312
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
313
+ }
314
+ };
315
+ __name(_ThrottlingException, "ThrottlingException");
316
+ var ThrottlingException = _ThrottlingException;
317
+ var DataType = {
318
+ INTEGER: "INTEGER",
319
+ STRING: "STRING",
320
+ STRINGLIST: "STRINGLIST",
321
+ STRINGMAP: "STRINGMAP"
322
+ };
323
+ var TemplateStatus = {
324
+ CREATED: "CREATED"
325
+ };
326
+ var PluginHealth = {
327
+ PLUGIN_HEALTHY: "HEALTHY",
328
+ PLUGIN_UNHEALTHY: "UNHEALTHY"
329
+ };
330
+ var StepActionType = {
331
+ AUTOMATED: "AUTOMATED",
332
+ MANUAL: "MANUAL"
333
+ };
334
+ var RunEnvironment = {
335
+ AWS: "AWS",
336
+ ONPREMISE: "ONPREMISE"
337
+ };
338
+ var TargetType = {
339
+ ALL: "ALL",
340
+ NONE: "NONE",
341
+ SINGLE: "SINGLE"
342
+ };
343
+ var Owner = {
344
+ AWSManaged: "AWS_MANAGED",
345
+ CUSTOM: "CUSTOM"
346
+ };
347
+ var StepGroupStatus = {
348
+ AWAITING_DEPENDENCIES: "AWAITING_DEPENDENCIES",
349
+ COMPLETED: "COMPLETED",
350
+ FAILED: "FAILED",
351
+ IN_PROGRESS: "IN_PROGRESS",
352
+ PAUSED: "PAUSED",
353
+ PAUSING: "PAUSING",
354
+ READY: "READY",
355
+ USER_ATTENTION_REQUIRED: "USER_ATTENTION_REQUIRED"
356
+ };
357
+ var WorkflowStepOutputUnion;
358
+ ((WorkflowStepOutputUnion3) => {
359
+ WorkflowStepOutputUnion3.visit = /* @__PURE__ */ __name((value, visitor) => {
360
+ if (value.integerValue !== void 0)
361
+ return visitor.integerValue(value.integerValue);
362
+ if (value.stringValue !== void 0)
363
+ return visitor.stringValue(value.stringValue);
364
+ if (value.listOfStringValue !== void 0)
365
+ return visitor.listOfStringValue(value.listOfStringValue);
366
+ return visitor._(value.$unknown[0], value.$unknown[1]);
367
+ }, "visit");
368
+ })(WorkflowStepOutputUnion || (WorkflowStepOutputUnion = {}));
369
+ var StepStatus = {
370
+ AWAITING_DEPENDENCIES: "AWAITING_DEPENDENCIES",
371
+ COMPLETED: "COMPLETED",
372
+ FAILED: "FAILED",
373
+ IN_PROGRESS: "IN_PROGRESS",
374
+ PAUSED: "PAUSED",
375
+ READY: "READY",
376
+ USER_ATTENTION_REQUIRED: "USER_ATTENTION_REQUIRED"
377
+ };
378
+ var CreateMigrationWorkflowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
379
+ ...obj,
380
+ ...obj.inputParameters && { inputParameters: import_smithy_client.SENSITIVE_STRING }
381
+ }), "CreateMigrationWorkflowRequestFilterSensitiveLog");
382
+ var CreateMigrationWorkflowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
383
+ ...obj,
384
+ ...obj.workflowInputs && { workflowInputs: import_smithy_client.SENSITIVE_STRING }
385
+ }), "CreateMigrationWorkflowResponseFilterSensitiveLog");
386
+ var GetMigrationWorkflowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
387
+ ...obj,
388
+ ...obj.workflowInputs && { workflowInputs: import_smithy_client.SENSITIVE_STRING }
389
+ }), "GetMigrationWorkflowResponseFilterSensitiveLog");
390
+ var UpdateMigrationWorkflowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
391
+ ...obj,
392
+ ...obj.inputParameters && { inputParameters: import_smithy_client.SENSITIVE_STRING }
393
+ }), "UpdateMigrationWorkflowRequestFilterSensitiveLog");
394
+ var UpdateMigrationWorkflowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
395
+ ...obj,
396
+ ...obj.workflowInputs && { workflowInputs: import_smithy_client.SENSITIVE_STRING }
397
+ }), "UpdateMigrationWorkflowResponseFilterSensitiveLog");
398
+
399
+ // src/protocols/Aws_restJson1.ts
400
+ var import_core = require("@smithy/core");
401
+
402
+ var se_CreateWorkflowCommand = /* @__PURE__ */ __name(async (input, context) => {
403
+ const b = (0, import_core.requestBuilder)(input, context);
404
+ const headers = {
405
+ "content-type": "application/json"
406
+ };
407
+ b.bp("/migrationworkflow");
408
+ let body;
409
+ body = JSON.stringify(
410
+ (0, import_smithy_client.take)(input, {
411
+ applicationConfigurationId: [],
412
+ description: [],
413
+ inputParameters: (_) => (0, import_smithy_client._json)(_),
414
+ name: [],
415
+ stepTargets: (_) => (0, import_smithy_client._json)(_),
416
+ tags: (_) => (0, import_smithy_client._json)(_),
417
+ templateId: []
418
+ })
419
+ );
420
+ b.m("POST").h(headers).b(body);
421
+ return b.build();
422
+ }, "se_CreateWorkflowCommand");
423
+ var se_CreateWorkflowStepCommand = /* @__PURE__ */ __name(async (input, context) => {
424
+ const b = (0, import_core.requestBuilder)(input, context);
425
+ const headers = {
426
+ "content-type": "application/json"
427
+ };
428
+ b.bp("/workflowstep");
429
+ let body;
430
+ body = JSON.stringify(
431
+ (0, import_smithy_client.take)(input, {
432
+ description: [],
433
+ name: [],
434
+ next: (_) => (0, import_smithy_client._json)(_),
435
+ outputs: (_) => (0, import_smithy_client._json)(_),
436
+ previous: (_) => (0, import_smithy_client._json)(_),
437
+ stepActionType: [],
438
+ stepGroupId: [],
439
+ stepTarget: (_) => (0, import_smithy_client._json)(_),
440
+ workflowId: [],
441
+ workflowStepAutomationConfiguration: (_) => (0, import_smithy_client._json)(_)
442
+ })
443
+ );
444
+ b.m("POST").h(headers).b(body);
445
+ return b.build();
446
+ }, "se_CreateWorkflowStepCommand");
447
+ var se_CreateWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
448
+ const b = (0, import_core.requestBuilder)(input, context);
449
+ const headers = {
450
+ "content-type": "application/json"
451
+ };
452
+ b.bp("/workflowstepgroups");
453
+ let body;
454
+ body = JSON.stringify(
455
+ (0, import_smithy_client.take)(input, {
456
+ description: [],
457
+ name: [],
458
+ next: (_) => (0, import_smithy_client._json)(_),
459
+ previous: (_) => (0, import_smithy_client._json)(_),
460
+ workflowId: []
461
+ })
462
+ );
463
+ b.m("POST").h(headers).b(body);
464
+ return b.build();
465
+ }, "se_CreateWorkflowStepGroupCommand");
466
+ var se_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (input, context) => {
467
+ const b = (0, import_core.requestBuilder)(input, context);
468
+ const headers = {};
469
+ b.bp("/migrationworkflow/{id}");
470
+ b.p("id", () => input.id, "{id}", false);
471
+ let body;
472
+ b.m("DELETE").h(headers).b(body);
473
+ return b.build();
474
+ }, "se_DeleteWorkflowCommand");
475
+ var se_DeleteWorkflowStepCommand = /* @__PURE__ */ __name(async (input, context) => {
476
+ const b = (0, import_core.requestBuilder)(input, context);
477
+ const headers = {};
478
+ b.bp("/workflowstep/{id}");
479
+ b.p("id", () => input.id, "{id}", false);
480
+ const query = (0, import_smithy_client.map)({
481
+ [_sGI]: [, (0, import_smithy_client.expectNonNull)(input[_sGI], `stepGroupId`)],
482
+ [_wI]: [, (0, import_smithy_client.expectNonNull)(input[_wI], `workflowId`)]
483
+ });
484
+ let body;
485
+ b.m("DELETE").h(headers).q(query).b(body);
486
+ return b.build();
487
+ }, "se_DeleteWorkflowStepCommand");
488
+ var se_DeleteWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
489
+ const b = (0, import_core.requestBuilder)(input, context);
490
+ const headers = {};
491
+ b.bp("/workflowstepgroup/{id}");
492
+ b.p("id", () => input.id, "{id}", false);
493
+ const query = (0, import_smithy_client.map)({
494
+ [_wI]: [, (0, import_smithy_client.expectNonNull)(input[_wI], `workflowId`)]
495
+ });
496
+ let body;
497
+ b.m("DELETE").h(headers).q(query).b(body);
498
+ return b.build();
499
+ }, "se_DeleteWorkflowStepGroupCommand");
500
+ var se_GetTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
501
+ const b = (0, import_core.requestBuilder)(input, context);
502
+ const headers = {};
503
+ b.bp("/migrationworkflowtemplate/{id}");
504
+ b.p("id", () => input.id, "{id}", false);
505
+ let body;
506
+ b.m("GET").h(headers).b(body);
507
+ return b.build();
508
+ }, "se_GetTemplateCommand");
509
+ var se_GetTemplateStepCommand = /* @__PURE__ */ __name(async (input, context) => {
510
+ const b = (0, import_core.requestBuilder)(input, context);
511
+ const headers = {};
512
+ b.bp("/templatestep/{id}");
513
+ b.p("id", () => input.id, "{id}", false);
514
+ const query = (0, import_smithy_client.map)({
515
+ [_tI]: [, (0, import_smithy_client.expectNonNull)(input[_tI], `templateId`)],
516
+ [_sGI]: [, (0, import_smithy_client.expectNonNull)(input[_sGI], `stepGroupId`)]
517
+ });
518
+ let body;
519
+ b.m("GET").h(headers).q(query).b(body);
520
+ return b.build();
521
+ }, "se_GetTemplateStepCommand");
522
+ var se_GetTemplateStepGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
523
+ const b = (0, import_core.requestBuilder)(input, context);
524
+ const headers = {};
525
+ b.bp("/templates/{templateId}/stepgroups/{id}");
526
+ b.p("templateId", () => input.templateId, "{templateId}", false);
527
+ b.p("id", () => input.id, "{id}", false);
528
+ let body;
529
+ b.m("GET").h(headers).b(body);
530
+ return b.build();
531
+ }, "se_GetTemplateStepGroupCommand");
532
+ var se_GetWorkflowCommand = /* @__PURE__ */ __name(async (input, context) => {
533
+ const b = (0, import_core.requestBuilder)(input, context);
534
+ const headers = {};
535
+ b.bp("/migrationworkflow/{id}");
536
+ b.p("id", () => input.id, "{id}", false);
537
+ let body;
538
+ b.m("GET").h(headers).b(body);
539
+ return b.build();
540
+ }, "se_GetWorkflowCommand");
541
+ var se_GetWorkflowStepCommand = /* @__PURE__ */ __name(async (input, context) => {
542
+ const b = (0, import_core.requestBuilder)(input, context);
543
+ const headers = {};
544
+ b.bp("/workflowstep/{id}");
545
+ b.p("id", () => input.id, "{id}", false);
546
+ const query = (0, import_smithy_client.map)({
547
+ [_wI]: [, (0, import_smithy_client.expectNonNull)(input[_wI], `workflowId`)],
548
+ [_sGI]: [, (0, import_smithy_client.expectNonNull)(input[_sGI], `stepGroupId`)]
549
+ });
550
+ let body;
551
+ b.m("GET").h(headers).q(query).b(body);
552
+ return b.build();
553
+ }, "se_GetWorkflowStepCommand");
554
+ var se_GetWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
555
+ const b = (0, import_core.requestBuilder)(input, context);
556
+ const headers = {};
557
+ b.bp("/workflowstepgroup/{id}");
558
+ b.p("id", () => input.id, "{id}", false);
559
+ const query = (0, import_smithy_client.map)({
560
+ [_wI]: [, (0, import_smithy_client.expectNonNull)(input[_wI], `workflowId`)]
561
+ });
562
+ let body;
563
+ b.m("GET").h(headers).q(query).b(body);
564
+ return b.build();
565
+ }, "se_GetWorkflowStepGroupCommand");
566
+ var se_ListPluginsCommand = /* @__PURE__ */ __name(async (input, context) => {
567
+ const b = (0, import_core.requestBuilder)(input, context);
568
+ const headers = {};
569
+ b.bp("/plugins");
570
+ const query = (0, import_smithy_client.map)({
571
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
572
+ [_nT]: [, input[_nT]]
573
+ });
574
+ let body;
575
+ b.m("GET").h(headers).q(query).b(body);
576
+ return b.build();
577
+ }, "se_ListPluginsCommand");
578
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
579
+ const b = (0, import_core.requestBuilder)(input, context);
580
+ const headers = {};
581
+ b.bp("/tags/{resourceArn}");
582
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
583
+ let body;
584
+ b.m("GET").h(headers).b(body);
585
+ return b.build();
586
+ }, "se_ListTagsForResourceCommand");
587
+ var se_ListTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
588
+ const b = (0, import_core.requestBuilder)(input, context);
589
+ const headers = {};
590
+ b.bp("/migrationworkflowtemplates");
591
+ const query = (0, import_smithy_client.map)({
592
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
593
+ [_nT]: [, input[_nT]],
594
+ [_n]: [, input[_n]]
595
+ });
596
+ let body;
597
+ b.m("GET").h(headers).q(query).b(body);
598
+ return b.build();
599
+ }, "se_ListTemplatesCommand");
600
+ var se_ListTemplateStepGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
601
+ const b = (0, import_core.requestBuilder)(input, context);
602
+ const headers = {};
603
+ b.bp("/templatestepgroups/{templateId}");
604
+ b.p("templateId", () => input.templateId, "{templateId}", false);
605
+ const query = (0, import_smithy_client.map)({
606
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
607
+ [_nT]: [, input[_nT]]
608
+ });
609
+ let body;
610
+ b.m("GET").h(headers).q(query).b(body);
611
+ return b.build();
612
+ }, "se_ListTemplateStepGroupsCommand");
613
+ var se_ListTemplateStepsCommand = /* @__PURE__ */ __name(async (input, context) => {
614
+ const b = (0, import_core.requestBuilder)(input, context);
615
+ const headers = {};
616
+ b.bp("/templatesteps");
617
+ const query = (0, import_smithy_client.map)({
618
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
619
+ [_nT]: [, input[_nT]],
620
+ [_tI]: [, (0, import_smithy_client.expectNonNull)(input[_tI], `templateId`)],
621
+ [_sGI]: [, (0, import_smithy_client.expectNonNull)(input[_sGI], `stepGroupId`)]
622
+ });
623
+ let body;
624
+ b.m("GET").h(headers).q(query).b(body);
625
+ return b.build();
626
+ }, "se_ListTemplateStepsCommand");
627
+ var se_ListWorkflowsCommand = /* @__PURE__ */ __name(async (input, context) => {
628
+ const b = (0, import_core.requestBuilder)(input, context);
629
+ const headers = {};
630
+ b.bp("/migrationworkflows");
631
+ const query = (0, import_smithy_client.map)({
632
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
633
+ [_nT]: [, input[_nT]],
634
+ [_tI]: [, input[_tI]],
635
+ [_aACN]: [, input[_aACN]],
636
+ [_s]: [, input[_s]],
637
+ [_n]: [, input[_n]]
638
+ });
639
+ let body;
640
+ b.m("GET").h(headers).q(query).b(body);
641
+ return b.build();
642
+ }, "se_ListWorkflowsCommand");
643
+ var se_ListWorkflowStepGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
644
+ const b = (0, import_core.requestBuilder)(input, context);
645
+ const headers = {};
646
+ b.bp("/workflowstepgroups");
647
+ const query = (0, import_smithy_client.map)({
648
+ [_nT]: [, input[_nT]],
649
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
650
+ [_wI]: [, (0, import_smithy_client.expectNonNull)(input[_wI], `workflowId`)]
651
+ });
652
+ let body;
653
+ b.m("GET").h(headers).q(query).b(body);
654
+ return b.build();
655
+ }, "se_ListWorkflowStepGroupsCommand");
656
+ var se_ListWorkflowStepsCommand = /* @__PURE__ */ __name(async (input, context) => {
657
+ const b = (0, import_core.requestBuilder)(input, context);
658
+ const headers = {};
659
+ b.bp("/workflow/{workflowId}/workflowstepgroups/{stepGroupId}/workflowsteps");
660
+ b.p("workflowId", () => input.workflowId, "{workflowId}", false);
661
+ b.p("stepGroupId", () => input.stepGroupId, "{stepGroupId}", false);
662
+ const query = (0, import_smithy_client.map)({
663
+ [_nT]: [, input[_nT]],
664
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
665
+ });
666
+ let body;
667
+ b.m("GET").h(headers).q(query).b(body);
668
+ return b.build();
669
+ }, "se_ListWorkflowStepsCommand");
670
+ var se_RetryWorkflowStepCommand = /* @__PURE__ */ __name(async (input, context) => {
671
+ const b = (0, import_core.requestBuilder)(input, context);
672
+ const headers = {};
673
+ b.bp("/retryworkflowstep/{id}");
674
+ b.p("id", () => input.id, "{id}", false);
675
+ const query = (0, import_smithy_client.map)({
676
+ [_wI]: [, (0, import_smithy_client.expectNonNull)(input[_wI], `workflowId`)],
677
+ [_sGI]: [, (0, import_smithy_client.expectNonNull)(input[_sGI], `stepGroupId`)]
678
+ });
679
+ let body;
680
+ b.m("POST").h(headers).q(query).b(body);
681
+ return b.build();
682
+ }, "se_RetryWorkflowStepCommand");
683
+ var se_StartWorkflowCommand = /* @__PURE__ */ __name(async (input, context) => {
684
+ const b = (0, import_core.requestBuilder)(input, context);
685
+ const headers = {};
686
+ b.bp("/migrationworkflow/{id}/start");
687
+ b.p("id", () => input.id, "{id}", false);
688
+ let body;
689
+ b.m("POST").h(headers).b(body);
690
+ return b.build();
691
+ }, "se_StartWorkflowCommand");
692
+ var se_StopWorkflowCommand = /* @__PURE__ */ __name(async (input, context) => {
693
+ const b = (0, import_core.requestBuilder)(input, context);
694
+ const headers = {};
695
+ b.bp("/migrationworkflow/{id}/stop");
696
+ b.p("id", () => input.id, "{id}", false);
697
+ let body;
698
+ b.m("POST").h(headers).b(body);
699
+ return b.build();
700
+ }, "se_StopWorkflowCommand");
701
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
702
+ const b = (0, import_core.requestBuilder)(input, context);
703
+ const headers = {
704
+ "content-type": "application/json"
705
+ };
706
+ b.bp("/tags/{resourceArn}");
707
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
708
+ let body;
709
+ body = JSON.stringify(
710
+ (0, import_smithy_client.take)(input, {
711
+ tags: (_) => (0, import_smithy_client._json)(_)
712
+ })
713
+ );
714
+ b.m("POST").h(headers).b(body);
715
+ return b.build();
716
+ }, "se_TagResourceCommand");
717
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
718
+ const b = (0, import_core.requestBuilder)(input, context);
719
+ const headers = {};
720
+ b.bp("/tags/{resourceArn}");
721
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
722
+ const query = (0, import_smithy_client.map)({
723
+ [_tK]: [
724
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
725
+ () => (input[_tK] || []).map((_entry) => _entry)
726
+ ]
727
+ });
728
+ let body;
729
+ b.m("DELETE").h(headers).q(query).b(body);
730
+ return b.build();
731
+ }, "se_UntagResourceCommand");
732
+ var se_UpdateWorkflowCommand = /* @__PURE__ */ __name(async (input, context) => {
733
+ const b = (0, import_core.requestBuilder)(input, context);
734
+ const headers = {
735
+ "content-type": "application/json"
736
+ };
737
+ b.bp("/migrationworkflow/{id}");
738
+ b.p("id", () => input.id, "{id}", false);
739
+ let body;
740
+ body = JSON.stringify(
741
+ (0, import_smithy_client.take)(input, {
742
+ description: [],
743
+ inputParameters: (_) => (0, import_smithy_client._json)(_),
744
+ name: [],
745
+ stepTargets: (_) => (0, import_smithy_client._json)(_)
746
+ })
747
+ );
748
+ b.m("POST").h(headers).b(body);
749
+ return b.build();
750
+ }, "se_UpdateWorkflowCommand");
751
+ var se_UpdateWorkflowStepCommand = /* @__PURE__ */ __name(async (input, context) => {
752
+ const b = (0, import_core.requestBuilder)(input, context);
753
+ const headers = {
754
+ "content-type": "application/json"
755
+ };
756
+ b.bp("/workflowstep/{id}");
757
+ b.p("id", () => input.id, "{id}", false);
758
+ let body;
759
+ body = JSON.stringify(
760
+ (0, import_smithy_client.take)(input, {
761
+ description: [],
762
+ name: [],
763
+ next: (_) => (0, import_smithy_client._json)(_),
764
+ outputs: (_) => (0, import_smithy_client._json)(_),
765
+ previous: (_) => (0, import_smithy_client._json)(_),
766
+ status: [],
767
+ stepActionType: [],
768
+ stepGroupId: [],
769
+ stepTarget: (_) => (0, import_smithy_client._json)(_),
770
+ workflowId: [],
771
+ workflowStepAutomationConfiguration: (_) => (0, import_smithy_client._json)(_)
772
+ })
773
+ );
774
+ b.m("POST").h(headers).b(body);
775
+ return b.build();
776
+ }, "se_UpdateWorkflowStepCommand");
777
+ var se_UpdateWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
778
+ const b = (0, import_core.requestBuilder)(input, context);
779
+ const headers = {
780
+ "content-type": "application/json"
781
+ };
782
+ b.bp("/workflowstepgroup/{id}");
783
+ b.p("id", () => input.id, "{id}", false);
784
+ const query = (0, import_smithy_client.map)({
785
+ [_wI]: [, (0, import_smithy_client.expectNonNull)(input[_wI], `workflowId`)]
786
+ });
787
+ let body;
788
+ body = JSON.stringify(
789
+ (0, import_smithy_client.take)(input, {
790
+ description: [],
791
+ name: [],
792
+ next: (_) => (0, import_smithy_client._json)(_),
793
+ previous: (_) => (0, import_smithy_client._json)(_)
794
+ })
795
+ );
796
+ b.m("POST").h(headers).q(query).b(body);
797
+ return b.build();
798
+ }, "se_UpdateWorkflowStepGroupCommand");
799
+ var de_CreateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
800
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
801
+ return de_CreateWorkflowCommandError(output, context);
802
+ }
803
+ const contents = (0, import_smithy_client.map)({
804
+ $metadata: deserializeMetadata(output)
805
+ });
806
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
807
+ const doc = (0, import_smithy_client.take)(data, {
808
+ adsApplicationConfigurationId: import_smithy_client.expectString,
809
+ arn: import_smithy_client.expectString,
810
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
811
+ description: import_smithy_client.expectString,
812
+ id: import_smithy_client.expectString,
813
+ name: import_smithy_client.expectString,
814
+ status: import_smithy_client.expectString,
815
+ stepTargets: import_smithy_client._json,
816
+ tags: import_smithy_client._json,
817
+ templateId: import_smithy_client.expectString,
818
+ workflowInputs: import_smithy_client._json
819
+ });
820
+ Object.assign(contents, doc);
821
+ return contents;
822
+ }, "de_CreateWorkflowCommand");
823
+ var de_CreateWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
824
+ const parsedOutput = {
825
+ ...output,
826
+ body: await parseErrorBody(output.body, context)
827
+ };
828
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
829
+ switch (errorCode) {
830
+ case "AccessDeniedException":
831
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
832
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
833
+ case "InternalServerException":
834
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
835
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
836
+ case "ThrottlingException":
837
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
838
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
839
+ case "ValidationException":
840
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
841
+ throw await de_ValidationExceptionRes(parsedOutput, context);
842
+ default:
843
+ const parsedBody = parsedOutput.body;
844
+ return throwDefaultError({
845
+ output,
846
+ parsedBody,
847
+ errorCode
848
+ });
849
+ }
850
+ }, "de_CreateWorkflowCommandError");
851
+ var de_CreateWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context) => {
852
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
853
+ return de_CreateWorkflowStepCommandError(output, context);
854
+ }
855
+ const contents = (0, import_smithy_client.map)({
856
+ $metadata: deserializeMetadata(output)
857
+ });
858
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
859
+ const doc = (0, import_smithy_client.take)(data, {
860
+ id: import_smithy_client.expectString,
861
+ name: import_smithy_client.expectString,
862
+ stepGroupId: import_smithy_client.expectString,
863
+ workflowId: import_smithy_client.expectString
864
+ });
865
+ Object.assign(contents, doc);
866
+ return contents;
867
+ }, "de_CreateWorkflowStepCommand");
868
+ var de_CreateWorkflowStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
869
+ const parsedOutput = {
870
+ ...output,
871
+ body: await parseErrorBody(output.body, context)
872
+ };
873
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
874
+ switch (errorCode) {
875
+ case "AccessDeniedException":
876
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
877
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
878
+ case "InternalServerException":
879
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
880
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
881
+ case "ThrottlingException":
882
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
883
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
884
+ case "ValidationException":
885
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
886
+ throw await de_ValidationExceptionRes(parsedOutput, context);
887
+ default:
888
+ const parsedBody = parsedOutput.body;
889
+ return throwDefaultError({
890
+ output,
891
+ parsedBody,
892
+ errorCode
893
+ });
894
+ }
895
+ }, "de_CreateWorkflowStepCommandError");
896
+ var de_CreateWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
897
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
898
+ return de_CreateWorkflowStepGroupCommandError(output, context);
899
+ }
900
+ const contents = (0, import_smithy_client.map)({
901
+ $metadata: deserializeMetadata(output)
902
+ });
903
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
904
+ const doc = (0, import_smithy_client.take)(data, {
905
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
906
+ description: import_smithy_client.expectString,
907
+ id: import_smithy_client.expectString,
908
+ name: import_smithy_client.expectString,
909
+ next: import_smithy_client._json,
910
+ previous: import_smithy_client._json,
911
+ tools: import_smithy_client._json,
912
+ workflowId: import_smithy_client.expectString
913
+ });
914
+ Object.assign(contents, doc);
915
+ return contents;
916
+ }, "de_CreateWorkflowStepGroupCommand");
917
+ var de_CreateWorkflowStepGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
918
+ const parsedOutput = {
919
+ ...output,
920
+ body: await parseErrorBody(output.body, context)
921
+ };
922
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
923
+ switch (errorCode) {
924
+ case "AccessDeniedException":
925
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
926
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
927
+ case "InternalServerException":
928
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
929
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
930
+ case "ThrottlingException":
931
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
932
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
933
+ case "ValidationException":
934
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
935
+ throw await de_ValidationExceptionRes(parsedOutput, context);
936
+ default:
937
+ const parsedBody = parsedOutput.body;
938
+ return throwDefaultError({
939
+ output,
940
+ parsedBody,
941
+ errorCode
942
+ });
943
+ }
944
+ }, "de_CreateWorkflowStepGroupCommandError");
945
+ var de_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
946
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
947
+ return de_DeleteWorkflowCommandError(output, context);
948
+ }
949
+ const contents = (0, import_smithy_client.map)({
950
+ $metadata: deserializeMetadata(output)
951
+ });
952
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
953
+ const doc = (0, import_smithy_client.take)(data, {
954
+ arn: import_smithy_client.expectString,
955
+ id: import_smithy_client.expectString,
956
+ status: import_smithy_client.expectString
957
+ });
958
+ Object.assign(contents, doc);
959
+ return contents;
960
+ }, "de_DeleteWorkflowCommand");
961
+ var de_DeleteWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
962
+ const parsedOutput = {
963
+ ...output,
964
+ body: await parseErrorBody(output.body, context)
965
+ };
966
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
967
+ switch (errorCode) {
968
+ case "AccessDeniedException":
969
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
970
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
971
+ case "InternalServerException":
972
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
973
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
974
+ case "ResourceNotFoundException":
975
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
976
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
977
+ case "ThrottlingException":
978
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
979
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
980
+ case "ValidationException":
981
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
982
+ throw await de_ValidationExceptionRes(parsedOutput, context);
983
+ default:
984
+ const parsedBody = parsedOutput.body;
985
+ return throwDefaultError({
986
+ output,
987
+ parsedBody,
988
+ errorCode
989
+ });
990
+ }
991
+ }, "de_DeleteWorkflowCommandError");
992
+ var de_DeleteWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context) => {
993
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
994
+ return de_DeleteWorkflowStepCommandError(output, context);
995
+ }
996
+ const contents = (0, import_smithy_client.map)({
997
+ $metadata: deserializeMetadata(output)
998
+ });
999
+ await (0, import_smithy_client.collectBody)(output.body, context);
1000
+ return contents;
1001
+ }, "de_DeleteWorkflowStepCommand");
1002
+ var de_DeleteWorkflowStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
1003
+ const parsedOutput = {
1004
+ ...output,
1005
+ body: await parseErrorBody(output.body, context)
1006
+ };
1007
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1008
+ switch (errorCode) {
1009
+ case "AccessDeniedException":
1010
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1011
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1012
+ case "InternalServerException":
1013
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1014
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1015
+ case "ResourceNotFoundException":
1016
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1017
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1018
+ case "ThrottlingException":
1019
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1020
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1021
+ case "ValidationException":
1022
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1023
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1024
+ default:
1025
+ const parsedBody = parsedOutput.body;
1026
+ return throwDefaultError({
1027
+ output,
1028
+ parsedBody,
1029
+ errorCode
1030
+ });
1031
+ }
1032
+ }, "de_DeleteWorkflowStepCommandError");
1033
+ var de_DeleteWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1034
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1035
+ return de_DeleteWorkflowStepGroupCommandError(output, context);
1036
+ }
1037
+ const contents = (0, import_smithy_client.map)({
1038
+ $metadata: deserializeMetadata(output)
1039
+ });
1040
+ await (0, import_smithy_client.collectBody)(output.body, context);
1041
+ return contents;
1042
+ }, "de_DeleteWorkflowStepGroupCommand");
1043
+ var de_DeleteWorkflowStepGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1044
+ const parsedOutput = {
1045
+ ...output,
1046
+ body: await parseErrorBody(output.body, context)
1047
+ };
1048
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1049
+ switch (errorCode) {
1050
+ case "AccessDeniedException":
1051
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1052
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1053
+ case "InternalServerException":
1054
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1055
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1056
+ case "ResourceNotFoundException":
1057
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1058
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1059
+ case "ThrottlingException":
1060
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1061
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1062
+ case "ValidationException":
1063
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1064
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1065
+ default:
1066
+ const parsedBody = parsedOutput.body;
1067
+ return throwDefaultError({
1068
+ output,
1069
+ parsedBody,
1070
+ errorCode
1071
+ });
1072
+ }
1073
+ }, "de_DeleteWorkflowStepGroupCommandError");
1074
+ var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1075
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1076
+ return de_GetTemplateCommandError(output, context);
1077
+ }
1078
+ const contents = (0, import_smithy_client.map)({
1079
+ $metadata: deserializeMetadata(output)
1080
+ });
1081
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1082
+ const doc = (0, import_smithy_client.take)(data, {
1083
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1084
+ description: import_smithy_client.expectString,
1085
+ id: import_smithy_client.expectString,
1086
+ inputs: import_smithy_client._json,
1087
+ name: import_smithy_client.expectString,
1088
+ status: import_smithy_client.expectString,
1089
+ tools: import_smithy_client._json
1090
+ });
1091
+ Object.assign(contents, doc);
1092
+ return contents;
1093
+ }, "de_GetTemplateCommand");
1094
+ var de_GetTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1095
+ const parsedOutput = {
1096
+ ...output,
1097
+ body: await parseErrorBody(output.body, context)
1098
+ };
1099
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1100
+ switch (errorCode) {
1101
+ case "AccessDeniedException":
1102
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1103
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1104
+ case "InternalServerException":
1105
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1106
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1107
+ case "ResourceNotFoundException":
1108
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1109
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1110
+ case "ThrottlingException":
1111
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1112
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1113
+ default:
1114
+ const parsedBody = parsedOutput.body;
1115
+ return throwDefaultError({
1116
+ output,
1117
+ parsedBody,
1118
+ errorCode
1119
+ });
1120
+ }
1121
+ }, "de_GetTemplateCommandError");
1122
+ var de_GetTemplateStepCommand = /* @__PURE__ */ __name(async (output, context) => {
1123
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
+ return de_GetTemplateStepCommandError(output, context);
1125
+ }
1126
+ const contents = (0, import_smithy_client.map)({
1127
+ $metadata: deserializeMetadata(output)
1128
+ });
1129
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1130
+ const doc = (0, import_smithy_client.take)(data, {
1131
+ creationTime: import_smithy_client.expectString,
1132
+ description: import_smithy_client.expectString,
1133
+ id: import_smithy_client.expectString,
1134
+ name: import_smithy_client.expectString,
1135
+ next: import_smithy_client._json,
1136
+ outputs: import_smithy_client._json,
1137
+ previous: import_smithy_client._json,
1138
+ stepActionType: import_smithy_client.expectString,
1139
+ stepAutomationConfiguration: import_smithy_client._json,
1140
+ stepGroupId: import_smithy_client.expectString,
1141
+ templateId: import_smithy_client.expectString
1142
+ });
1143
+ Object.assign(contents, doc);
1144
+ return contents;
1145
+ }, "de_GetTemplateStepCommand");
1146
+ var de_GetTemplateStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
1147
+ const parsedOutput = {
1148
+ ...output,
1149
+ body: await parseErrorBody(output.body, context)
1150
+ };
1151
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1152
+ switch (errorCode) {
1153
+ case "AccessDeniedException":
1154
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1155
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1156
+ case "InternalServerException":
1157
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1158
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1159
+ case "ResourceNotFoundException":
1160
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1161
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1162
+ case "ThrottlingException":
1163
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1164
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1165
+ case "ValidationException":
1166
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1167
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1168
+ default:
1169
+ const parsedBody = parsedOutput.body;
1170
+ return throwDefaultError({
1171
+ output,
1172
+ parsedBody,
1173
+ errorCode
1174
+ });
1175
+ }
1176
+ }, "de_GetTemplateStepCommandError");
1177
+ var de_GetTemplateStepGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1178
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1179
+ return de_GetTemplateStepGroupCommandError(output, context);
1180
+ }
1181
+ const contents = (0, import_smithy_client.map)({
1182
+ $metadata: deserializeMetadata(output)
1183
+ });
1184
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1185
+ const doc = (0, import_smithy_client.take)(data, {
1186
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1187
+ description: import_smithy_client.expectString,
1188
+ id: import_smithy_client.expectString,
1189
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1190
+ name: import_smithy_client.expectString,
1191
+ next: import_smithy_client._json,
1192
+ previous: import_smithy_client._json,
1193
+ status: import_smithy_client.expectString,
1194
+ templateId: import_smithy_client.expectString,
1195
+ tools: import_smithy_client._json
1196
+ });
1197
+ Object.assign(contents, doc);
1198
+ return contents;
1199
+ }, "de_GetTemplateStepGroupCommand");
1200
+ var de_GetTemplateStepGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1201
+ const parsedOutput = {
1202
+ ...output,
1203
+ body: await parseErrorBody(output.body, context)
1204
+ };
1205
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1206
+ switch (errorCode) {
1207
+ case "AccessDeniedException":
1208
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1209
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1210
+ case "InternalServerException":
1211
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1212
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1213
+ case "ResourceNotFoundException":
1214
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1215
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1216
+ case "ThrottlingException":
1217
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1218
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1219
+ case "ValidationException":
1220
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1221
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1222
+ default:
1223
+ const parsedBody = parsedOutput.body;
1224
+ return throwDefaultError({
1225
+ output,
1226
+ parsedBody,
1227
+ errorCode
1228
+ });
1229
+ }
1230
+ }, "de_GetTemplateStepGroupCommandError");
1231
+ var de_GetWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1232
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1233
+ return de_GetWorkflowCommandError(output, context);
1234
+ }
1235
+ const contents = (0, import_smithy_client.map)({
1236
+ $metadata: deserializeMetadata(output)
1237
+ });
1238
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1239
+ const doc = (0, import_smithy_client.take)(data, {
1240
+ adsApplicationConfigurationId: import_smithy_client.expectString,
1241
+ adsApplicationName: import_smithy_client.expectString,
1242
+ arn: import_smithy_client.expectString,
1243
+ completedSteps: import_smithy_client.expectInt32,
1244
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1245
+ description: import_smithy_client.expectString,
1246
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1247
+ id: import_smithy_client.expectString,
1248
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1249
+ lastStartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1250
+ lastStopTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1251
+ name: import_smithy_client.expectString,
1252
+ status: import_smithy_client.expectString,
1253
+ statusMessage: import_smithy_client.expectString,
1254
+ tags: import_smithy_client._json,
1255
+ templateId: import_smithy_client.expectString,
1256
+ tools: import_smithy_client._json,
1257
+ totalSteps: import_smithy_client.expectInt32,
1258
+ workflowBucket: import_smithy_client.expectString,
1259
+ workflowInputs: import_smithy_client._json
1260
+ });
1261
+ Object.assign(contents, doc);
1262
+ return contents;
1263
+ }, "de_GetWorkflowCommand");
1264
+ var de_GetWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
1265
+ const parsedOutput = {
1266
+ ...output,
1267
+ body: await parseErrorBody(output.body, context)
1268
+ };
1269
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1270
+ switch (errorCode) {
1271
+ case "AccessDeniedException":
1272
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1273
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1274
+ case "InternalServerException":
1275
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1276
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1277
+ case "ResourceNotFoundException":
1278
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1279
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1280
+ case "ThrottlingException":
1281
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1282
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1283
+ case "ValidationException":
1284
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1285
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1286
+ default:
1287
+ const parsedBody = parsedOutput.body;
1288
+ return throwDefaultError({
1289
+ output,
1290
+ parsedBody,
1291
+ errorCode
1292
+ });
1293
+ }
1294
+ }, "de_GetWorkflowCommandError");
1295
+ var de_GetWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context) => {
1296
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1297
+ return de_GetWorkflowStepCommandError(output, context);
1298
+ }
1299
+ const contents = (0, import_smithy_client.map)({
1300
+ $metadata: deserializeMetadata(output)
1301
+ });
1302
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1303
+ const doc = (0, import_smithy_client.take)(data, {
1304
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1305
+ description: import_smithy_client.expectString,
1306
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1307
+ lastStartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1308
+ name: import_smithy_client.expectString,
1309
+ next: import_smithy_client._json,
1310
+ noOfSrvCompleted: import_smithy_client.expectInt32,
1311
+ noOfSrvFailed: import_smithy_client.expectInt32,
1312
+ outputs: import_smithy_client._json,
1313
+ owner: import_smithy_client.expectString,
1314
+ previous: import_smithy_client._json,
1315
+ scriptOutputLocation: import_smithy_client.expectString,
1316
+ status: import_smithy_client.expectString,
1317
+ statusMessage: import_smithy_client.expectString,
1318
+ stepActionType: import_smithy_client.expectString,
1319
+ stepGroupId: import_smithy_client.expectString,
1320
+ stepId: import_smithy_client.expectString,
1321
+ stepTarget: import_smithy_client._json,
1322
+ totalNoOfSrv: import_smithy_client.expectInt32,
1323
+ workflowId: import_smithy_client.expectString,
1324
+ workflowStepAutomationConfiguration: import_smithy_client._json
1325
+ });
1326
+ Object.assign(contents, doc);
1327
+ return contents;
1328
+ }, "de_GetWorkflowStepCommand");
1329
+ var de_GetWorkflowStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
1330
+ const parsedOutput = {
1331
+ ...output,
1332
+ body: await parseErrorBody(output.body, context)
1333
+ };
1334
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1335
+ switch (errorCode) {
1336
+ case "AccessDeniedException":
1337
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1338
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1339
+ case "InternalServerException":
1340
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1341
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1342
+ case "ResourceNotFoundException":
1343
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1344
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1345
+ case "ThrottlingException":
1346
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1347
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1348
+ default:
1349
+ const parsedBody = parsedOutput.body;
1350
+ return throwDefaultError({
1351
+ output,
1352
+ parsedBody,
1353
+ errorCode
1354
+ });
1355
+ }
1356
+ }, "de_GetWorkflowStepCommandError");
1357
+ var de_GetWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1358
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1359
+ return de_GetWorkflowStepGroupCommandError(output, context);
1360
+ }
1361
+ const contents = (0, import_smithy_client.map)({
1362
+ $metadata: deserializeMetadata(output)
1363
+ });
1364
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1365
+ const doc = (0, import_smithy_client.take)(data, {
1366
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1367
+ description: import_smithy_client.expectString,
1368
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1369
+ id: import_smithy_client.expectString,
1370
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1371
+ name: import_smithy_client.expectString,
1372
+ next: import_smithy_client._json,
1373
+ owner: import_smithy_client.expectString,
1374
+ previous: import_smithy_client._json,
1375
+ status: import_smithy_client.expectString,
1376
+ tools: import_smithy_client._json,
1377
+ workflowId: import_smithy_client.expectString
1378
+ });
1379
+ Object.assign(contents, doc);
1380
+ return contents;
1381
+ }, "de_GetWorkflowStepGroupCommand");
1382
+ var de_GetWorkflowStepGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1383
+ const parsedOutput = {
1384
+ ...output,
1385
+ body: await parseErrorBody(output.body, context)
1386
+ };
1387
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1388
+ switch (errorCode) {
1389
+ case "AccessDeniedException":
1390
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1391
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1392
+ case "InternalServerException":
1393
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1394
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1395
+ case "ResourceNotFoundException":
1396
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1397
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1398
+ case "ThrottlingException":
1399
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1400
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1401
+ case "ValidationException":
1402
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1403
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1404
+ default:
1405
+ const parsedBody = parsedOutput.body;
1406
+ return throwDefaultError({
1407
+ output,
1408
+ parsedBody,
1409
+ errorCode
1410
+ });
1411
+ }
1412
+ }, "de_GetWorkflowStepGroupCommandError");
1413
+ var de_ListPluginsCommand = /* @__PURE__ */ __name(async (output, context) => {
1414
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1415
+ return de_ListPluginsCommandError(output, context);
1416
+ }
1417
+ const contents = (0, import_smithy_client.map)({
1418
+ $metadata: deserializeMetadata(output)
1419
+ });
1420
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1421
+ const doc = (0, import_smithy_client.take)(data, {
1422
+ nextToken: import_smithy_client.expectString,
1423
+ plugins: import_smithy_client._json
1424
+ });
1425
+ Object.assign(contents, doc);
1426
+ return contents;
1427
+ }, "de_ListPluginsCommand");
1428
+ var de_ListPluginsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1429
+ const parsedOutput = {
1430
+ ...output,
1431
+ body: await parseErrorBody(output.body, context)
1432
+ };
1433
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1434
+ switch (errorCode) {
1435
+ case "AccessDeniedException":
1436
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1437
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1438
+ case "InternalServerException":
1439
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1440
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1441
+ case "ValidationException":
1442
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1443
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1444
+ default:
1445
+ const parsedBody = parsedOutput.body;
1446
+ return throwDefaultError({
1447
+ output,
1448
+ parsedBody,
1449
+ errorCode
1450
+ });
1451
+ }
1452
+ }, "de_ListPluginsCommandError");
1453
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1454
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1455
+ return de_ListTagsForResourceCommandError(output, context);
1456
+ }
1457
+ const contents = (0, import_smithy_client.map)({
1458
+ $metadata: deserializeMetadata(output)
1459
+ });
1460
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1461
+ const doc = (0, import_smithy_client.take)(data, {
1462
+ tags: import_smithy_client._json
1463
+ });
1464
+ Object.assign(contents, doc);
1465
+ return contents;
1466
+ }, "de_ListTagsForResourceCommand");
1467
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1468
+ const parsedOutput = {
1469
+ ...output,
1470
+ body: await parseErrorBody(output.body, context)
1471
+ };
1472
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1473
+ switch (errorCode) {
1474
+ case "ResourceNotFoundException":
1475
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1476
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1477
+ case "ValidationException":
1478
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1479
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1480
+ default:
1481
+ const parsedBody = parsedOutput.body;
1482
+ return throwDefaultError({
1483
+ output,
1484
+ parsedBody,
1485
+ errorCode
1486
+ });
1487
+ }
1488
+ }, "de_ListTagsForResourceCommandError");
1489
+ var de_ListTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1490
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1491
+ return de_ListTemplatesCommandError(output, context);
1492
+ }
1493
+ const contents = (0, import_smithy_client.map)({
1494
+ $metadata: deserializeMetadata(output)
1495
+ });
1496
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1497
+ const doc = (0, import_smithy_client.take)(data, {
1498
+ nextToken: import_smithy_client.expectString,
1499
+ templateSummary: import_smithy_client._json
1500
+ });
1501
+ Object.assign(contents, doc);
1502
+ return contents;
1503
+ }, "de_ListTemplatesCommand");
1504
+ var de_ListTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1505
+ const parsedOutput = {
1506
+ ...output,
1507
+ body: await parseErrorBody(output.body, context)
1508
+ };
1509
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1510
+ switch (errorCode) {
1511
+ case "AccessDeniedException":
1512
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1513
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1514
+ case "InternalServerException":
1515
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1516
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1517
+ case "ThrottlingException":
1518
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1519
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1520
+ default:
1521
+ const parsedBody = parsedOutput.body;
1522
+ return throwDefaultError({
1523
+ output,
1524
+ parsedBody,
1525
+ errorCode
1526
+ });
1527
+ }
1528
+ }, "de_ListTemplatesCommandError");
1529
+ var de_ListTemplateStepGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1530
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1531
+ return de_ListTemplateStepGroupsCommandError(output, context);
1532
+ }
1533
+ const contents = (0, import_smithy_client.map)({
1534
+ $metadata: deserializeMetadata(output)
1535
+ });
1536
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1537
+ const doc = (0, import_smithy_client.take)(data, {
1538
+ nextToken: import_smithy_client.expectString,
1539
+ templateStepGroupSummary: import_smithy_client._json
1540
+ });
1541
+ Object.assign(contents, doc);
1542
+ return contents;
1543
+ }, "de_ListTemplateStepGroupsCommand");
1544
+ var de_ListTemplateStepGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1545
+ const parsedOutput = {
1546
+ ...output,
1547
+ body: await parseErrorBody(output.body, context)
1548
+ };
1549
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1550
+ switch (errorCode) {
1551
+ case "AccessDeniedException":
1552
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1553
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1554
+ case "InternalServerException":
1555
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1556
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1557
+ case "ResourceNotFoundException":
1558
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1559
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1560
+ case "ThrottlingException":
1561
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1562
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1563
+ default:
1564
+ const parsedBody = parsedOutput.body;
1565
+ return throwDefaultError({
1566
+ output,
1567
+ parsedBody,
1568
+ errorCode
1569
+ });
1570
+ }
1571
+ }, "de_ListTemplateStepGroupsCommandError");
1572
+ var de_ListTemplateStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
1573
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1574
+ return de_ListTemplateStepsCommandError(output, context);
1575
+ }
1576
+ const contents = (0, import_smithy_client.map)({
1577
+ $metadata: deserializeMetadata(output)
1578
+ });
1579
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1580
+ const doc = (0, import_smithy_client.take)(data, {
1581
+ nextToken: import_smithy_client.expectString,
1582
+ templateStepSummaryList: import_smithy_client._json
1583
+ });
1584
+ Object.assign(contents, doc);
1585
+ return contents;
1586
+ }, "de_ListTemplateStepsCommand");
1587
+ var de_ListTemplateStepsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1588
+ const parsedOutput = {
1589
+ ...output,
1590
+ body: await parseErrorBody(output.body, context)
1591
+ };
1592
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1593
+ switch (errorCode) {
1594
+ case "AccessDeniedException":
1595
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1596
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1597
+ case "InternalServerException":
1598
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1599
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1600
+ case "ResourceNotFoundException":
1601
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1602
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1603
+ case "ThrottlingException":
1604
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1605
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1606
+ case "ValidationException":
1607
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1608
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1609
+ default:
1610
+ const parsedBody = parsedOutput.body;
1611
+ return throwDefaultError({
1612
+ output,
1613
+ parsedBody,
1614
+ errorCode
1615
+ });
1616
+ }
1617
+ }, "de_ListTemplateStepsCommandError");
1618
+ var de_ListWorkflowsCommand = /* @__PURE__ */ __name(async (output, context) => {
1619
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1620
+ return de_ListWorkflowsCommandError(output, context);
1621
+ }
1622
+ const contents = (0, import_smithy_client.map)({
1623
+ $metadata: deserializeMetadata(output)
1624
+ });
1625
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1626
+ const doc = (0, import_smithy_client.take)(data, {
1627
+ migrationWorkflowSummary: (_) => de_MigrationWorkflowSummaryList(_, context),
1628
+ nextToken: import_smithy_client.expectString
1629
+ });
1630
+ Object.assign(contents, doc);
1631
+ return contents;
1632
+ }, "de_ListWorkflowsCommand");
1633
+ var de_ListWorkflowsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1634
+ const parsedOutput = {
1635
+ ...output,
1636
+ body: await parseErrorBody(output.body, context)
1637
+ };
1638
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1639
+ switch (errorCode) {
1640
+ case "AccessDeniedException":
1641
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1642
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1643
+ case "InternalServerException":
1644
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1645
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1646
+ case "ResourceNotFoundException":
1647
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1648
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1649
+ case "ThrottlingException":
1650
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1651
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1652
+ case "ValidationException":
1653
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1654
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1655
+ default:
1656
+ const parsedBody = parsedOutput.body;
1657
+ return throwDefaultError({
1658
+ output,
1659
+ parsedBody,
1660
+ errorCode
1661
+ });
1662
+ }
1663
+ }, "de_ListWorkflowsCommandError");
1664
+ var de_ListWorkflowStepGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1665
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1666
+ return de_ListWorkflowStepGroupsCommandError(output, context);
1667
+ }
1668
+ const contents = (0, import_smithy_client.map)({
1669
+ $metadata: deserializeMetadata(output)
1670
+ });
1671
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1672
+ const doc = (0, import_smithy_client.take)(data, {
1673
+ nextToken: import_smithy_client.expectString,
1674
+ workflowStepGroupsSummary: import_smithy_client._json
1675
+ });
1676
+ Object.assign(contents, doc);
1677
+ return contents;
1678
+ }, "de_ListWorkflowStepGroupsCommand");
1679
+ var de_ListWorkflowStepGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1680
+ const parsedOutput = {
1681
+ ...output,
1682
+ body: await parseErrorBody(output.body, context)
1683
+ };
1684
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1685
+ switch (errorCode) {
1686
+ case "AccessDeniedException":
1687
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1688
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1689
+ case "InternalServerException":
1690
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1691
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1692
+ case "ResourceNotFoundException":
1693
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1694
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1695
+ case "ThrottlingException":
1696
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1697
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1698
+ case "ValidationException":
1699
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1700
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1701
+ default:
1702
+ const parsedBody = parsedOutput.body;
1703
+ return throwDefaultError({
1704
+ output,
1705
+ parsedBody,
1706
+ errorCode
1707
+ });
1708
+ }
1709
+ }, "de_ListWorkflowStepGroupsCommandError");
1710
+ var de_ListWorkflowStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
1711
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1712
+ return de_ListWorkflowStepsCommandError(output, context);
1713
+ }
1714
+ const contents = (0, import_smithy_client.map)({
1715
+ $metadata: deserializeMetadata(output)
1716
+ });
1717
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1718
+ const doc = (0, import_smithy_client.take)(data, {
1719
+ nextToken: import_smithy_client.expectString,
1720
+ workflowStepsSummary: import_smithy_client._json
1721
+ });
1722
+ Object.assign(contents, doc);
1723
+ return contents;
1724
+ }, "de_ListWorkflowStepsCommand");
1725
+ var de_ListWorkflowStepsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1726
+ const parsedOutput = {
1727
+ ...output,
1728
+ body: await parseErrorBody(output.body, context)
1729
+ };
1730
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1731
+ switch (errorCode) {
1732
+ case "AccessDeniedException":
1733
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1734
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1735
+ case "InternalServerException":
1736
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1737
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1738
+ case "ThrottlingException":
1739
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1740
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1741
+ case "ValidationException":
1742
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1743
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1744
+ default:
1745
+ const parsedBody = parsedOutput.body;
1746
+ return throwDefaultError({
1747
+ output,
1748
+ parsedBody,
1749
+ errorCode
1750
+ });
1751
+ }
1752
+ }, "de_ListWorkflowStepsCommandError");
1753
+ var de_RetryWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context) => {
1754
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1755
+ return de_RetryWorkflowStepCommandError(output, context);
1756
+ }
1757
+ const contents = (0, import_smithy_client.map)({
1758
+ $metadata: deserializeMetadata(output)
1759
+ });
1760
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1761
+ const doc = (0, import_smithy_client.take)(data, {
1762
+ id: import_smithy_client.expectString,
1763
+ status: import_smithy_client.expectString,
1764
+ stepGroupId: import_smithy_client.expectString,
1765
+ workflowId: import_smithy_client.expectString
1766
+ });
1767
+ Object.assign(contents, doc);
1768
+ return contents;
1769
+ }, "de_RetryWorkflowStepCommand");
1770
+ var de_RetryWorkflowStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
1771
+ const parsedOutput = {
1772
+ ...output,
1773
+ body: await parseErrorBody(output.body, context)
1774
+ };
1775
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1776
+ switch (errorCode) {
1777
+ case "AccessDeniedException":
1778
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1779
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1780
+ case "InternalServerException":
1781
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1782
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1783
+ case "ResourceNotFoundException":
1784
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1785
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1786
+ case "ThrottlingException":
1787
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1788
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1789
+ default:
1790
+ const parsedBody = parsedOutput.body;
1791
+ return throwDefaultError({
1792
+ output,
1793
+ parsedBody,
1794
+ errorCode
1795
+ });
1796
+ }
1797
+ }, "de_RetryWorkflowStepCommandError");
1798
+ var de_StartWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1799
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1800
+ return de_StartWorkflowCommandError(output, context);
1801
+ }
1802
+ const contents = (0, import_smithy_client.map)({
1803
+ $metadata: deserializeMetadata(output)
1804
+ });
1805
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1806
+ const doc = (0, import_smithy_client.take)(data, {
1807
+ arn: import_smithy_client.expectString,
1808
+ id: import_smithy_client.expectString,
1809
+ lastStartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1810
+ status: import_smithy_client.expectString,
1811
+ statusMessage: import_smithy_client.expectString
1812
+ });
1813
+ Object.assign(contents, doc);
1814
+ return contents;
1815
+ }, "de_StartWorkflowCommand");
1816
+ var de_StartWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
1817
+ const parsedOutput = {
1818
+ ...output,
1819
+ body: await parseErrorBody(output.body, context)
1820
+ };
1821
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1822
+ switch (errorCode) {
1823
+ case "AccessDeniedException":
1824
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1825
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1826
+ case "InternalServerException":
1827
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1828
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1829
+ case "ResourceNotFoundException":
1830
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1831
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1832
+ case "ThrottlingException":
1833
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1834
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1835
+ case "ValidationException":
1836
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1837
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1838
+ default:
1839
+ const parsedBody = parsedOutput.body;
1840
+ return throwDefaultError({
1841
+ output,
1842
+ parsedBody,
1843
+ errorCode
1844
+ });
1845
+ }
1846
+ }, "de_StartWorkflowCommandError");
1847
+ var de_StopWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1848
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1849
+ return de_StopWorkflowCommandError(output, context);
1850
+ }
1851
+ const contents = (0, import_smithy_client.map)({
1852
+ $metadata: deserializeMetadata(output)
1853
+ });
1854
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1855
+ const doc = (0, import_smithy_client.take)(data, {
1856
+ arn: import_smithy_client.expectString,
1857
+ id: import_smithy_client.expectString,
1858
+ lastStopTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1859
+ status: import_smithy_client.expectString,
1860
+ statusMessage: import_smithy_client.expectString
1861
+ });
1862
+ Object.assign(contents, doc);
1863
+ return contents;
1864
+ }, "de_StopWorkflowCommand");
1865
+ var de_StopWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
1866
+ const parsedOutput = {
1867
+ ...output,
1868
+ body: await parseErrorBody(output.body, context)
1869
+ };
1870
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1871
+ switch (errorCode) {
1872
+ case "AccessDeniedException":
1873
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1874
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1875
+ case "InternalServerException":
1876
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1877
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1878
+ case "ResourceNotFoundException":
1879
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1880
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1881
+ case "ThrottlingException":
1882
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1883
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1884
+ case "ValidationException":
1885
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1886
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1887
+ default:
1888
+ const parsedBody = parsedOutput.body;
1889
+ return throwDefaultError({
1890
+ output,
1891
+ parsedBody,
1892
+ errorCode
1893
+ });
1894
+ }
1895
+ }, "de_StopWorkflowCommandError");
1896
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1897
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1898
+ return de_TagResourceCommandError(output, context);
1899
+ }
1900
+ const contents = (0, import_smithy_client.map)({
1901
+ $metadata: deserializeMetadata(output)
1902
+ });
1903
+ await (0, import_smithy_client.collectBody)(output.body, context);
1904
+ return contents;
1905
+ }, "de_TagResourceCommand");
1906
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1907
+ const parsedOutput = {
1908
+ ...output,
1909
+ body: await parseErrorBody(output.body, context)
1910
+ };
1911
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1912
+ switch (errorCode) {
1913
+ case "ResourceNotFoundException":
1914
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1915
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1916
+ case "ValidationException":
1917
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1918
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1919
+ default:
1920
+ const parsedBody = parsedOutput.body;
1921
+ return throwDefaultError({
1922
+ output,
1923
+ parsedBody,
1924
+ errorCode
1925
+ });
1926
+ }
1927
+ }, "de_TagResourceCommandError");
1928
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1929
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1930
+ return de_UntagResourceCommandError(output, context);
1931
+ }
1932
+ const contents = (0, import_smithy_client.map)({
1933
+ $metadata: deserializeMetadata(output)
1934
+ });
1935
+ await (0, import_smithy_client.collectBody)(output.body, context);
1936
+ return contents;
1937
+ }, "de_UntagResourceCommand");
1938
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1939
+ const parsedOutput = {
1940
+ ...output,
1941
+ body: await parseErrorBody(output.body, context)
1942
+ };
1943
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1944
+ switch (errorCode) {
1945
+ case "ResourceNotFoundException":
1946
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1947
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1948
+ case "ValidationException":
1949
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
1950
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1951
+ default:
1952
+ const parsedBody = parsedOutput.body;
1953
+ return throwDefaultError({
1954
+ output,
1955
+ parsedBody,
1956
+ errorCode
1957
+ });
1958
+ }
1959
+ }, "de_UntagResourceCommandError");
1960
+ var de_UpdateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1961
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1962
+ return de_UpdateWorkflowCommandError(output, context);
1963
+ }
1964
+ const contents = (0, import_smithy_client.map)({
1965
+ $metadata: deserializeMetadata(output)
1966
+ });
1967
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1968
+ const doc = (0, import_smithy_client.take)(data, {
1969
+ adsApplicationConfigurationId: import_smithy_client.expectString,
1970
+ arn: import_smithy_client.expectString,
1971
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1972
+ description: import_smithy_client.expectString,
1973
+ id: import_smithy_client.expectString,
1974
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1975
+ name: import_smithy_client.expectString,
1976
+ status: import_smithy_client.expectString,
1977
+ stepTargets: import_smithy_client._json,
1978
+ tags: import_smithy_client._json,
1979
+ templateId: import_smithy_client.expectString,
1980
+ workflowInputs: import_smithy_client._json
1981
+ });
1982
+ Object.assign(contents, doc);
1983
+ return contents;
1984
+ }, "de_UpdateWorkflowCommand");
1985
+ var de_UpdateWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
1986
+ const parsedOutput = {
1987
+ ...output,
1988
+ body: await parseErrorBody(output.body, context)
1989
+ };
1990
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1991
+ switch (errorCode) {
1992
+ case "AccessDeniedException":
1993
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1994
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1995
+ case "InternalServerException":
1996
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1997
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1998
+ case "ResourceNotFoundException":
1999
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
2000
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2001
+ case "ThrottlingException":
2002
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
2003
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2004
+ case "ValidationException":
2005
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
2006
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2007
+ default:
2008
+ const parsedBody = parsedOutput.body;
2009
+ return throwDefaultError({
2010
+ output,
2011
+ parsedBody,
2012
+ errorCode
2013
+ });
2014
+ }
2015
+ }, "de_UpdateWorkflowCommandError");
2016
+ var de_UpdateWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context) => {
2017
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2018
+ return de_UpdateWorkflowStepCommandError(output, context);
2019
+ }
2020
+ const contents = (0, import_smithy_client.map)({
2021
+ $metadata: deserializeMetadata(output)
2022
+ });
2023
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2024
+ const doc = (0, import_smithy_client.take)(data, {
2025
+ id: import_smithy_client.expectString,
2026
+ name: import_smithy_client.expectString,
2027
+ stepGroupId: import_smithy_client.expectString,
2028
+ workflowId: import_smithy_client.expectString
2029
+ });
2030
+ Object.assign(contents, doc);
2031
+ return contents;
2032
+ }, "de_UpdateWorkflowStepCommand");
2033
+ var de_UpdateWorkflowStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
2034
+ const parsedOutput = {
2035
+ ...output,
2036
+ body: await parseErrorBody(output.body, context)
2037
+ };
2038
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2039
+ switch (errorCode) {
2040
+ case "AccessDeniedException":
2041
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
2042
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2043
+ case "InternalServerException":
2044
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
2045
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2046
+ case "ThrottlingException":
2047
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
2048
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2049
+ case "ValidationException":
2050
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
2051
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2052
+ default:
2053
+ const parsedBody = parsedOutput.body;
2054
+ return throwDefaultError({
2055
+ output,
2056
+ parsedBody,
2057
+ errorCode
2058
+ });
2059
+ }
2060
+ }, "de_UpdateWorkflowStepCommandError");
2061
+ var de_UpdateWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2062
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2063
+ return de_UpdateWorkflowStepGroupCommandError(output, context);
2064
+ }
2065
+ const contents = (0, import_smithy_client.map)({
2066
+ $metadata: deserializeMetadata(output)
2067
+ });
2068
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2069
+ const doc = (0, import_smithy_client.take)(data, {
2070
+ description: import_smithy_client.expectString,
2071
+ id: import_smithy_client.expectString,
2072
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2073
+ name: import_smithy_client.expectString,
2074
+ next: import_smithy_client._json,
2075
+ previous: import_smithy_client._json,
2076
+ tools: import_smithy_client._json,
2077
+ workflowId: import_smithy_client.expectString
2078
+ });
2079
+ Object.assign(contents, doc);
2080
+ return contents;
2081
+ }, "de_UpdateWorkflowStepGroupCommand");
2082
+ var de_UpdateWorkflowStepGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2083
+ const parsedOutput = {
2084
+ ...output,
2085
+ body: await parseErrorBody(output.body, context)
2086
+ };
2087
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2088
+ switch (errorCode) {
2089
+ case "AccessDeniedException":
2090
+ case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
2091
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2092
+ case "InternalServerException":
2093
+ case "com.amazonaws.migrationhuborchestrator#InternalServerException":
2094
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2095
+ case "ResourceNotFoundException":
2096
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
2097
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2098
+ case "ThrottlingException":
2099
+ case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
2100
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2101
+ case "ValidationException":
2102
+ case "com.amazonaws.migrationhuborchestrator#ValidationException":
2103
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2104
+ default:
2105
+ const parsedBody = parsedOutput.body;
2106
+ return throwDefaultError({
2107
+ output,
2108
+ parsedBody,
2109
+ errorCode
2110
+ });
2111
+ }
2112
+ }, "de_UpdateWorkflowStepGroupCommandError");
2113
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(MigrationHubOrchestratorServiceException);
2114
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2115
+ const contents = (0, import_smithy_client.map)({});
2116
+ const data = parsedOutput.body;
2117
+ const doc = (0, import_smithy_client.take)(data, {
2118
+ message: import_smithy_client.expectString
2119
+ });
2120
+ Object.assign(contents, doc);
2121
+ const exception = new AccessDeniedException({
2122
+ $metadata: deserializeMetadata(parsedOutput),
2123
+ ...contents
2124
+ });
2125
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2126
+ }, "de_AccessDeniedExceptionRes");
2127
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2128
+ const contents = (0, import_smithy_client.map)({});
2129
+ const data = parsedOutput.body;
2130
+ const doc = (0, import_smithy_client.take)(data, {
2131
+ message: import_smithy_client.expectString
2132
+ });
2133
+ Object.assign(contents, doc);
2134
+ const exception = new InternalServerException({
2135
+ $metadata: deserializeMetadata(parsedOutput),
2136
+ ...contents
2137
+ });
2138
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2139
+ }, "de_InternalServerExceptionRes");
2140
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2141
+ const contents = (0, import_smithy_client.map)({});
2142
+ const data = parsedOutput.body;
2143
+ const doc = (0, import_smithy_client.take)(data, {
2144
+ message: import_smithy_client.expectString
2145
+ });
2146
+ Object.assign(contents, doc);
2147
+ const exception = new ResourceNotFoundException({
2148
+ $metadata: deserializeMetadata(parsedOutput),
2149
+ ...contents
2150
+ });
2151
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2152
+ }, "de_ResourceNotFoundExceptionRes");
2153
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2154
+ const contents = (0, import_smithy_client.map)({});
2155
+ const data = parsedOutput.body;
2156
+ const doc = (0, import_smithy_client.take)(data, {
2157
+ message: import_smithy_client.expectString
2158
+ });
2159
+ Object.assign(contents, doc);
2160
+ const exception = new ThrottlingException({
2161
+ $metadata: deserializeMetadata(parsedOutput),
2162
+ ...contents
2163
+ });
2164
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2165
+ }, "de_ThrottlingExceptionRes");
2166
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2167
+ const contents = (0, import_smithy_client.map)({});
2168
+ const data = parsedOutput.body;
2169
+ const doc = (0, import_smithy_client.take)(data, {
2170
+ message: import_smithy_client.expectString
2171
+ });
2172
+ Object.assign(contents, doc);
2173
+ const exception = new ValidationException({
2174
+ $metadata: deserializeMetadata(parsedOutput),
2175
+ ...contents
2176
+ });
2177
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2178
+ }, "de_ValidationExceptionRes");
2179
+ var de_MigrationWorkflowSummary = /* @__PURE__ */ __name((output, context) => {
2180
+ return (0, import_smithy_client.take)(output, {
2181
+ adsApplicationConfigurationName: import_smithy_client.expectString,
2182
+ completedSteps: import_smithy_client.expectInt32,
2183
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2184
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2185
+ id: import_smithy_client.expectString,
2186
+ name: import_smithy_client.expectString,
2187
+ status: import_smithy_client.expectString,
2188
+ statusMessage: import_smithy_client.expectString,
2189
+ templateId: import_smithy_client.expectString,
2190
+ totalSteps: import_smithy_client.expectInt32
2191
+ });
2192
+ }, "de_MigrationWorkflowSummary");
2193
+ var de_MigrationWorkflowSummaryList = /* @__PURE__ */ __name((output, context) => {
2194
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2195
+ return de_MigrationWorkflowSummary(entry, context);
2196
+ });
2197
+ return retVal;
2198
+ }, "de_MigrationWorkflowSummaryList");
2199
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2200
+ httpStatusCode: output.statusCode,
2201
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2202
+ extendedRequestId: output.headers["x-amz-id-2"],
2203
+ cfId: output.headers["x-amz-cf-id"]
2204
+ }), "deserializeMetadata");
2205
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2206
+ var _aACN = "adsApplicationConfigurationName";
2207
+ var _mR = "maxResults";
2208
+ var _n = "name";
2209
+ var _nT = "nextToken";
2210
+ var _s = "status";
2211
+ var _sGI = "stepGroupId";
2212
+ var _tI = "templateId";
2213
+ var _tK = "tagKeys";
2214
+ var _wI = "workflowId";
2215
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2216
+ if (encoded.length) {
2217
+ return JSON.parse(encoded);
2218
+ }
2219
+ return {};
2220
+ }), "parseBody");
2221
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2222
+ const value = await parseBody(errorBody, context);
2223
+ value.message = value.message ?? value.Message;
2224
+ return value;
2225
+ }, "parseErrorBody");
2226
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2227
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2228
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2229
+ let cleanValue = rawValue;
2230
+ if (typeof cleanValue === "number") {
2231
+ cleanValue = cleanValue.toString();
2232
+ }
2233
+ if (cleanValue.indexOf(",") >= 0) {
2234
+ cleanValue = cleanValue.split(",")[0];
2235
+ }
2236
+ if (cleanValue.indexOf(":") >= 0) {
2237
+ cleanValue = cleanValue.split(":")[0];
2238
+ }
2239
+ if (cleanValue.indexOf("#") >= 0) {
2240
+ cleanValue = cleanValue.split("#")[1];
2241
+ }
2242
+ return cleanValue;
2243
+ }, "sanitizeErrorCode");
2244
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2245
+ if (headerKey !== void 0) {
2246
+ return sanitizeErrorCode(output.headers[headerKey]);
2247
+ }
2248
+ if (data.code !== void 0) {
2249
+ return sanitizeErrorCode(data.code);
2250
+ }
2251
+ if (data["__type"] !== void 0) {
2252
+ return sanitizeErrorCode(data["__type"]);
2253
+ }
2254
+ }, "loadRestJsonErrorCode");
2255
+
2256
+ // src/commands/CreateWorkflowCommand.ts
2257
+ var _CreateWorkflowCommand = class _CreateWorkflowCommand extends import_smithy_client.Command.classBuilder().ep({
2258
+ ...commonParams
2259
+ }).m(function(Command, cs, config, o) {
2260
+ return [
2261
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2262
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2263
+ ];
2264
+ }).s("AWSMigrationHubOrchestrator", "CreateWorkflow", {}).n("MigrationHubOrchestratorClient", "CreateWorkflowCommand").f(CreateMigrationWorkflowRequestFilterSensitiveLog, CreateMigrationWorkflowResponseFilterSensitiveLog).ser(se_CreateWorkflowCommand).de(de_CreateWorkflowCommand).build() {
2265
+ };
2266
+ __name(_CreateWorkflowCommand, "CreateWorkflowCommand");
2267
+ var CreateWorkflowCommand = _CreateWorkflowCommand;
2268
+
2269
+ // src/commands/CreateWorkflowStepCommand.ts
2270
+
2271
+
2272
+
2273
+
2274
+ var _CreateWorkflowStepCommand = class _CreateWorkflowStepCommand extends import_smithy_client.Command.classBuilder().ep({
2275
+ ...commonParams
2276
+ }).m(function(Command, cs, config, o) {
2277
+ return [
2278
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2279
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2280
+ ];
2281
+ }).s("AWSMigrationHubOrchestrator", "CreateWorkflowStep", {}).n("MigrationHubOrchestratorClient", "CreateWorkflowStepCommand").f(void 0, void 0).ser(se_CreateWorkflowStepCommand).de(de_CreateWorkflowStepCommand).build() {
2282
+ };
2283
+ __name(_CreateWorkflowStepCommand, "CreateWorkflowStepCommand");
2284
+ var CreateWorkflowStepCommand = _CreateWorkflowStepCommand;
2285
+
2286
+ // src/commands/CreateWorkflowStepGroupCommand.ts
2287
+
2288
+
2289
+
2290
+
2291
+ var _CreateWorkflowStepGroupCommand = class _CreateWorkflowStepGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2292
+ ...commonParams
2293
+ }).m(function(Command, cs, config, o) {
2294
+ return [
2295
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2296
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2297
+ ];
2298
+ }).s("AWSMigrationHubOrchestrator", "CreateWorkflowStepGroup", {}).n("MigrationHubOrchestratorClient", "CreateWorkflowStepGroupCommand").f(void 0, void 0).ser(se_CreateWorkflowStepGroupCommand).de(de_CreateWorkflowStepGroupCommand).build() {
2299
+ };
2300
+ __name(_CreateWorkflowStepGroupCommand, "CreateWorkflowStepGroupCommand");
2301
+ var CreateWorkflowStepGroupCommand = _CreateWorkflowStepGroupCommand;
2302
+
2303
+ // src/commands/DeleteWorkflowCommand.ts
2304
+
2305
+
2306
+
2307
+
2308
+ var _DeleteWorkflowCommand = class _DeleteWorkflowCommand extends import_smithy_client.Command.classBuilder().ep({
2309
+ ...commonParams
2310
+ }).m(function(Command, cs, config, o) {
2311
+ return [
2312
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2313
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2314
+ ];
2315
+ }).s("AWSMigrationHubOrchestrator", "DeleteWorkflow", {}).n("MigrationHubOrchestratorClient", "DeleteWorkflowCommand").f(void 0, void 0).ser(se_DeleteWorkflowCommand).de(de_DeleteWorkflowCommand).build() {
2316
+ };
2317
+ __name(_DeleteWorkflowCommand, "DeleteWorkflowCommand");
2318
+ var DeleteWorkflowCommand = _DeleteWorkflowCommand;
2319
+
2320
+ // src/commands/DeleteWorkflowStepCommand.ts
2321
+
2322
+
2323
+
2324
+
2325
+ var _DeleteWorkflowStepCommand = class _DeleteWorkflowStepCommand extends import_smithy_client.Command.classBuilder().ep({
2326
+ ...commonParams
2327
+ }).m(function(Command, cs, config, o) {
2328
+ return [
2329
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2330
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2331
+ ];
2332
+ }).s("AWSMigrationHubOrchestrator", "DeleteWorkflowStep", {}).n("MigrationHubOrchestratorClient", "DeleteWorkflowStepCommand").f(void 0, void 0).ser(se_DeleteWorkflowStepCommand).de(de_DeleteWorkflowStepCommand).build() {
2333
+ };
2334
+ __name(_DeleteWorkflowStepCommand, "DeleteWorkflowStepCommand");
2335
+ var DeleteWorkflowStepCommand = _DeleteWorkflowStepCommand;
2336
+
2337
+ // src/commands/DeleteWorkflowStepGroupCommand.ts
2338
+
2339
+
2340
+
2341
+
2342
+ var _DeleteWorkflowStepGroupCommand = class _DeleteWorkflowStepGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2343
+ ...commonParams
2344
+ }).m(function(Command, cs, config, o) {
2345
+ return [
2346
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2347
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2348
+ ];
2349
+ }).s("AWSMigrationHubOrchestrator", "DeleteWorkflowStepGroup", {}).n("MigrationHubOrchestratorClient", "DeleteWorkflowStepGroupCommand").f(void 0, void 0).ser(se_DeleteWorkflowStepGroupCommand).de(de_DeleteWorkflowStepGroupCommand).build() {
2350
+ };
2351
+ __name(_DeleteWorkflowStepGroupCommand, "DeleteWorkflowStepGroupCommand");
2352
+ var DeleteWorkflowStepGroupCommand = _DeleteWorkflowStepGroupCommand;
2353
+
2354
+ // src/commands/GetTemplateCommand.ts
2355
+
2356
+
2357
+
2358
+
2359
+ var _GetTemplateCommand = class _GetTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2360
+ ...commonParams
2361
+ }).m(function(Command, cs, config, o) {
2362
+ return [
2363
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2364
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2365
+ ];
2366
+ }).s("AWSMigrationHubOrchestrator", "GetTemplate", {}).n("MigrationHubOrchestratorClient", "GetTemplateCommand").f(void 0, void 0).ser(se_GetTemplateCommand).de(de_GetTemplateCommand).build() {
2367
+ };
2368
+ __name(_GetTemplateCommand, "GetTemplateCommand");
2369
+ var GetTemplateCommand = _GetTemplateCommand;
2370
+
2371
+ // src/commands/GetTemplateStepCommand.ts
2372
+
2373
+
2374
+
2375
+
2376
+ var _GetTemplateStepCommand = class _GetTemplateStepCommand extends import_smithy_client.Command.classBuilder().ep({
2377
+ ...commonParams
2378
+ }).m(function(Command, cs, config, o) {
2379
+ return [
2380
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2381
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2382
+ ];
2383
+ }).s("AWSMigrationHubOrchestrator", "GetTemplateStep", {}).n("MigrationHubOrchestratorClient", "GetTemplateStepCommand").f(void 0, void 0).ser(se_GetTemplateStepCommand).de(de_GetTemplateStepCommand).build() {
2384
+ };
2385
+ __name(_GetTemplateStepCommand, "GetTemplateStepCommand");
2386
+ var GetTemplateStepCommand = _GetTemplateStepCommand;
2387
+
2388
+ // src/commands/GetTemplateStepGroupCommand.ts
2389
+
2390
+
2391
+
2392
+
2393
+ var _GetTemplateStepGroupCommand = class _GetTemplateStepGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2394
+ ...commonParams
2395
+ }).m(function(Command, cs, config, o) {
2396
+ return [
2397
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2398
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2399
+ ];
2400
+ }).s("AWSMigrationHubOrchestrator", "GetTemplateStepGroup", {}).n("MigrationHubOrchestratorClient", "GetTemplateStepGroupCommand").f(void 0, void 0).ser(se_GetTemplateStepGroupCommand).de(de_GetTemplateStepGroupCommand).build() {
2401
+ };
2402
+ __name(_GetTemplateStepGroupCommand, "GetTemplateStepGroupCommand");
2403
+ var GetTemplateStepGroupCommand = _GetTemplateStepGroupCommand;
2404
+
2405
+ // src/commands/GetWorkflowCommand.ts
2406
+
2407
+
2408
+
2409
+
2410
+ var _GetWorkflowCommand = class _GetWorkflowCommand extends import_smithy_client.Command.classBuilder().ep({
2411
+ ...commonParams
2412
+ }).m(function(Command, cs, config, o) {
2413
+ return [
2414
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2415
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2416
+ ];
2417
+ }).s("AWSMigrationHubOrchestrator", "GetWorkflow", {}).n("MigrationHubOrchestratorClient", "GetWorkflowCommand").f(void 0, GetMigrationWorkflowResponseFilterSensitiveLog).ser(se_GetWorkflowCommand).de(de_GetWorkflowCommand).build() {
2418
+ };
2419
+ __name(_GetWorkflowCommand, "GetWorkflowCommand");
2420
+ var GetWorkflowCommand = _GetWorkflowCommand;
2421
+
2422
+ // src/commands/GetWorkflowStepCommand.ts
2423
+
2424
+
2425
+
2426
+
2427
+ var _GetWorkflowStepCommand = class _GetWorkflowStepCommand extends import_smithy_client.Command.classBuilder().ep({
2428
+ ...commonParams
2429
+ }).m(function(Command, cs, config, o) {
2430
+ return [
2431
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2432
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2433
+ ];
2434
+ }).s("AWSMigrationHubOrchestrator", "GetWorkflowStep", {}).n("MigrationHubOrchestratorClient", "GetWorkflowStepCommand").f(void 0, void 0).ser(se_GetWorkflowStepCommand).de(de_GetWorkflowStepCommand).build() {
2435
+ };
2436
+ __name(_GetWorkflowStepCommand, "GetWorkflowStepCommand");
2437
+ var GetWorkflowStepCommand = _GetWorkflowStepCommand;
2438
+
2439
+ // src/commands/GetWorkflowStepGroupCommand.ts
2440
+
2441
+
2442
+
2443
+
2444
+ var _GetWorkflowStepGroupCommand = class _GetWorkflowStepGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2445
+ ...commonParams
2446
+ }).m(function(Command, cs, config, o) {
2447
+ return [
2448
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2449
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2450
+ ];
2451
+ }).s("AWSMigrationHubOrchestrator", "GetWorkflowStepGroup", {}).n("MigrationHubOrchestratorClient", "GetWorkflowStepGroupCommand").f(void 0, void 0).ser(se_GetWorkflowStepGroupCommand).de(de_GetWorkflowStepGroupCommand).build() {
2452
+ };
2453
+ __name(_GetWorkflowStepGroupCommand, "GetWorkflowStepGroupCommand");
2454
+ var GetWorkflowStepGroupCommand = _GetWorkflowStepGroupCommand;
2455
+
2456
+ // src/commands/ListPluginsCommand.ts
2457
+
2458
+
2459
+
2460
+
2461
+ var _ListPluginsCommand = class _ListPluginsCommand extends import_smithy_client.Command.classBuilder().ep({
2462
+ ...commonParams
2463
+ }).m(function(Command, cs, config, o) {
2464
+ return [
2465
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2466
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2467
+ ];
2468
+ }).s("AWSMigrationHubOrchestrator", "ListPlugins", {}).n("MigrationHubOrchestratorClient", "ListPluginsCommand").f(void 0, void 0).ser(se_ListPluginsCommand).de(de_ListPluginsCommand).build() {
2469
+ };
2470
+ __name(_ListPluginsCommand, "ListPluginsCommand");
2471
+ var ListPluginsCommand = _ListPluginsCommand;
2472
+
2473
+ // src/commands/ListTagsForResourceCommand.ts
2474
+
2475
+
2476
+
2477
+
2478
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2479
+ ...commonParams
2480
+ }).m(function(Command, cs, config, o) {
2481
+ return [
2482
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2483
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2484
+ ];
2485
+ }).s("AWSMigrationHubOrchestrator", "ListTagsForResource", {}).n("MigrationHubOrchestratorClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2486
+ };
2487
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2488
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2489
+
2490
+ // src/commands/ListTemplatesCommand.ts
2491
+
2492
+
2493
+
2494
+
2495
+ var _ListTemplatesCommand = class _ListTemplatesCommand extends import_smithy_client.Command.classBuilder().ep({
2496
+ ...commonParams
2497
+ }).m(function(Command, cs, config, o) {
2498
+ return [
2499
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2500
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2501
+ ];
2502
+ }).s("AWSMigrationHubOrchestrator", "ListTemplates", {}).n("MigrationHubOrchestratorClient", "ListTemplatesCommand").f(void 0, void 0).ser(se_ListTemplatesCommand).de(de_ListTemplatesCommand).build() {
2503
+ };
2504
+ __name(_ListTemplatesCommand, "ListTemplatesCommand");
2505
+ var ListTemplatesCommand = _ListTemplatesCommand;
2506
+
2507
+ // src/commands/ListTemplateStepGroupsCommand.ts
2508
+
2509
+
2510
+
2511
+
2512
+ var _ListTemplateStepGroupsCommand = class _ListTemplateStepGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
2513
+ ...commonParams
2514
+ }).m(function(Command, cs, config, o) {
2515
+ return [
2516
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2517
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2518
+ ];
2519
+ }).s("AWSMigrationHubOrchestrator", "ListTemplateStepGroups", {}).n("MigrationHubOrchestratorClient", "ListTemplateStepGroupsCommand").f(void 0, void 0).ser(se_ListTemplateStepGroupsCommand).de(de_ListTemplateStepGroupsCommand).build() {
2520
+ };
2521
+ __name(_ListTemplateStepGroupsCommand, "ListTemplateStepGroupsCommand");
2522
+ var ListTemplateStepGroupsCommand = _ListTemplateStepGroupsCommand;
2523
+
2524
+ // src/commands/ListTemplateStepsCommand.ts
2525
+
2526
+
2527
+
2528
+
2529
+ var _ListTemplateStepsCommand = class _ListTemplateStepsCommand extends import_smithy_client.Command.classBuilder().ep({
2530
+ ...commonParams
2531
+ }).m(function(Command, cs, config, o) {
2532
+ return [
2533
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2534
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2535
+ ];
2536
+ }).s("AWSMigrationHubOrchestrator", "ListTemplateSteps", {}).n("MigrationHubOrchestratorClient", "ListTemplateStepsCommand").f(void 0, void 0).ser(se_ListTemplateStepsCommand).de(de_ListTemplateStepsCommand).build() {
2537
+ };
2538
+ __name(_ListTemplateStepsCommand, "ListTemplateStepsCommand");
2539
+ var ListTemplateStepsCommand = _ListTemplateStepsCommand;
2540
+
2541
+ // src/commands/ListWorkflowsCommand.ts
2542
+
2543
+
2544
+
2545
+
2546
+ var _ListWorkflowsCommand = class _ListWorkflowsCommand extends import_smithy_client.Command.classBuilder().ep({
2547
+ ...commonParams
2548
+ }).m(function(Command, cs, config, o) {
2549
+ return [
2550
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2551
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2552
+ ];
2553
+ }).s("AWSMigrationHubOrchestrator", "ListWorkflows", {}).n("MigrationHubOrchestratorClient", "ListWorkflowsCommand").f(void 0, void 0).ser(se_ListWorkflowsCommand).de(de_ListWorkflowsCommand).build() {
2554
+ };
2555
+ __name(_ListWorkflowsCommand, "ListWorkflowsCommand");
2556
+ var ListWorkflowsCommand = _ListWorkflowsCommand;
2557
+
2558
+ // src/commands/ListWorkflowStepGroupsCommand.ts
2559
+
2560
+
2561
+
2562
+
2563
+ var _ListWorkflowStepGroupsCommand = class _ListWorkflowStepGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
2564
+ ...commonParams
2565
+ }).m(function(Command, cs, config, o) {
2566
+ return [
2567
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2568
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2569
+ ];
2570
+ }).s("AWSMigrationHubOrchestrator", "ListWorkflowStepGroups", {}).n("MigrationHubOrchestratorClient", "ListWorkflowStepGroupsCommand").f(void 0, void 0).ser(se_ListWorkflowStepGroupsCommand).de(de_ListWorkflowStepGroupsCommand).build() {
2571
+ };
2572
+ __name(_ListWorkflowStepGroupsCommand, "ListWorkflowStepGroupsCommand");
2573
+ var ListWorkflowStepGroupsCommand = _ListWorkflowStepGroupsCommand;
2574
+
2575
+ // src/commands/ListWorkflowStepsCommand.ts
2576
+
2577
+
2578
+
2579
+
2580
+ var _ListWorkflowStepsCommand = class _ListWorkflowStepsCommand extends import_smithy_client.Command.classBuilder().ep({
2581
+ ...commonParams
2582
+ }).m(function(Command, cs, config, o) {
2583
+ return [
2584
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2585
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2586
+ ];
2587
+ }).s("AWSMigrationHubOrchestrator", "ListWorkflowSteps", {}).n("MigrationHubOrchestratorClient", "ListWorkflowStepsCommand").f(void 0, void 0).ser(se_ListWorkflowStepsCommand).de(de_ListWorkflowStepsCommand).build() {
2588
+ };
2589
+ __name(_ListWorkflowStepsCommand, "ListWorkflowStepsCommand");
2590
+ var ListWorkflowStepsCommand = _ListWorkflowStepsCommand;
2591
+
2592
+ // src/commands/RetryWorkflowStepCommand.ts
2593
+
2594
+
2595
+
2596
+
2597
+ var _RetryWorkflowStepCommand = class _RetryWorkflowStepCommand extends import_smithy_client.Command.classBuilder().ep({
2598
+ ...commonParams
2599
+ }).m(function(Command, cs, config, o) {
2600
+ return [
2601
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2602
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2603
+ ];
2604
+ }).s("AWSMigrationHubOrchestrator", "RetryWorkflowStep", {}).n("MigrationHubOrchestratorClient", "RetryWorkflowStepCommand").f(void 0, void 0).ser(se_RetryWorkflowStepCommand).de(de_RetryWorkflowStepCommand).build() {
2605
+ };
2606
+ __name(_RetryWorkflowStepCommand, "RetryWorkflowStepCommand");
2607
+ var RetryWorkflowStepCommand = _RetryWorkflowStepCommand;
2608
+
2609
+ // src/commands/StartWorkflowCommand.ts
2610
+
2611
+
2612
+
2613
+
2614
+ var _StartWorkflowCommand = class _StartWorkflowCommand extends import_smithy_client.Command.classBuilder().ep({
2615
+ ...commonParams
2616
+ }).m(function(Command, cs, config, o) {
2617
+ return [
2618
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2619
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2620
+ ];
2621
+ }).s("AWSMigrationHubOrchestrator", "StartWorkflow", {}).n("MigrationHubOrchestratorClient", "StartWorkflowCommand").f(void 0, void 0).ser(se_StartWorkflowCommand).de(de_StartWorkflowCommand).build() {
2622
+ };
2623
+ __name(_StartWorkflowCommand, "StartWorkflowCommand");
2624
+ var StartWorkflowCommand = _StartWorkflowCommand;
2625
+
2626
+ // src/commands/StopWorkflowCommand.ts
2627
+
2628
+
2629
+
2630
+
2631
+ var _StopWorkflowCommand = class _StopWorkflowCommand extends import_smithy_client.Command.classBuilder().ep({
2632
+ ...commonParams
2633
+ }).m(function(Command, cs, config, o) {
2634
+ return [
2635
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2636
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2637
+ ];
2638
+ }).s("AWSMigrationHubOrchestrator", "StopWorkflow", {}).n("MigrationHubOrchestratorClient", "StopWorkflowCommand").f(void 0, void 0).ser(se_StopWorkflowCommand).de(de_StopWorkflowCommand).build() {
2639
+ };
2640
+ __name(_StopWorkflowCommand, "StopWorkflowCommand");
2641
+ var StopWorkflowCommand = _StopWorkflowCommand;
2642
+
2643
+ // src/commands/TagResourceCommand.ts
2644
+
2645
+
2646
+
2647
+
2648
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2649
+ ...commonParams
2650
+ }).m(function(Command, cs, config, o) {
2651
+ return [
2652
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2653
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2654
+ ];
2655
+ }).s("AWSMigrationHubOrchestrator", "TagResource", {}).n("MigrationHubOrchestratorClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2656
+ };
2657
+ __name(_TagResourceCommand, "TagResourceCommand");
2658
+ var TagResourceCommand = _TagResourceCommand;
2659
+
2660
+ // src/commands/UntagResourceCommand.ts
2661
+
2662
+
2663
+
2664
+
2665
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2666
+ ...commonParams
2667
+ }).m(function(Command, cs, config, o) {
2668
+ return [
2669
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2670
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2671
+ ];
2672
+ }).s("AWSMigrationHubOrchestrator", "UntagResource", {}).n("MigrationHubOrchestratorClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2673
+ };
2674
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2675
+ var UntagResourceCommand = _UntagResourceCommand;
2676
+
2677
+ // src/commands/UpdateWorkflowCommand.ts
2678
+
2679
+
2680
+
2681
+
2682
+ var _UpdateWorkflowCommand = class _UpdateWorkflowCommand extends import_smithy_client.Command.classBuilder().ep({
2683
+ ...commonParams
2684
+ }).m(function(Command, cs, config, o) {
2685
+ return [
2686
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2687
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2688
+ ];
2689
+ }).s("AWSMigrationHubOrchestrator", "UpdateWorkflow", {}).n("MigrationHubOrchestratorClient", "UpdateWorkflowCommand").f(UpdateMigrationWorkflowRequestFilterSensitiveLog, UpdateMigrationWorkflowResponseFilterSensitiveLog).ser(se_UpdateWorkflowCommand).de(de_UpdateWorkflowCommand).build() {
2690
+ };
2691
+ __name(_UpdateWorkflowCommand, "UpdateWorkflowCommand");
2692
+ var UpdateWorkflowCommand = _UpdateWorkflowCommand;
2693
+
2694
+ // src/commands/UpdateWorkflowStepCommand.ts
2695
+
2696
+
2697
+
2698
+
2699
+ var _UpdateWorkflowStepCommand = class _UpdateWorkflowStepCommand extends import_smithy_client.Command.classBuilder().ep({
2700
+ ...commonParams
2701
+ }).m(function(Command, cs, config, o) {
2702
+ return [
2703
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2704
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2705
+ ];
2706
+ }).s("AWSMigrationHubOrchestrator", "UpdateWorkflowStep", {}).n("MigrationHubOrchestratorClient", "UpdateWorkflowStepCommand").f(void 0, void 0).ser(se_UpdateWorkflowStepCommand).de(de_UpdateWorkflowStepCommand).build() {
2707
+ };
2708
+ __name(_UpdateWorkflowStepCommand, "UpdateWorkflowStepCommand");
2709
+ var UpdateWorkflowStepCommand = _UpdateWorkflowStepCommand;
2710
+
2711
+ // src/commands/UpdateWorkflowStepGroupCommand.ts
2712
+
2713
+
2714
+
2715
+
2716
+ var _UpdateWorkflowStepGroupCommand = class _UpdateWorkflowStepGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2717
+ ...commonParams
2718
+ }).m(function(Command, cs, config, o) {
2719
+ return [
2720
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2721
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2722
+ ];
2723
+ }).s("AWSMigrationHubOrchestrator", "UpdateWorkflowStepGroup", {}).n("MigrationHubOrchestratorClient", "UpdateWorkflowStepGroupCommand").f(void 0, void 0).ser(se_UpdateWorkflowStepGroupCommand).de(de_UpdateWorkflowStepGroupCommand).build() {
2724
+ };
2725
+ __name(_UpdateWorkflowStepGroupCommand, "UpdateWorkflowStepGroupCommand");
2726
+ var UpdateWorkflowStepGroupCommand = _UpdateWorkflowStepGroupCommand;
2727
+
2728
+ // src/MigrationHubOrchestrator.ts
2729
+ var commands = {
2730
+ CreateWorkflowCommand,
2731
+ CreateWorkflowStepCommand,
2732
+ CreateWorkflowStepGroupCommand,
2733
+ DeleteWorkflowCommand,
2734
+ DeleteWorkflowStepCommand,
2735
+ DeleteWorkflowStepGroupCommand,
2736
+ GetTemplateCommand,
2737
+ GetTemplateStepCommand,
2738
+ GetTemplateStepGroupCommand,
2739
+ GetWorkflowCommand,
2740
+ GetWorkflowStepCommand,
2741
+ GetWorkflowStepGroupCommand,
2742
+ ListPluginsCommand,
2743
+ ListTagsForResourceCommand,
2744
+ ListTemplatesCommand,
2745
+ ListTemplateStepGroupsCommand,
2746
+ ListTemplateStepsCommand,
2747
+ ListWorkflowsCommand,
2748
+ ListWorkflowStepGroupsCommand,
2749
+ ListWorkflowStepsCommand,
2750
+ RetryWorkflowStepCommand,
2751
+ StartWorkflowCommand,
2752
+ StopWorkflowCommand,
2753
+ TagResourceCommand,
2754
+ UntagResourceCommand,
2755
+ UpdateWorkflowCommand,
2756
+ UpdateWorkflowStepCommand,
2757
+ UpdateWorkflowStepGroupCommand
2758
+ };
2759
+ var _MigrationHubOrchestrator = class _MigrationHubOrchestrator extends MigrationHubOrchestratorClient {
2760
+ };
2761
+ __name(_MigrationHubOrchestrator, "MigrationHubOrchestrator");
2762
+ var MigrationHubOrchestrator = _MigrationHubOrchestrator;
2763
+ (0, import_smithy_client.createAggregatedClient)(commands, MigrationHubOrchestrator);
2764
+
2765
+ // src/pagination/ListPluginsPaginator.ts
2766
+
2767
+ var paginateListPlugins = (0, import_core.createPaginator)(MigrationHubOrchestratorClient, ListPluginsCommand, "nextToken", "nextToken", "maxResults");
2768
+
2769
+ // src/pagination/ListTemplateStepGroupsPaginator.ts
2770
+
2771
+ var paginateListTemplateStepGroups = (0, import_core.createPaginator)(MigrationHubOrchestratorClient, ListTemplateStepGroupsCommand, "nextToken", "nextToken", "maxResults");
2772
+
2773
+ // src/pagination/ListTemplateStepsPaginator.ts
2774
+
2775
+ var paginateListTemplateSteps = (0, import_core.createPaginator)(MigrationHubOrchestratorClient, ListTemplateStepsCommand, "nextToken", "nextToken", "maxResults");
2776
+
2777
+ // src/pagination/ListTemplatesPaginator.ts
2778
+
2779
+ var paginateListTemplates = (0, import_core.createPaginator)(MigrationHubOrchestratorClient, ListTemplatesCommand, "nextToken", "nextToken", "maxResults");
2780
+
2781
+ // src/pagination/ListWorkflowStepGroupsPaginator.ts
2782
+
2783
+ var paginateListWorkflowStepGroups = (0, import_core.createPaginator)(MigrationHubOrchestratorClient, ListWorkflowStepGroupsCommand, "nextToken", "nextToken", "maxResults");
2784
+
2785
+ // src/pagination/ListWorkflowStepsPaginator.ts
2786
+
2787
+ var paginateListWorkflowSteps = (0, import_core.createPaginator)(MigrationHubOrchestratorClient, ListWorkflowStepsCommand, "nextToken", "nextToken", "maxResults");
2788
+
2789
+ // src/pagination/ListWorkflowsPaginator.ts
2790
+
2791
+ var paginateListWorkflows = (0, import_core.createPaginator)(MigrationHubOrchestratorClient, ListWorkflowsCommand, "nextToken", "nextToken", "maxResults");
2792
+
2793
+ // src/index.ts
2794
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2795
+ // Annotate the CommonJS export names for ESM import in node:
2796
+
2797
+ 0 && (module.exports = {
2798
+ AccessDeniedException,
2799
+ CreateMigrationWorkflowRequestFilterSensitiveLog,
2800
+ CreateMigrationWorkflowResponseFilterSensitiveLog,
2801
+ CreateWorkflowCommand,
2802
+ CreateWorkflowStepCommand,
2803
+ CreateWorkflowStepGroupCommand,
2804
+ DataType,
2805
+ DeleteWorkflowCommand,
2806
+ DeleteWorkflowStepCommand,
2807
+ DeleteWorkflowStepGroupCommand,
2808
+ GetMigrationWorkflowResponseFilterSensitiveLog,
2809
+ GetTemplateCommand,
2810
+ GetTemplateStepCommand,
2811
+ GetTemplateStepGroupCommand,
2812
+ GetWorkflowCommand,
2813
+ GetWorkflowStepCommand,
2814
+ GetWorkflowStepGroupCommand,
2815
+ InternalServerException,
2816
+ ListPluginsCommand,
2817
+ ListTagsForResourceCommand,
2818
+ ListTemplateStepGroupsCommand,
2819
+ ListTemplateStepsCommand,
2820
+ ListTemplatesCommand,
2821
+ ListWorkflowStepGroupsCommand,
2822
+ ListWorkflowStepsCommand,
2823
+ ListWorkflowsCommand,
2824
+ MigrationHubOrchestrator,
2825
+ MigrationHubOrchestratorClient,
2826
+ MigrationHubOrchestratorServiceException,
2827
+ MigrationWorkflowStatusEnum,
2828
+ Owner,
2829
+ PluginHealth,
2830
+ ResourceNotFoundException,
2831
+ RetryWorkflowStepCommand,
2832
+ RunEnvironment,
2833
+ StartWorkflowCommand,
2834
+ StepActionType,
2835
+ StepGroupStatus,
2836
+ StepInput,
2837
+ StepStatus,
2838
+ StopWorkflowCommand,
2839
+ TagResourceCommand,
2840
+ TargetType,
2841
+ TemplateStatus,
2842
+ ThrottlingException,
2843
+ UntagResourceCommand,
2844
+ UpdateMigrationWorkflowRequestFilterSensitiveLog,
2845
+ UpdateMigrationWorkflowResponseFilterSensitiveLog,
2846
+ UpdateWorkflowCommand,
2847
+ UpdateWorkflowStepCommand,
2848
+ UpdateWorkflowStepGroupCommand,
2849
+ ValidationException,
2850
+ WorkflowStepOutputUnion,
2851
+ __Client,
2852
+ paginateListPlugins,
2853
+ paginateListTemplateStepGroups,
2854
+ paginateListTemplateSteps,
2855
+ paginateListTemplates,
2856
+ paginateListWorkflowStepGroups,
2857
+ paginateListWorkflowSteps,
2858
+ paginateListWorkflows
2859
+ });
2860
+