@aws-sdk/client-mgn 3.295.0 → 3.296.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 (66) 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 +42 -0
  35. package/dist-types/MgnClient.d.ts +8 -2
  36. package/dist-types/commands/ListExportErrorsCommand.d.ts +50 -0
  37. package/dist-types/commands/ListExportsCommand.d.ts +47 -0
  38. package/dist-types/commands/ListImportErrorsCommand.d.ts +50 -0
  39. package/dist-types/commands/ListImportsCommand.d.ts +50 -0
  40. package/dist-types/commands/StartExportCommand.d.ts +53 -0
  41. package/dist-types/commands/StartImportCommand.d.ts +59 -0
  42. package/dist-types/commands/index.d.ts +6 -0
  43. package/dist-types/models/models_0.d.ts +641 -4
  44. package/dist-types/pagination/ListExportErrorsPaginator.d.ts +4 -0
  45. package/dist-types/pagination/ListExportsPaginator.d.ts +4 -0
  46. package/dist-types/pagination/ListImportErrorsPaginator.d.ts +4 -0
  47. package/dist-types/pagination/ListImportsPaginator.d.ts +4 -0
  48. package/dist-types/pagination/index.d.ts +4 -0
  49. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  50. package/dist-types/ts3.4/Mgn.d.ts +102 -0
  51. package/dist-types/ts3.4/MgnClient.d.ts +36 -0
  52. package/dist-types/ts3.4/commands/ListExportErrorsCommand.d.ts +37 -0
  53. package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +34 -0
  54. package/dist-types/ts3.4/commands/ListImportErrorsCommand.d.ts +37 -0
  55. package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +34 -0
  56. package/dist-types/ts3.4/commands/StartExportCommand.d.ts +34 -0
  57. package/dist-types/ts3.4/commands/StartImportCommand.d.ts +34 -0
  58. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  59. package/dist-types/ts3.4/models/models_0.d.ts +268 -5
  60. package/dist-types/ts3.4/pagination/ListExportErrorsPaginator.d.ts +11 -0
  61. package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +11 -0
  62. package/dist-types/ts3.4/pagination/ListImportErrorsPaginator.d.ts +11 -0
  63. package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  65. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  66. package/package.json +32 -30
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1UpdateLaunchConfigurationCommand = exports.serializeAws_restJson1UpdateApplicationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1UnarchiveWaveCommand = exports.serializeAws_restJson1UnarchiveApplicationCommand = exports.serializeAws_restJson1TerminateTargetInstancesCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartTestCommand = exports.serializeAws_restJson1StartReplicationCommand = exports.serializeAws_restJson1StartCutoverCommand = exports.serializeAws_restJson1RetryDataReplicationCommand = exports.serializeAws_restJson1RemoveTemplateActionCommand = exports.serializeAws_restJson1RemoveSourceServerActionCommand = exports.serializeAws_restJson1PutTemplateActionCommand = exports.serializeAws_restJson1PutSourceServerActionCommand = exports.serializeAws_restJson1MarkAsArchivedCommand = exports.serializeAws_restJson1ListWavesCommand = exports.serializeAws_restJson1ListTemplateActionsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSourceServerActionsCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1InitializeServiceCommand = exports.serializeAws_restJson1GetReplicationConfigurationCommand = exports.serializeAws_restJson1GetLaunchConfigurationCommand = exports.serializeAws_restJson1FinalizeCutoverCommand = exports.serializeAws_restJson1DisconnectFromServiceCommand = exports.serializeAws_restJson1DisassociateSourceServersCommand = exports.serializeAws_restJson1DisassociateApplicationsCommand = exports.serializeAws_restJson1DescribeVcenterClientsCommand = exports.serializeAws_restJson1DescribeSourceServersCommand = exports.serializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = exports.serializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = exports.serializeAws_restJson1DescribeJobsCommand = exports.serializeAws_restJson1DescribeJobLogItemsCommand = exports.serializeAws_restJson1DeleteWaveCommand = exports.serializeAws_restJson1DeleteVcenterClientCommand = exports.serializeAws_restJson1DeleteSourceServerCommand = exports.serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = exports.serializeAws_restJson1DeleteJobCommand = exports.serializeAws_restJson1DeleteApplicationCommand = exports.serializeAws_restJson1CreateWaveCommand = exports.serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1CreateLaunchConfigurationTemplateCommand = exports.serializeAws_restJson1CreateApplicationCommand = exports.serializeAws_restJson1ChangeServerLifeCycleStateCommand = exports.serializeAws_restJson1AssociateSourceServersCommand = exports.serializeAws_restJson1AssociateApplicationsCommand = exports.serializeAws_restJson1ArchiveWaveCommand = exports.serializeAws_restJson1ArchiveApplicationCommand = void 0;
4
- exports.deserializeAws_restJson1TerminateTargetInstancesCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartTestCommand = exports.deserializeAws_restJson1StartReplicationCommand = exports.deserializeAws_restJson1StartCutoverCommand = exports.deserializeAws_restJson1RetryDataReplicationCommand = exports.deserializeAws_restJson1RemoveTemplateActionCommand = exports.deserializeAws_restJson1RemoveSourceServerActionCommand = exports.deserializeAws_restJson1PutTemplateActionCommand = exports.deserializeAws_restJson1PutSourceServerActionCommand = exports.deserializeAws_restJson1MarkAsArchivedCommand = exports.deserializeAws_restJson1ListWavesCommand = exports.deserializeAws_restJson1ListTemplateActionsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSourceServerActionsCommand = exports.deserializeAws_restJson1ListApplicationsCommand = exports.deserializeAws_restJson1InitializeServiceCommand = exports.deserializeAws_restJson1GetReplicationConfigurationCommand = exports.deserializeAws_restJson1GetLaunchConfigurationCommand = exports.deserializeAws_restJson1FinalizeCutoverCommand = exports.deserializeAws_restJson1DisconnectFromServiceCommand = exports.deserializeAws_restJson1DisassociateSourceServersCommand = exports.deserializeAws_restJson1DisassociateApplicationsCommand = exports.deserializeAws_restJson1DescribeVcenterClientsCommand = exports.deserializeAws_restJson1DescribeSourceServersCommand = exports.deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = exports.deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = exports.deserializeAws_restJson1DescribeJobsCommand = exports.deserializeAws_restJson1DescribeJobLogItemsCommand = exports.deserializeAws_restJson1DeleteWaveCommand = exports.deserializeAws_restJson1DeleteVcenterClientCommand = exports.deserializeAws_restJson1DeleteSourceServerCommand = exports.deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = exports.deserializeAws_restJson1DeleteJobCommand = exports.deserializeAws_restJson1DeleteApplicationCommand = exports.deserializeAws_restJson1CreateWaveCommand = exports.deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand = exports.deserializeAws_restJson1CreateApplicationCommand = exports.deserializeAws_restJson1ChangeServerLifeCycleStateCommand = exports.deserializeAws_restJson1AssociateSourceServersCommand = exports.deserializeAws_restJson1AssociateApplicationsCommand = exports.deserializeAws_restJson1ArchiveWaveCommand = exports.deserializeAws_restJson1ArchiveApplicationCommand = exports.serializeAws_restJson1UpdateWaveCommand = exports.serializeAws_restJson1UpdateSourceServerReplicationTypeCommand = exports.serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1UpdateReplicationConfigurationCommand = exports.serializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = void 0;
5
- exports.deserializeAws_restJson1UpdateWaveCommand = exports.deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = exports.deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1UpdateReplicationConfigurationCommand = exports.deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = exports.deserializeAws_restJson1UpdateLaunchConfigurationCommand = exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1UnarchiveWaveCommand = exports.deserializeAws_restJson1UnarchiveApplicationCommand = void 0;
3
+ exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartTestCommand = exports.serializeAws_restJson1StartReplicationCommand = exports.serializeAws_restJson1StartImportCommand = exports.serializeAws_restJson1StartExportCommand = exports.serializeAws_restJson1StartCutoverCommand = exports.serializeAws_restJson1RetryDataReplicationCommand = exports.serializeAws_restJson1RemoveTemplateActionCommand = exports.serializeAws_restJson1RemoveSourceServerActionCommand = exports.serializeAws_restJson1PutTemplateActionCommand = exports.serializeAws_restJson1PutSourceServerActionCommand = exports.serializeAws_restJson1MarkAsArchivedCommand = exports.serializeAws_restJson1ListWavesCommand = exports.serializeAws_restJson1ListTemplateActionsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSourceServerActionsCommand = exports.serializeAws_restJson1ListImportsCommand = exports.serializeAws_restJson1ListImportErrorsCommand = exports.serializeAws_restJson1ListExportsCommand = exports.serializeAws_restJson1ListExportErrorsCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1InitializeServiceCommand = exports.serializeAws_restJson1GetReplicationConfigurationCommand = exports.serializeAws_restJson1GetLaunchConfigurationCommand = exports.serializeAws_restJson1FinalizeCutoverCommand = exports.serializeAws_restJson1DisconnectFromServiceCommand = exports.serializeAws_restJson1DisassociateSourceServersCommand = exports.serializeAws_restJson1DisassociateApplicationsCommand = exports.serializeAws_restJson1DescribeVcenterClientsCommand = exports.serializeAws_restJson1DescribeSourceServersCommand = exports.serializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = exports.serializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = exports.serializeAws_restJson1DescribeJobsCommand = exports.serializeAws_restJson1DescribeJobLogItemsCommand = exports.serializeAws_restJson1DeleteWaveCommand = exports.serializeAws_restJson1DeleteVcenterClientCommand = exports.serializeAws_restJson1DeleteSourceServerCommand = exports.serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = exports.serializeAws_restJson1DeleteJobCommand = exports.serializeAws_restJson1DeleteApplicationCommand = exports.serializeAws_restJson1CreateWaveCommand = exports.serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1CreateLaunchConfigurationTemplateCommand = exports.serializeAws_restJson1CreateApplicationCommand = exports.serializeAws_restJson1ChangeServerLifeCycleStateCommand = exports.serializeAws_restJson1AssociateSourceServersCommand = exports.serializeAws_restJson1AssociateApplicationsCommand = exports.serializeAws_restJson1ArchiveWaveCommand = exports.serializeAws_restJson1ArchiveApplicationCommand = void 0;
4
+ exports.deserializeAws_restJson1MarkAsArchivedCommand = exports.deserializeAws_restJson1ListWavesCommand = exports.deserializeAws_restJson1ListTemplateActionsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSourceServerActionsCommand = exports.deserializeAws_restJson1ListImportsCommand = exports.deserializeAws_restJson1ListImportErrorsCommand = exports.deserializeAws_restJson1ListExportsCommand = exports.deserializeAws_restJson1ListExportErrorsCommand = exports.deserializeAws_restJson1ListApplicationsCommand = exports.deserializeAws_restJson1InitializeServiceCommand = exports.deserializeAws_restJson1GetReplicationConfigurationCommand = exports.deserializeAws_restJson1GetLaunchConfigurationCommand = exports.deserializeAws_restJson1FinalizeCutoverCommand = exports.deserializeAws_restJson1DisconnectFromServiceCommand = exports.deserializeAws_restJson1DisassociateSourceServersCommand = exports.deserializeAws_restJson1DisassociateApplicationsCommand = exports.deserializeAws_restJson1DescribeVcenterClientsCommand = exports.deserializeAws_restJson1DescribeSourceServersCommand = exports.deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = exports.deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = exports.deserializeAws_restJson1DescribeJobsCommand = exports.deserializeAws_restJson1DescribeJobLogItemsCommand = exports.deserializeAws_restJson1DeleteWaveCommand = exports.deserializeAws_restJson1DeleteVcenterClientCommand = exports.deserializeAws_restJson1DeleteSourceServerCommand = exports.deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = exports.deserializeAws_restJson1DeleteJobCommand = exports.deserializeAws_restJson1DeleteApplicationCommand = exports.deserializeAws_restJson1CreateWaveCommand = exports.deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand = exports.deserializeAws_restJson1CreateApplicationCommand = exports.deserializeAws_restJson1ChangeServerLifeCycleStateCommand = exports.deserializeAws_restJson1AssociateSourceServersCommand = exports.deserializeAws_restJson1AssociateApplicationsCommand = exports.deserializeAws_restJson1ArchiveWaveCommand = exports.deserializeAws_restJson1ArchiveApplicationCommand = exports.serializeAws_restJson1UpdateWaveCommand = exports.serializeAws_restJson1UpdateSourceServerReplicationTypeCommand = exports.serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1UpdateReplicationConfigurationCommand = exports.serializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = exports.serializeAws_restJson1UpdateLaunchConfigurationCommand = exports.serializeAws_restJson1UpdateApplicationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1UnarchiveWaveCommand = exports.serializeAws_restJson1UnarchiveApplicationCommand = exports.serializeAws_restJson1TerminateTargetInstancesCommand = void 0;
5
+ exports.deserializeAws_restJson1UpdateWaveCommand = exports.deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = exports.deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1UpdateReplicationConfigurationCommand = exports.deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = exports.deserializeAws_restJson1UpdateLaunchConfigurationCommand = exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1UnarchiveWaveCommand = exports.deserializeAws_restJson1UnarchiveApplicationCommand = exports.deserializeAws_restJson1TerminateTargetInstancesCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartTestCommand = exports.deserializeAws_restJson1StartReplicationCommand = exports.deserializeAws_restJson1StartImportCommand = exports.deserializeAws_restJson1StartExportCommand = exports.deserializeAws_restJson1StartCutoverCommand = exports.deserializeAws_restJson1RetryDataReplicationCommand = exports.deserializeAws_restJson1RemoveTemplateActionCommand = exports.deserializeAws_restJson1RemoveSourceServerActionCommand = exports.deserializeAws_restJson1PutTemplateActionCommand = exports.deserializeAws_restJson1PutSourceServerActionCommand = void 0;
6
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
+ const uuid_1 = require("uuid");
8
9
  const MgnServiceException_1 = require("../models/MgnServiceException");
9
10
  const models_0_1 = require("../models/models_0");
10
11
  const serializeAws_restJson1ArchiveApplicationCommand = async (input, context) => {
@@ -724,6 +725,98 @@ const serializeAws_restJson1ListApplicationsCommand = async (input, context) =>
724
725
  });
725
726
  };
726
727
  exports.serializeAws_restJson1ListApplicationsCommand = serializeAws_restJson1ListApplicationsCommand;
728
+ const serializeAws_restJson1ListExportErrorsCommand = async (input, context) => {
729
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
730
+ const headers = {
731
+ "content-type": "application/json",
732
+ };
733
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListExportErrors";
734
+ let body;
735
+ body = JSON.stringify({
736
+ ...(input.exportID != null && { exportID: input.exportID }),
737
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
738
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
739
+ });
740
+ return new protocol_http_1.HttpRequest({
741
+ protocol,
742
+ hostname,
743
+ port,
744
+ method: "POST",
745
+ headers,
746
+ path: resolvedPath,
747
+ body,
748
+ });
749
+ };
750
+ exports.serializeAws_restJson1ListExportErrorsCommand = serializeAws_restJson1ListExportErrorsCommand;
751
+ const serializeAws_restJson1ListExportsCommand = async (input, context) => {
752
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
753
+ const headers = {
754
+ "content-type": "application/json",
755
+ };
756
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListExports";
757
+ let body;
758
+ body = JSON.stringify({
759
+ ...(input.filters != null && { filters: serializeAws_restJson1ListExportsRequestFilters(input.filters, context) }),
760
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
761
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
762
+ });
763
+ return new protocol_http_1.HttpRequest({
764
+ protocol,
765
+ hostname,
766
+ port,
767
+ method: "POST",
768
+ headers,
769
+ path: resolvedPath,
770
+ body,
771
+ });
772
+ };
773
+ exports.serializeAws_restJson1ListExportsCommand = serializeAws_restJson1ListExportsCommand;
774
+ const serializeAws_restJson1ListImportErrorsCommand = async (input, context) => {
775
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
776
+ const headers = {
777
+ "content-type": "application/json",
778
+ };
779
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImportErrors";
780
+ let body;
781
+ body = JSON.stringify({
782
+ ...(input.importID != null && { importID: input.importID }),
783
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
784
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
785
+ });
786
+ return new protocol_http_1.HttpRequest({
787
+ protocol,
788
+ hostname,
789
+ port,
790
+ method: "POST",
791
+ headers,
792
+ path: resolvedPath,
793
+ body,
794
+ });
795
+ };
796
+ exports.serializeAws_restJson1ListImportErrorsCommand = serializeAws_restJson1ListImportErrorsCommand;
797
+ const serializeAws_restJson1ListImportsCommand = async (input, context) => {
798
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
799
+ const headers = {
800
+ "content-type": "application/json",
801
+ };
802
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImports";
803
+ let body;
804
+ body = JSON.stringify({
805
+ ...(input.filters != null && { filters: serializeAws_restJson1ListImportsRequestFilters(input.filters, context) }),
806
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
807
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
808
+ });
809
+ return new protocol_http_1.HttpRequest({
810
+ protocol,
811
+ hostname,
812
+ port,
813
+ method: "POST",
814
+ headers,
815
+ path: resolvedPath,
816
+ body,
817
+ });
818
+ };
819
+ exports.serializeAws_restJson1ListImportsCommand = serializeAws_restJson1ListImportsCommand;
727
820
  const serializeAws_restJson1ListSourceServerActionsCommand = async (input, context) => {
728
821
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
729
822
  const headers = {
@@ -850,8 +943,13 @@ const serializeAws_restJson1PutSourceServerActionCommand = async (input, context
850
943
  ...(input.actionID != null && { actionID: input.actionID }),
851
944
  ...(input.actionName != null && { actionName: input.actionName }),
852
945
  ...(input.active != null && { active: input.active }),
946
+ ...(input.category != null && { category: input.category }),
947
+ ...(input.description != null && { description: input.description }),
853
948
  ...(input.documentIdentifier != null && { documentIdentifier: input.documentIdentifier }),
854
949
  ...(input.documentVersion != null && { documentVersion: input.documentVersion }),
950
+ ...(input.externalParameters != null && {
951
+ externalParameters: serializeAws_restJson1SsmDocumentExternalParameters(input.externalParameters, context),
952
+ }),
855
953
  ...(input.mustSucceedForCutover != null && { mustSucceedForCutover: input.mustSucceedForCutover }),
856
954
  ...(input.order != null && { order: input.order }),
857
955
  ...(input.parameters != null && {
@@ -882,8 +980,13 @@ const serializeAws_restJson1PutTemplateActionCommand = async (input, context) =>
882
980
  ...(input.actionID != null && { actionID: input.actionID }),
883
981
  ...(input.actionName != null && { actionName: input.actionName }),
884
982
  ...(input.active != null && { active: input.active }),
983
+ ...(input.category != null && { category: input.category }),
984
+ ...(input.description != null && { description: input.description }),
885
985
  ...(input.documentIdentifier != null && { documentIdentifier: input.documentIdentifier }),
886
986
  ...(input.documentVersion != null && { documentVersion: input.documentVersion }),
987
+ ...(input.externalParameters != null && {
988
+ externalParameters: serializeAws_restJson1SsmDocumentExternalParameters(input.externalParameters, context),
989
+ }),
887
990
  ...(input.launchConfigurationTemplateID != null && {
888
991
  launchConfigurationTemplateID: input.launchConfigurationTemplateID,
889
992
  }),
@@ -997,6 +1100,53 @@ const serializeAws_restJson1StartCutoverCommand = async (input, context) => {
997
1100
  });
998
1101
  };
999
1102
  exports.serializeAws_restJson1StartCutoverCommand = serializeAws_restJson1StartCutoverCommand;
1103
+ const serializeAws_restJson1StartExportCommand = async (input, context) => {
1104
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1105
+ const headers = {
1106
+ "content-type": "application/json",
1107
+ };
1108
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartExport";
1109
+ let body;
1110
+ body = JSON.stringify({
1111
+ ...(input.s3Bucket != null && { s3Bucket: input.s3Bucket }),
1112
+ ...(input.s3BucketOwner != null && { s3BucketOwner: input.s3BucketOwner }),
1113
+ ...(input.s3Key != null && { s3Key: input.s3Key }),
1114
+ });
1115
+ return new protocol_http_1.HttpRequest({
1116
+ protocol,
1117
+ hostname,
1118
+ port,
1119
+ method: "POST",
1120
+ headers,
1121
+ path: resolvedPath,
1122
+ body,
1123
+ });
1124
+ };
1125
+ exports.serializeAws_restJson1StartExportCommand = serializeAws_restJson1StartExportCommand;
1126
+ const serializeAws_restJson1StartImportCommand = async (input, context) => {
1127
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1128
+ const headers = {
1129
+ "content-type": "application/json",
1130
+ };
1131
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartImport";
1132
+ let body;
1133
+ body = JSON.stringify({
1134
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
1135
+ ...(input.s3BucketSource != null && {
1136
+ s3BucketSource: serializeAws_restJson1S3BucketSource(input.s3BucketSource, context),
1137
+ }),
1138
+ });
1139
+ return new protocol_http_1.HttpRequest({
1140
+ protocol,
1141
+ hostname,
1142
+ port,
1143
+ method: "POST",
1144
+ headers,
1145
+ path: resolvedPath,
1146
+ body,
1147
+ });
1148
+ };
1149
+ exports.serializeAws_restJson1StartImportCommand = serializeAws_restJson1StartImportCommand;
1000
1150
  const serializeAws_restJson1StartReplicationCommand = async (input, context) => {
1001
1151
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1002
1152
  const headers = {
@@ -1632,6 +1782,9 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (output,
1632
1782
  if (data.dataReplicationInfo != null) {
1633
1783
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
1634
1784
  }
1785
+ if (data.fqdnForActionFramework != null) {
1786
+ contents.fqdnForActionFramework = (0, smithy_client_1.expectString)(data.fqdnForActionFramework);
1787
+ }
1635
1788
  if (data.isArchived != null) {
1636
1789
  contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
1637
1790
  }
@@ -1653,6 +1806,9 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (output,
1653
1806
  if (data.tags != null) {
1654
1807
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1655
1808
  }
1809
+ if (data.userProvidedID != null) {
1810
+ contents.userProvidedID = (0, smithy_client_1.expectString)(data.userProvidedID);
1811
+ }
1656
1812
  if (data.vcenterClientID != null) {
1657
1813
  contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
1658
1814
  }
@@ -2588,6 +2744,9 @@ const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, cont
2588
2744
  if (data.dataReplicationInfo != null) {
2589
2745
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
2590
2746
  }
2747
+ if (data.fqdnForActionFramework != null) {
2748
+ contents.fqdnForActionFramework = (0, smithy_client_1.expectString)(data.fqdnForActionFramework);
2749
+ }
2591
2750
  if (data.isArchived != null) {
2592
2751
  contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
2593
2752
  }
@@ -2609,6 +2768,9 @@ const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, cont
2609
2768
  if (data.tags != null) {
2610
2769
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2611
2770
  }
2771
+ if (data.userProvidedID != null) {
2772
+ contents.userProvidedID = (0, smithy_client_1.expectString)(data.userProvidedID);
2773
+ }
2612
2774
  if (data.vcenterClientID != null) {
2613
2775
  contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
2614
2776
  }
@@ -2658,6 +2820,9 @@ const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) =
2658
2820
  if (data.dataReplicationInfo != null) {
2659
2821
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
2660
2822
  }
2823
+ if (data.fqdnForActionFramework != null) {
2824
+ contents.fqdnForActionFramework = (0, smithy_client_1.expectString)(data.fqdnForActionFramework);
2825
+ }
2661
2826
  if (data.isArchived != null) {
2662
2827
  contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
2663
2828
  }
@@ -2679,6 +2844,9 @@ const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) =
2679
2844
  if (data.tags != null) {
2680
2845
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2681
2846
  }
2847
+ if (data.userProvidedID != null) {
2848
+ contents.userProvidedID = (0, smithy_client_1.expectString)(data.userProvidedID);
2849
+ }
2682
2850
  if (data.vcenterClientID != null) {
2683
2851
  contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
2684
2852
  }
@@ -2934,6 +3102,163 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
2934
3102
  });
2935
3103
  }
2936
3104
  };
3105
+ const deserializeAws_restJson1ListExportErrorsCommand = async (output, context) => {
3106
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3107
+ return deserializeAws_restJson1ListExportErrorsCommandError(output, context);
3108
+ }
3109
+ const contents = map({
3110
+ $metadata: deserializeMetadata(output),
3111
+ });
3112
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3113
+ if (data.items != null) {
3114
+ contents.items = deserializeAws_restJson1ExportErrors(data.items, context);
3115
+ }
3116
+ if (data.nextToken != null) {
3117
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3118
+ }
3119
+ return contents;
3120
+ };
3121
+ exports.deserializeAws_restJson1ListExportErrorsCommand = deserializeAws_restJson1ListExportErrorsCommand;
3122
+ const deserializeAws_restJson1ListExportErrorsCommandError = async (output, context) => {
3123
+ const parsedOutput = {
3124
+ ...output,
3125
+ body: await parseErrorBody(output.body, context),
3126
+ };
3127
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3128
+ switch (errorCode) {
3129
+ case "UninitializedAccountException":
3130
+ case "com.amazonaws.mgn#UninitializedAccountException":
3131
+ throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
3132
+ case "ValidationException":
3133
+ case "com.amazonaws.mgn#ValidationException":
3134
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3135
+ default:
3136
+ const parsedBody = parsedOutput.body;
3137
+ (0, smithy_client_1.throwDefaultError)({
3138
+ output,
3139
+ parsedBody,
3140
+ exceptionCtor: MgnServiceException_1.MgnServiceException,
3141
+ errorCode,
3142
+ });
3143
+ }
3144
+ };
3145
+ const deserializeAws_restJson1ListExportsCommand = async (output, context) => {
3146
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3147
+ return deserializeAws_restJson1ListExportsCommandError(output, context);
3148
+ }
3149
+ const contents = map({
3150
+ $metadata: deserializeMetadata(output),
3151
+ });
3152
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3153
+ if (data.items != null) {
3154
+ contents.items = deserializeAws_restJson1ExportsList(data.items, context);
3155
+ }
3156
+ if (data.nextToken != null) {
3157
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3158
+ }
3159
+ return contents;
3160
+ };
3161
+ exports.deserializeAws_restJson1ListExportsCommand = deserializeAws_restJson1ListExportsCommand;
3162
+ const deserializeAws_restJson1ListExportsCommandError = async (output, context) => {
3163
+ const parsedOutput = {
3164
+ ...output,
3165
+ body: await parseErrorBody(output.body, context),
3166
+ };
3167
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3168
+ switch (errorCode) {
3169
+ case "UninitializedAccountException":
3170
+ case "com.amazonaws.mgn#UninitializedAccountException":
3171
+ throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
3172
+ default:
3173
+ const parsedBody = parsedOutput.body;
3174
+ (0, smithy_client_1.throwDefaultError)({
3175
+ output,
3176
+ parsedBody,
3177
+ exceptionCtor: MgnServiceException_1.MgnServiceException,
3178
+ errorCode,
3179
+ });
3180
+ }
3181
+ };
3182
+ const deserializeAws_restJson1ListImportErrorsCommand = async (output, context) => {
3183
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3184
+ return deserializeAws_restJson1ListImportErrorsCommandError(output, context);
3185
+ }
3186
+ const contents = map({
3187
+ $metadata: deserializeMetadata(output),
3188
+ });
3189
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3190
+ if (data.items != null) {
3191
+ contents.items = deserializeAws_restJson1ImportErrors(data.items, context);
3192
+ }
3193
+ if (data.nextToken != null) {
3194
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3195
+ }
3196
+ return contents;
3197
+ };
3198
+ exports.deserializeAws_restJson1ListImportErrorsCommand = deserializeAws_restJson1ListImportErrorsCommand;
3199
+ const deserializeAws_restJson1ListImportErrorsCommandError = async (output, context) => {
3200
+ const parsedOutput = {
3201
+ ...output,
3202
+ body: await parseErrorBody(output.body, context),
3203
+ };
3204
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3205
+ switch (errorCode) {
3206
+ case "UninitializedAccountException":
3207
+ case "com.amazonaws.mgn#UninitializedAccountException":
3208
+ throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
3209
+ case "ValidationException":
3210
+ case "com.amazonaws.mgn#ValidationException":
3211
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3212
+ default:
3213
+ const parsedBody = parsedOutput.body;
3214
+ (0, smithy_client_1.throwDefaultError)({
3215
+ output,
3216
+ parsedBody,
3217
+ exceptionCtor: MgnServiceException_1.MgnServiceException,
3218
+ errorCode,
3219
+ });
3220
+ }
3221
+ };
3222
+ const deserializeAws_restJson1ListImportsCommand = async (output, context) => {
3223
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3224
+ return deserializeAws_restJson1ListImportsCommandError(output, context);
3225
+ }
3226
+ const contents = map({
3227
+ $metadata: deserializeMetadata(output),
3228
+ });
3229
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3230
+ if (data.items != null) {
3231
+ contents.items = deserializeAws_restJson1ImportList(data.items, context);
3232
+ }
3233
+ if (data.nextToken != null) {
3234
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3235
+ }
3236
+ return contents;
3237
+ };
3238
+ exports.deserializeAws_restJson1ListImportsCommand = deserializeAws_restJson1ListImportsCommand;
3239
+ const deserializeAws_restJson1ListImportsCommandError = async (output, context) => {
3240
+ const parsedOutput = {
3241
+ ...output,
3242
+ body: await parseErrorBody(output.body, context),
3243
+ };
3244
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3245
+ switch (errorCode) {
3246
+ case "UninitializedAccountException":
3247
+ case "com.amazonaws.mgn#UninitializedAccountException":
3248
+ throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
3249
+ case "ValidationException":
3250
+ case "com.amazonaws.mgn#ValidationException":
3251
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3252
+ default:
3253
+ const parsedBody = parsedOutput.body;
3254
+ (0, smithy_client_1.throwDefaultError)({
3255
+ output,
3256
+ parsedBody,
3257
+ exceptionCtor: MgnServiceException_1.MgnServiceException,
3258
+ errorCode,
3259
+ });
3260
+ }
3261
+ };
2937
3262
  const deserializeAws_restJson1ListSourceServerActionsCommand = async (output, context) => {
2938
3263
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2939
3264
  return deserializeAws_restJson1ListSourceServerActionsCommandError(output, context);
@@ -3114,6 +3439,9 @@ const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) =>
3114
3439
  if (data.dataReplicationInfo != null) {
3115
3440
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
3116
3441
  }
3442
+ if (data.fqdnForActionFramework != null) {
3443
+ contents.fqdnForActionFramework = (0, smithy_client_1.expectString)(data.fqdnForActionFramework);
3444
+ }
3117
3445
  if (data.isArchived != null) {
3118
3446
  contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
3119
3447
  }
@@ -3135,6 +3463,9 @@ const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) =>
3135
3463
  if (data.tags != null) {
3136
3464
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
3137
3465
  }
3466
+ if (data.userProvidedID != null) {
3467
+ contents.userProvidedID = (0, smithy_client_1.expectString)(data.userProvidedID);
3468
+ }
3138
3469
  if (data.vcenterClientID != null) {
3139
3470
  contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
3140
3471
  }
@@ -3184,12 +3515,21 @@ const deserializeAws_restJson1PutSourceServerActionCommand = async (output, cont
3184
3515
  if (data.active != null) {
3185
3516
  contents.active = (0, smithy_client_1.expectBoolean)(data.active);
3186
3517
  }
3518
+ if (data.category != null) {
3519
+ contents.category = (0, smithy_client_1.expectString)(data.category);
3520
+ }
3521
+ if (data.description != null) {
3522
+ contents.description = (0, smithy_client_1.expectString)(data.description);
3523
+ }
3187
3524
  if (data.documentIdentifier != null) {
3188
3525
  contents.documentIdentifier = (0, smithy_client_1.expectString)(data.documentIdentifier);
3189
3526
  }
3190
3527
  if (data.documentVersion != null) {
3191
3528
  contents.documentVersion = (0, smithy_client_1.expectString)(data.documentVersion);
3192
3529
  }
3530
+ if (data.externalParameters != null) {
3531
+ contents.externalParameters = deserializeAws_restJson1SsmDocumentExternalParameters(data.externalParameters, context);
3532
+ }
3193
3533
  if (data.mustSucceedForCutover != null) {
3194
3534
  contents.mustSucceedForCutover = (0, smithy_client_1.expectBoolean)(data.mustSucceedForCutover);
3195
3535
  }
@@ -3251,12 +3591,21 @@ const deserializeAws_restJson1PutTemplateActionCommand = async (output, context)
3251
3591
  if (data.active != null) {
3252
3592
  contents.active = (0, smithy_client_1.expectBoolean)(data.active);
3253
3593
  }
3594
+ if (data.category != null) {
3595
+ contents.category = (0, smithy_client_1.expectString)(data.category);
3596
+ }
3597
+ if (data.description != null) {
3598
+ contents.description = (0, smithy_client_1.expectString)(data.description);
3599
+ }
3254
3600
  if (data.documentIdentifier != null) {
3255
3601
  contents.documentIdentifier = (0, smithy_client_1.expectString)(data.documentIdentifier);
3256
3602
  }
3257
3603
  if (data.documentVersion != null) {
3258
3604
  contents.documentVersion = (0, smithy_client_1.expectString)(data.documentVersion);
3259
3605
  }
3606
+ if (data.externalParameters != null) {
3607
+ contents.externalParameters = deserializeAws_restJson1SsmDocumentExternalParameters(data.externalParameters, context);
3608
+ }
3260
3609
  if (data.mustSucceedForCutover != null) {
3261
3610
  contents.mustSucceedForCutover = (0, smithy_client_1.expectBoolean)(data.mustSucceedForCutover);
3262
3611
  }
@@ -3395,6 +3744,9 @@ const deserializeAws_restJson1RetryDataReplicationCommand = async (output, conte
3395
3744
  if (data.dataReplicationInfo != null) {
3396
3745
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
3397
3746
  }
3747
+ if (data.fqdnForActionFramework != null) {
3748
+ contents.fqdnForActionFramework = (0, smithy_client_1.expectString)(data.fqdnForActionFramework);
3749
+ }
3398
3750
  if (data.isArchived != null) {
3399
3751
  contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
3400
3752
  }
@@ -3416,6 +3768,9 @@ const deserializeAws_restJson1RetryDataReplicationCommand = async (output, conte
3416
3768
  if (data.tags != null) {
3417
3769
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
3418
3770
  }
3771
+ if (data.userProvidedID != null) {
3772
+ contents.userProvidedID = (0, smithy_client_1.expectString)(data.userProvidedID);
3773
+ }
3419
3774
  if (data.vcenterClientID != null) {
3420
3775
  contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
3421
3776
  }
@@ -3488,6 +3843,92 @@ const deserializeAws_restJson1StartCutoverCommandError = async (output, context)
3488
3843
  });
3489
3844
  }
3490
3845
  };
3846
+ const deserializeAws_restJson1StartExportCommand = async (output, context) => {
3847
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
3848
+ return deserializeAws_restJson1StartExportCommandError(output, context);
3849
+ }
3850
+ const contents = map({
3851
+ $metadata: deserializeMetadata(output),
3852
+ });
3853
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3854
+ if (data.exportTask != null) {
3855
+ contents.exportTask = deserializeAws_restJson1ExportTask(data.exportTask, context);
3856
+ }
3857
+ return contents;
3858
+ };
3859
+ exports.deserializeAws_restJson1StartExportCommand = deserializeAws_restJson1StartExportCommand;
3860
+ const deserializeAws_restJson1StartExportCommandError = async (output, context) => {
3861
+ const parsedOutput = {
3862
+ ...output,
3863
+ body: await parseErrorBody(output.body, context),
3864
+ };
3865
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3866
+ switch (errorCode) {
3867
+ case "ServiceQuotaExceededException":
3868
+ case "com.amazonaws.mgn#ServiceQuotaExceededException":
3869
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
3870
+ case "UninitializedAccountException":
3871
+ case "com.amazonaws.mgn#UninitializedAccountException":
3872
+ throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
3873
+ case "ValidationException":
3874
+ case "com.amazonaws.mgn#ValidationException":
3875
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3876
+ default:
3877
+ const parsedBody = parsedOutput.body;
3878
+ (0, smithy_client_1.throwDefaultError)({
3879
+ output,
3880
+ parsedBody,
3881
+ exceptionCtor: MgnServiceException_1.MgnServiceException,
3882
+ errorCode,
3883
+ });
3884
+ }
3885
+ };
3886
+ const deserializeAws_restJson1StartImportCommand = async (output, context) => {
3887
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
3888
+ return deserializeAws_restJson1StartImportCommandError(output, context);
3889
+ }
3890
+ const contents = map({
3891
+ $metadata: deserializeMetadata(output),
3892
+ });
3893
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3894
+ if (data.importTask != null) {
3895
+ contents.importTask = deserializeAws_restJson1ImportTask(data.importTask, context);
3896
+ }
3897
+ return contents;
3898
+ };
3899
+ exports.deserializeAws_restJson1StartImportCommand = deserializeAws_restJson1StartImportCommand;
3900
+ const deserializeAws_restJson1StartImportCommandError = async (output, context) => {
3901
+ const parsedOutput = {
3902
+ ...output,
3903
+ body: await parseErrorBody(output.body, context),
3904
+ };
3905
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3906
+ switch (errorCode) {
3907
+ case "ConflictException":
3908
+ case "com.amazonaws.mgn#ConflictException":
3909
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3910
+ case "ResourceNotFoundException":
3911
+ case "com.amazonaws.mgn#ResourceNotFoundException":
3912
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3913
+ case "ServiceQuotaExceededException":
3914
+ case "com.amazonaws.mgn#ServiceQuotaExceededException":
3915
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
3916
+ case "UninitializedAccountException":
3917
+ case "com.amazonaws.mgn#UninitializedAccountException":
3918
+ throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
3919
+ case "ValidationException":
3920
+ case "com.amazonaws.mgn#ValidationException":
3921
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3922
+ default:
3923
+ const parsedBody = parsedOutput.body;
3924
+ (0, smithy_client_1.throwDefaultError)({
3925
+ output,
3926
+ parsedBody,
3927
+ exceptionCtor: MgnServiceException_1.MgnServiceException,
3928
+ errorCode,
3929
+ });
3930
+ }
3931
+ };
3491
3932
  const deserializeAws_restJson1StartReplicationCommand = async (output, context) => {
3492
3933
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3493
3934
  return deserializeAws_restJson1StartReplicationCommandError(output, context);
@@ -3505,6 +3946,9 @@ const deserializeAws_restJson1StartReplicationCommand = async (output, context)
3505
3946
  if (data.dataReplicationInfo != null) {
3506
3947
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
3507
3948
  }
3949
+ if (data.fqdnForActionFramework != null) {
3950
+ contents.fqdnForActionFramework = (0, smithy_client_1.expectString)(data.fqdnForActionFramework);
3951
+ }
3508
3952
  if (data.isArchived != null) {
3509
3953
  contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
3510
3954
  }
@@ -3526,6 +3970,9 @@ const deserializeAws_restJson1StartReplicationCommand = async (output, context)
3526
3970
  if (data.tags != null) {
3527
3971
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
3528
3972
  }
3973
+ if (data.userProvidedID != null) {
3974
+ contents.userProvidedID = (0, smithy_client_1.expectString)(data.userProvidedID);
3975
+ }
3529
3976
  if (data.vcenterClientID != null) {
3530
3977
  contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
3531
3978
  }
@@ -4285,6 +4732,9 @@ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (
4285
4732
  if (data.dataReplicationInfo != null) {
4286
4733
  contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
4287
4734
  }
4735
+ if (data.fqdnForActionFramework != null) {
4736
+ contents.fqdnForActionFramework = (0, smithy_client_1.expectString)(data.fqdnForActionFramework);
4737
+ }
4288
4738
  if (data.isArchived != null) {
4289
4739
  contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
4290
4740
  }
@@ -4306,6 +4756,9 @@ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (
4306
4756
  if (data.tags != null) {
4307
4757
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
4308
4758
  }
4759
+ if (data.userProvidedID != null) {
4760
+ contents.userProvidedID = (0, smithy_client_1.expectString)(data.userProvidedID);
4761
+ }
4309
4762
  if (data.vcenterClientID != null) {
4310
4763
  contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
4311
4764
  }
@@ -4656,6 +5109,13 @@ const serializeAws_restJson1DisassociateSourceServersRequestSourceServerIDs = (i
4656
5109
  return entry;
4657
5110
  });
4658
5111
  };
5112
+ const serializeAws_restJson1ImportIDsFilter = (input, context) => {
5113
+ return input
5114
+ .filter((e) => e != null)
5115
+ .map((entry) => {
5116
+ return entry;
5117
+ });
5118
+ };
4659
5119
  const serializeAws_restJson1LaunchConfigurationTemplateIDs = (input, context) => {
4660
5120
  return input
4661
5121
  .filter((e) => e != null)
@@ -4691,6 +5151,25 @@ const serializeAws_restJson1ListApplicationsRequestFilters = (input, context) =>
4691
5151
  ...(input.waveIDs != null && { waveIDs: serializeAws_restJson1WaveIDsFilter(input.waveIDs, context) }),
4692
5152
  };
4693
5153
  };
5154
+ const serializeAws_restJson1ListExportsRequestFilters = (input, context) => {
5155
+ return {
5156
+ ...(input.exportIDs != null && {
5157
+ exportIDs: serializeAws_restJson1ListExportsRequestFiltersExportIDs(input.exportIDs, context),
5158
+ }),
5159
+ };
5160
+ };
5161
+ const serializeAws_restJson1ListExportsRequestFiltersExportIDs = (input, context) => {
5162
+ return input
5163
+ .filter((e) => e != null)
5164
+ .map((entry) => {
5165
+ return entry;
5166
+ });
5167
+ };
5168
+ const serializeAws_restJson1ListImportsRequestFilters = (input, context) => {
5169
+ return {
5170
+ ...(input.importIDs != null && { importIDs: serializeAws_restJson1ImportIDsFilter(input.importIDs, context) }),
5171
+ };
5172
+ };
4694
5173
  const serializeAws_restJson1ListWavesRequestFilters = (input, context) => {
4695
5174
  return {
4696
5175
  ...(input.isArchived != null && { isArchived: input.isArchived }),
@@ -4745,6 +5224,13 @@ const serializeAws_restJson1ReplicationTypes = (input, context) => {
4745
5224
  return entry;
4746
5225
  });
4747
5226
  };
5227
+ const serializeAws_restJson1S3BucketSource = (input, context) => {
5228
+ return {
5229
+ ...(input.s3Bucket != null && { s3Bucket: input.s3Bucket }),
5230
+ ...(input.s3BucketOwner != null && { s3BucketOwner: input.s3BucketOwner }),
5231
+ ...(input.s3Key != null && { s3Key: input.s3Key }),
5232
+ };
5233
+ };
4748
5234
  const serializeAws_restJson1SourceServerActionsRequestFilters = (input, context) => {
4749
5235
  return {
4750
5236
  ...(input.actionIDs != null && { actionIDs: serializeAws_restJson1ActionIDs(input.actionIDs, context) }),
@@ -4753,6 +5239,9 @@ const serializeAws_restJson1SourceServerActionsRequestFilters = (input, context)
4753
5239
  const serializeAws_restJson1SsmDocument = (input, context) => {
4754
5240
  return {
4755
5241
  ...(input.actionName != null && { actionName: input.actionName }),
5242
+ ...(input.externalParameters != null && {
5243
+ externalParameters: serializeAws_restJson1SsmDocumentExternalParameters(input.externalParameters, context),
5244
+ }),
4756
5245
  ...(input.mustSucceedForCutover != null && { mustSucceedForCutover: input.mustSucceedForCutover }),
4757
5246
  ...(input.parameters != null && {
4758
5247
  parameters: serializeAws_restJson1SsmDocumentParameters(input.parameters, context),
@@ -4761,6 +5250,15 @@ const serializeAws_restJson1SsmDocument = (input, context) => {
4761
5250
  ...(input.timeoutSeconds != null && { timeoutSeconds: input.timeoutSeconds }),
4762
5251
  };
4763
5252
  };
5253
+ const serializeAws_restJson1SsmDocumentExternalParameters = (input, context) => {
5254
+ return Object.entries(input).reduce((acc, [key, value]) => {
5255
+ if (value === null) {
5256
+ return acc;
5257
+ }
5258
+ acc[key] = serializeAws_restJson1SsmExternalParameter(value, context);
5259
+ return acc;
5260
+ }, {});
5261
+ };
4764
5262
  const serializeAws_restJson1SsmDocumentParameters = (input, context) => {
4765
5263
  return Object.entries(input).reduce((acc, [key, value]) => {
4766
5264
  if (value === null) {
@@ -4777,6 +5275,12 @@ const serializeAws_restJson1SsmDocuments = (input, context) => {
4777
5275
  return serializeAws_restJson1SsmDocument(entry, context);
4778
5276
  });
4779
5277
  };
5278
+ const serializeAws_restJson1SsmExternalParameter = (input, context) => {
5279
+ return models_0_1.SsmExternalParameter.visit(input, {
5280
+ dynamicPath: (value) => ({ dynamicPath: value }),
5281
+ _: (name, value) => ({ name: value }),
5282
+ });
5283
+ };
4780
5284
  const serializeAws_restJson1SsmParameterStoreParameter = (input, context) => {
4781
5285
  return {
4782
5286
  ...(input.parameterName != null && { parameterName: input.parameterName }),
@@ -4987,6 +5491,59 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
4987
5491
  resourceType: (0, smithy_client_1.expectString)(output.resourceType),
4988
5492
  };
4989
5493
  };
5494
+ const deserializeAws_restJson1ExportErrorData = (output, context) => {
5495
+ return {
5496
+ rawError: (0, smithy_client_1.expectString)(output.rawError),
5497
+ };
5498
+ };
5499
+ const deserializeAws_restJson1ExportErrors = (output, context) => {
5500
+ const retVal = (output || [])
5501
+ .filter((e) => e != null)
5502
+ .map((entry) => {
5503
+ if (entry === null) {
5504
+ return null;
5505
+ }
5506
+ return deserializeAws_restJson1ExportTaskError(entry, context);
5507
+ });
5508
+ return retVal;
5509
+ };
5510
+ const deserializeAws_restJson1ExportsList = (output, context) => {
5511
+ const retVal = (output || [])
5512
+ .filter((e) => e != null)
5513
+ .map((entry) => {
5514
+ if (entry === null) {
5515
+ return null;
5516
+ }
5517
+ return deserializeAws_restJson1ExportTask(entry, context);
5518
+ });
5519
+ return retVal;
5520
+ };
5521
+ const deserializeAws_restJson1ExportTask = (output, context) => {
5522
+ return {
5523
+ creationDateTime: (0, smithy_client_1.expectString)(output.creationDateTime),
5524
+ endDateTime: (0, smithy_client_1.expectString)(output.endDateTime),
5525
+ exportID: (0, smithy_client_1.expectString)(output.exportID),
5526
+ progressPercentage: (0, smithy_client_1.limitedParseFloat32)(output.progressPercentage),
5527
+ s3Bucket: (0, smithy_client_1.expectString)(output.s3Bucket),
5528
+ s3BucketOwner: (0, smithy_client_1.expectString)(output.s3BucketOwner),
5529
+ s3Key: (0, smithy_client_1.expectString)(output.s3Key),
5530
+ status: (0, smithy_client_1.expectString)(output.status),
5531
+ summary: output.summary != null ? deserializeAws_restJson1ExportTaskSummary(output.summary, context) : undefined,
5532
+ };
5533
+ };
5534
+ const deserializeAws_restJson1ExportTaskError = (output, context) => {
5535
+ return {
5536
+ errorData: output.errorData != null ? deserializeAws_restJson1ExportErrorData(output.errorData, context) : undefined,
5537
+ errorDateTime: (0, smithy_client_1.expectString)(output.errorDateTime),
5538
+ };
5539
+ };
5540
+ const deserializeAws_restJson1ExportTaskSummary = (output, context) => {
5541
+ return {
5542
+ applicationsCount: (0, smithy_client_1.expectLong)(output.applicationsCount),
5543
+ serversCount: (0, smithy_client_1.expectLong)(output.serversCount),
5544
+ wavesCount: (0, smithy_client_1.expectLong)(output.wavesCount),
5545
+ };
5546
+ };
4990
5547
  const deserializeAws_restJson1IdentificationHints = (output, context) => {
4991
5548
  return {
4992
5549
  awsInstanceID: (0, smithy_client_1.expectString)(output.awsInstanceID),
@@ -4996,6 +5553,85 @@ const deserializeAws_restJson1IdentificationHints = (output, context) => {
4996
5553
  vmWareUuid: (0, smithy_client_1.expectString)(output.vmWareUuid),
4997
5554
  };
4998
5555
  };
5556
+ const deserializeAws_restJson1ImportErrorData = (output, context) => {
5557
+ return {
5558
+ applicationID: (0, smithy_client_1.expectString)(output.applicationID),
5559
+ ec2LaunchTemplateID: (0, smithy_client_1.expectString)(output.ec2LaunchTemplateID),
5560
+ rawError: (0, smithy_client_1.expectString)(output.rawError),
5561
+ rowNumber: (0, smithy_client_1.expectLong)(output.rowNumber),
5562
+ sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
5563
+ waveID: (0, smithy_client_1.expectString)(output.waveID),
5564
+ };
5565
+ };
5566
+ const deserializeAws_restJson1ImportErrors = (output, context) => {
5567
+ const retVal = (output || [])
5568
+ .filter((e) => e != null)
5569
+ .map((entry) => {
5570
+ if (entry === null) {
5571
+ return null;
5572
+ }
5573
+ return deserializeAws_restJson1ImportTaskError(entry, context);
5574
+ });
5575
+ return retVal;
5576
+ };
5577
+ const deserializeAws_restJson1ImportList = (output, context) => {
5578
+ const retVal = (output || [])
5579
+ .filter((e) => e != null)
5580
+ .map((entry) => {
5581
+ if (entry === null) {
5582
+ return null;
5583
+ }
5584
+ return deserializeAws_restJson1ImportTask(entry, context);
5585
+ });
5586
+ return retVal;
5587
+ };
5588
+ const deserializeAws_restJson1ImportTask = (output, context) => {
5589
+ return {
5590
+ creationDateTime: (0, smithy_client_1.expectString)(output.creationDateTime),
5591
+ endDateTime: (0, smithy_client_1.expectString)(output.endDateTime),
5592
+ importID: (0, smithy_client_1.expectString)(output.importID),
5593
+ progressPercentage: (0, smithy_client_1.limitedParseFloat32)(output.progressPercentage),
5594
+ s3BucketSource: output.s3BucketSource != null
5595
+ ? deserializeAws_restJson1S3BucketSource(output.s3BucketSource, context)
5596
+ : undefined,
5597
+ status: (0, smithy_client_1.expectString)(output.status),
5598
+ summary: output.summary != null ? deserializeAws_restJson1ImportTaskSummary(output.summary, context) : undefined,
5599
+ };
5600
+ };
5601
+ const deserializeAws_restJson1ImportTaskError = (output, context) => {
5602
+ return {
5603
+ errorData: output.errorData != null ? deserializeAws_restJson1ImportErrorData(output.errorData, context) : undefined,
5604
+ errorDateTime: (0, smithy_client_1.expectString)(output.errorDateTime),
5605
+ errorType: (0, smithy_client_1.expectString)(output.errorType),
5606
+ };
5607
+ };
5608
+ const deserializeAws_restJson1ImportTaskSummary = (output, context) => {
5609
+ return {
5610
+ applications: output.applications != null
5611
+ ? deserializeAws_restJson1ImportTaskSummaryApplications(output.applications, context)
5612
+ : undefined,
5613
+ servers: output.servers != null ? deserializeAws_restJson1ImportTaskSummaryServers(output.servers, context) : undefined,
5614
+ waves: output.waves != null ? deserializeAws_restJson1ImportTaskSummaryWaves(output.waves, context) : undefined,
5615
+ };
5616
+ };
5617
+ const deserializeAws_restJson1ImportTaskSummaryApplications = (output, context) => {
5618
+ return {
5619
+ createdCount: (0, smithy_client_1.expectLong)(output.createdCount),
5620
+ modifiedCount: (0, smithy_client_1.expectLong)(output.modifiedCount),
5621
+ };
5622
+ };
5623
+ const deserializeAws_restJson1ImportTaskSummaryServers = (output, context) => {
5624
+ return {
5625
+ createdCount: (0, smithy_client_1.expectLong)(output.createdCount),
5626
+ modifiedCount: (0, smithy_client_1.expectLong)(output.modifiedCount),
5627
+ };
5628
+ };
5629
+ const deserializeAws_restJson1ImportTaskSummaryWaves = (output, context) => {
5630
+ return {
5631
+ createdCount: (0, smithy_client_1.expectLong)(output.createdCount),
5632
+ modifiedCount: (0, smithy_client_1.expectLong)(output.modifiedCount),
5633
+ };
5634
+ };
4999
5635
  const deserializeAws_restJson1IPsList = (output, context) => {
5000
5636
  const retVal = (output || [])
5001
5637
  .filter((e) => e != null)
@@ -5329,6 +5965,13 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = (output, con
5329
5965
  });
5330
5966
  return retVal;
5331
5967
  };
5968
+ const deserializeAws_restJson1S3BucketSource = (output, context) => {
5969
+ return {
5970
+ s3Bucket: (0, smithy_client_1.expectString)(output.s3Bucket),
5971
+ s3BucketOwner: (0, smithy_client_1.expectString)(output.s3BucketOwner),
5972
+ s3Key: (0, smithy_client_1.expectString)(output.s3Key),
5973
+ };
5974
+ };
5332
5975
  const deserializeAws_restJson1SourceProperties = (output, context) => {
5333
5976
  return {
5334
5977
  cpus: output.cpus != null ? deserializeAws_restJson1Cpus(output.cpus, context) : undefined,
@@ -5352,6 +5995,7 @@ const deserializeAws_restJson1SourceServer = (output, context) => {
5352
5995
  dataReplicationInfo: output.dataReplicationInfo != null
5353
5996
  ? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
5354
5997
  : undefined,
5998
+ fqdnForActionFramework: (0, smithy_client_1.expectString)(output.fqdnForActionFramework),
5355
5999
  isArchived: (0, smithy_client_1.expectBoolean)(output.isArchived),
5356
6000
  launchedInstance: output.launchedInstance != null
5357
6001
  ? deserializeAws_restJson1LaunchedInstance(output.launchedInstance, context)
@@ -5363,6 +6007,7 @@ const deserializeAws_restJson1SourceServer = (output, context) => {
5363
6007
  : undefined,
5364
6008
  sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
5365
6009
  tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
6010
+ userProvidedID: (0, smithy_client_1.expectString)(output.userProvidedID),
5366
6011
  vcenterClientID: (0, smithy_client_1.expectString)(output.vcenterClientID),
5367
6012
  };
5368
6013
  };
@@ -5371,8 +6016,13 @@ const deserializeAws_restJson1SourceServerActionDocument = (output, context) =>
5371
6016
  actionID: (0, smithy_client_1.expectString)(output.actionID),
5372
6017
  actionName: (0, smithy_client_1.expectString)(output.actionName),
5373
6018
  active: (0, smithy_client_1.expectBoolean)(output.active),
6019
+ category: (0, smithy_client_1.expectString)(output.category),
6020
+ description: (0, smithy_client_1.expectString)(output.description),
5374
6021
  documentIdentifier: (0, smithy_client_1.expectString)(output.documentIdentifier),
5375
6022
  documentVersion: (0, smithy_client_1.expectString)(output.documentVersion),
6023
+ externalParameters: output.externalParameters != null
6024
+ ? deserializeAws_restJson1SsmDocumentExternalParameters(output.externalParameters, context)
6025
+ : undefined,
5376
6026
  mustSucceedForCutover: (0, smithy_client_1.expectBoolean)(output.mustSucceedForCutover),
5377
6027
  order: (0, smithy_client_1.expectInt32)(output.order),
5378
6028
  parameters: output.parameters != null ? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context) : undefined,
@@ -5404,12 +6054,24 @@ const deserializeAws_restJson1SourceServersList = (output, context) => {
5404
6054
  const deserializeAws_restJson1SsmDocument = (output, context) => {
5405
6055
  return {
5406
6056
  actionName: (0, smithy_client_1.expectString)(output.actionName),
6057
+ externalParameters: output.externalParameters != null
6058
+ ? deserializeAws_restJson1SsmDocumentExternalParameters(output.externalParameters, context)
6059
+ : undefined,
5407
6060
  mustSucceedForCutover: (0, smithy_client_1.expectBoolean)(output.mustSucceedForCutover),
5408
6061
  parameters: output.parameters != null ? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context) : undefined,
5409
6062
  ssmDocumentName: (0, smithy_client_1.expectString)(output.ssmDocumentName),
5410
6063
  timeoutSeconds: (0, smithy_client_1.expectInt32)(output.timeoutSeconds),
5411
6064
  };
5412
6065
  };
6066
+ const deserializeAws_restJson1SsmDocumentExternalParameters = (output, context) => {
6067
+ return Object.entries(output).reduce((acc, [key, value]) => {
6068
+ if (value === null) {
6069
+ return acc;
6070
+ }
6071
+ acc[key] = deserializeAws_restJson1SsmExternalParameter((0, smithy_client_1.expectUnion)(value), context);
6072
+ return acc;
6073
+ }, {});
6074
+ };
5413
6075
  const deserializeAws_restJson1SsmDocumentParameters = (output, context) => {
5414
6076
  return Object.entries(output).reduce((acc, [key, value]) => {
5415
6077
  if (value === null) {
@@ -5430,6 +6092,12 @@ const deserializeAws_restJson1SsmDocuments = (output, context) => {
5430
6092
  });
5431
6093
  return retVal;
5432
6094
  };
6095
+ const deserializeAws_restJson1SsmExternalParameter = (output, context) => {
6096
+ if ((0, smithy_client_1.expectString)(output.dynamicPath) !== undefined) {
6097
+ return { dynamicPath: (0, smithy_client_1.expectString)(output.dynamicPath) };
6098
+ }
6099
+ return { $unknown: Object.entries(output)[0] };
6100
+ };
5433
6101
  const deserializeAws_restJson1SsmParameterStoreParameter = (output, context) => {
5434
6102
  return {
5435
6103
  parameterName: (0, smithy_client_1.expectString)(output.parameterName),
@@ -5461,8 +6129,13 @@ const deserializeAws_restJson1TemplateActionDocument = (output, context) => {
5461
6129
  actionID: (0, smithy_client_1.expectString)(output.actionID),
5462
6130
  actionName: (0, smithy_client_1.expectString)(output.actionName),
5463
6131
  active: (0, smithy_client_1.expectBoolean)(output.active),
6132
+ category: (0, smithy_client_1.expectString)(output.category),
6133
+ description: (0, smithy_client_1.expectString)(output.description),
5464
6134
  documentIdentifier: (0, smithy_client_1.expectString)(output.documentIdentifier),
5465
6135
  documentVersion: (0, smithy_client_1.expectString)(output.documentVersion),
6136
+ externalParameters: output.externalParameters != null
6137
+ ? deserializeAws_restJson1SsmDocumentExternalParameters(output.externalParameters, context)
6138
+ : undefined,
5466
6139
  mustSucceedForCutover: (0, smithy_client_1.expectBoolean)(output.mustSucceedForCutover),
5467
6140
  operatingSystem: (0, smithy_client_1.expectString)(output.operatingSystem),
5468
6141
  order: (0, smithy_client_1.expectInt32)(output.order),