@aws-sdk/client-mgn 3.295.0 → 3.297.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 (133) hide show
  1. package/README.md +48 -0
  2. package/dist-cjs/Mgn.js +90 -0
  3. package/dist-cjs/commands/ListExportErrorsCommand.js +46 -0
  4. package/dist-cjs/commands/ListExportsCommand.js +46 -0
  5. package/dist-cjs/commands/ListImportErrorsCommand.js +46 -0
  6. package/dist-cjs/commands/ListImportsCommand.js +46 -0
  7. package/dist-cjs/commands/StartExportCommand.js +46 -0
  8. package/dist-cjs/commands/StartImportCommand.js +46 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/endpoint/ruleset.js +3 -3
  11. package/dist-cjs/models/models_0.js +191 -8
  12. package/dist-cjs/pagination/ListExportErrorsPaginator.js +29 -0
  13. package/dist-cjs/pagination/ListExportsPaginator.js +29 -0
  14. package/dist-cjs/pagination/ListImportErrorsPaginator.js +29 -0
  15. package/dist-cjs/pagination/ListImportsPaginator.js +29 -0
  16. package/dist-cjs/pagination/index.js +4 -0
  17. package/dist-cjs/protocols/Aws_restJson1.js +676 -3
  18. package/dist-es/Mgn.js +90 -0
  19. package/dist-es/commands/ListExportErrorsCommand.js +42 -0
  20. package/dist-es/commands/ListExportsCommand.js +42 -0
  21. package/dist-es/commands/ListImportErrorsCommand.js +42 -0
  22. package/dist-es/commands/ListImportsCommand.js +42 -0
  23. package/dist-es/commands/StartExportCommand.js +42 -0
  24. package/dist-es/commands/StartImportCommand.js +42 -0
  25. package/dist-es/commands/index.js +6 -0
  26. package/dist-es/endpoint/ruleset.js +3 -3
  27. package/dist-es/models/models_0.js +157 -2
  28. package/dist-es/pagination/ListExportErrorsPaginator.js +25 -0
  29. package/dist-es/pagination/ListExportsPaginator.js +25 -0
  30. package/dist-es/pagination/ListImportErrorsPaginator.js +25 -0
  31. package/dist-es/pagination/ListImportsPaginator.js +25 -0
  32. package/dist-es/pagination/index.js +4 -0
  33. package/dist-es/protocols/Aws_restJson1.js +663 -2
  34. package/dist-types/Mgn.d.ts +104 -0
  35. package/dist-types/MgnClient.d.ts +32 -6
  36. package/dist-types/commands/ArchiveApplicationCommand.d.ts +16 -0
  37. package/dist-types/commands/ArchiveWaveCommand.d.ts +16 -0
  38. package/dist-types/commands/AssociateApplicationsCommand.d.ts +16 -0
  39. package/dist-types/commands/AssociateSourceServersCommand.d.ts +16 -0
  40. package/dist-types/commands/ChangeServerLifeCycleStateCommand.d.ts +16 -0
  41. package/dist-types/commands/CreateApplicationCommand.d.ts +16 -0
  42. package/dist-types/commands/CreateLaunchConfigurationTemplateCommand.d.ts +16 -0
  43. package/dist-types/commands/CreateReplicationConfigurationTemplateCommand.d.ts +16 -0
  44. package/dist-types/commands/CreateWaveCommand.d.ts +16 -0
  45. package/dist-types/commands/DeleteApplicationCommand.d.ts +16 -0
  46. package/dist-types/commands/DeleteJobCommand.d.ts +16 -0
  47. package/dist-types/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +16 -0
  48. package/dist-types/commands/DeleteReplicationConfigurationTemplateCommand.d.ts +16 -0
  49. package/dist-types/commands/DeleteSourceServerCommand.d.ts +16 -0
  50. package/dist-types/commands/DeleteVcenterClientCommand.d.ts +16 -0
  51. package/dist-types/commands/DeleteWaveCommand.d.ts +16 -0
  52. package/dist-types/commands/DescribeJobLogItemsCommand.d.ts +16 -0
  53. package/dist-types/commands/DescribeJobsCommand.d.ts +16 -0
  54. package/dist-types/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +16 -0
  55. package/dist-types/commands/DescribeReplicationConfigurationTemplatesCommand.d.ts +16 -0
  56. package/dist-types/commands/DescribeSourceServersCommand.d.ts +16 -0
  57. package/dist-types/commands/DescribeVcenterClientsCommand.d.ts +16 -0
  58. package/dist-types/commands/DisassociateApplicationsCommand.d.ts +16 -0
  59. package/dist-types/commands/DisassociateSourceServersCommand.d.ts +16 -0
  60. package/dist-types/commands/DisconnectFromServiceCommand.d.ts +16 -0
  61. package/dist-types/commands/FinalizeCutoverCommand.d.ts +16 -0
  62. package/dist-types/commands/GetLaunchConfigurationCommand.d.ts +16 -0
  63. package/dist-types/commands/GetReplicationConfigurationCommand.d.ts +16 -0
  64. package/dist-types/commands/InitializeServiceCommand.d.ts +16 -0
  65. package/dist-types/commands/ListApplicationsCommand.d.ts +16 -0
  66. package/dist-types/commands/ListExportErrorsCommand.d.ts +66 -0
  67. package/dist-types/commands/ListExportsCommand.d.ts +63 -0
  68. package/dist-types/commands/ListImportErrorsCommand.d.ts +66 -0
  69. package/dist-types/commands/ListImportsCommand.d.ts +66 -0
  70. package/dist-types/commands/ListSourceServerActionsCommand.d.ts +16 -0
  71. package/dist-types/commands/ListTagsForResourceCommand.d.ts +16 -0
  72. package/dist-types/commands/ListTemplateActionsCommand.d.ts +16 -0
  73. package/dist-types/commands/ListWavesCommand.d.ts +16 -0
  74. package/dist-types/commands/MarkAsArchivedCommand.d.ts +16 -0
  75. package/dist-types/commands/PutSourceServerActionCommand.d.ts +16 -0
  76. package/dist-types/commands/PutTemplateActionCommand.d.ts +16 -0
  77. package/dist-types/commands/RemoveSourceServerActionCommand.d.ts +16 -0
  78. package/dist-types/commands/RemoveTemplateActionCommand.d.ts +16 -0
  79. package/dist-types/commands/RetryDataReplicationCommand.d.ts +16 -0
  80. package/dist-types/commands/StartCutoverCommand.d.ts +16 -0
  81. package/dist-types/commands/StartExportCommand.d.ts +69 -0
  82. package/dist-types/commands/StartImportCommand.d.ts +75 -0
  83. package/dist-types/commands/StartReplicationCommand.d.ts +16 -0
  84. package/dist-types/commands/StartTestCommand.d.ts +16 -0
  85. package/dist-types/commands/TagResourceCommand.d.ts +16 -0
  86. package/dist-types/commands/TerminateTargetInstancesCommand.d.ts +16 -0
  87. package/dist-types/commands/UnarchiveApplicationCommand.d.ts +16 -0
  88. package/dist-types/commands/UnarchiveWaveCommand.d.ts +16 -0
  89. package/dist-types/commands/UntagResourceCommand.d.ts +16 -0
  90. package/dist-types/commands/UpdateApplicationCommand.d.ts +16 -0
  91. package/dist-types/commands/UpdateLaunchConfigurationCommand.d.ts +16 -0
  92. package/dist-types/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +16 -0
  93. package/dist-types/commands/UpdateReplicationConfigurationCommand.d.ts +16 -0
  94. package/dist-types/commands/UpdateReplicationConfigurationTemplateCommand.d.ts +16 -0
  95. package/dist-types/commands/UpdateSourceServerReplicationTypeCommand.d.ts +16 -0
  96. package/dist-types/commands/UpdateWaveCommand.d.ts +16 -0
  97. package/dist-types/commands/index.d.ts +6 -0
  98. package/dist-types/models/MgnServiceException.d.ts +2 -0
  99. package/dist-types/models/models_0.d.ts +1103 -8
  100. package/dist-types/pagination/DescribeJobLogItemsPaginator.d.ts +3 -0
  101. package/dist-types/pagination/DescribeJobsPaginator.d.ts +3 -0
  102. package/dist-types/pagination/DescribeLaunchConfigurationTemplatesPaginator.d.ts +3 -0
  103. package/dist-types/pagination/DescribeReplicationConfigurationTemplatesPaginator.d.ts +3 -0
  104. package/dist-types/pagination/DescribeSourceServersPaginator.d.ts +3 -0
  105. package/dist-types/pagination/DescribeVcenterClientsPaginator.d.ts +3 -0
  106. package/dist-types/pagination/Interfaces.d.ts +3 -0
  107. package/dist-types/pagination/ListApplicationsPaginator.d.ts +3 -0
  108. package/dist-types/pagination/ListExportErrorsPaginator.d.ts +7 -0
  109. package/dist-types/pagination/ListExportsPaginator.d.ts +7 -0
  110. package/dist-types/pagination/ListImportErrorsPaginator.d.ts +7 -0
  111. package/dist-types/pagination/ListImportsPaginator.d.ts +7 -0
  112. package/dist-types/pagination/ListSourceServerActionsPaginator.d.ts +3 -0
  113. package/dist-types/pagination/ListTemplateActionsPaginator.d.ts +3 -0
  114. package/dist-types/pagination/ListWavesPaginator.d.ts +3 -0
  115. package/dist-types/pagination/index.d.ts +4 -0
  116. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  117. package/dist-types/ts3.4/Mgn.d.ts +102 -0
  118. package/dist-types/ts3.4/MgnClient.d.ts +36 -0
  119. package/dist-types/ts3.4/commands/ListExportErrorsCommand.d.ts +37 -0
  120. package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +34 -0
  121. package/dist-types/ts3.4/commands/ListImportErrorsCommand.d.ts +37 -0
  122. package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +34 -0
  123. package/dist-types/ts3.4/commands/StartExportCommand.d.ts +34 -0
  124. package/dist-types/ts3.4/commands/StartImportCommand.d.ts +34 -0
  125. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  126. package/dist-types/ts3.4/models/models_0.d.ts +268 -5
  127. package/dist-types/ts3.4/pagination/ListExportErrorsPaginator.d.ts +11 -0
  128. package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +11 -0
  129. package/dist-types/ts3.4/pagination/ListImportErrorsPaginator.d.ts +11 -0
  130. package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +11 -0
  131. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  132. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  133. package/package.json +32 -30
@@ -1,7 +1,8 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, strictParseLong as __strictParseLong, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseFloat32 as __limitedParseFloat32, map as __map, resolvedPath as __resolvedPath, strictParseLong as __strictParseLong, throwDefaultError, } from "@aws-sdk/smithy-client";
3
+ import { v4 as generateIdempotencyToken } from "uuid";
3
4
  import { MgnServiceException as __BaseException } from "../models/MgnServiceException";
4
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, ValidationException, } from "../models/models_0";
5
+ import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, SsmExternalParameter, ThrottlingException, UninitializedAccountException, ValidationException, } from "../models/models_0";
5
6
  export const serializeAws_restJson1ArchiveApplicationCommand = async (input, context) => {
6
7
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
8
  const headers = {
@@ -689,6 +690,94 @@ export const serializeAws_restJson1ListApplicationsCommand = async (input, conte
689
690
  body,
690
691
  });
691
692
  };
693
+ export const serializeAws_restJson1ListExportErrorsCommand = async (input, context) => {
694
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
695
+ const headers = {
696
+ "content-type": "application/json",
697
+ };
698
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListExportErrors";
699
+ let body;
700
+ body = JSON.stringify({
701
+ ...(input.exportID != null && { exportID: input.exportID }),
702
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
703
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
704
+ });
705
+ return new __HttpRequest({
706
+ protocol,
707
+ hostname,
708
+ port,
709
+ method: "POST",
710
+ headers,
711
+ path: resolvedPath,
712
+ body,
713
+ });
714
+ };
715
+ export const serializeAws_restJson1ListExportsCommand = async (input, context) => {
716
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
717
+ const headers = {
718
+ "content-type": "application/json",
719
+ };
720
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListExports";
721
+ let body;
722
+ body = JSON.stringify({
723
+ ...(input.filters != null && { filters: serializeAws_restJson1ListExportsRequestFilters(input.filters, context) }),
724
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
725
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
726
+ });
727
+ return new __HttpRequest({
728
+ protocol,
729
+ hostname,
730
+ port,
731
+ method: "POST",
732
+ headers,
733
+ path: resolvedPath,
734
+ body,
735
+ });
736
+ };
737
+ export const serializeAws_restJson1ListImportErrorsCommand = async (input, context) => {
738
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
739
+ const headers = {
740
+ "content-type": "application/json",
741
+ };
742
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImportErrors";
743
+ let body;
744
+ body = JSON.stringify({
745
+ ...(input.importID != null && { importID: input.importID }),
746
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
747
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
748
+ });
749
+ return new __HttpRequest({
750
+ protocol,
751
+ hostname,
752
+ port,
753
+ method: "POST",
754
+ headers,
755
+ path: resolvedPath,
756
+ body,
757
+ });
758
+ };
759
+ export const serializeAws_restJson1ListImportsCommand = async (input, context) => {
760
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
761
+ const headers = {
762
+ "content-type": "application/json",
763
+ };
764
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImports";
765
+ let body;
766
+ body = JSON.stringify({
767
+ ...(input.filters != null && { filters: serializeAws_restJson1ListImportsRequestFilters(input.filters, context) }),
768
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
769
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
770
+ });
771
+ return new __HttpRequest({
772
+ protocol,
773
+ hostname,
774
+ port,
775
+ method: "POST",
776
+ headers,
777
+ path: resolvedPath,
778
+ body,
779
+ });
780
+ };
692
781
  export const serializeAws_restJson1ListSourceServerActionsCommand = async (input, context) => {
693
782
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
694
783
  const headers = {
@@ -810,8 +899,13 @@ export const serializeAws_restJson1PutSourceServerActionCommand = async (input,
810
899
  ...(input.actionID != null && { actionID: input.actionID }),
811
900
  ...(input.actionName != null && { actionName: input.actionName }),
812
901
  ...(input.active != null && { active: input.active }),
902
+ ...(input.category != null && { category: input.category }),
903
+ ...(input.description != null && { description: input.description }),
813
904
  ...(input.documentIdentifier != null && { documentIdentifier: input.documentIdentifier }),
814
905
  ...(input.documentVersion != null && { documentVersion: input.documentVersion }),
906
+ ...(input.externalParameters != null && {
907
+ externalParameters: serializeAws_restJson1SsmDocumentExternalParameters(input.externalParameters, context),
908
+ }),
815
909
  ...(input.mustSucceedForCutover != null && { mustSucceedForCutover: input.mustSucceedForCutover }),
816
910
  ...(input.order != null && { order: input.order }),
817
911
  ...(input.parameters != null && {
@@ -841,8 +935,13 @@ export const serializeAws_restJson1PutTemplateActionCommand = async (input, cont
841
935
  ...(input.actionID != null && { actionID: input.actionID }),
842
936
  ...(input.actionName != null && { actionName: input.actionName }),
843
937
  ...(input.active != null && { active: input.active }),
938
+ ...(input.category != null && { category: input.category }),
939
+ ...(input.description != null && { description: input.description }),
844
940
  ...(input.documentIdentifier != null && { documentIdentifier: input.documentIdentifier }),
845
941
  ...(input.documentVersion != null && { documentVersion: input.documentVersion }),
942
+ ...(input.externalParameters != null && {
943
+ externalParameters: serializeAws_restJson1SsmDocumentExternalParameters(input.externalParameters, context),
944
+ }),
846
945
  ...(input.launchConfigurationTemplateID != null && {
847
946
  launchConfigurationTemplateID: input.launchConfigurationTemplateID,
848
947
  }),
@@ -951,6 +1050,51 @@ export const serializeAws_restJson1StartCutoverCommand = async (input, context)
951
1050
  body,
952
1051
  });
953
1052
  };
1053
+ export const serializeAws_restJson1StartExportCommand = async (input, context) => {
1054
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1055
+ const headers = {
1056
+ "content-type": "application/json",
1057
+ };
1058
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartExport";
1059
+ let body;
1060
+ body = JSON.stringify({
1061
+ ...(input.s3Bucket != null && { s3Bucket: input.s3Bucket }),
1062
+ ...(input.s3BucketOwner != null && { s3BucketOwner: input.s3BucketOwner }),
1063
+ ...(input.s3Key != null && { s3Key: input.s3Key }),
1064
+ });
1065
+ return new __HttpRequest({
1066
+ protocol,
1067
+ hostname,
1068
+ port,
1069
+ method: "POST",
1070
+ headers,
1071
+ path: resolvedPath,
1072
+ body,
1073
+ });
1074
+ };
1075
+ export const serializeAws_restJson1StartImportCommand = async (input, context) => {
1076
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1077
+ const headers = {
1078
+ "content-type": "application/json",
1079
+ };
1080
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartImport";
1081
+ let body;
1082
+ body = JSON.stringify({
1083
+ clientToken: input.clientToken ?? generateIdempotencyToken(),
1084
+ ...(input.s3BucketSource != null && {
1085
+ s3BucketSource: serializeAws_restJson1S3BucketSource(input.s3BucketSource, context),
1086
+ }),
1087
+ });
1088
+ return new __HttpRequest({
1089
+ protocol,
1090
+ hostname,
1091
+ port,
1092
+ method: "POST",
1093
+ headers,
1094
+ path: resolvedPath,
1095
+ body,
1096
+ });
1097
+ };
954
1098
  export const serializeAws_restJson1StartReplicationCommand = async (input, context) => {
955
1099
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
956
1100
  const headers = {
@@ -1568,6 +1712,9 @@ export const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (
1568
1712
  if (data.dataReplicationInfo != null) {
1569
1713
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
1570
1714
  }
1715
+ if (data.fqdnForActionFramework != null) {
1716
+ contents.fqdnForActionFramework = __expectString(data.fqdnForActionFramework);
1717
+ }
1571
1718
  if (data.isArchived != null) {
1572
1719
  contents.isArchived = __expectBoolean(data.isArchived);
1573
1720
  }
@@ -1589,6 +1736,9 @@ export const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (
1589
1736
  if (data.tags != null) {
1590
1737
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1591
1738
  }
1739
+ if (data.userProvidedID != null) {
1740
+ contents.userProvidedID = __expectString(data.userProvidedID);
1741
+ }
1592
1742
  if (data.vcenterClientID != null) {
1593
1743
  contents.vcenterClientID = __expectString(data.vcenterClientID);
1594
1744
  }
@@ -2504,6 +2654,9 @@ export const deserializeAws_restJson1DisconnectFromServiceCommand = async (outpu
2504
2654
  if (data.dataReplicationInfo != null) {
2505
2655
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
2506
2656
  }
2657
+ if (data.fqdnForActionFramework != null) {
2658
+ contents.fqdnForActionFramework = __expectString(data.fqdnForActionFramework);
2659
+ }
2507
2660
  if (data.isArchived != null) {
2508
2661
  contents.isArchived = __expectBoolean(data.isArchived);
2509
2662
  }
@@ -2525,6 +2678,9 @@ export const deserializeAws_restJson1DisconnectFromServiceCommand = async (outpu
2525
2678
  if (data.tags != null) {
2526
2679
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2527
2680
  }
2681
+ if (data.userProvidedID != null) {
2682
+ contents.userProvidedID = __expectString(data.userProvidedID);
2683
+ }
2528
2684
  if (data.vcenterClientID != null) {
2529
2685
  contents.vcenterClientID = __expectString(data.vcenterClientID);
2530
2686
  }
@@ -2573,6 +2729,9 @@ export const deserializeAws_restJson1FinalizeCutoverCommand = async (output, con
2573
2729
  if (data.dataReplicationInfo != null) {
2574
2730
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
2575
2731
  }
2732
+ if (data.fqdnForActionFramework != null) {
2733
+ contents.fqdnForActionFramework = __expectString(data.fqdnForActionFramework);
2734
+ }
2576
2735
  if (data.isArchived != null) {
2577
2736
  contents.isArchived = __expectBoolean(data.isArchived);
2578
2737
  }
@@ -2594,6 +2753,9 @@ export const deserializeAws_restJson1FinalizeCutoverCommand = async (output, con
2594
2753
  if (data.tags != null) {
2595
2754
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2596
2755
  }
2756
+ if (data.userProvidedID != null) {
2757
+ contents.userProvidedID = __expectString(data.userProvidedID);
2758
+ }
2597
2759
  if (data.vcenterClientID != null) {
2598
2760
  contents.vcenterClientID = __expectString(data.vcenterClientID);
2599
2761
  }
@@ -2844,6 +3006,159 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
2844
3006
  });
2845
3007
  }
2846
3008
  };
3009
+ export const deserializeAws_restJson1ListExportErrorsCommand = async (output, context) => {
3010
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3011
+ return deserializeAws_restJson1ListExportErrorsCommandError(output, context);
3012
+ }
3013
+ const contents = map({
3014
+ $metadata: deserializeMetadata(output),
3015
+ });
3016
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3017
+ if (data.items != null) {
3018
+ contents.items = deserializeAws_restJson1ExportErrors(data.items, context);
3019
+ }
3020
+ if (data.nextToken != null) {
3021
+ contents.nextToken = __expectString(data.nextToken);
3022
+ }
3023
+ return contents;
3024
+ };
3025
+ const deserializeAws_restJson1ListExportErrorsCommandError = async (output, context) => {
3026
+ const parsedOutput = {
3027
+ ...output,
3028
+ body: await parseErrorBody(output.body, context),
3029
+ };
3030
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3031
+ switch (errorCode) {
3032
+ case "UninitializedAccountException":
3033
+ case "com.amazonaws.mgn#UninitializedAccountException":
3034
+ throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
3035
+ case "ValidationException":
3036
+ case "com.amazonaws.mgn#ValidationException":
3037
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3038
+ default:
3039
+ const parsedBody = parsedOutput.body;
3040
+ throwDefaultError({
3041
+ output,
3042
+ parsedBody,
3043
+ exceptionCtor: __BaseException,
3044
+ errorCode,
3045
+ });
3046
+ }
3047
+ };
3048
+ export const deserializeAws_restJson1ListExportsCommand = async (output, context) => {
3049
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3050
+ return deserializeAws_restJson1ListExportsCommandError(output, context);
3051
+ }
3052
+ const contents = map({
3053
+ $metadata: deserializeMetadata(output),
3054
+ });
3055
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3056
+ if (data.items != null) {
3057
+ contents.items = deserializeAws_restJson1ExportsList(data.items, context);
3058
+ }
3059
+ if (data.nextToken != null) {
3060
+ contents.nextToken = __expectString(data.nextToken);
3061
+ }
3062
+ return contents;
3063
+ };
3064
+ const deserializeAws_restJson1ListExportsCommandError = async (output, context) => {
3065
+ const parsedOutput = {
3066
+ ...output,
3067
+ body: await parseErrorBody(output.body, context),
3068
+ };
3069
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3070
+ switch (errorCode) {
3071
+ case "UninitializedAccountException":
3072
+ case "com.amazonaws.mgn#UninitializedAccountException":
3073
+ throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
3074
+ default:
3075
+ const parsedBody = parsedOutput.body;
3076
+ throwDefaultError({
3077
+ output,
3078
+ parsedBody,
3079
+ exceptionCtor: __BaseException,
3080
+ errorCode,
3081
+ });
3082
+ }
3083
+ };
3084
+ export const deserializeAws_restJson1ListImportErrorsCommand = async (output, context) => {
3085
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3086
+ return deserializeAws_restJson1ListImportErrorsCommandError(output, context);
3087
+ }
3088
+ const contents = map({
3089
+ $metadata: deserializeMetadata(output),
3090
+ });
3091
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3092
+ if (data.items != null) {
3093
+ contents.items = deserializeAws_restJson1ImportErrors(data.items, context);
3094
+ }
3095
+ if (data.nextToken != null) {
3096
+ contents.nextToken = __expectString(data.nextToken);
3097
+ }
3098
+ return contents;
3099
+ };
3100
+ const deserializeAws_restJson1ListImportErrorsCommandError = async (output, context) => {
3101
+ const parsedOutput = {
3102
+ ...output,
3103
+ body: await parseErrorBody(output.body, context),
3104
+ };
3105
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3106
+ switch (errorCode) {
3107
+ case "UninitializedAccountException":
3108
+ case "com.amazonaws.mgn#UninitializedAccountException":
3109
+ throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
3110
+ case "ValidationException":
3111
+ case "com.amazonaws.mgn#ValidationException":
3112
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3113
+ default:
3114
+ const parsedBody = parsedOutput.body;
3115
+ throwDefaultError({
3116
+ output,
3117
+ parsedBody,
3118
+ exceptionCtor: __BaseException,
3119
+ errorCode,
3120
+ });
3121
+ }
3122
+ };
3123
+ export const deserializeAws_restJson1ListImportsCommand = async (output, context) => {
3124
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3125
+ return deserializeAws_restJson1ListImportsCommandError(output, context);
3126
+ }
3127
+ const contents = map({
3128
+ $metadata: deserializeMetadata(output),
3129
+ });
3130
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3131
+ if (data.items != null) {
3132
+ contents.items = deserializeAws_restJson1ImportList(data.items, context);
3133
+ }
3134
+ if (data.nextToken != null) {
3135
+ contents.nextToken = __expectString(data.nextToken);
3136
+ }
3137
+ return contents;
3138
+ };
3139
+ const deserializeAws_restJson1ListImportsCommandError = async (output, context) => {
3140
+ const parsedOutput = {
3141
+ ...output,
3142
+ body: await parseErrorBody(output.body, context),
3143
+ };
3144
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3145
+ switch (errorCode) {
3146
+ case "UninitializedAccountException":
3147
+ case "com.amazonaws.mgn#UninitializedAccountException":
3148
+ throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
3149
+ case "ValidationException":
3150
+ case "com.amazonaws.mgn#ValidationException":
3151
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3152
+ default:
3153
+ const parsedBody = parsedOutput.body;
3154
+ throwDefaultError({
3155
+ output,
3156
+ parsedBody,
3157
+ exceptionCtor: __BaseException,
3158
+ errorCode,
3159
+ });
3160
+ }
3161
+ };
2847
3162
  export const deserializeAws_restJson1ListSourceServerActionsCommand = async (output, context) => {
2848
3163
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2849
3164
  return deserializeAws_restJson1ListSourceServerActionsCommandError(output, context);
@@ -3020,6 +3335,9 @@ export const deserializeAws_restJson1MarkAsArchivedCommand = async (output, cont
3020
3335
  if (data.dataReplicationInfo != null) {
3021
3336
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
3022
3337
  }
3338
+ if (data.fqdnForActionFramework != null) {
3339
+ contents.fqdnForActionFramework = __expectString(data.fqdnForActionFramework);
3340
+ }
3023
3341
  if (data.isArchived != null) {
3024
3342
  contents.isArchived = __expectBoolean(data.isArchived);
3025
3343
  }
@@ -3041,6 +3359,9 @@ export const deserializeAws_restJson1MarkAsArchivedCommand = async (output, cont
3041
3359
  if (data.tags != null) {
3042
3360
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
3043
3361
  }
3362
+ if (data.userProvidedID != null) {
3363
+ contents.userProvidedID = __expectString(data.userProvidedID);
3364
+ }
3044
3365
  if (data.vcenterClientID != null) {
3045
3366
  contents.vcenterClientID = __expectString(data.vcenterClientID);
3046
3367
  }
@@ -3089,12 +3410,21 @@ export const deserializeAws_restJson1PutSourceServerActionCommand = async (outpu
3089
3410
  if (data.active != null) {
3090
3411
  contents.active = __expectBoolean(data.active);
3091
3412
  }
3413
+ if (data.category != null) {
3414
+ contents.category = __expectString(data.category);
3415
+ }
3416
+ if (data.description != null) {
3417
+ contents.description = __expectString(data.description);
3418
+ }
3092
3419
  if (data.documentIdentifier != null) {
3093
3420
  contents.documentIdentifier = __expectString(data.documentIdentifier);
3094
3421
  }
3095
3422
  if (data.documentVersion != null) {
3096
3423
  contents.documentVersion = __expectString(data.documentVersion);
3097
3424
  }
3425
+ if (data.externalParameters != null) {
3426
+ contents.externalParameters = deserializeAws_restJson1SsmDocumentExternalParameters(data.externalParameters, context);
3427
+ }
3098
3428
  if (data.mustSucceedForCutover != null) {
3099
3429
  contents.mustSucceedForCutover = __expectBoolean(data.mustSucceedForCutover);
3100
3430
  }
@@ -3155,12 +3485,21 @@ export const deserializeAws_restJson1PutTemplateActionCommand = async (output, c
3155
3485
  if (data.active != null) {
3156
3486
  contents.active = __expectBoolean(data.active);
3157
3487
  }
3488
+ if (data.category != null) {
3489
+ contents.category = __expectString(data.category);
3490
+ }
3491
+ if (data.description != null) {
3492
+ contents.description = __expectString(data.description);
3493
+ }
3158
3494
  if (data.documentIdentifier != null) {
3159
3495
  contents.documentIdentifier = __expectString(data.documentIdentifier);
3160
3496
  }
3161
3497
  if (data.documentVersion != null) {
3162
3498
  contents.documentVersion = __expectString(data.documentVersion);
3163
3499
  }
3500
+ if (data.externalParameters != null) {
3501
+ contents.externalParameters = deserializeAws_restJson1SsmDocumentExternalParameters(data.externalParameters, context);
3502
+ }
3164
3503
  if (data.mustSucceedForCutover != null) {
3165
3504
  contents.mustSucceedForCutover = __expectBoolean(data.mustSucceedForCutover);
3166
3505
  }
@@ -3296,6 +3635,9 @@ export const deserializeAws_restJson1RetryDataReplicationCommand = async (output
3296
3635
  if (data.dataReplicationInfo != null) {
3297
3636
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
3298
3637
  }
3638
+ if (data.fqdnForActionFramework != null) {
3639
+ contents.fqdnForActionFramework = __expectString(data.fqdnForActionFramework);
3640
+ }
3299
3641
  if (data.isArchived != null) {
3300
3642
  contents.isArchived = __expectBoolean(data.isArchived);
3301
3643
  }
@@ -3317,6 +3659,9 @@ export const deserializeAws_restJson1RetryDataReplicationCommand = async (output
3317
3659
  if (data.tags != null) {
3318
3660
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
3319
3661
  }
3662
+ if (data.userProvidedID != null) {
3663
+ contents.userProvidedID = __expectString(data.userProvidedID);
3664
+ }
3320
3665
  if (data.vcenterClientID != null) {
3321
3666
  contents.vcenterClientID = __expectString(data.vcenterClientID);
3322
3667
  }
@@ -3387,6 +3732,90 @@ const deserializeAws_restJson1StartCutoverCommandError = async (output, context)
3387
3732
  });
3388
3733
  }
3389
3734
  };
3735
+ export const deserializeAws_restJson1StartExportCommand = async (output, context) => {
3736
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
3737
+ return deserializeAws_restJson1StartExportCommandError(output, context);
3738
+ }
3739
+ const contents = map({
3740
+ $metadata: deserializeMetadata(output),
3741
+ });
3742
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3743
+ if (data.exportTask != null) {
3744
+ contents.exportTask = deserializeAws_restJson1ExportTask(data.exportTask, context);
3745
+ }
3746
+ return contents;
3747
+ };
3748
+ const deserializeAws_restJson1StartExportCommandError = async (output, context) => {
3749
+ const parsedOutput = {
3750
+ ...output,
3751
+ body: await parseErrorBody(output.body, context),
3752
+ };
3753
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3754
+ switch (errorCode) {
3755
+ case "ServiceQuotaExceededException":
3756
+ case "com.amazonaws.mgn#ServiceQuotaExceededException":
3757
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
3758
+ case "UninitializedAccountException":
3759
+ case "com.amazonaws.mgn#UninitializedAccountException":
3760
+ throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
3761
+ case "ValidationException":
3762
+ case "com.amazonaws.mgn#ValidationException":
3763
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3764
+ default:
3765
+ const parsedBody = parsedOutput.body;
3766
+ throwDefaultError({
3767
+ output,
3768
+ parsedBody,
3769
+ exceptionCtor: __BaseException,
3770
+ errorCode,
3771
+ });
3772
+ }
3773
+ };
3774
+ export const deserializeAws_restJson1StartImportCommand = async (output, context) => {
3775
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
3776
+ return deserializeAws_restJson1StartImportCommandError(output, context);
3777
+ }
3778
+ const contents = map({
3779
+ $metadata: deserializeMetadata(output),
3780
+ });
3781
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3782
+ if (data.importTask != null) {
3783
+ contents.importTask = deserializeAws_restJson1ImportTask(data.importTask, context);
3784
+ }
3785
+ return contents;
3786
+ };
3787
+ const deserializeAws_restJson1StartImportCommandError = async (output, context) => {
3788
+ const parsedOutput = {
3789
+ ...output,
3790
+ body: await parseErrorBody(output.body, context),
3791
+ };
3792
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3793
+ switch (errorCode) {
3794
+ case "ConflictException":
3795
+ case "com.amazonaws.mgn#ConflictException":
3796
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3797
+ case "ResourceNotFoundException":
3798
+ case "com.amazonaws.mgn#ResourceNotFoundException":
3799
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3800
+ case "ServiceQuotaExceededException":
3801
+ case "com.amazonaws.mgn#ServiceQuotaExceededException":
3802
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
3803
+ case "UninitializedAccountException":
3804
+ case "com.amazonaws.mgn#UninitializedAccountException":
3805
+ throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
3806
+ case "ValidationException":
3807
+ case "com.amazonaws.mgn#ValidationException":
3808
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3809
+ default:
3810
+ const parsedBody = parsedOutput.body;
3811
+ throwDefaultError({
3812
+ output,
3813
+ parsedBody,
3814
+ exceptionCtor: __BaseException,
3815
+ errorCode,
3816
+ });
3817
+ }
3818
+ };
3390
3819
  export const deserializeAws_restJson1StartReplicationCommand = async (output, context) => {
3391
3820
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3392
3821
  return deserializeAws_restJson1StartReplicationCommandError(output, context);
@@ -3404,6 +3833,9 @@ export const deserializeAws_restJson1StartReplicationCommand = async (output, co
3404
3833
  if (data.dataReplicationInfo != null) {
3405
3834
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
3406
3835
  }
3836
+ if (data.fqdnForActionFramework != null) {
3837
+ contents.fqdnForActionFramework = __expectString(data.fqdnForActionFramework);
3838
+ }
3407
3839
  if (data.isArchived != null) {
3408
3840
  contents.isArchived = __expectBoolean(data.isArchived);
3409
3841
  }
@@ -3425,6 +3857,9 @@ export const deserializeAws_restJson1StartReplicationCommand = async (output, co
3425
3857
  if (data.tags != null) {
3426
3858
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
3427
3859
  }
3860
+ if (data.userProvidedID != null) {
3861
+ contents.userProvidedID = __expectString(data.userProvidedID);
3862
+ }
3428
3863
  if (data.vcenterClientID != null) {
3429
3864
  contents.vcenterClientID = __expectString(data.vcenterClientID);
3430
3865
  }
@@ -4172,6 +4607,9 @@ export const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand =
4172
4607
  if (data.dataReplicationInfo != null) {
4173
4608
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
4174
4609
  }
4610
+ if (data.fqdnForActionFramework != null) {
4611
+ contents.fqdnForActionFramework = __expectString(data.fqdnForActionFramework);
4612
+ }
4175
4613
  if (data.isArchived != null) {
4176
4614
  contents.isArchived = __expectBoolean(data.isArchived);
4177
4615
  }
@@ -4193,6 +4631,9 @@ export const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand =
4193
4631
  if (data.tags != null) {
4194
4632
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
4195
4633
  }
4634
+ if (data.userProvidedID != null) {
4635
+ contents.userProvidedID = __expectString(data.userProvidedID);
4636
+ }
4196
4637
  if (data.vcenterClientID != null) {
4197
4638
  contents.vcenterClientID = __expectString(data.vcenterClientID);
4198
4639
  }
@@ -4541,6 +4982,13 @@ const serializeAws_restJson1DisassociateSourceServersRequestSourceServerIDs = (i
4541
4982
  return entry;
4542
4983
  });
4543
4984
  };
4985
+ const serializeAws_restJson1ImportIDsFilter = (input, context) => {
4986
+ return input
4987
+ .filter((e) => e != null)
4988
+ .map((entry) => {
4989
+ return entry;
4990
+ });
4991
+ };
4544
4992
  const serializeAws_restJson1LaunchConfigurationTemplateIDs = (input, context) => {
4545
4993
  return input
4546
4994
  .filter((e) => e != null)
@@ -4576,6 +5024,25 @@ const serializeAws_restJson1ListApplicationsRequestFilters = (input, context) =>
4576
5024
  ...(input.waveIDs != null && { waveIDs: serializeAws_restJson1WaveIDsFilter(input.waveIDs, context) }),
4577
5025
  };
4578
5026
  };
5027
+ const serializeAws_restJson1ListExportsRequestFilters = (input, context) => {
5028
+ return {
5029
+ ...(input.exportIDs != null && {
5030
+ exportIDs: serializeAws_restJson1ListExportsRequestFiltersExportIDs(input.exportIDs, context),
5031
+ }),
5032
+ };
5033
+ };
5034
+ const serializeAws_restJson1ListExportsRequestFiltersExportIDs = (input, context) => {
5035
+ return input
5036
+ .filter((e) => e != null)
5037
+ .map((entry) => {
5038
+ return entry;
5039
+ });
5040
+ };
5041
+ const serializeAws_restJson1ListImportsRequestFilters = (input, context) => {
5042
+ return {
5043
+ ...(input.importIDs != null && { importIDs: serializeAws_restJson1ImportIDsFilter(input.importIDs, context) }),
5044
+ };
5045
+ };
4579
5046
  const serializeAws_restJson1ListWavesRequestFilters = (input, context) => {
4580
5047
  return {
4581
5048
  ...(input.isArchived != null && { isArchived: input.isArchived }),
@@ -4630,6 +5097,13 @@ const serializeAws_restJson1ReplicationTypes = (input, context) => {
4630
5097
  return entry;
4631
5098
  });
4632
5099
  };
5100
+ const serializeAws_restJson1S3BucketSource = (input, context) => {
5101
+ return {
5102
+ ...(input.s3Bucket != null && { s3Bucket: input.s3Bucket }),
5103
+ ...(input.s3BucketOwner != null && { s3BucketOwner: input.s3BucketOwner }),
5104
+ ...(input.s3Key != null && { s3Key: input.s3Key }),
5105
+ };
5106
+ };
4633
5107
  const serializeAws_restJson1SourceServerActionsRequestFilters = (input, context) => {
4634
5108
  return {
4635
5109
  ...(input.actionIDs != null && { actionIDs: serializeAws_restJson1ActionIDs(input.actionIDs, context) }),
@@ -4638,6 +5112,9 @@ const serializeAws_restJson1SourceServerActionsRequestFilters = (input, context)
4638
5112
  const serializeAws_restJson1SsmDocument = (input, context) => {
4639
5113
  return {
4640
5114
  ...(input.actionName != null && { actionName: input.actionName }),
5115
+ ...(input.externalParameters != null && {
5116
+ externalParameters: serializeAws_restJson1SsmDocumentExternalParameters(input.externalParameters, context),
5117
+ }),
4641
5118
  ...(input.mustSucceedForCutover != null && { mustSucceedForCutover: input.mustSucceedForCutover }),
4642
5119
  ...(input.parameters != null && {
4643
5120
  parameters: serializeAws_restJson1SsmDocumentParameters(input.parameters, context),
@@ -4646,6 +5123,15 @@ const serializeAws_restJson1SsmDocument = (input, context) => {
4646
5123
  ...(input.timeoutSeconds != null && { timeoutSeconds: input.timeoutSeconds }),
4647
5124
  };
4648
5125
  };
5126
+ const serializeAws_restJson1SsmDocumentExternalParameters = (input, context) => {
5127
+ return Object.entries(input).reduce((acc, [key, value]) => {
5128
+ if (value === null) {
5129
+ return acc;
5130
+ }
5131
+ acc[key] = serializeAws_restJson1SsmExternalParameter(value, context);
5132
+ return acc;
5133
+ }, {});
5134
+ };
4649
5135
  const serializeAws_restJson1SsmDocumentParameters = (input, context) => {
4650
5136
  return Object.entries(input).reduce((acc, [key, value]) => {
4651
5137
  if (value === null) {
@@ -4662,6 +5148,12 @@ const serializeAws_restJson1SsmDocuments = (input, context) => {
4662
5148
  return serializeAws_restJson1SsmDocument(entry, context);
4663
5149
  });
4664
5150
  };
5151
+ const serializeAws_restJson1SsmExternalParameter = (input, context) => {
5152
+ return SsmExternalParameter.visit(input, {
5153
+ dynamicPath: (value) => ({ dynamicPath: value }),
5154
+ _: (name, value) => ({ name: value }),
5155
+ });
5156
+ };
4665
5157
  const serializeAws_restJson1SsmParameterStoreParameter = (input, context) => {
4666
5158
  return {
4667
5159
  ...(input.parameterName != null && { parameterName: input.parameterName }),
@@ -4872,6 +5364,59 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
4872
5364
  resourceType: __expectString(output.resourceType),
4873
5365
  };
4874
5366
  };
5367
+ const deserializeAws_restJson1ExportErrorData = (output, context) => {
5368
+ return {
5369
+ rawError: __expectString(output.rawError),
5370
+ };
5371
+ };
5372
+ const deserializeAws_restJson1ExportErrors = (output, context) => {
5373
+ const retVal = (output || [])
5374
+ .filter((e) => e != null)
5375
+ .map((entry) => {
5376
+ if (entry === null) {
5377
+ return null;
5378
+ }
5379
+ return deserializeAws_restJson1ExportTaskError(entry, context);
5380
+ });
5381
+ return retVal;
5382
+ };
5383
+ const deserializeAws_restJson1ExportsList = (output, context) => {
5384
+ const retVal = (output || [])
5385
+ .filter((e) => e != null)
5386
+ .map((entry) => {
5387
+ if (entry === null) {
5388
+ return null;
5389
+ }
5390
+ return deserializeAws_restJson1ExportTask(entry, context);
5391
+ });
5392
+ return retVal;
5393
+ };
5394
+ const deserializeAws_restJson1ExportTask = (output, context) => {
5395
+ return {
5396
+ creationDateTime: __expectString(output.creationDateTime),
5397
+ endDateTime: __expectString(output.endDateTime),
5398
+ exportID: __expectString(output.exportID),
5399
+ progressPercentage: __limitedParseFloat32(output.progressPercentage),
5400
+ s3Bucket: __expectString(output.s3Bucket),
5401
+ s3BucketOwner: __expectString(output.s3BucketOwner),
5402
+ s3Key: __expectString(output.s3Key),
5403
+ status: __expectString(output.status),
5404
+ summary: output.summary != null ? deserializeAws_restJson1ExportTaskSummary(output.summary, context) : undefined,
5405
+ };
5406
+ };
5407
+ const deserializeAws_restJson1ExportTaskError = (output, context) => {
5408
+ return {
5409
+ errorData: output.errorData != null ? deserializeAws_restJson1ExportErrorData(output.errorData, context) : undefined,
5410
+ errorDateTime: __expectString(output.errorDateTime),
5411
+ };
5412
+ };
5413
+ const deserializeAws_restJson1ExportTaskSummary = (output, context) => {
5414
+ return {
5415
+ applicationsCount: __expectLong(output.applicationsCount),
5416
+ serversCount: __expectLong(output.serversCount),
5417
+ wavesCount: __expectLong(output.wavesCount),
5418
+ };
5419
+ };
4875
5420
  const deserializeAws_restJson1IdentificationHints = (output, context) => {
4876
5421
  return {
4877
5422
  awsInstanceID: __expectString(output.awsInstanceID),
@@ -4881,6 +5426,85 @@ const deserializeAws_restJson1IdentificationHints = (output, context) => {
4881
5426
  vmWareUuid: __expectString(output.vmWareUuid),
4882
5427
  };
4883
5428
  };
5429
+ const deserializeAws_restJson1ImportErrorData = (output, context) => {
5430
+ return {
5431
+ applicationID: __expectString(output.applicationID),
5432
+ ec2LaunchTemplateID: __expectString(output.ec2LaunchTemplateID),
5433
+ rawError: __expectString(output.rawError),
5434
+ rowNumber: __expectLong(output.rowNumber),
5435
+ sourceServerID: __expectString(output.sourceServerID),
5436
+ waveID: __expectString(output.waveID),
5437
+ };
5438
+ };
5439
+ const deserializeAws_restJson1ImportErrors = (output, context) => {
5440
+ const retVal = (output || [])
5441
+ .filter((e) => e != null)
5442
+ .map((entry) => {
5443
+ if (entry === null) {
5444
+ return null;
5445
+ }
5446
+ return deserializeAws_restJson1ImportTaskError(entry, context);
5447
+ });
5448
+ return retVal;
5449
+ };
5450
+ const deserializeAws_restJson1ImportList = (output, context) => {
5451
+ const retVal = (output || [])
5452
+ .filter((e) => e != null)
5453
+ .map((entry) => {
5454
+ if (entry === null) {
5455
+ return null;
5456
+ }
5457
+ return deserializeAws_restJson1ImportTask(entry, context);
5458
+ });
5459
+ return retVal;
5460
+ };
5461
+ const deserializeAws_restJson1ImportTask = (output, context) => {
5462
+ return {
5463
+ creationDateTime: __expectString(output.creationDateTime),
5464
+ endDateTime: __expectString(output.endDateTime),
5465
+ importID: __expectString(output.importID),
5466
+ progressPercentage: __limitedParseFloat32(output.progressPercentage),
5467
+ s3BucketSource: output.s3BucketSource != null
5468
+ ? deserializeAws_restJson1S3BucketSource(output.s3BucketSource, context)
5469
+ : undefined,
5470
+ status: __expectString(output.status),
5471
+ summary: output.summary != null ? deserializeAws_restJson1ImportTaskSummary(output.summary, context) : undefined,
5472
+ };
5473
+ };
5474
+ const deserializeAws_restJson1ImportTaskError = (output, context) => {
5475
+ return {
5476
+ errorData: output.errorData != null ? deserializeAws_restJson1ImportErrorData(output.errorData, context) : undefined,
5477
+ errorDateTime: __expectString(output.errorDateTime),
5478
+ errorType: __expectString(output.errorType),
5479
+ };
5480
+ };
5481
+ const deserializeAws_restJson1ImportTaskSummary = (output, context) => {
5482
+ return {
5483
+ applications: output.applications != null
5484
+ ? deserializeAws_restJson1ImportTaskSummaryApplications(output.applications, context)
5485
+ : undefined,
5486
+ servers: output.servers != null ? deserializeAws_restJson1ImportTaskSummaryServers(output.servers, context) : undefined,
5487
+ waves: output.waves != null ? deserializeAws_restJson1ImportTaskSummaryWaves(output.waves, context) : undefined,
5488
+ };
5489
+ };
5490
+ const deserializeAws_restJson1ImportTaskSummaryApplications = (output, context) => {
5491
+ return {
5492
+ createdCount: __expectLong(output.createdCount),
5493
+ modifiedCount: __expectLong(output.modifiedCount),
5494
+ };
5495
+ };
5496
+ const deserializeAws_restJson1ImportTaskSummaryServers = (output, context) => {
5497
+ return {
5498
+ createdCount: __expectLong(output.createdCount),
5499
+ modifiedCount: __expectLong(output.modifiedCount),
5500
+ };
5501
+ };
5502
+ const deserializeAws_restJson1ImportTaskSummaryWaves = (output, context) => {
5503
+ return {
5504
+ createdCount: __expectLong(output.createdCount),
5505
+ modifiedCount: __expectLong(output.modifiedCount),
5506
+ };
5507
+ };
4884
5508
  const deserializeAws_restJson1IPsList = (output, context) => {
4885
5509
  const retVal = (output || [])
4886
5510
  .filter((e) => e != null)
@@ -5214,6 +5838,13 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = (output, con
5214
5838
  });
5215
5839
  return retVal;
5216
5840
  };
5841
+ const deserializeAws_restJson1S3BucketSource = (output, context) => {
5842
+ return {
5843
+ s3Bucket: __expectString(output.s3Bucket),
5844
+ s3BucketOwner: __expectString(output.s3BucketOwner),
5845
+ s3Key: __expectString(output.s3Key),
5846
+ };
5847
+ };
5217
5848
  const deserializeAws_restJson1SourceProperties = (output, context) => {
5218
5849
  return {
5219
5850
  cpus: output.cpus != null ? deserializeAws_restJson1Cpus(output.cpus, context) : undefined,
@@ -5237,6 +5868,7 @@ const deserializeAws_restJson1SourceServer = (output, context) => {
5237
5868
  dataReplicationInfo: output.dataReplicationInfo != null
5238
5869
  ? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
5239
5870
  : undefined,
5871
+ fqdnForActionFramework: __expectString(output.fqdnForActionFramework),
5240
5872
  isArchived: __expectBoolean(output.isArchived),
5241
5873
  launchedInstance: output.launchedInstance != null
5242
5874
  ? deserializeAws_restJson1LaunchedInstance(output.launchedInstance, context)
@@ -5248,6 +5880,7 @@ const deserializeAws_restJson1SourceServer = (output, context) => {
5248
5880
  : undefined,
5249
5881
  sourceServerID: __expectString(output.sourceServerID),
5250
5882
  tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
5883
+ userProvidedID: __expectString(output.userProvidedID),
5251
5884
  vcenterClientID: __expectString(output.vcenterClientID),
5252
5885
  };
5253
5886
  };
@@ -5256,8 +5889,13 @@ const deserializeAws_restJson1SourceServerActionDocument = (output, context) =>
5256
5889
  actionID: __expectString(output.actionID),
5257
5890
  actionName: __expectString(output.actionName),
5258
5891
  active: __expectBoolean(output.active),
5892
+ category: __expectString(output.category),
5893
+ description: __expectString(output.description),
5259
5894
  documentIdentifier: __expectString(output.documentIdentifier),
5260
5895
  documentVersion: __expectString(output.documentVersion),
5896
+ externalParameters: output.externalParameters != null
5897
+ ? deserializeAws_restJson1SsmDocumentExternalParameters(output.externalParameters, context)
5898
+ : undefined,
5261
5899
  mustSucceedForCutover: __expectBoolean(output.mustSucceedForCutover),
5262
5900
  order: __expectInt32(output.order),
5263
5901
  parameters: output.parameters != null ? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context) : undefined,
@@ -5289,12 +5927,24 @@ const deserializeAws_restJson1SourceServersList = (output, context) => {
5289
5927
  const deserializeAws_restJson1SsmDocument = (output, context) => {
5290
5928
  return {
5291
5929
  actionName: __expectString(output.actionName),
5930
+ externalParameters: output.externalParameters != null
5931
+ ? deserializeAws_restJson1SsmDocumentExternalParameters(output.externalParameters, context)
5932
+ : undefined,
5292
5933
  mustSucceedForCutover: __expectBoolean(output.mustSucceedForCutover),
5293
5934
  parameters: output.parameters != null ? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context) : undefined,
5294
5935
  ssmDocumentName: __expectString(output.ssmDocumentName),
5295
5936
  timeoutSeconds: __expectInt32(output.timeoutSeconds),
5296
5937
  };
5297
5938
  };
5939
+ const deserializeAws_restJson1SsmDocumentExternalParameters = (output, context) => {
5940
+ return Object.entries(output).reduce((acc, [key, value]) => {
5941
+ if (value === null) {
5942
+ return acc;
5943
+ }
5944
+ acc[key] = deserializeAws_restJson1SsmExternalParameter(__expectUnion(value), context);
5945
+ return acc;
5946
+ }, {});
5947
+ };
5298
5948
  const deserializeAws_restJson1SsmDocumentParameters = (output, context) => {
5299
5949
  return Object.entries(output).reduce((acc, [key, value]) => {
5300
5950
  if (value === null) {
@@ -5315,6 +5965,12 @@ const deserializeAws_restJson1SsmDocuments = (output, context) => {
5315
5965
  });
5316
5966
  return retVal;
5317
5967
  };
5968
+ const deserializeAws_restJson1SsmExternalParameter = (output, context) => {
5969
+ if (__expectString(output.dynamicPath) !== undefined) {
5970
+ return { dynamicPath: __expectString(output.dynamicPath) };
5971
+ }
5972
+ return { $unknown: Object.entries(output)[0] };
5973
+ };
5318
5974
  const deserializeAws_restJson1SsmParameterStoreParameter = (output, context) => {
5319
5975
  return {
5320
5976
  parameterName: __expectString(output.parameterName),
@@ -5346,8 +6002,13 @@ const deserializeAws_restJson1TemplateActionDocument = (output, context) => {
5346
6002
  actionID: __expectString(output.actionID),
5347
6003
  actionName: __expectString(output.actionName),
5348
6004
  active: __expectBoolean(output.active),
6005
+ category: __expectString(output.category),
6006
+ description: __expectString(output.description),
5349
6007
  documentIdentifier: __expectString(output.documentIdentifier),
5350
6008
  documentVersion: __expectString(output.documentVersion),
6009
+ externalParameters: output.externalParameters != null
6010
+ ? deserializeAws_restJson1SsmDocumentExternalParameters(output.externalParameters, context)
6011
+ : undefined,
5351
6012
  mustSucceedForCutover: __expectBoolean(output.mustSucceedForCutover),
5352
6013
  operatingSystem: __expectString(output.operatingSystem),
5353
6014
  order: __expectInt32(output.order),