@aws-sdk/client-migrationhuborchestrator 3.523.0 → 3.525.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 (80) hide show
  1. package/README.md +26 -2
  2. package/dist-cjs/index.js +210 -5
  3. package/dist-es/MigrationHubOrchestrator.js +6 -0
  4. package/dist-es/commands/CreateTemplateCommand.js +24 -0
  5. package/dist-es/commands/DeleteTemplateCommand.js +24 -0
  6. package/dist-es/commands/UpdateTemplateCommand.js +24 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +26 -0
  9. package/dist-es/protocols/Aws_restJson1.js +107 -1
  10. package/dist-types/MigrationHubOrchestrator.d.ts +23 -2
  11. package/dist-types/MigrationHubOrchestratorClient.d.ts +7 -4
  12. package/dist-types/commands/CreateTemplateCommand.d.ts +86 -0
  13. package/dist-types/commands/CreateWorkflowCommand.d.ts +1 -1
  14. package/dist-types/commands/CreateWorkflowStepCommand.d.ts +1 -1
  15. package/dist-types/commands/DeleteTemplateCommand.d.ts +71 -0
  16. package/dist-types/commands/GetTemplateCommand.d.ts +8 -1
  17. package/dist-types/commands/GetWorkflowStepCommand.d.ts +1 -1
  18. package/dist-types/commands/UpdateTemplateCommand.d.ts +80 -0
  19. package/dist-types/commands/UpdateWorkflowStepCommand.d.ts +1 -1
  20. package/dist-types/commands/index.d.ts +3 -0
  21. package/dist-types/index.d.ts +2 -2
  22. package/dist-types/models/models_0.d.ts +223 -4
  23. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  24. package/dist-types/ts3.4/MigrationHubOrchestrator.d.ts +51 -0
  25. package/dist-types/ts3.4/MigrationHubOrchestratorClient.d.ts +18 -0
  26. package/dist-types/ts3.4/commands/CreateTemplateCommand.d.ts +29 -0
  27. package/dist-types/ts3.4/commands/DeleteTemplateCommand.d.ts +29 -0
  28. package/dist-types/ts3.4/commands/UpdateTemplateCommand.d.ts +29 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +63 -2
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  32. package/package.json +20 -18
  33. package/dist-cjs/MigrationHubOrchestrator.js +0 -1
  34. package/dist-cjs/MigrationHubOrchestratorClient.js +0 -1
  35. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  36. package/dist-cjs/commands/CreateWorkflowCommand.js +0 -1
  37. package/dist-cjs/commands/CreateWorkflowStepCommand.js +0 -1
  38. package/dist-cjs/commands/CreateWorkflowStepGroupCommand.js +0 -1
  39. package/dist-cjs/commands/DeleteWorkflowCommand.js +0 -1
  40. package/dist-cjs/commands/DeleteWorkflowStepCommand.js +0 -1
  41. package/dist-cjs/commands/DeleteWorkflowStepGroupCommand.js +0 -1
  42. package/dist-cjs/commands/GetTemplateCommand.js +0 -1
  43. package/dist-cjs/commands/GetTemplateStepCommand.js +0 -1
  44. package/dist-cjs/commands/GetTemplateStepGroupCommand.js +0 -1
  45. package/dist-cjs/commands/GetWorkflowCommand.js +0 -1
  46. package/dist-cjs/commands/GetWorkflowStepCommand.js +0 -1
  47. package/dist-cjs/commands/GetWorkflowStepGroupCommand.js +0 -1
  48. package/dist-cjs/commands/ListPluginsCommand.js +0 -1
  49. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  50. package/dist-cjs/commands/ListTemplateStepGroupsCommand.js +0 -1
  51. package/dist-cjs/commands/ListTemplateStepsCommand.js +0 -1
  52. package/dist-cjs/commands/ListTemplatesCommand.js +0 -1
  53. package/dist-cjs/commands/ListWorkflowStepGroupsCommand.js +0 -1
  54. package/dist-cjs/commands/ListWorkflowStepsCommand.js +0 -1
  55. package/dist-cjs/commands/ListWorkflowsCommand.js +0 -1
  56. package/dist-cjs/commands/RetryWorkflowStepCommand.js +0 -1
  57. package/dist-cjs/commands/StartWorkflowCommand.js +0 -1
  58. package/dist-cjs/commands/StopWorkflowCommand.js +0 -1
  59. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  60. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  61. package/dist-cjs/commands/UpdateWorkflowCommand.js +0 -1
  62. package/dist-cjs/commands/UpdateWorkflowStepCommand.js +0 -1
  63. package/dist-cjs/commands/UpdateWorkflowStepGroupCommand.js +0 -1
  64. package/dist-cjs/commands/index.js +0 -1
  65. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  66. package/dist-cjs/extensionConfiguration.js +0 -1
  67. package/dist-cjs/models/MigrationHubOrchestratorServiceException.js +0 -1
  68. package/dist-cjs/models/index.js +0 -1
  69. package/dist-cjs/models/models_0.js +0 -1
  70. package/dist-cjs/pagination/Interfaces.js +0 -1
  71. package/dist-cjs/pagination/ListPluginsPaginator.js +0 -1
  72. package/dist-cjs/pagination/ListTemplateStepGroupsPaginator.js +0 -1
  73. package/dist-cjs/pagination/ListTemplateStepsPaginator.js +0 -1
  74. package/dist-cjs/pagination/ListTemplatesPaginator.js +0 -1
  75. package/dist-cjs/pagination/ListWorkflowStepGroupsPaginator.js +0 -1
  76. package/dist-cjs/pagination/ListWorkflowStepsPaginator.js +0 -1
  77. package/dist-cjs/pagination/ListWorkflowsPaginator.js +0 -1
  78. package/dist-cjs/pagination/index.js +0 -1
  79. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  80. package/dist-cjs/runtimeExtensions.js +0 -1
package/README.md CHANGED
@@ -7,8 +7,8 @@
7
7
  AWS SDK for JavaScript MigrationHubOrchestrator Client for Node.js, Browser and React Native.
8
8
 
9
9
  <p>This API reference provides descriptions, syntax, and other details about each of the
10
- actions and data types for AWS Migration Hub Orchestrator. he topic for each action shows the API
11
- request parameters and the response. Alternatively, you can use one of the AWS SDKs to
10
+ actions and data types for AWS Migration Hub Orchestrator. The topic for each action shows the API
11
+ request parameters and responses. Alternatively, you can use one of the AWS SDKs to
12
12
  access an API that is tailored to the programming language or platform that you're
13
13
  using.</p>
14
14
 
@@ -207,6 +207,14 @@ see LICENSE for more information.
207
207
 
208
208
  ## Client Commands (Operations List)
209
209
 
210
+ <details>
211
+ <summary>
212
+ CreateTemplate
213
+ </summary>
214
+
215
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migrationhuborchestrator/command/CreateTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migrationhuborchestrator/Interface/CreateTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migrationhuborchestrator/Interface/CreateTemplateCommandOutput/)
216
+
217
+ </details>
210
218
  <details>
211
219
  <summary>
212
220
  CreateWorkflow
@@ -230,6 +238,14 @@ CreateWorkflowStepGroup
230
238
 
231
239
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migrationhuborchestrator/command/CreateWorkflowStepGroupCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migrationhuborchestrator/Interface/CreateWorkflowStepGroupCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migrationhuborchestrator/Interface/CreateWorkflowStepGroupCommandOutput/)
232
240
 
241
+ </details>
242
+ <details>
243
+ <summary>
244
+ DeleteTemplate
245
+ </summary>
246
+
247
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migrationhuborchestrator/command/DeleteTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migrationhuborchestrator/Interface/DeleteTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migrationhuborchestrator/Interface/DeleteTemplateCommandOutput/)
248
+
233
249
  </details>
234
250
  <details>
235
251
  <summary>
@@ -406,6 +422,14 @@ UntagResource
406
422
 
407
423
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migrationhuborchestrator/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migrationhuborchestrator/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migrationhuborchestrator/Interface/UntagResourceCommandOutput/)
408
424
 
425
+ </details>
426
+ <details>
427
+ <summary>
428
+ UpdateTemplate
429
+ </summary>
430
+
431
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/migrationhuborchestrator/command/UpdateTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migrationhuborchestrator/Interface/UpdateTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-migrationhuborchestrator/Interface/UpdateTemplateCommandOutput/)
432
+
409
433
  </details>
410
434
  <details>
411
435
  <summary>
package/dist-cjs/index.js CHANGED
@@ -22,12 +22,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var src_exports = {};
23
23
  __export(src_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
+ ConflictException: () => ConflictException,
25
26
  CreateMigrationWorkflowRequestFilterSensitiveLog: () => CreateMigrationWorkflowRequestFilterSensitiveLog,
26
27
  CreateMigrationWorkflowResponseFilterSensitiveLog: () => CreateMigrationWorkflowResponseFilterSensitiveLog,
28
+ CreateTemplateCommand: () => CreateTemplateCommand,
27
29
  CreateWorkflowCommand: () => CreateWorkflowCommand,
28
30
  CreateWorkflowStepCommand: () => CreateWorkflowStepCommand,
29
31
  CreateWorkflowStepGroupCommand: () => CreateWorkflowStepGroupCommand,
30
32
  DataType: () => DataType,
33
+ DeleteTemplateCommand: () => DeleteTemplateCommand,
31
34
  DeleteWorkflowCommand: () => DeleteWorkflowCommand,
32
35
  DeleteWorkflowStepCommand: () => DeleteWorkflowStepCommand,
33
36
  DeleteWorkflowStepGroupCommand: () => DeleteWorkflowStepGroupCommand,
@@ -64,11 +67,13 @@ __export(src_exports, {
64
67
  StopWorkflowCommand: () => StopWorkflowCommand,
65
68
  TagResourceCommand: () => TagResourceCommand,
66
69
  TargetType: () => TargetType,
70
+ TemplateSource: () => TemplateSource,
67
71
  TemplateStatus: () => TemplateStatus,
68
72
  ThrottlingException: () => ThrottlingException,
69
73
  UntagResourceCommand: () => UntagResourceCommand,
70
74
  UpdateMigrationWorkflowRequestFilterSensitiveLog: () => UpdateMigrationWorkflowRequestFilterSensitiveLog,
71
75
  UpdateMigrationWorkflowResponseFilterSensitiveLog: () => UpdateMigrationWorkflowResponseFilterSensitiveLog,
76
+ UpdateTemplateCommand: () => UpdateTemplateCommand,
72
77
  UpdateWorkflowCommand: () => UpdateWorkflowCommand,
73
78
  UpdateWorkflowStepCommand: () => UpdateWorkflowStepCommand,
74
79
  UpdateWorkflowStepGroupCommand: () => UpdateWorkflowStepGroupCommand,
@@ -231,15 +236,17 @@ var MigrationHubOrchestratorClient = _MigrationHubOrchestratorClient;
231
236
  // src/MigrationHubOrchestrator.ts
232
237
 
233
238
 
234
- // src/commands/CreateWorkflowCommand.ts
239
+ // src/commands/CreateTemplateCommand.ts
235
240
 
236
241
  var import_middleware_serde = require("@smithy/middleware-serde");
237
242
 
238
243
  var import_types = require("@smithy/types");
239
244
 
240
- // src/models/models_0.ts
245
+ // src/protocols/Aws_restJson1.ts
241
246
 
242
247
 
248
+ var import_uuid = require("uuid");
249
+
243
250
  // src/models/MigrationHubOrchestratorServiceException.ts
244
251
 
245
252
  var _MigrationHubOrchestratorServiceException = class _MigrationHubOrchestratorServiceException extends import_smithy_client.ServiceException {
@@ -255,6 +262,7 @@ __name(_MigrationHubOrchestratorServiceException, "MigrationHubOrchestratorServi
255
262
  var MigrationHubOrchestratorServiceException = _MigrationHubOrchestratorServiceException;
256
263
 
257
264
  // src/models/models_0.ts
265
+
258
266
  var _AccessDeniedException = class _AccessDeniedException extends MigrationHubOrchestratorServiceException {
259
267
  /**
260
268
  * @internal
@@ -372,6 +380,32 @@ var _ThrottlingException = class _ThrottlingException extends MigrationHubOrches
372
380
  };
373
381
  __name(_ThrottlingException, "ThrottlingException");
374
382
  var ThrottlingException = _ThrottlingException;
383
+ var _ConflictException = class _ConflictException extends MigrationHubOrchestratorServiceException {
384
+ /**
385
+ * @internal
386
+ */
387
+ constructor(opts) {
388
+ super({
389
+ name: "ConflictException",
390
+ $fault: "client",
391
+ ...opts
392
+ });
393
+ this.name = "ConflictException";
394
+ this.$fault = "client";
395
+ this.$retryable = {};
396
+ Object.setPrototypeOf(this, _ConflictException.prototype);
397
+ }
398
+ };
399
+ __name(_ConflictException, "ConflictException");
400
+ var ConflictException = _ConflictException;
401
+ var TemplateSource;
402
+ ((TemplateSource3) => {
403
+ TemplateSource3.visit = /* @__PURE__ */ __name((value, visitor) => {
404
+ if (value.workflowId !== void 0)
405
+ return visitor.workflowId(value.workflowId);
406
+ return visitor._(value.$unknown[0], value.$unknown[1]);
407
+ }, "visit");
408
+ })(TemplateSource || (TemplateSource = {}));
375
409
  var DataType = {
376
410
  INTEGER: "INTEGER",
377
411
  STRING: "STRING",
@@ -379,7 +413,11 @@ var DataType = {
379
413
  STRINGMAP: "STRINGMAP"
380
414
  };
381
415
  var TemplateStatus = {
382
- CREATED: "CREATED"
416
+ CREATED: "CREATED",
417
+ CREATING: "CREATING",
418
+ CREATION_FAILED: "CREATION_FAILED",
419
+ PENDING_CREATION: "PENDING_CREATION",
420
+ READY: "READY"
383
421
  };
384
422
  var PluginHealth = {
385
423
  PLUGIN_HEALTHY: "HEALTHY",
@@ -431,6 +469,7 @@ var StepStatus = {
431
469
  IN_PROGRESS: "IN_PROGRESS",
432
470
  PAUSED: "PAUSED",
433
471
  READY: "READY",
472
+ SKIPPED: "SKIPPED",
434
473
  USER_ATTENTION_REQUIRED: "USER_ATTENTION_REQUIRED"
435
474
  };
436
475
  var CreateMigrationWorkflowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
@@ -455,8 +494,25 @@ var UpdateMigrationWorkflowResponseFilterSensitiveLog = /* @__PURE__ */ __name((
455
494
  }), "UpdateMigrationWorkflowResponseFilterSensitiveLog");
456
495
 
457
496
  // src/protocols/Aws_restJson1.ts
458
-
459
-
497
+ var se_CreateTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
498
+ const b = (0, import_core.requestBuilder)(input, context);
499
+ const headers = {
500
+ "content-type": "application/json"
501
+ };
502
+ b.bp("/template");
503
+ let body;
504
+ body = JSON.stringify(
505
+ (0, import_smithy_client.take)(input, {
506
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
507
+ tags: (_) => (0, import_smithy_client._json)(_),
508
+ templateDescription: [],
509
+ templateName: [],
510
+ templateSource: (_) => (0, import_smithy_client._json)(_)
511
+ })
512
+ );
513
+ b.m("POST").h(headers).b(body);
514
+ return b.build();
515
+ }, "se_CreateTemplateCommand");
460
516
  var se_CreateWorkflowCommand = /* @__PURE__ */ __name(async (input, context) => {
461
517
  const b = (0, import_core.requestBuilder)(input, context);
462
518
  const headers = {
@@ -521,6 +577,15 @@ var se_CreateWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (input, con
521
577
  b.m("POST").h(headers).b(body);
522
578
  return b.build();
523
579
  }, "se_CreateWorkflowStepGroupCommand");
580
+ var se_DeleteTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
581
+ const b = (0, import_core.requestBuilder)(input, context);
582
+ const headers = {};
583
+ b.bp("/template/{id}");
584
+ b.p("id", () => input.id, "{id}", false);
585
+ let body;
586
+ b.m("DELETE").h(headers).b(body);
587
+ return b.build();
588
+ }, "se_DeleteTemplateCommand");
524
589
  var se_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (input, context) => {
525
590
  const b = (0, import_core.requestBuilder)(input, context);
526
591
  const headers = {};
@@ -787,6 +852,24 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
787
852
  b.m("DELETE").h(headers).q(query).b(body);
788
853
  return b.build();
789
854
  }, "se_UntagResourceCommand");
855
+ var se_UpdateTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
856
+ const b = (0, import_core.requestBuilder)(input, context);
857
+ const headers = {
858
+ "content-type": "application/json"
859
+ };
860
+ b.bp("/template/{id}");
861
+ b.p("id", () => input.id, "{id}", false);
862
+ let body;
863
+ body = JSON.stringify(
864
+ (0, import_smithy_client.take)(input, {
865
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
866
+ templateDescription: [],
867
+ templateName: []
868
+ })
869
+ );
870
+ b.m("POST").h(headers).b(body);
871
+ return b.build();
872
+ }, "se_UpdateTemplateCommand");
790
873
  var se_UpdateWorkflowCommand = /* @__PURE__ */ __name(async (input, context) => {
791
874
  const b = (0, import_core.requestBuilder)(input, context);
792
875
  const headers = {
@@ -854,6 +937,22 @@ var se_UpdateWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (input, con
854
937
  b.m("POST").h(headers).q(query).b(body);
855
938
  return b.build();
856
939
  }, "se_UpdateWorkflowStepGroupCommand");
940
+ var de_CreateTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
941
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
942
+ return de_CommandError(output, context);
943
+ }
944
+ const contents = (0, import_smithy_client.map)({
945
+ $metadata: deserializeMetadata(output)
946
+ });
947
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
948
+ const doc = (0, import_smithy_client.take)(data, {
949
+ tags: import_smithy_client._json,
950
+ templateArn: import_smithy_client.expectString,
951
+ templateId: import_smithy_client.expectString
952
+ });
953
+ Object.assign(contents, doc);
954
+ return contents;
955
+ }, "de_CreateTemplateCommand");
857
956
  var de_CreateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
858
957
  if (output.statusCode !== 200 && output.statusCode >= 300) {
859
958
  return de_CommandError(output, context);
@@ -916,6 +1015,16 @@ var de_CreateWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, co
916
1015
  Object.assign(contents, doc);
917
1016
  return contents;
918
1017
  }, "de_CreateWorkflowStepGroupCommand");
1018
+ var de_DeleteTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1019
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1020
+ return de_CommandError(output, context);
1021
+ }
1022
+ const contents = (0, import_smithy_client.map)({
1023
+ $metadata: deserializeMetadata(output)
1024
+ });
1025
+ await (0, import_smithy_client.collectBody)(output.body, context);
1026
+ return contents;
1027
+ }, "de_DeleteTemplateCommand");
919
1028
  var de_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
920
1029
  if (output.statusCode !== 202 && output.statusCode >= 300) {
921
1030
  return de_CommandError(output, context);
@@ -966,7 +1075,12 @@ var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
966
1075
  id: import_smithy_client.expectString,
967
1076
  inputs: import_smithy_client._json,
968
1077
  name: import_smithy_client.expectString,
1078
+ owner: import_smithy_client.expectString,
969
1079
  status: import_smithy_client.expectString,
1080
+ statusMessage: import_smithy_client.expectString,
1081
+ tags: import_smithy_client._json,
1082
+ templateArn: import_smithy_client.expectString,
1083
+ templateClass: import_smithy_client.expectString,
970
1084
  tools: import_smithy_client._json
971
1085
  });
972
1086
  Object.assign(contents, doc);
@@ -1303,6 +1417,22 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1303
1417
  await (0, import_smithy_client.collectBody)(output.body, context);
1304
1418
  return contents;
1305
1419
  }, "de_UntagResourceCommand");
1420
+ var de_UpdateTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1421
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1422
+ return de_CommandError(output, context);
1423
+ }
1424
+ const contents = (0, import_smithy_client.map)({
1425
+ $metadata: deserializeMetadata(output)
1426
+ });
1427
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1428
+ const doc = (0, import_smithy_client.take)(data, {
1429
+ tags: import_smithy_client._json,
1430
+ templateArn: import_smithy_client.expectString,
1431
+ templateId: import_smithy_client.expectString
1432
+ });
1433
+ Object.assign(contents, doc);
1434
+ return contents;
1435
+ }, "de_UpdateTemplateCommand");
1306
1436
  var de_UpdateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1307
1437
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1308
1438
  return de_CommandError(output, context);
@@ -1376,6 +1506,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1376
1506
  case "AccessDeniedException":
1377
1507
  case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1378
1508
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1509
+ case "ConflictException":
1510
+ case "com.amazonaws.migrationhuborchestrator#ConflictException":
1511
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1379
1512
  case "InternalServerException":
1380
1513
  case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1381
1514
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -1411,6 +1544,19 @@ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, co
1411
1544
  });
1412
1545
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1413
1546
  }, "de_AccessDeniedExceptionRes");
1547
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1548
+ const contents = (0, import_smithy_client.map)({});
1549
+ const data = parsedOutput.body;
1550
+ const doc = (0, import_smithy_client.take)(data, {
1551
+ message: import_smithy_client.expectString
1552
+ });
1553
+ Object.assign(contents, doc);
1554
+ const exception = new ConflictException({
1555
+ $metadata: deserializeMetadata(parsedOutput),
1556
+ ...contents
1557
+ });
1558
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1559
+ }, "de_ConflictExceptionRes");
1414
1560
  var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1415
1561
  const contents = (0, import_smithy_client.map)({});
1416
1562
  const data = parsedOutput.body;
@@ -1540,7 +1686,24 @@ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1540
1686
  }
1541
1687
  }, "loadRestJsonErrorCode");
1542
1688
 
1689
+ // src/commands/CreateTemplateCommand.ts
1690
+ var _CreateTemplateCommand = class _CreateTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
1691
+ ...commonParams
1692
+ }).m(function(Command, cs, config, o) {
1693
+ return [
1694
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1695
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1696
+ ];
1697
+ }).s("AWSMigrationHubOrchestrator", "CreateTemplate", {}).n("MigrationHubOrchestratorClient", "CreateTemplateCommand").f(void 0, void 0).ser(se_CreateTemplateCommand).de(de_CreateTemplateCommand).build() {
1698
+ };
1699
+ __name(_CreateTemplateCommand, "CreateTemplateCommand");
1700
+ var CreateTemplateCommand = _CreateTemplateCommand;
1701
+
1543
1702
  // src/commands/CreateWorkflowCommand.ts
1703
+
1704
+
1705
+
1706
+
1544
1707
  var _CreateWorkflowCommand = class _CreateWorkflowCommand extends import_smithy_client.Command.classBuilder().ep({
1545
1708
  ...commonParams
1546
1709
  }).m(function(Command, cs, config, o) {
@@ -1587,6 +1750,23 @@ var _CreateWorkflowStepGroupCommand = class _CreateWorkflowStepGroupCommand exte
1587
1750
  __name(_CreateWorkflowStepGroupCommand, "CreateWorkflowStepGroupCommand");
1588
1751
  var CreateWorkflowStepGroupCommand = _CreateWorkflowStepGroupCommand;
1589
1752
 
1753
+ // src/commands/DeleteTemplateCommand.ts
1754
+
1755
+
1756
+
1757
+
1758
+ var _DeleteTemplateCommand = class _DeleteTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
1759
+ ...commonParams
1760
+ }).m(function(Command, cs, config, o) {
1761
+ return [
1762
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1763
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1764
+ ];
1765
+ }).s("AWSMigrationHubOrchestrator", "DeleteTemplate", {}).n("MigrationHubOrchestratorClient", "DeleteTemplateCommand").f(void 0, void 0).ser(se_DeleteTemplateCommand).de(de_DeleteTemplateCommand).build() {
1766
+ };
1767
+ __name(_DeleteTemplateCommand, "DeleteTemplateCommand");
1768
+ var DeleteTemplateCommand = _DeleteTemplateCommand;
1769
+
1590
1770
  // src/commands/DeleteWorkflowCommand.ts
1591
1771
 
1592
1772
 
@@ -1961,6 +2141,23 @@ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_cl
1961
2141
  __name(_UntagResourceCommand, "UntagResourceCommand");
1962
2142
  var UntagResourceCommand = _UntagResourceCommand;
1963
2143
 
2144
+ // src/commands/UpdateTemplateCommand.ts
2145
+
2146
+
2147
+
2148
+
2149
+ var _UpdateTemplateCommand = class _UpdateTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2150
+ ...commonParams
2151
+ }).m(function(Command, cs, config, o) {
2152
+ return [
2153
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2154
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2155
+ ];
2156
+ }).s("AWSMigrationHubOrchestrator", "UpdateTemplate", {}).n("MigrationHubOrchestratorClient", "UpdateTemplateCommand").f(void 0, void 0).ser(se_UpdateTemplateCommand).de(de_UpdateTemplateCommand).build() {
2157
+ };
2158
+ __name(_UpdateTemplateCommand, "UpdateTemplateCommand");
2159
+ var UpdateTemplateCommand = _UpdateTemplateCommand;
2160
+
1964
2161
  // src/commands/UpdateWorkflowCommand.ts
1965
2162
 
1966
2163
 
@@ -2014,9 +2211,11 @@ var UpdateWorkflowStepGroupCommand = _UpdateWorkflowStepGroupCommand;
2014
2211
 
2015
2212
  // src/MigrationHubOrchestrator.ts
2016
2213
  var commands = {
2214
+ CreateTemplateCommand,
2017
2215
  CreateWorkflowCommand,
2018
2216
  CreateWorkflowStepCommand,
2019
2217
  CreateWorkflowStepGroupCommand,
2218
+ DeleteTemplateCommand,
2020
2219
  DeleteWorkflowCommand,
2021
2220
  DeleteWorkflowStepCommand,
2022
2221
  DeleteWorkflowStepGroupCommand,
@@ -2039,6 +2238,7 @@ var commands = {
2039
2238
  StopWorkflowCommand,
2040
2239
  TagResourceCommand,
2041
2240
  UntagResourceCommand,
2241
+ UpdateTemplateCommand,
2042
2242
  UpdateWorkflowCommand,
2043
2243
  UpdateWorkflowStepCommand,
2044
2244
  UpdateWorkflowStepGroupCommand
@@ -2087,9 +2287,11 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2087
2287
  MigrationHubOrchestratorClient,
2088
2288
  MigrationHubOrchestrator,
2089
2289
  $Command,
2290
+ CreateTemplateCommand,
2090
2291
  CreateWorkflowCommand,
2091
2292
  CreateWorkflowStepCommand,
2092
2293
  CreateWorkflowStepGroupCommand,
2294
+ DeleteTemplateCommand,
2093
2295
  DeleteWorkflowCommand,
2094
2296
  DeleteWorkflowStepCommand,
2095
2297
  DeleteWorkflowStepGroupCommand,
@@ -2112,6 +2314,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2112
2314
  StopWorkflowCommand,
2113
2315
  TagResourceCommand,
2114
2316
  UntagResourceCommand,
2317
+ UpdateTemplateCommand,
2115
2318
  UpdateWorkflowCommand,
2116
2319
  UpdateWorkflowStepCommand,
2117
2320
  UpdateWorkflowStepGroupCommand,
@@ -2129,6 +2332,8 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2129
2332
  MigrationWorkflowStatusEnum,
2130
2333
  InternalServerException,
2131
2334
  ThrottlingException,
2335
+ ConflictException,
2336
+ TemplateSource,
2132
2337
  DataType,
2133
2338
  TemplateStatus,
2134
2339
  PluginHealth,
@@ -1,7 +1,9 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { CreateTemplateCommand, } from "./commands/CreateTemplateCommand";
2
3
  import { CreateWorkflowCommand, } from "./commands/CreateWorkflowCommand";
3
4
  import { CreateWorkflowStepCommand, } from "./commands/CreateWorkflowStepCommand";
4
5
  import { CreateWorkflowStepGroupCommand, } from "./commands/CreateWorkflowStepGroupCommand";
6
+ import { DeleteTemplateCommand, } from "./commands/DeleteTemplateCommand";
5
7
  import { DeleteWorkflowCommand, } from "./commands/DeleteWorkflowCommand";
6
8
  import { DeleteWorkflowStepCommand, } from "./commands/DeleteWorkflowStepCommand";
7
9
  import { DeleteWorkflowStepGroupCommand, } from "./commands/DeleteWorkflowStepGroupCommand";
@@ -24,14 +26,17 @@ import { StartWorkflowCommand, } from "./commands/StartWorkflowCommand";
24
26
  import { StopWorkflowCommand, } from "./commands/StopWorkflowCommand";
25
27
  import { TagResourceCommand } from "./commands/TagResourceCommand";
26
28
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
29
+ import { UpdateTemplateCommand, } from "./commands/UpdateTemplateCommand";
27
30
  import { UpdateWorkflowCommand, } from "./commands/UpdateWorkflowCommand";
28
31
  import { UpdateWorkflowStepCommand, } from "./commands/UpdateWorkflowStepCommand";
29
32
  import { UpdateWorkflowStepGroupCommand, } from "./commands/UpdateWorkflowStepGroupCommand";
30
33
  import { MigrationHubOrchestratorClient } from "./MigrationHubOrchestratorClient";
31
34
  const commands = {
35
+ CreateTemplateCommand,
32
36
  CreateWorkflowCommand,
33
37
  CreateWorkflowStepCommand,
34
38
  CreateWorkflowStepGroupCommand,
39
+ DeleteTemplateCommand,
35
40
  DeleteWorkflowCommand,
36
41
  DeleteWorkflowStepCommand,
37
42
  DeleteWorkflowStepGroupCommand,
@@ -54,6 +59,7 @@ const commands = {
54
59
  StopWorkflowCommand,
55
60
  TagResourceCommand,
56
61
  UntagResourceCommand,
62
+ UpdateTemplateCommand,
57
63
  UpdateWorkflowCommand,
58
64
  UpdateWorkflowStepCommand,
59
65
  UpdateWorkflowStepGroupCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateTemplateCommand, se_CreateTemplateCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateTemplateCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHubOrchestrator", "CreateTemplate", {})
19
+ .n("MigrationHubOrchestratorClient", "CreateTemplateCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateTemplateCommand)
22
+ .de(de_CreateTemplateCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteTemplateCommand, se_DeleteTemplateCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteTemplateCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHubOrchestrator", "DeleteTemplate", {})
19
+ .n("MigrationHubOrchestratorClient", "DeleteTemplateCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteTemplateCommand)
22
+ .de(de_DeleteTemplateCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateTemplateCommand, se_UpdateTemplateCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateTemplateCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHubOrchestrator", "UpdateTemplate", {})
19
+ .n("MigrationHubOrchestratorClient", "UpdateTemplateCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateTemplateCommand)
22
+ .de(de_UpdateTemplateCommand)
23
+ .build() {
24
+ }
@@ -1,6 +1,8 @@
1
+ export * from "./CreateTemplateCommand";
1
2
  export * from "./CreateWorkflowCommand";
2
3
  export * from "./CreateWorkflowStepCommand";
3
4
  export * from "./CreateWorkflowStepGroupCommand";
5
+ export * from "./DeleteTemplateCommand";
4
6
  export * from "./DeleteWorkflowCommand";
5
7
  export * from "./DeleteWorkflowStepCommand";
6
8
  export * from "./DeleteWorkflowStepGroupCommand";
@@ -23,6 +25,7 @@ export * from "./StartWorkflowCommand";
23
25
  export * from "./StopWorkflowCommand";
24
26
  export * from "./TagResourceCommand";
25
27
  export * from "./UntagResourceCommand";
28
+ export * from "./UpdateTemplateCommand";
26
29
  export * from "./UpdateWorkflowCommand";
27
30
  export * from "./UpdateWorkflowStepCommand";
28
31
  export * from "./UpdateWorkflowStepGroupCommand";
@@ -92,6 +92,27 @@ export class ThrottlingException extends __BaseException {
92
92
  Object.setPrototypeOf(this, ThrottlingException.prototype);
93
93
  }
94
94
  }
95
+ export class ConflictException extends __BaseException {
96
+ constructor(opts) {
97
+ super({
98
+ name: "ConflictException",
99
+ $fault: "client",
100
+ ...opts,
101
+ });
102
+ this.name = "ConflictException";
103
+ this.$fault = "client";
104
+ this.$retryable = {};
105
+ Object.setPrototypeOf(this, ConflictException.prototype);
106
+ }
107
+ }
108
+ export var TemplateSource;
109
+ (function (TemplateSource) {
110
+ TemplateSource.visit = (value, visitor) => {
111
+ if (value.workflowId !== undefined)
112
+ return visitor.workflowId(value.workflowId);
113
+ return visitor._(value.$unknown[0], value.$unknown[1]);
114
+ };
115
+ })(TemplateSource || (TemplateSource = {}));
95
116
  export const DataType = {
96
117
  INTEGER: "INTEGER",
97
118
  STRING: "STRING",
@@ -100,6 +121,10 @@ export const DataType = {
100
121
  };
101
122
  export const TemplateStatus = {
102
123
  CREATED: "CREATED",
124
+ CREATING: "CREATING",
125
+ CREATION_FAILED: "CREATION_FAILED",
126
+ PENDING_CREATION: "PENDING_CREATION",
127
+ READY: "READY",
103
128
  };
104
129
  export const PluginHealth = {
105
130
  PLUGIN_HEALTHY: "HEALTHY",
@@ -151,6 +176,7 @@ export const StepStatus = {
151
176
  IN_PROGRESS: "IN_PROGRESS",
152
177
  PAUSED: "PAUSED",
153
178
  READY: "READY",
179
+ SKIPPED: "SKIPPED",
154
180
  USER_ATTENTION_REQUIRED: "USER_ATTENTION_REQUIRED",
155
181
  };
156
182
  export const CreateMigrationWorkflowRequestFilterSensitiveLog = (obj) => ({