@aws-sdk/client-workspaces 3.137.0 → 3.142.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.
- package/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/WorkSpaces.js +30 -0
- package/dist-cjs/commands/CreateWorkspaceImageCommand.js +36 -0
- package/dist-cjs/commands/ModifySamlPropertiesCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +56 -24
- package/dist-cjs/protocols/Aws_json1_1.js +491 -576
- package/dist-es/WorkSpaces.js +30 -0
- package/dist-es/commands/CreateWorkspaceImageCommand.js +39 -0
- package/dist-es/commands/ModifySamlPropertiesCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +33 -17
- package/dist-es/protocols/Aws_json1_1.js +694 -574
- package/dist-types/WorkSpaces.d.ts +16 -0
- package/dist-types/WorkSpacesClient.d.ts +4 -2
- package/dist-types/commands/CreateWorkspaceImageCommand.d.ts +35 -0
- package/dist-types/commands/ModifySamlPropertiesCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +199 -36
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/ts3.4/WorkSpaces.d.ts +10 -0
- package/dist-types/ts3.4/WorkSpacesClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/CreateWorkspaceImageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ModifySamlPropertiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +88 -20
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
- package/package.json +6 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateWorkspaceImagePermissionCommand = exports.deserializeAws_json1_1UpdateWorkspaceBundleCommand = exports.deserializeAws_json1_1UpdateRulesOfIpGroupCommand = exports.deserializeAws_json1_1UpdateConnectionAliasPermissionCommand = exports.deserializeAws_json1_1UpdateConnectClientAddInCommand = exports.deserializeAws_json1_1TerminateWorkspacesCommand = exports.deserializeAws_json1_1StopWorkspacesCommand = exports.deserializeAws_json1_1StartWorkspacesCommand = exports.deserializeAws_json1_1RevokeIpRulesCommand = exports.deserializeAws_json1_1RestoreWorkspaceCommand = exports.deserializeAws_json1_1RegisterWorkspaceDirectoryCommand = exports.deserializeAws_json1_1RebuildWorkspacesCommand = exports.deserializeAws_json1_1RebootWorkspacesCommand = exports.deserializeAws_json1_1ModifyWorkspaceStateCommand = exports.deserializeAws_json1_1ModifyWorkspacePropertiesCommand = exports.deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommand = exports.deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommand = exports.deserializeAws_json1_1ModifySelfservicePermissionsCommand = exports.deserializeAws_json1_1ModifyClientPropertiesCommand = exports.deserializeAws_json1_1ModifyAccountCommand = exports.deserializeAws_json1_1MigrateWorkspaceCommand = exports.deserializeAws_json1_1ListAvailableManagementCidrRangesCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1ModifyWorkspaceStateCommand = exports.serializeAws_json1_1ModifyWorkspacePropertiesCommand = exports.serializeAws_json1_1ModifyWorkspaceCreationPropertiesCommand = exports.serializeAws_json1_1ModifyWorkspaceAccessPropertiesCommand = exports.serializeAws_json1_1ModifySelfservicePermissionsCommand = exports.serializeAws_json1_1ModifySamlPropertiesCommand = exports.serializeAws_json1_1ModifyClientPropertiesCommand = exports.serializeAws_json1_1ModifyAccountCommand = exports.serializeAws_json1_1MigrateWorkspaceCommand = exports.serializeAws_json1_1ListAvailableManagementCidrRangesCommand = exports.serializeAws_json1_1ImportWorkspaceImageCommand = exports.serializeAws_json1_1ImportClientBrandingCommand = exports.serializeAws_json1_1DisassociateIpGroupsCommand = exports.serializeAws_json1_1DisassociateConnectionAliasCommand = exports.serializeAws_json1_1DescribeWorkspaceSnapshotsCommand = exports.serializeAws_json1_1DescribeWorkspacesConnectionStatusCommand = exports.serializeAws_json1_1DescribeWorkspacesCommand = exports.serializeAws_json1_1DescribeWorkspaceImagesCommand = exports.serializeAws_json1_1DescribeWorkspaceImagePermissionsCommand = exports.serializeAws_json1_1DescribeWorkspaceDirectoriesCommand = exports.serializeAws_json1_1DescribeWorkspaceBundlesCommand = exports.serializeAws_json1_1DescribeTagsCommand = exports.serializeAws_json1_1DescribeIpGroupsCommand = exports.serializeAws_json1_1DescribeConnectionAliasPermissionsCommand = exports.serializeAws_json1_1DescribeConnectionAliasesCommand = exports.serializeAws_json1_1DescribeConnectClientAddInsCommand = exports.serializeAws_json1_1DescribeClientPropertiesCommand = exports.serializeAws_json1_1DescribeClientBrandingCommand = exports.serializeAws_json1_1DescribeAccountModificationsCommand = exports.serializeAws_json1_1DescribeAccountCommand = exports.serializeAws_json1_1DeregisterWorkspaceDirectoryCommand = exports.serializeAws_json1_1DeleteWorkspaceImageCommand = exports.serializeAws_json1_1DeleteWorkspaceBundleCommand = exports.serializeAws_json1_1DeleteTagsCommand = exports.serializeAws_json1_1DeleteIpGroupCommand = exports.serializeAws_json1_1DeleteConnectionAliasCommand = exports.serializeAws_json1_1DeleteConnectClientAddInCommand = exports.serializeAws_json1_1DeleteClientBrandingCommand = exports.serializeAws_json1_1CreateWorkspacesCommand = exports.serializeAws_json1_1CreateWorkspaceImageCommand = exports.serializeAws_json1_1CreateWorkspaceBundleCommand = exports.serializeAws_json1_1CreateUpdatedWorkspaceImageCommand = exports.serializeAws_json1_1CreateTagsCommand = exports.serializeAws_json1_1CreateIpGroupCommand = exports.serializeAws_json1_1CreateConnectionAliasCommand = exports.serializeAws_json1_1CreateConnectClientAddInCommand = exports.serializeAws_json1_1CopyWorkspaceImageCommand = exports.serializeAws_json1_1AuthorizeIpRulesCommand = exports.serializeAws_json1_1AssociateIpGroupsCommand = exports.serializeAws_json1_1AssociateConnectionAliasCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1DisassociateConnectionAliasCommand = exports.deserializeAws_json1_1DescribeWorkspaceSnapshotsCommand = exports.deserializeAws_json1_1DescribeWorkspacesConnectionStatusCommand = exports.deserializeAws_json1_1DescribeWorkspacesCommand = exports.deserializeAws_json1_1DescribeWorkspaceImagesCommand = exports.deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommand = exports.deserializeAws_json1_1DescribeWorkspaceDirectoriesCommand = exports.deserializeAws_json1_1DescribeWorkspaceBundlesCommand = exports.deserializeAws_json1_1DescribeTagsCommand = exports.deserializeAws_json1_1DescribeIpGroupsCommand = exports.deserializeAws_json1_1DescribeConnectionAliasPermissionsCommand = exports.deserializeAws_json1_1DescribeConnectionAliasesCommand = exports.deserializeAws_json1_1DescribeConnectClientAddInsCommand = exports.deserializeAws_json1_1DescribeClientPropertiesCommand = exports.deserializeAws_json1_1DescribeClientBrandingCommand = exports.deserializeAws_json1_1DescribeAccountModificationsCommand = exports.deserializeAws_json1_1DescribeAccountCommand = exports.deserializeAws_json1_1DeregisterWorkspaceDirectoryCommand = exports.deserializeAws_json1_1DeleteWorkspaceImageCommand = exports.deserializeAws_json1_1DeleteWorkspaceBundleCommand = exports.deserializeAws_json1_1DeleteTagsCommand = exports.deserializeAws_json1_1DeleteIpGroupCommand = exports.deserializeAws_json1_1DeleteConnectionAliasCommand = exports.deserializeAws_json1_1DeleteConnectClientAddInCommand = exports.deserializeAws_json1_1DeleteClientBrandingCommand = exports.deserializeAws_json1_1CreateWorkspacesCommand = exports.deserializeAws_json1_1CreateWorkspaceImageCommand = exports.deserializeAws_json1_1CreateWorkspaceBundleCommand = exports.deserializeAws_json1_1CreateUpdatedWorkspaceImageCommand = exports.deserializeAws_json1_1CreateTagsCommand = exports.deserializeAws_json1_1CreateIpGroupCommand = exports.deserializeAws_json1_1CreateConnectionAliasCommand = exports.deserializeAws_json1_1CreateConnectClientAddInCommand = exports.deserializeAws_json1_1CopyWorkspaceImageCommand = exports.deserializeAws_json1_1AuthorizeIpRulesCommand = exports.deserializeAws_json1_1AssociateIpGroupsCommand = exports.deserializeAws_json1_1AssociateConnectionAliasCommand = exports.serializeAws_json1_1UpdateWorkspaceImagePermissionCommand = exports.serializeAws_json1_1UpdateWorkspaceBundleCommand = exports.serializeAws_json1_1UpdateRulesOfIpGroupCommand = exports.serializeAws_json1_1UpdateConnectionAliasPermissionCommand = exports.serializeAws_json1_1UpdateConnectClientAddInCommand = exports.serializeAws_json1_1TerminateWorkspacesCommand = exports.serializeAws_json1_1StopWorkspacesCommand = exports.serializeAws_json1_1StartWorkspacesCommand = exports.serializeAws_json1_1RevokeIpRulesCommand = exports.serializeAws_json1_1RestoreWorkspaceCommand = exports.serializeAws_json1_1RegisterWorkspaceDirectoryCommand = exports.serializeAws_json1_1RebuildWorkspacesCommand = exports.serializeAws_json1_1RebootWorkspacesCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateWorkspaceImagePermissionCommand = exports.deserializeAws_json1_1UpdateWorkspaceBundleCommand = exports.deserializeAws_json1_1UpdateRulesOfIpGroupCommand = exports.deserializeAws_json1_1UpdateConnectionAliasPermissionCommand = exports.deserializeAws_json1_1UpdateConnectClientAddInCommand = exports.deserializeAws_json1_1TerminateWorkspacesCommand = exports.deserializeAws_json1_1StopWorkspacesCommand = exports.deserializeAws_json1_1StartWorkspacesCommand = exports.deserializeAws_json1_1RevokeIpRulesCommand = exports.deserializeAws_json1_1RestoreWorkspaceCommand = exports.deserializeAws_json1_1RegisterWorkspaceDirectoryCommand = exports.deserializeAws_json1_1RebuildWorkspacesCommand = exports.deserializeAws_json1_1RebootWorkspacesCommand = exports.deserializeAws_json1_1ModifyWorkspaceStateCommand = exports.deserializeAws_json1_1ModifyWorkspacePropertiesCommand = exports.deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommand = exports.deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommand = exports.deserializeAws_json1_1ModifySelfservicePermissionsCommand = exports.deserializeAws_json1_1ModifySamlPropertiesCommand = exports.deserializeAws_json1_1ModifyClientPropertiesCommand = exports.deserializeAws_json1_1ModifyAccountCommand = exports.deserializeAws_json1_1MigrateWorkspaceCommand = exports.deserializeAws_json1_1ListAvailableManagementCidrRangesCommand = exports.deserializeAws_json1_1ImportWorkspaceImageCommand = exports.deserializeAws_json1_1ImportClientBrandingCommand = exports.deserializeAws_json1_1DisassociateIpGroupsCommand = 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
8
|
const models_0_1 = require("../models/models_0");
|
|
@@ -107,6 +107,16 @@ const serializeAws_json1_1CreateWorkspaceBundleCommand = async (input, context)
|
|
|
107
107
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
108
|
};
|
|
109
109
|
exports.serializeAws_json1_1CreateWorkspaceBundleCommand = serializeAws_json1_1CreateWorkspaceBundleCommand;
|
|
110
|
+
const serializeAws_json1_1CreateWorkspaceImageCommand = async (input, context) => {
|
|
111
|
+
const headers = {
|
|
112
|
+
"content-type": "application/x-amz-json-1.1",
|
|
113
|
+
"x-amz-target": "WorkspacesService.CreateWorkspaceImage",
|
|
114
|
+
};
|
|
115
|
+
let body;
|
|
116
|
+
body = JSON.stringify(serializeAws_json1_1CreateWorkspaceImageRequest(input, context));
|
|
117
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
|
+
};
|
|
119
|
+
exports.serializeAws_json1_1CreateWorkspaceImageCommand = serializeAws_json1_1CreateWorkspaceImageCommand;
|
|
110
120
|
const serializeAws_json1_1CreateWorkspacesCommand = async (input, context) => {
|
|
111
121
|
const headers = {
|
|
112
122
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -437,6 +447,16 @@ const serializeAws_json1_1ModifyClientPropertiesCommand = async (input, context)
|
|
|
437
447
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
438
448
|
};
|
|
439
449
|
exports.serializeAws_json1_1ModifyClientPropertiesCommand = serializeAws_json1_1ModifyClientPropertiesCommand;
|
|
450
|
+
const serializeAws_json1_1ModifySamlPropertiesCommand = async (input, context) => {
|
|
451
|
+
const headers = {
|
|
452
|
+
"content-type": "application/x-amz-json-1.1",
|
|
453
|
+
"x-amz-target": "WorkspacesService.ModifySamlProperties",
|
|
454
|
+
};
|
|
455
|
+
let body;
|
|
456
|
+
body = JSON.stringify(serializeAws_json1_1ModifySamlPropertiesRequest(input, context));
|
|
457
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
458
|
+
};
|
|
459
|
+
exports.serializeAws_json1_1ModifySamlPropertiesCommand = serializeAws_json1_1ModifySamlPropertiesCommand;
|
|
440
460
|
const serializeAws_json1_1ModifySelfservicePermissionsCommand = async (input, context) => {
|
|
441
461
|
const headers = {
|
|
442
462
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -636,7 +656,6 @@ const deserializeAws_json1_1AssociateConnectionAliasCommandError = async (output
|
|
|
636
656
|
...output,
|
|
637
657
|
body: await parseBody(output.body, context),
|
|
638
658
|
};
|
|
639
|
-
let response;
|
|
640
659
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
641
660
|
switch (errorCode) {
|
|
642
661
|
case "AccessDeniedException":
|
|
@@ -659,14 +678,12 @@ const deserializeAws_json1_1AssociateConnectionAliasCommandError = async (output
|
|
|
659
678
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
660
679
|
default:
|
|
661
680
|
const parsedBody = parsedOutput.body;
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
$metadata,
|
|
681
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
682
|
+
output,
|
|
683
|
+
parsedBody,
|
|
684
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
685
|
+
errorCode,
|
|
668
686
|
});
|
|
669
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
670
687
|
}
|
|
671
688
|
};
|
|
672
689
|
const deserializeAws_json1_1AssociateIpGroupsCommand = async (output, context) => {
|
|
@@ -688,7 +705,6 @@ const deserializeAws_json1_1AssociateIpGroupsCommandError = async (output, conte
|
|
|
688
705
|
...output,
|
|
689
706
|
body: await parseBody(output.body, context),
|
|
690
707
|
};
|
|
691
|
-
let response;
|
|
692
708
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
709
|
switch (errorCode) {
|
|
694
710
|
case "AccessDeniedException":
|
|
@@ -711,14 +727,12 @@ const deserializeAws_json1_1AssociateIpGroupsCommandError = async (output, conte
|
|
|
711
727
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
712
728
|
default:
|
|
713
729
|
const parsedBody = parsedOutput.body;
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
$metadata,
|
|
730
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
731
|
+
output,
|
|
732
|
+
parsedBody,
|
|
733
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
734
|
+
errorCode,
|
|
720
735
|
});
|
|
721
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
722
736
|
}
|
|
723
737
|
};
|
|
724
738
|
const deserializeAws_json1_1AuthorizeIpRulesCommand = async (output, context) => {
|
|
@@ -740,7 +754,6 @@ const deserializeAws_json1_1AuthorizeIpRulesCommandError = async (output, contex
|
|
|
740
754
|
...output,
|
|
741
755
|
body: await parseBody(output.body, context),
|
|
742
756
|
};
|
|
743
|
-
let response;
|
|
744
757
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
758
|
switch (errorCode) {
|
|
746
759
|
case "AccessDeniedException":
|
|
@@ -760,14 +773,12 @@ const deserializeAws_json1_1AuthorizeIpRulesCommandError = async (output, contex
|
|
|
760
773
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
761
774
|
default:
|
|
762
775
|
const parsedBody = parsedOutput.body;
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
$metadata,
|
|
776
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
777
|
+
output,
|
|
778
|
+
parsedBody,
|
|
779
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
780
|
+
errorCode,
|
|
769
781
|
});
|
|
770
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
771
782
|
}
|
|
772
783
|
};
|
|
773
784
|
const deserializeAws_json1_1CopyWorkspaceImageCommand = async (output, context) => {
|
|
@@ -789,7 +800,6 @@ const deserializeAws_json1_1CopyWorkspaceImageCommandError = async (output, cont
|
|
|
789
800
|
...output,
|
|
790
801
|
body: await parseBody(output.body, context),
|
|
791
802
|
};
|
|
792
|
-
let response;
|
|
793
803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
804
|
switch (errorCode) {
|
|
795
805
|
case "AccessDeniedException":
|
|
@@ -815,14 +825,12 @@ const deserializeAws_json1_1CopyWorkspaceImageCommandError = async (output, cont
|
|
|
815
825
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
816
826
|
default:
|
|
817
827
|
const parsedBody = parsedOutput.body;
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
$metadata,
|
|
828
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
829
|
+
output,
|
|
830
|
+
parsedBody,
|
|
831
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
832
|
+
errorCode,
|
|
824
833
|
});
|
|
825
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
826
834
|
}
|
|
827
835
|
};
|
|
828
836
|
const deserializeAws_json1_1CreateConnectClientAddInCommand = async (output, context) => {
|
|
@@ -844,7 +852,6 @@ const deserializeAws_json1_1CreateConnectClientAddInCommandError = async (output
|
|
|
844
852
|
...output,
|
|
845
853
|
body: await parseBody(output.body, context),
|
|
846
854
|
};
|
|
847
|
-
let response;
|
|
848
855
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
856
|
switch (errorCode) {
|
|
850
857
|
case "AccessDeniedException":
|
|
@@ -864,14 +871,12 @@ const deserializeAws_json1_1CreateConnectClientAddInCommandError = async (output
|
|
|
864
871
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
865
872
|
default:
|
|
866
873
|
const parsedBody = parsedOutput.body;
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
$metadata,
|
|
874
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
875
|
+
output,
|
|
876
|
+
parsedBody,
|
|
877
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
878
|
+
errorCode,
|
|
873
879
|
});
|
|
874
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
875
880
|
}
|
|
876
881
|
};
|
|
877
882
|
const deserializeAws_json1_1CreateConnectionAliasCommand = async (output, context) => {
|
|
@@ -893,7 +898,6 @@ const deserializeAws_json1_1CreateConnectionAliasCommandError = async (output, c
|
|
|
893
898
|
...output,
|
|
894
899
|
body: await parseBody(output.body, context),
|
|
895
900
|
};
|
|
896
|
-
let response;
|
|
897
901
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
902
|
switch (errorCode) {
|
|
899
903
|
case "AccessDeniedException":
|
|
@@ -916,14 +920,12 @@ const deserializeAws_json1_1CreateConnectionAliasCommandError = async (output, c
|
|
|
916
920
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
917
921
|
default:
|
|
918
922
|
const parsedBody = parsedOutput.body;
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
$metadata,
|
|
923
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
924
|
+
output,
|
|
925
|
+
parsedBody,
|
|
926
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
927
|
+
errorCode,
|
|
925
928
|
});
|
|
926
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
927
929
|
}
|
|
928
930
|
};
|
|
929
931
|
const deserializeAws_json1_1CreateIpGroupCommand = async (output, context) => {
|
|
@@ -945,7 +947,6 @@ const deserializeAws_json1_1CreateIpGroupCommandError = async (output, context)
|
|
|
945
947
|
...output,
|
|
946
948
|
body: await parseBody(output.body, context),
|
|
947
949
|
};
|
|
948
|
-
let response;
|
|
949
950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
950
951
|
switch (errorCode) {
|
|
951
952
|
case "AccessDeniedException":
|
|
@@ -965,14 +966,12 @@ const deserializeAws_json1_1CreateIpGroupCommandError = async (output, context)
|
|
|
965
966
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
966
967
|
default:
|
|
967
968
|
const parsedBody = parsedOutput.body;
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
$metadata,
|
|
969
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
970
|
+
output,
|
|
971
|
+
parsedBody,
|
|
972
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
973
|
+
errorCode,
|
|
974
974
|
});
|
|
975
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
976
975
|
}
|
|
977
976
|
};
|
|
978
977
|
const deserializeAws_json1_1CreateTagsCommand = async (output, context) => {
|
|
@@ -994,7 +993,6 @@ const deserializeAws_json1_1CreateTagsCommandError = async (output, context) =>
|
|
|
994
993
|
...output,
|
|
995
994
|
body: await parseBody(output.body, context),
|
|
996
995
|
};
|
|
997
|
-
let response;
|
|
998
996
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
997
|
switch (errorCode) {
|
|
1000
998
|
case "InvalidParameterValuesException":
|
|
@@ -1008,14 +1006,12 @@ const deserializeAws_json1_1CreateTagsCommandError = async (output, context) =>
|
|
|
1008
1006
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1009
1007
|
default:
|
|
1010
1008
|
const parsedBody = parsedOutput.body;
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
$metadata,
|
|
1009
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1010
|
+
output,
|
|
1011
|
+
parsedBody,
|
|
1012
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1013
|
+
errorCode,
|
|
1017
1014
|
});
|
|
1018
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1019
1015
|
}
|
|
1020
1016
|
};
|
|
1021
1017
|
const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommand = async (output, context) => {
|
|
@@ -1037,7 +1033,6 @@ const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommandError = async (out
|
|
|
1037
1033
|
...output,
|
|
1038
1034
|
body: await parseBody(output.body, context),
|
|
1039
1035
|
};
|
|
1040
|
-
let response;
|
|
1041
1036
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
1037
|
switch (errorCode) {
|
|
1043
1038
|
case "AccessDeniedException":
|
|
@@ -1063,14 +1058,12 @@ const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommandError = async (out
|
|
|
1063
1058
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1064
1059
|
default:
|
|
1065
1060
|
const parsedBody = parsedOutput.body;
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
$metadata,
|
|
1061
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1062
|
+
output,
|
|
1063
|
+
parsedBody,
|
|
1064
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1065
|
+
errorCode,
|
|
1072
1066
|
});
|
|
1073
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1074
1067
|
}
|
|
1075
1068
|
};
|
|
1076
1069
|
const deserializeAws_json1_1CreateWorkspaceBundleCommand = async (output, context) => {
|
|
@@ -1092,7 +1085,6 @@ const deserializeAws_json1_1CreateWorkspaceBundleCommandError = async (output, c
|
|
|
1092
1085
|
...output,
|
|
1093
1086
|
body: await parseBody(output.body, context),
|
|
1094
1087
|
};
|
|
1095
|
-
let response;
|
|
1096
1088
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1097
1089
|
switch (errorCode) {
|
|
1098
1090
|
case "AccessDeniedException":
|
|
@@ -1115,14 +1107,64 @@ const deserializeAws_json1_1CreateWorkspaceBundleCommandError = async (output, c
|
|
|
1115
1107
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
1116
1108
|
default:
|
|
1117
1109
|
const parsedBody = parsedOutput.body;
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1110
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1111
|
+
output,
|
|
1112
|
+
parsedBody,
|
|
1113
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1114
|
+
errorCode,
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
};
|
|
1118
|
+
const deserializeAws_json1_1CreateWorkspaceImageCommand = async (output, context) => {
|
|
1119
|
+
if (output.statusCode >= 300) {
|
|
1120
|
+
return deserializeAws_json1_1CreateWorkspaceImageCommandError(output, context);
|
|
1121
|
+
}
|
|
1122
|
+
const data = await parseBody(output.body, context);
|
|
1123
|
+
let contents = {};
|
|
1124
|
+
contents = deserializeAws_json1_1CreateWorkspaceImageResult(data, context);
|
|
1125
|
+
const response = {
|
|
1126
|
+
$metadata: deserializeMetadata(output),
|
|
1127
|
+
...contents,
|
|
1128
|
+
};
|
|
1129
|
+
return Promise.resolve(response);
|
|
1130
|
+
};
|
|
1131
|
+
exports.deserializeAws_json1_1CreateWorkspaceImageCommand = deserializeAws_json1_1CreateWorkspaceImageCommand;
|
|
1132
|
+
const deserializeAws_json1_1CreateWorkspaceImageCommandError = async (output, context) => {
|
|
1133
|
+
const parsedOutput = {
|
|
1134
|
+
...output,
|
|
1135
|
+
body: await parseBody(output.body, context),
|
|
1136
|
+
};
|
|
1137
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
|
+
switch (errorCode) {
|
|
1139
|
+
case "AccessDeniedException":
|
|
1140
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1141
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1142
|
+
case "InvalidParameterValuesException":
|
|
1143
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1144
|
+
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1145
|
+
case "InvalidResourceStateException":
|
|
1146
|
+
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1147
|
+
throw await deserializeAws_json1_1InvalidResourceStateExceptionResponse(parsedOutput, context);
|
|
1148
|
+
case "OperationNotSupportedException":
|
|
1149
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1150
|
+
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
1151
|
+
case "ResourceAlreadyExistsException":
|
|
1152
|
+
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
1153
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1154
|
+
case "ResourceLimitExceededException":
|
|
1155
|
+
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1156
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1157
|
+
case "ResourceNotFoundException":
|
|
1158
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1159
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1160
|
+
default:
|
|
1161
|
+
const parsedBody = parsedOutput.body;
|
|
1162
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1163
|
+
output,
|
|
1164
|
+
parsedBody,
|
|
1165
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1166
|
+
errorCode,
|
|
1124
1167
|
});
|
|
1125
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1126
1168
|
}
|
|
1127
1169
|
};
|
|
1128
1170
|
const deserializeAws_json1_1CreateWorkspacesCommand = async (output, context) => {
|
|
@@ -1144,7 +1186,6 @@ const deserializeAws_json1_1CreateWorkspacesCommandError = async (output, contex
|
|
|
1144
1186
|
...output,
|
|
1145
1187
|
body: await parseBody(output.body, context),
|
|
1146
1188
|
};
|
|
1147
|
-
let response;
|
|
1148
1189
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
1190
|
switch (errorCode) {
|
|
1150
1191
|
case "InvalidParameterValuesException":
|
|
@@ -1155,14 +1196,12 @@ const deserializeAws_json1_1CreateWorkspacesCommandError = async (output, contex
|
|
|
1155
1196
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1156
1197
|
default:
|
|
1157
1198
|
const parsedBody = parsedOutput.body;
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
$metadata,
|
|
1199
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1200
|
+
output,
|
|
1201
|
+
parsedBody,
|
|
1202
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1203
|
+
errorCode,
|
|
1164
1204
|
});
|
|
1165
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1166
1205
|
}
|
|
1167
1206
|
};
|
|
1168
1207
|
const deserializeAws_json1_1DeleteClientBrandingCommand = async (output, context) => {
|
|
@@ -1184,7 +1223,6 @@ const deserializeAws_json1_1DeleteClientBrandingCommandError = async (output, co
|
|
|
1184
1223
|
...output,
|
|
1185
1224
|
body: await parseBody(output.body, context),
|
|
1186
1225
|
};
|
|
1187
|
-
let response;
|
|
1188
1226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1189
1227
|
switch (errorCode) {
|
|
1190
1228
|
case "AccessDeniedException":
|
|
@@ -1198,14 +1236,12 @@ const deserializeAws_json1_1DeleteClientBrandingCommandError = async (output, co
|
|
|
1198
1236
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1199
1237
|
default:
|
|
1200
1238
|
const parsedBody = parsedOutput.body;
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
$metadata,
|
|
1239
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1240
|
+
output,
|
|
1241
|
+
parsedBody,
|
|
1242
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1243
|
+
errorCode,
|
|
1207
1244
|
});
|
|
1208
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1209
1245
|
}
|
|
1210
1246
|
};
|
|
1211
1247
|
const deserializeAws_json1_1DeleteConnectClientAddInCommand = async (output, context) => {
|
|
@@ -1227,7 +1263,6 @@ const deserializeAws_json1_1DeleteConnectClientAddInCommandError = async (output
|
|
|
1227
1263
|
...output,
|
|
1228
1264
|
body: await parseBody(output.body, context),
|
|
1229
1265
|
};
|
|
1230
|
-
let response;
|
|
1231
1266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1232
1267
|
switch (errorCode) {
|
|
1233
1268
|
case "AccessDeniedException":
|
|
@@ -1241,14 +1276,12 @@ const deserializeAws_json1_1DeleteConnectClientAddInCommandError = async (output
|
|
|
1241
1276
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1242
1277
|
default:
|
|
1243
1278
|
const parsedBody = parsedOutput.body;
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
$metadata,
|
|
1279
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1280
|
+
output,
|
|
1281
|
+
parsedBody,
|
|
1282
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1283
|
+
errorCode,
|
|
1250
1284
|
});
|
|
1251
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1252
1285
|
}
|
|
1253
1286
|
};
|
|
1254
1287
|
const deserializeAws_json1_1DeleteConnectionAliasCommand = async (output, context) => {
|
|
@@ -1270,7 +1303,6 @@ const deserializeAws_json1_1DeleteConnectionAliasCommandError = async (output, c
|
|
|
1270
1303
|
...output,
|
|
1271
1304
|
body: await parseBody(output.body, context),
|
|
1272
1305
|
};
|
|
1273
|
-
let response;
|
|
1274
1306
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
1307
|
switch (errorCode) {
|
|
1276
1308
|
case "AccessDeniedException":
|
|
@@ -1293,14 +1325,12 @@ const deserializeAws_json1_1DeleteConnectionAliasCommandError = async (output, c
|
|
|
1293
1325
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1294
1326
|
default:
|
|
1295
1327
|
const parsedBody = parsedOutput.body;
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
$metadata,
|
|
1328
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1329
|
+
output,
|
|
1330
|
+
parsedBody,
|
|
1331
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1332
|
+
errorCode,
|
|
1302
1333
|
});
|
|
1303
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1304
1334
|
}
|
|
1305
1335
|
};
|
|
1306
1336
|
const deserializeAws_json1_1DeleteIpGroupCommand = async (output, context) => {
|
|
@@ -1322,7 +1352,6 @@ const deserializeAws_json1_1DeleteIpGroupCommandError = async (output, context)
|
|
|
1322
1352
|
...output,
|
|
1323
1353
|
body: await parseBody(output.body, context),
|
|
1324
1354
|
};
|
|
1325
|
-
let response;
|
|
1326
1355
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
1356
|
switch (errorCode) {
|
|
1328
1357
|
case "AccessDeniedException":
|
|
@@ -1339,14 +1368,12 @@ const deserializeAws_json1_1DeleteIpGroupCommandError = async (output, context)
|
|
|
1339
1368
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1340
1369
|
default:
|
|
1341
1370
|
const parsedBody = parsedOutput.body;
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
$metadata,
|
|
1371
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1372
|
+
output,
|
|
1373
|
+
parsedBody,
|
|
1374
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1375
|
+
errorCode,
|
|
1348
1376
|
});
|
|
1349
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1350
1377
|
}
|
|
1351
1378
|
};
|
|
1352
1379
|
const deserializeAws_json1_1DeleteTagsCommand = async (output, context) => {
|
|
@@ -1368,7 +1395,6 @@ const deserializeAws_json1_1DeleteTagsCommandError = async (output, context) =>
|
|
|
1368
1395
|
...output,
|
|
1369
1396
|
body: await parseBody(output.body, context),
|
|
1370
1397
|
};
|
|
1371
|
-
let response;
|
|
1372
1398
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1373
1399
|
switch (errorCode) {
|
|
1374
1400
|
case "InvalidParameterValuesException":
|
|
@@ -1379,14 +1405,12 @@ const deserializeAws_json1_1DeleteTagsCommandError = async (output, context) =>
|
|
|
1379
1405
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1380
1406
|
default:
|
|
1381
1407
|
const parsedBody = parsedOutput.body;
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
$metadata,
|
|
1408
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1409
|
+
output,
|
|
1410
|
+
parsedBody,
|
|
1411
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1412
|
+
errorCode,
|
|
1388
1413
|
});
|
|
1389
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1390
1414
|
}
|
|
1391
1415
|
};
|
|
1392
1416
|
const deserializeAws_json1_1DeleteWorkspaceBundleCommand = async (output, context) => {
|
|
@@ -1408,7 +1432,6 @@ const deserializeAws_json1_1DeleteWorkspaceBundleCommandError = async (output, c
|
|
|
1408
1432
|
...output,
|
|
1409
1433
|
body: await parseBody(output.body, context),
|
|
1410
1434
|
};
|
|
1411
|
-
let response;
|
|
1412
1435
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
1436
|
switch (errorCode) {
|
|
1414
1437
|
case "AccessDeniedException":
|
|
@@ -1425,14 +1448,12 @@ const deserializeAws_json1_1DeleteWorkspaceBundleCommandError = async (output, c
|
|
|
1425
1448
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1426
1449
|
default:
|
|
1427
1450
|
const parsedBody = parsedOutput.body;
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
$metadata,
|
|
1451
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1452
|
+
output,
|
|
1453
|
+
parsedBody,
|
|
1454
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1455
|
+
errorCode,
|
|
1434
1456
|
});
|
|
1435
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1436
1457
|
}
|
|
1437
1458
|
};
|
|
1438
1459
|
const deserializeAws_json1_1DeleteWorkspaceImageCommand = async (output, context) => {
|
|
@@ -1454,7 +1475,6 @@ const deserializeAws_json1_1DeleteWorkspaceImageCommandError = async (output, co
|
|
|
1454
1475
|
...output,
|
|
1455
1476
|
body: await parseBody(output.body, context),
|
|
1456
1477
|
};
|
|
1457
|
-
let response;
|
|
1458
1478
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
1479
|
switch (errorCode) {
|
|
1460
1480
|
case "AccessDeniedException":
|
|
@@ -1468,14 +1488,12 @@ const deserializeAws_json1_1DeleteWorkspaceImageCommandError = async (output, co
|
|
|
1468
1488
|
throw await deserializeAws_json1_1ResourceAssociatedExceptionResponse(parsedOutput, context);
|
|
1469
1489
|
default:
|
|
1470
1490
|
const parsedBody = parsedOutput.body;
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
$metadata,
|
|
1491
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1492
|
+
output,
|
|
1493
|
+
parsedBody,
|
|
1494
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1495
|
+
errorCode,
|
|
1477
1496
|
});
|
|
1478
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1479
1497
|
}
|
|
1480
1498
|
};
|
|
1481
1499
|
const deserializeAws_json1_1DeregisterWorkspaceDirectoryCommand = async (output, context) => {
|
|
@@ -1497,7 +1515,6 @@ const deserializeAws_json1_1DeregisterWorkspaceDirectoryCommandError = async (ou
|
|
|
1497
1515
|
...output,
|
|
1498
1516
|
body: await parseBody(output.body, context),
|
|
1499
1517
|
};
|
|
1500
|
-
let response;
|
|
1501
1518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
1519
|
switch (errorCode) {
|
|
1503
1520
|
case "AccessDeniedException":
|
|
@@ -1517,14 +1534,12 @@ const deserializeAws_json1_1DeregisterWorkspaceDirectoryCommandError = async (ou
|
|
|
1517
1534
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1518
1535
|
default:
|
|
1519
1536
|
const parsedBody = parsedOutput.body;
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
$metadata,
|
|
1537
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1538
|
+
output,
|
|
1539
|
+
parsedBody,
|
|
1540
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1541
|
+
errorCode,
|
|
1526
1542
|
});
|
|
1527
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1528
1543
|
}
|
|
1529
1544
|
};
|
|
1530
1545
|
const deserializeAws_json1_1DescribeAccountCommand = async (output, context) => {
|
|
@@ -1546,7 +1561,6 @@ const deserializeAws_json1_1DescribeAccountCommandError = async (output, context
|
|
|
1546
1561
|
...output,
|
|
1547
1562
|
body: await parseBody(output.body, context),
|
|
1548
1563
|
};
|
|
1549
|
-
let response;
|
|
1550
1564
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1551
1565
|
switch (errorCode) {
|
|
1552
1566
|
case "AccessDeniedException":
|
|
@@ -1554,14 +1568,12 @@ const deserializeAws_json1_1DescribeAccountCommandError = async (output, context
|
|
|
1554
1568
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1555
1569
|
default:
|
|
1556
1570
|
const parsedBody = parsedOutput.body;
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
$metadata,
|
|
1571
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1572
|
+
output,
|
|
1573
|
+
parsedBody,
|
|
1574
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1575
|
+
errorCode,
|
|
1563
1576
|
});
|
|
1564
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1565
1577
|
}
|
|
1566
1578
|
};
|
|
1567
1579
|
const deserializeAws_json1_1DescribeAccountModificationsCommand = async (output, context) => {
|
|
@@ -1583,7 +1595,6 @@ const deserializeAws_json1_1DescribeAccountModificationsCommandError = async (ou
|
|
|
1583
1595
|
...output,
|
|
1584
1596
|
body: await parseBody(output.body, context),
|
|
1585
1597
|
};
|
|
1586
|
-
let response;
|
|
1587
1598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
1599
|
switch (errorCode) {
|
|
1589
1600
|
case "AccessDeniedException":
|
|
@@ -1591,14 +1602,12 @@ const deserializeAws_json1_1DescribeAccountModificationsCommandError = async (ou
|
|
|
1591
1602
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1592
1603
|
default:
|
|
1593
1604
|
const parsedBody = parsedOutput.body;
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
$metadata,
|
|
1605
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1606
|
+
output,
|
|
1607
|
+
parsedBody,
|
|
1608
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1609
|
+
errorCode,
|
|
1600
1610
|
});
|
|
1601
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1602
1611
|
}
|
|
1603
1612
|
};
|
|
1604
1613
|
const deserializeAws_json1_1DescribeClientBrandingCommand = async (output, context) => {
|
|
@@ -1620,7 +1629,6 @@ const deserializeAws_json1_1DescribeClientBrandingCommandError = async (output,
|
|
|
1620
1629
|
...output,
|
|
1621
1630
|
body: await parseBody(output.body, context),
|
|
1622
1631
|
};
|
|
1623
|
-
let response;
|
|
1624
1632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
1633
|
switch (errorCode) {
|
|
1626
1634
|
case "AccessDeniedException":
|
|
@@ -1634,14 +1642,12 @@ const deserializeAws_json1_1DescribeClientBrandingCommandError = async (output,
|
|
|
1634
1642
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1635
1643
|
default:
|
|
1636
1644
|
const parsedBody = parsedOutput.body;
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
$metadata,
|
|
1645
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1646
|
+
output,
|
|
1647
|
+
parsedBody,
|
|
1648
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1649
|
+
errorCode,
|
|
1643
1650
|
});
|
|
1644
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1645
1651
|
}
|
|
1646
1652
|
};
|
|
1647
1653
|
const deserializeAws_json1_1DescribeClientPropertiesCommand = async (output, context) => {
|
|
@@ -1663,7 +1669,6 @@ const deserializeAws_json1_1DescribeClientPropertiesCommandError = async (output
|
|
|
1663
1669
|
...output,
|
|
1664
1670
|
body: await parseBody(output.body, context),
|
|
1665
1671
|
};
|
|
1666
|
-
let response;
|
|
1667
1672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1668
1673
|
switch (errorCode) {
|
|
1669
1674
|
case "AccessDeniedException":
|
|
@@ -1677,14 +1682,12 @@ const deserializeAws_json1_1DescribeClientPropertiesCommandError = async (output
|
|
|
1677
1682
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1678
1683
|
default:
|
|
1679
1684
|
const parsedBody = parsedOutput.body;
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
$metadata,
|
|
1685
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1686
|
+
output,
|
|
1687
|
+
parsedBody,
|
|
1688
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1689
|
+
errorCode,
|
|
1686
1690
|
});
|
|
1687
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1688
1691
|
}
|
|
1689
1692
|
};
|
|
1690
1693
|
const deserializeAws_json1_1DescribeConnectClientAddInsCommand = async (output, context) => {
|
|
@@ -1706,7 +1709,6 @@ const deserializeAws_json1_1DescribeConnectClientAddInsCommandError = async (out
|
|
|
1706
1709
|
...output,
|
|
1707
1710
|
body: await parseBody(output.body, context),
|
|
1708
1711
|
};
|
|
1709
|
-
let response;
|
|
1710
1712
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1711
1713
|
switch (errorCode) {
|
|
1712
1714
|
case "AccessDeniedException":
|
|
@@ -1720,14 +1722,12 @@ const deserializeAws_json1_1DescribeConnectClientAddInsCommandError = async (out
|
|
|
1720
1722
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1721
1723
|
default:
|
|
1722
1724
|
const parsedBody = parsedOutput.body;
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
$metadata,
|
|
1725
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1726
|
+
output,
|
|
1727
|
+
parsedBody,
|
|
1728
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1729
|
+
errorCode,
|
|
1729
1730
|
});
|
|
1730
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1731
1731
|
}
|
|
1732
1732
|
};
|
|
1733
1733
|
const deserializeAws_json1_1DescribeConnectionAliasesCommand = async (output, context) => {
|
|
@@ -1749,7 +1749,6 @@ const deserializeAws_json1_1DescribeConnectionAliasesCommandError = async (outpu
|
|
|
1749
1749
|
...output,
|
|
1750
1750
|
body: await parseBody(output.body, context),
|
|
1751
1751
|
};
|
|
1752
|
-
let response;
|
|
1753
1752
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1754
1753
|
switch (errorCode) {
|
|
1755
1754
|
case "AccessDeniedException":
|
|
@@ -1763,14 +1762,12 @@ const deserializeAws_json1_1DescribeConnectionAliasesCommandError = async (outpu
|
|
|
1763
1762
|
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
1764
1763
|
default:
|
|
1765
1764
|
const parsedBody = parsedOutput.body;
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
$metadata,
|
|
1765
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1766
|
+
output,
|
|
1767
|
+
parsedBody,
|
|
1768
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1769
|
+
errorCode,
|
|
1772
1770
|
});
|
|
1773
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1774
1771
|
}
|
|
1775
1772
|
};
|
|
1776
1773
|
const deserializeAws_json1_1DescribeConnectionAliasPermissionsCommand = async (output, context) => {
|
|
@@ -1792,7 +1789,6 @@ const deserializeAws_json1_1DescribeConnectionAliasPermissionsCommandError = asy
|
|
|
1792
1789
|
...output,
|
|
1793
1790
|
body: await parseBody(output.body, context),
|
|
1794
1791
|
};
|
|
1795
|
-
let response;
|
|
1796
1792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1797
1793
|
switch (errorCode) {
|
|
1798
1794
|
case "AccessDeniedException":
|
|
@@ -1809,14 +1805,12 @@ const deserializeAws_json1_1DescribeConnectionAliasPermissionsCommandError = asy
|
|
|
1809
1805
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1810
1806
|
default:
|
|
1811
1807
|
const parsedBody = parsedOutput.body;
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
$metadata,
|
|
1808
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1809
|
+
output,
|
|
1810
|
+
parsedBody,
|
|
1811
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1812
|
+
errorCode,
|
|
1818
1813
|
});
|
|
1819
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1820
1814
|
}
|
|
1821
1815
|
};
|
|
1822
1816
|
const deserializeAws_json1_1DescribeIpGroupsCommand = async (output, context) => {
|
|
@@ -1838,7 +1832,6 @@ const deserializeAws_json1_1DescribeIpGroupsCommandError = async (output, contex
|
|
|
1838
1832
|
...output,
|
|
1839
1833
|
body: await parseBody(output.body, context),
|
|
1840
1834
|
};
|
|
1841
|
-
let response;
|
|
1842
1835
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
1836
|
switch (errorCode) {
|
|
1844
1837
|
case "AccessDeniedException":
|
|
@@ -1849,14 +1842,12 @@ const deserializeAws_json1_1DescribeIpGroupsCommandError = async (output, contex
|
|
|
1849
1842
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1850
1843
|
default:
|
|
1851
1844
|
const parsedBody = parsedOutput.body;
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
$metadata,
|
|
1845
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1846
|
+
output,
|
|
1847
|
+
parsedBody,
|
|
1848
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1849
|
+
errorCode,
|
|
1858
1850
|
});
|
|
1859
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1860
1851
|
}
|
|
1861
1852
|
};
|
|
1862
1853
|
const deserializeAws_json1_1DescribeTagsCommand = async (output, context) => {
|
|
@@ -1878,7 +1869,6 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
1878
1869
|
...output,
|
|
1879
1870
|
body: await parseBody(output.body, context),
|
|
1880
1871
|
};
|
|
1881
|
-
let response;
|
|
1882
1872
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1883
1873
|
switch (errorCode) {
|
|
1884
1874
|
case "ResourceNotFoundException":
|
|
@@ -1886,14 +1876,12 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
1886
1876
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1887
1877
|
default:
|
|
1888
1878
|
const parsedBody = parsedOutput.body;
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
$metadata,
|
|
1879
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1880
|
+
output,
|
|
1881
|
+
parsedBody,
|
|
1882
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1883
|
+
errorCode,
|
|
1895
1884
|
});
|
|
1896
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1897
1885
|
}
|
|
1898
1886
|
};
|
|
1899
1887
|
const deserializeAws_json1_1DescribeWorkspaceBundlesCommand = async (output, context) => {
|
|
@@ -1915,7 +1903,6 @@ const deserializeAws_json1_1DescribeWorkspaceBundlesCommandError = async (output
|
|
|
1915
1903
|
...output,
|
|
1916
1904
|
body: await parseBody(output.body, context),
|
|
1917
1905
|
};
|
|
1918
|
-
let response;
|
|
1919
1906
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1920
1907
|
switch (errorCode) {
|
|
1921
1908
|
case "InvalidParameterValuesException":
|
|
@@ -1923,14 +1910,12 @@ const deserializeAws_json1_1DescribeWorkspaceBundlesCommandError = async (output
|
|
|
1923
1910
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1924
1911
|
default:
|
|
1925
1912
|
const parsedBody = parsedOutput.body;
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
$metadata,
|
|
1913
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1914
|
+
output,
|
|
1915
|
+
parsedBody,
|
|
1916
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1917
|
+
errorCode,
|
|
1932
1918
|
});
|
|
1933
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1934
1919
|
}
|
|
1935
1920
|
};
|
|
1936
1921
|
const deserializeAws_json1_1DescribeWorkspaceDirectoriesCommand = async (output, context) => {
|
|
@@ -1952,7 +1937,6 @@ const deserializeAws_json1_1DescribeWorkspaceDirectoriesCommandError = async (ou
|
|
|
1952
1937
|
...output,
|
|
1953
1938
|
body: await parseBody(output.body, context),
|
|
1954
1939
|
};
|
|
1955
|
-
let response;
|
|
1956
1940
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
1941
|
switch (errorCode) {
|
|
1958
1942
|
case "InvalidParameterValuesException":
|
|
@@ -1960,14 +1944,12 @@ const deserializeAws_json1_1DescribeWorkspaceDirectoriesCommandError = async (ou
|
|
|
1960
1944
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1961
1945
|
default:
|
|
1962
1946
|
const parsedBody = parsedOutput.body;
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
$metadata,
|
|
1947
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1948
|
+
output,
|
|
1949
|
+
parsedBody,
|
|
1950
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1951
|
+
errorCode,
|
|
1969
1952
|
});
|
|
1970
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1971
1953
|
}
|
|
1972
1954
|
};
|
|
1973
1955
|
const deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommand = async (output, context) => {
|
|
@@ -1989,7 +1971,6 @@ const deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommandError = asyn
|
|
|
1989
1971
|
...output,
|
|
1990
1972
|
body: await parseBody(output.body, context),
|
|
1991
1973
|
};
|
|
1992
|
-
let response;
|
|
1993
1974
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1994
1975
|
switch (errorCode) {
|
|
1995
1976
|
case "AccessDeniedException":
|
|
@@ -2003,14 +1984,12 @@ const deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommandError = asyn
|
|
|
2003
1984
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2004
1985
|
default:
|
|
2005
1986
|
const parsedBody = parsedOutput.body;
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
$metadata,
|
|
1987
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1988
|
+
output,
|
|
1989
|
+
parsedBody,
|
|
1990
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1991
|
+
errorCode,
|
|
2012
1992
|
});
|
|
2013
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2014
1993
|
}
|
|
2015
1994
|
};
|
|
2016
1995
|
const deserializeAws_json1_1DescribeWorkspaceImagesCommand = async (output, context) => {
|
|
@@ -2032,7 +2011,6 @@ const deserializeAws_json1_1DescribeWorkspaceImagesCommandError = async (output,
|
|
|
2032
2011
|
...output,
|
|
2033
2012
|
body: await parseBody(output.body, context),
|
|
2034
2013
|
};
|
|
2035
|
-
let response;
|
|
2036
2014
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2037
2015
|
switch (errorCode) {
|
|
2038
2016
|
case "AccessDeniedException":
|
|
@@ -2040,14 +2018,12 @@ const deserializeAws_json1_1DescribeWorkspaceImagesCommandError = async (output,
|
|
|
2040
2018
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2041
2019
|
default:
|
|
2042
2020
|
const parsedBody = parsedOutput.body;
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
$metadata,
|
|
2021
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2022
|
+
output,
|
|
2023
|
+
parsedBody,
|
|
2024
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2025
|
+
errorCode,
|
|
2049
2026
|
});
|
|
2050
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2051
2027
|
}
|
|
2052
2028
|
};
|
|
2053
2029
|
const deserializeAws_json1_1DescribeWorkspacesCommand = async (output, context) => {
|
|
@@ -2069,7 +2045,6 @@ const deserializeAws_json1_1DescribeWorkspacesCommandError = async (output, cont
|
|
|
2069
2045
|
...output,
|
|
2070
2046
|
body: await parseBody(output.body, context),
|
|
2071
2047
|
};
|
|
2072
|
-
let response;
|
|
2073
2048
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
2049
|
switch (errorCode) {
|
|
2075
2050
|
case "InvalidParameterValuesException":
|
|
@@ -2080,14 +2055,12 @@ const deserializeAws_json1_1DescribeWorkspacesCommandError = async (output, cont
|
|
|
2080
2055
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2081
2056
|
default:
|
|
2082
2057
|
const parsedBody = parsedOutput.body;
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
$metadata,
|
|
2058
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2059
|
+
output,
|
|
2060
|
+
parsedBody,
|
|
2061
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2062
|
+
errorCode,
|
|
2089
2063
|
});
|
|
2090
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2091
2064
|
}
|
|
2092
2065
|
};
|
|
2093
2066
|
const deserializeAws_json1_1DescribeWorkspacesConnectionStatusCommand = async (output, context) => {
|
|
@@ -2109,7 +2082,6 @@ const deserializeAws_json1_1DescribeWorkspacesConnectionStatusCommandError = asy
|
|
|
2109
2082
|
...output,
|
|
2110
2083
|
body: await parseBody(output.body, context),
|
|
2111
2084
|
};
|
|
2112
|
-
let response;
|
|
2113
2085
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2114
2086
|
switch (errorCode) {
|
|
2115
2087
|
case "InvalidParameterValuesException":
|
|
@@ -2117,14 +2089,12 @@ const deserializeAws_json1_1DescribeWorkspacesConnectionStatusCommandError = asy
|
|
|
2117
2089
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2118
2090
|
default:
|
|
2119
2091
|
const parsedBody = parsedOutput.body;
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
$metadata,
|
|
2092
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2093
|
+
output,
|
|
2094
|
+
parsedBody,
|
|
2095
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2096
|
+
errorCode,
|
|
2126
2097
|
});
|
|
2127
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2128
2098
|
}
|
|
2129
2099
|
};
|
|
2130
2100
|
const deserializeAws_json1_1DescribeWorkspaceSnapshotsCommand = async (output, context) => {
|
|
@@ -2146,7 +2116,6 @@ const deserializeAws_json1_1DescribeWorkspaceSnapshotsCommandError = async (outp
|
|
|
2146
2116
|
...output,
|
|
2147
2117
|
body: await parseBody(output.body, context),
|
|
2148
2118
|
};
|
|
2149
|
-
let response;
|
|
2150
2119
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
2120
|
switch (errorCode) {
|
|
2152
2121
|
case "AccessDeniedException":
|
|
@@ -2160,14 +2129,12 @@ const deserializeAws_json1_1DescribeWorkspaceSnapshotsCommandError = async (outp
|
|
|
2160
2129
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2161
2130
|
default:
|
|
2162
2131
|
const parsedBody = parsedOutput.body;
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
$metadata,
|
|
2132
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2133
|
+
output,
|
|
2134
|
+
parsedBody,
|
|
2135
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2136
|
+
errorCode,
|
|
2169
2137
|
});
|
|
2170
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2171
2138
|
}
|
|
2172
2139
|
};
|
|
2173
2140
|
const deserializeAws_json1_1DisassociateConnectionAliasCommand = async (output, context) => {
|
|
@@ -2189,7 +2156,6 @@ const deserializeAws_json1_1DisassociateConnectionAliasCommandError = async (out
|
|
|
2189
2156
|
...output,
|
|
2190
2157
|
body: await parseBody(output.body, context),
|
|
2191
2158
|
};
|
|
2192
|
-
let response;
|
|
2193
2159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
2160
|
switch (errorCode) {
|
|
2195
2161
|
case "AccessDeniedException":
|
|
@@ -2209,14 +2175,12 @@ const deserializeAws_json1_1DisassociateConnectionAliasCommandError = async (out
|
|
|
2209
2175
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2210
2176
|
default:
|
|
2211
2177
|
const parsedBody = parsedOutput.body;
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
$metadata,
|
|
2178
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2179
|
+
output,
|
|
2180
|
+
parsedBody,
|
|
2181
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2182
|
+
errorCode,
|
|
2218
2183
|
});
|
|
2219
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2220
2184
|
}
|
|
2221
2185
|
};
|
|
2222
2186
|
const deserializeAws_json1_1DisassociateIpGroupsCommand = async (output, context) => {
|
|
@@ -2238,7 +2202,6 @@ const deserializeAws_json1_1DisassociateIpGroupsCommandError = async (output, co
|
|
|
2238
2202
|
...output,
|
|
2239
2203
|
body: await parseBody(output.body, context),
|
|
2240
2204
|
};
|
|
2241
|
-
let response;
|
|
2242
2205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2243
2206
|
switch (errorCode) {
|
|
2244
2207
|
case "AccessDeniedException":
|
|
@@ -2255,14 +2218,12 @@ const deserializeAws_json1_1DisassociateIpGroupsCommandError = async (output, co
|
|
|
2255
2218
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2256
2219
|
default:
|
|
2257
2220
|
const parsedBody = parsedOutput.body;
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
$metadata,
|
|
2221
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2222
|
+
output,
|
|
2223
|
+
parsedBody,
|
|
2224
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2225
|
+
errorCode,
|
|
2264
2226
|
});
|
|
2265
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2266
2227
|
}
|
|
2267
2228
|
};
|
|
2268
2229
|
const deserializeAws_json1_1ImportClientBrandingCommand = async (output, context) => {
|
|
@@ -2284,7 +2245,6 @@ const deserializeAws_json1_1ImportClientBrandingCommandError = async (output, co
|
|
|
2284
2245
|
...output,
|
|
2285
2246
|
body: await parseBody(output.body, context),
|
|
2286
2247
|
};
|
|
2287
|
-
let response;
|
|
2288
2248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2289
2249
|
switch (errorCode) {
|
|
2290
2250
|
case "AccessDeniedException":
|
|
@@ -2301,14 +2261,12 @@ const deserializeAws_json1_1ImportClientBrandingCommandError = async (output, co
|
|
|
2301
2261
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2302
2262
|
default:
|
|
2303
2263
|
const parsedBody = parsedOutput.body;
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
$metadata,
|
|
2264
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2265
|
+
output,
|
|
2266
|
+
parsedBody,
|
|
2267
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2268
|
+
errorCode,
|
|
2310
2269
|
});
|
|
2311
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2312
2270
|
}
|
|
2313
2271
|
};
|
|
2314
2272
|
const deserializeAws_json1_1ImportWorkspaceImageCommand = async (output, context) => {
|
|
@@ -2330,7 +2288,6 @@ const deserializeAws_json1_1ImportWorkspaceImageCommandError = async (output, co
|
|
|
2330
2288
|
...output,
|
|
2331
2289
|
body: await parseBody(output.body, context),
|
|
2332
2290
|
};
|
|
2333
|
-
let response;
|
|
2334
2291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2335
2292
|
switch (errorCode) {
|
|
2336
2293
|
case "AccessDeniedException":
|
|
@@ -2353,14 +2310,12 @@ const deserializeAws_json1_1ImportWorkspaceImageCommandError = async (output, co
|
|
|
2353
2310
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2354
2311
|
default:
|
|
2355
2312
|
const parsedBody = parsedOutput.body;
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
$metadata,
|
|
2313
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2314
|
+
output,
|
|
2315
|
+
parsedBody,
|
|
2316
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2317
|
+
errorCode,
|
|
2362
2318
|
});
|
|
2363
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2364
2319
|
}
|
|
2365
2320
|
};
|
|
2366
2321
|
const deserializeAws_json1_1ListAvailableManagementCidrRangesCommand = async (output, context) => {
|
|
@@ -2382,7 +2337,6 @@ const deserializeAws_json1_1ListAvailableManagementCidrRangesCommandError = asyn
|
|
|
2382
2337
|
...output,
|
|
2383
2338
|
body: await parseBody(output.body, context),
|
|
2384
2339
|
};
|
|
2385
|
-
let response;
|
|
2386
2340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2387
2341
|
switch (errorCode) {
|
|
2388
2342
|
case "AccessDeniedException":
|
|
@@ -2393,14 +2347,12 @@ const deserializeAws_json1_1ListAvailableManagementCidrRangesCommandError = asyn
|
|
|
2393
2347
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2394
2348
|
default:
|
|
2395
2349
|
const parsedBody = parsedOutput.body;
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
$metadata,
|
|
2350
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2351
|
+
output,
|
|
2352
|
+
parsedBody,
|
|
2353
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2354
|
+
errorCode,
|
|
2402
2355
|
});
|
|
2403
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2404
2356
|
}
|
|
2405
2357
|
};
|
|
2406
2358
|
const deserializeAws_json1_1MigrateWorkspaceCommand = async (output, context) => {
|
|
@@ -2422,7 +2374,6 @@ const deserializeAws_json1_1MigrateWorkspaceCommandError = async (output, contex
|
|
|
2422
2374
|
...output,
|
|
2423
2375
|
body: await parseBody(output.body, context),
|
|
2424
2376
|
};
|
|
2425
|
-
let response;
|
|
2426
2377
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2427
2378
|
switch (errorCode) {
|
|
2428
2379
|
case "AccessDeniedException":
|
|
@@ -2445,14 +2396,12 @@ const deserializeAws_json1_1MigrateWorkspaceCommandError = async (output, contex
|
|
|
2445
2396
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2446
2397
|
default:
|
|
2447
2398
|
const parsedBody = parsedOutput.body;
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
$metadata,
|
|
2399
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2400
|
+
output,
|
|
2401
|
+
parsedBody,
|
|
2402
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2403
|
+
errorCode,
|
|
2454
2404
|
});
|
|
2455
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2456
2405
|
}
|
|
2457
2406
|
};
|
|
2458
2407
|
const deserializeAws_json1_1ModifyAccountCommand = async (output, context) => {
|
|
@@ -2474,7 +2423,6 @@ const deserializeAws_json1_1ModifyAccountCommandError = async (output, context)
|
|
|
2474
2423
|
...output,
|
|
2475
2424
|
body: await parseBody(output.body, context),
|
|
2476
2425
|
};
|
|
2477
|
-
let response;
|
|
2478
2426
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2479
2427
|
switch (errorCode) {
|
|
2480
2428
|
case "AccessDeniedException":
|
|
@@ -2494,14 +2442,12 @@ const deserializeAws_json1_1ModifyAccountCommandError = async (output, context)
|
|
|
2494
2442
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2495
2443
|
default:
|
|
2496
2444
|
const parsedBody = parsedOutput.body;
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
$metadata,
|
|
2445
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2446
|
+
output,
|
|
2447
|
+
parsedBody,
|
|
2448
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2449
|
+
errorCode,
|
|
2503
2450
|
});
|
|
2504
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2505
2451
|
}
|
|
2506
2452
|
};
|
|
2507
2453
|
const deserializeAws_json1_1ModifyClientPropertiesCommand = async (output, context) => {
|
|
@@ -2523,7 +2469,6 @@ const deserializeAws_json1_1ModifyClientPropertiesCommandError = async (output,
|
|
|
2523
2469
|
...output,
|
|
2524
2470
|
body: await parseBody(output.body, context),
|
|
2525
2471
|
};
|
|
2526
|
-
let response;
|
|
2527
2472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2528
2473
|
switch (errorCode) {
|
|
2529
2474
|
case "AccessDeniedException":
|
|
@@ -2537,14 +2482,55 @@ const deserializeAws_json1_1ModifyClientPropertiesCommandError = async (output,
|
|
|
2537
2482
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2538
2483
|
default:
|
|
2539
2484
|
const parsedBody = parsedOutput.body;
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2485
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2486
|
+
output,
|
|
2487
|
+
parsedBody,
|
|
2488
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2489
|
+
errorCode,
|
|
2490
|
+
});
|
|
2491
|
+
}
|
|
2492
|
+
};
|
|
2493
|
+
const deserializeAws_json1_1ModifySamlPropertiesCommand = async (output, context) => {
|
|
2494
|
+
if (output.statusCode >= 300) {
|
|
2495
|
+
return deserializeAws_json1_1ModifySamlPropertiesCommandError(output, context);
|
|
2496
|
+
}
|
|
2497
|
+
const data = await parseBody(output.body, context);
|
|
2498
|
+
let contents = {};
|
|
2499
|
+
contents = deserializeAws_json1_1ModifySamlPropertiesResult(data, context);
|
|
2500
|
+
const response = {
|
|
2501
|
+
$metadata: deserializeMetadata(output),
|
|
2502
|
+
...contents,
|
|
2503
|
+
};
|
|
2504
|
+
return Promise.resolve(response);
|
|
2505
|
+
};
|
|
2506
|
+
exports.deserializeAws_json1_1ModifySamlPropertiesCommand = deserializeAws_json1_1ModifySamlPropertiesCommand;
|
|
2507
|
+
const deserializeAws_json1_1ModifySamlPropertiesCommandError = async (output, context) => {
|
|
2508
|
+
const parsedOutput = {
|
|
2509
|
+
...output,
|
|
2510
|
+
body: await parseBody(output.body, context),
|
|
2511
|
+
};
|
|
2512
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2513
|
+
switch (errorCode) {
|
|
2514
|
+
case "AccessDeniedException":
|
|
2515
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2516
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2517
|
+
case "InvalidParameterValuesException":
|
|
2518
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2519
|
+
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2520
|
+
case "OperationNotSupportedException":
|
|
2521
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2522
|
+
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
2523
|
+
case "ResourceNotFoundException":
|
|
2524
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2525
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2526
|
+
default:
|
|
2527
|
+
const parsedBody = parsedOutput.body;
|
|
2528
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2529
|
+
output,
|
|
2530
|
+
parsedBody,
|
|
2531
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2532
|
+
errorCode,
|
|
2546
2533
|
});
|
|
2547
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2548
2534
|
}
|
|
2549
2535
|
};
|
|
2550
2536
|
const deserializeAws_json1_1ModifySelfservicePermissionsCommand = async (output, context) => {
|
|
@@ -2566,7 +2552,6 @@ const deserializeAws_json1_1ModifySelfservicePermissionsCommandError = async (ou
|
|
|
2566
2552
|
...output,
|
|
2567
2553
|
body: await parseBody(output.body, context),
|
|
2568
2554
|
};
|
|
2569
|
-
let response;
|
|
2570
2555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2571
2556
|
switch (errorCode) {
|
|
2572
2557
|
case "AccessDeniedException":
|
|
@@ -2580,14 +2565,12 @@ const deserializeAws_json1_1ModifySelfservicePermissionsCommandError = async (ou
|
|
|
2580
2565
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2581
2566
|
default:
|
|
2582
2567
|
const parsedBody = parsedOutput.body;
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
$metadata,
|
|
2568
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2569
|
+
output,
|
|
2570
|
+
parsedBody,
|
|
2571
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2572
|
+
errorCode,
|
|
2589
2573
|
});
|
|
2590
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2591
2574
|
}
|
|
2592
2575
|
};
|
|
2593
2576
|
const deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommand = async (output, context) => {
|
|
@@ -2609,7 +2592,6 @@ const deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommandError = async
|
|
|
2609
2592
|
...output,
|
|
2610
2593
|
body: await parseBody(output.body, context),
|
|
2611
2594
|
};
|
|
2612
|
-
let response;
|
|
2613
2595
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2614
2596
|
switch (errorCode) {
|
|
2615
2597
|
case "AccessDeniedException":
|
|
@@ -2620,14 +2602,12 @@ const deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommandError = async
|
|
|
2620
2602
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2621
2603
|
default:
|
|
2622
2604
|
const parsedBody = parsedOutput.body;
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
$metadata,
|
|
2605
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2606
|
+
output,
|
|
2607
|
+
parsedBody,
|
|
2608
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2609
|
+
errorCode,
|
|
2629
2610
|
});
|
|
2630
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2631
2611
|
}
|
|
2632
2612
|
};
|
|
2633
2613
|
const deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommand = async (output, context) => {
|
|
@@ -2649,7 +2629,6 @@ const deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommandError = asyn
|
|
|
2649
2629
|
...output,
|
|
2650
2630
|
body: await parseBody(output.body, context),
|
|
2651
2631
|
};
|
|
2652
|
-
let response;
|
|
2653
2632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2654
2633
|
switch (errorCode) {
|
|
2655
2634
|
case "AccessDeniedException":
|
|
@@ -2666,14 +2645,12 @@ const deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommandError = asyn
|
|
|
2666
2645
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2667
2646
|
default:
|
|
2668
2647
|
const parsedBody = parsedOutput.body;
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
$metadata,
|
|
2648
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2649
|
+
output,
|
|
2650
|
+
parsedBody,
|
|
2651
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2652
|
+
errorCode,
|
|
2675
2653
|
});
|
|
2676
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2677
2654
|
}
|
|
2678
2655
|
};
|
|
2679
2656
|
const deserializeAws_json1_1ModifyWorkspacePropertiesCommand = async (output, context) => {
|
|
@@ -2695,7 +2672,6 @@ const deserializeAws_json1_1ModifyWorkspacePropertiesCommandError = async (outpu
|
|
|
2695
2672
|
...output,
|
|
2696
2673
|
body: await parseBody(output.body, context),
|
|
2697
2674
|
};
|
|
2698
|
-
let response;
|
|
2699
2675
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2700
2676
|
switch (errorCode) {
|
|
2701
2677
|
case "AccessDeniedException":
|
|
@@ -2721,14 +2697,12 @@ const deserializeAws_json1_1ModifyWorkspacePropertiesCommandError = async (outpu
|
|
|
2721
2697
|
throw await deserializeAws_json1_1UnsupportedWorkspaceConfigurationExceptionResponse(parsedOutput, context);
|
|
2722
2698
|
default:
|
|
2723
2699
|
const parsedBody = parsedOutput.body;
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
$metadata,
|
|
2700
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2701
|
+
output,
|
|
2702
|
+
parsedBody,
|
|
2703
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2704
|
+
errorCode,
|
|
2730
2705
|
});
|
|
2731
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2732
2706
|
}
|
|
2733
2707
|
};
|
|
2734
2708
|
const deserializeAws_json1_1ModifyWorkspaceStateCommand = async (output, context) => {
|
|
@@ -2750,7 +2724,6 @@ const deserializeAws_json1_1ModifyWorkspaceStateCommandError = async (output, co
|
|
|
2750
2724
|
...output,
|
|
2751
2725
|
body: await parseBody(output.body, context),
|
|
2752
2726
|
};
|
|
2753
|
-
let response;
|
|
2754
2727
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2755
2728
|
switch (errorCode) {
|
|
2756
2729
|
case "InvalidParameterValuesException":
|
|
@@ -2764,14 +2737,12 @@ const deserializeAws_json1_1ModifyWorkspaceStateCommandError = async (output, co
|
|
|
2764
2737
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2765
2738
|
default:
|
|
2766
2739
|
const parsedBody = parsedOutput.body;
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
$metadata,
|
|
2740
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2741
|
+
output,
|
|
2742
|
+
parsedBody,
|
|
2743
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2744
|
+
errorCode,
|
|
2773
2745
|
});
|
|
2774
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2775
2746
|
}
|
|
2776
2747
|
};
|
|
2777
2748
|
const deserializeAws_json1_1RebootWorkspacesCommand = async (output, context) => {
|
|
@@ -2793,20 +2764,14 @@ const deserializeAws_json1_1RebootWorkspacesCommandError = async (output, contex
|
|
|
2793
2764
|
...output,
|
|
2794
2765
|
body: await parseBody(output.body, context),
|
|
2795
2766
|
};
|
|
2796
|
-
let response;
|
|
2797
2767
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
$fault: "client",
|
|
2806
|
-
$metadata,
|
|
2807
|
-
});
|
|
2808
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2809
|
-
}
|
|
2768
|
+
const parsedBody = parsedOutput.body;
|
|
2769
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2770
|
+
output,
|
|
2771
|
+
parsedBody,
|
|
2772
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2773
|
+
errorCode,
|
|
2774
|
+
});
|
|
2810
2775
|
};
|
|
2811
2776
|
const deserializeAws_json1_1RebuildWorkspacesCommand = async (output, context) => {
|
|
2812
2777
|
if (output.statusCode >= 300) {
|
|
@@ -2827,20 +2792,14 @@ const deserializeAws_json1_1RebuildWorkspacesCommandError = async (output, conte
|
|
|
2827
2792
|
...output,
|
|
2828
2793
|
body: await parseBody(output.body, context),
|
|
2829
2794
|
};
|
|
2830
|
-
let response;
|
|
2831
2795
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
$fault: "client",
|
|
2840
|
-
$metadata,
|
|
2841
|
-
});
|
|
2842
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2843
|
-
}
|
|
2796
|
+
const parsedBody = parsedOutput.body;
|
|
2797
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2798
|
+
output,
|
|
2799
|
+
parsedBody,
|
|
2800
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2801
|
+
errorCode,
|
|
2802
|
+
});
|
|
2844
2803
|
};
|
|
2845
2804
|
const deserializeAws_json1_1RegisterWorkspaceDirectoryCommand = async (output, context) => {
|
|
2846
2805
|
if (output.statusCode >= 300) {
|
|
@@ -2861,7 +2820,6 @@ const deserializeAws_json1_1RegisterWorkspaceDirectoryCommandError = async (outp
|
|
|
2861
2820
|
...output,
|
|
2862
2821
|
body: await parseBody(output.body, context),
|
|
2863
2822
|
};
|
|
2864
|
-
let response;
|
|
2865
2823
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2866
2824
|
switch (errorCode) {
|
|
2867
2825
|
case "AccessDeniedException":
|
|
@@ -2890,14 +2848,12 @@ const deserializeAws_json1_1RegisterWorkspaceDirectoryCommandError = async (outp
|
|
|
2890
2848
|
throw await deserializeAws_json1_1WorkspacesDefaultRoleNotFoundExceptionResponse(parsedOutput, context);
|
|
2891
2849
|
default:
|
|
2892
2850
|
const parsedBody = parsedOutput.body;
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
$metadata,
|
|
2851
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2852
|
+
output,
|
|
2853
|
+
parsedBody,
|
|
2854
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2855
|
+
errorCode,
|
|
2899
2856
|
});
|
|
2900
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2901
2857
|
}
|
|
2902
2858
|
};
|
|
2903
2859
|
const deserializeAws_json1_1RestoreWorkspaceCommand = async (output, context) => {
|
|
@@ -2919,7 +2875,6 @@ const deserializeAws_json1_1RestoreWorkspaceCommandError = async (output, contex
|
|
|
2919
2875
|
...output,
|
|
2920
2876
|
body: await parseBody(output.body, context),
|
|
2921
2877
|
};
|
|
2922
|
-
let response;
|
|
2923
2878
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2924
2879
|
switch (errorCode) {
|
|
2925
2880
|
case "AccessDeniedException":
|
|
@@ -2933,14 +2888,12 @@ const deserializeAws_json1_1RestoreWorkspaceCommandError = async (output, contex
|
|
|
2933
2888
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2934
2889
|
default:
|
|
2935
2890
|
const parsedBody = parsedOutput.body;
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
$metadata,
|
|
2891
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2892
|
+
output,
|
|
2893
|
+
parsedBody,
|
|
2894
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2895
|
+
errorCode,
|
|
2942
2896
|
});
|
|
2943
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2944
2897
|
}
|
|
2945
2898
|
};
|
|
2946
2899
|
const deserializeAws_json1_1RevokeIpRulesCommand = async (output, context) => {
|
|
@@ -2962,7 +2915,6 @@ const deserializeAws_json1_1RevokeIpRulesCommandError = async (output, context)
|
|
|
2962
2915
|
...output,
|
|
2963
2916
|
body: await parseBody(output.body, context),
|
|
2964
2917
|
};
|
|
2965
|
-
let response;
|
|
2966
2918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2967
2919
|
switch (errorCode) {
|
|
2968
2920
|
case "AccessDeniedException":
|
|
@@ -2979,14 +2931,12 @@ const deserializeAws_json1_1RevokeIpRulesCommandError = async (output, context)
|
|
|
2979
2931
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2980
2932
|
default:
|
|
2981
2933
|
const parsedBody = parsedOutput.body;
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
$metadata,
|
|
2934
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2935
|
+
output,
|
|
2936
|
+
parsedBody,
|
|
2937
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2938
|
+
errorCode,
|
|
2988
2939
|
});
|
|
2989
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2990
2940
|
}
|
|
2991
2941
|
};
|
|
2992
2942
|
const deserializeAws_json1_1StartWorkspacesCommand = async (output, context) => {
|
|
@@ -3008,20 +2958,14 @@ const deserializeAws_json1_1StartWorkspacesCommandError = async (output, context
|
|
|
3008
2958
|
...output,
|
|
3009
2959
|
body: await parseBody(output.body, context),
|
|
3010
2960
|
};
|
|
3011
|
-
let response;
|
|
3012
2961
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
$fault: "client",
|
|
3021
|
-
$metadata,
|
|
3022
|
-
});
|
|
3023
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3024
|
-
}
|
|
2962
|
+
const parsedBody = parsedOutput.body;
|
|
2963
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2964
|
+
output,
|
|
2965
|
+
parsedBody,
|
|
2966
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2967
|
+
errorCode,
|
|
2968
|
+
});
|
|
3025
2969
|
};
|
|
3026
2970
|
const deserializeAws_json1_1StopWorkspacesCommand = async (output, context) => {
|
|
3027
2971
|
if (output.statusCode >= 300) {
|
|
@@ -3042,20 +2986,14 @@ const deserializeAws_json1_1StopWorkspacesCommandError = async (output, context)
|
|
|
3042
2986
|
...output,
|
|
3043
2987
|
body: await parseBody(output.body, context),
|
|
3044
2988
|
};
|
|
3045
|
-
let response;
|
|
3046
2989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
$fault: "client",
|
|
3055
|
-
$metadata,
|
|
3056
|
-
});
|
|
3057
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3058
|
-
}
|
|
2990
|
+
const parsedBody = parsedOutput.body;
|
|
2991
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2992
|
+
output,
|
|
2993
|
+
parsedBody,
|
|
2994
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2995
|
+
errorCode,
|
|
2996
|
+
});
|
|
3059
2997
|
};
|
|
3060
2998
|
const deserializeAws_json1_1TerminateWorkspacesCommand = async (output, context) => {
|
|
3061
2999
|
if (output.statusCode >= 300) {
|
|
@@ -3076,20 +3014,14 @@ const deserializeAws_json1_1TerminateWorkspacesCommandError = async (output, con
|
|
|
3076
3014
|
...output,
|
|
3077
3015
|
body: await parseBody(output.body, context),
|
|
3078
3016
|
};
|
|
3079
|
-
let response;
|
|
3080
3017
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
$fault: "client",
|
|
3089
|
-
$metadata,
|
|
3090
|
-
});
|
|
3091
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3092
|
-
}
|
|
3018
|
+
const parsedBody = parsedOutput.body;
|
|
3019
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3020
|
+
output,
|
|
3021
|
+
parsedBody,
|
|
3022
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3023
|
+
errorCode,
|
|
3024
|
+
});
|
|
3093
3025
|
};
|
|
3094
3026
|
const deserializeAws_json1_1UpdateConnectClientAddInCommand = async (output, context) => {
|
|
3095
3027
|
if (output.statusCode >= 300) {
|
|
@@ -3110,7 +3042,6 @@ const deserializeAws_json1_1UpdateConnectClientAddInCommandError = async (output
|
|
|
3110
3042
|
...output,
|
|
3111
3043
|
body: await parseBody(output.body, context),
|
|
3112
3044
|
};
|
|
3113
|
-
let response;
|
|
3114
3045
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3115
3046
|
switch (errorCode) {
|
|
3116
3047
|
case "AccessDeniedException":
|
|
@@ -3124,14 +3055,12 @@ const deserializeAws_json1_1UpdateConnectClientAddInCommandError = async (output
|
|
|
3124
3055
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3125
3056
|
default:
|
|
3126
3057
|
const parsedBody = parsedOutput.body;
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
$metadata,
|
|
3058
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3059
|
+
output,
|
|
3060
|
+
parsedBody,
|
|
3061
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3062
|
+
errorCode,
|
|
3133
3063
|
});
|
|
3134
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3135
3064
|
}
|
|
3136
3065
|
};
|
|
3137
3066
|
const deserializeAws_json1_1UpdateConnectionAliasPermissionCommand = async (output, context) => {
|
|
@@ -3153,7 +3082,6 @@ const deserializeAws_json1_1UpdateConnectionAliasPermissionCommandError = async
|
|
|
3153
3082
|
...output,
|
|
3154
3083
|
body: await parseBody(output.body, context),
|
|
3155
3084
|
};
|
|
3156
|
-
let response;
|
|
3157
3085
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3158
3086
|
switch (errorCode) {
|
|
3159
3087
|
case "AccessDeniedException":
|
|
@@ -3179,14 +3107,12 @@ const deserializeAws_json1_1UpdateConnectionAliasPermissionCommandError = async
|
|
|
3179
3107
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3180
3108
|
default:
|
|
3181
3109
|
const parsedBody = parsedOutput.body;
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
$metadata,
|
|
3110
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3111
|
+
output,
|
|
3112
|
+
parsedBody,
|
|
3113
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3114
|
+
errorCode,
|
|
3188
3115
|
});
|
|
3189
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3190
3116
|
}
|
|
3191
3117
|
};
|
|
3192
3118
|
const deserializeAws_json1_1UpdateRulesOfIpGroupCommand = async (output, context) => {
|
|
@@ -3208,7 +3134,6 @@ const deserializeAws_json1_1UpdateRulesOfIpGroupCommandError = async (output, co
|
|
|
3208
3134
|
...output,
|
|
3209
3135
|
body: await parseBody(output.body, context),
|
|
3210
3136
|
};
|
|
3211
|
-
let response;
|
|
3212
3137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3213
3138
|
switch (errorCode) {
|
|
3214
3139
|
case "AccessDeniedException":
|
|
@@ -3228,14 +3153,12 @@ const deserializeAws_json1_1UpdateRulesOfIpGroupCommandError = async (output, co
|
|
|
3228
3153
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3229
3154
|
default:
|
|
3230
3155
|
const parsedBody = parsedOutput.body;
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
$metadata,
|
|
3156
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3157
|
+
output,
|
|
3158
|
+
parsedBody,
|
|
3159
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3160
|
+
errorCode,
|
|
3237
3161
|
});
|
|
3238
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3239
3162
|
}
|
|
3240
3163
|
};
|
|
3241
3164
|
const deserializeAws_json1_1UpdateWorkspaceBundleCommand = async (output, context) => {
|
|
@@ -3257,7 +3180,6 @@ const deserializeAws_json1_1UpdateWorkspaceBundleCommandError = async (output, c
|
|
|
3257
3180
|
...output,
|
|
3258
3181
|
body: await parseBody(output.body, context),
|
|
3259
3182
|
};
|
|
3260
|
-
let response;
|
|
3261
3183
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3262
3184
|
switch (errorCode) {
|
|
3263
3185
|
case "AccessDeniedException":
|
|
@@ -3274,14 +3196,12 @@ const deserializeAws_json1_1UpdateWorkspaceBundleCommandError = async (output, c
|
|
|
3274
3196
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
3275
3197
|
default:
|
|
3276
3198
|
const parsedBody = parsedOutput.body;
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
$metadata,
|
|
3199
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3200
|
+
output,
|
|
3201
|
+
parsedBody,
|
|
3202
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3203
|
+
errorCode,
|
|
3283
3204
|
});
|
|
3284
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3285
3205
|
}
|
|
3286
3206
|
};
|
|
3287
3207
|
const deserializeAws_json1_1UpdateWorkspaceImagePermissionCommand = async (output, context) => {
|
|
@@ -3303,7 +3223,6 @@ const deserializeAws_json1_1UpdateWorkspaceImagePermissionCommandError = async (
|
|
|
3303
3223
|
...output,
|
|
3304
3224
|
body: await parseBody(output.body, context),
|
|
3305
3225
|
};
|
|
3306
|
-
let response;
|
|
3307
3226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3308
3227
|
switch (errorCode) {
|
|
3309
3228
|
case "AccessDeniedException":
|
|
@@ -3323,14 +3242,12 @@ const deserializeAws_json1_1UpdateWorkspaceImagePermissionCommandError = async (
|
|
|
3323
3242
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
3324
3243
|
default:
|
|
3325
3244
|
const parsedBody = parsedOutput.body;
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
$metadata,
|
|
3245
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3246
|
+
output,
|
|
3247
|
+
parsedBody,
|
|
3248
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3249
|
+
errorCode,
|
|
3332
3250
|
});
|
|
3333
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3334
3251
|
}
|
|
3335
3252
|
};
|
|
3336
3253
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -3463,9 +3380,6 @@ const serializeAws_json1_1ApplicationList = (input, context) => {
|
|
|
3463
3380
|
return input
|
|
3464
3381
|
.filter((e) => e != null)
|
|
3465
3382
|
.map((entry) => {
|
|
3466
|
-
if (entry === null) {
|
|
3467
|
-
return null;
|
|
3468
|
-
}
|
|
3469
3383
|
return entry;
|
|
3470
3384
|
});
|
|
3471
3385
|
};
|
|
@@ -3491,9 +3405,6 @@ const serializeAws_json1_1BundleIdList = (input, context) => {
|
|
|
3491
3405
|
return input
|
|
3492
3406
|
.filter((e) => e != null)
|
|
3493
3407
|
.map((entry) => {
|
|
3494
|
-
if (entry === null) {
|
|
3495
|
-
return null;
|
|
3496
|
-
}
|
|
3497
3408
|
return entry;
|
|
3498
3409
|
});
|
|
3499
3410
|
};
|
|
@@ -3501,9 +3412,6 @@ const serializeAws_json1_1ClientDeviceTypeList = (input, context) => {
|
|
|
3501
3412
|
return input
|
|
3502
3413
|
.filter((e) => e != null)
|
|
3503
3414
|
.map((entry) => {
|
|
3504
|
-
if (entry === null) {
|
|
3505
|
-
return null;
|
|
3506
|
-
}
|
|
3507
3415
|
return entry;
|
|
3508
3416
|
});
|
|
3509
3417
|
};
|
|
@@ -3521,9 +3429,6 @@ const serializeAws_json1_1ConnectionAliasIdList = (input, context) => {
|
|
|
3521
3429
|
return input
|
|
3522
3430
|
.filter((e) => e != null)
|
|
3523
3431
|
.map((entry) => {
|
|
3524
|
-
if (entry === null) {
|
|
3525
|
-
return null;
|
|
3526
|
-
}
|
|
3527
3432
|
return entry;
|
|
3528
3433
|
});
|
|
3529
3434
|
};
|
|
@@ -3588,6 +3493,14 @@ const serializeAws_json1_1CreateWorkspaceBundleRequest = (input, context) => {
|
|
|
3588
3493
|
...(input.UserStorage != null && { UserStorage: serializeAws_json1_1UserStorage(input.UserStorage, context) }),
|
|
3589
3494
|
};
|
|
3590
3495
|
};
|
|
3496
|
+
const serializeAws_json1_1CreateWorkspaceImageRequest = (input, context) => {
|
|
3497
|
+
return {
|
|
3498
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3499
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3500
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3501
|
+
...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
|
|
3502
|
+
};
|
|
3503
|
+
};
|
|
3591
3504
|
const serializeAws_json1_1CreateWorkspacesRequest = (input, context) => {
|
|
3592
3505
|
return {
|
|
3593
3506
|
...(input.Workspaces != null && {
|
|
@@ -3604,6 +3517,13 @@ const serializeAws_json1_1DefaultImportClientBrandingAttributes = (input, contex
|
|
|
3604
3517
|
...(input.SupportLink != null && { SupportLink: input.SupportLink }),
|
|
3605
3518
|
};
|
|
3606
3519
|
};
|
|
3520
|
+
const serializeAws_json1_1DeletableSamlPropertiesList = (input, context) => {
|
|
3521
|
+
return input
|
|
3522
|
+
.filter((e) => e != null)
|
|
3523
|
+
.map((entry) => {
|
|
3524
|
+
return entry;
|
|
3525
|
+
});
|
|
3526
|
+
};
|
|
3607
3527
|
const serializeAws_json1_1DeleteClientBrandingRequest = (input, context) => {
|
|
3608
3528
|
return {
|
|
3609
3529
|
...(input.Platforms != null && { Platforms: serializeAws_json1_1ClientDeviceTypeList(input.Platforms, context) }),
|
|
@@ -3759,9 +3679,6 @@ const serializeAws_json1_1DirectoryIdList = (input, context) => {
|
|
|
3759
3679
|
return input
|
|
3760
3680
|
.filter((e) => e != null)
|
|
3761
3681
|
.map((entry) => {
|
|
3762
|
-
if (entry === null) {
|
|
3763
|
-
return null;
|
|
3764
|
-
}
|
|
3765
3682
|
return entry;
|
|
3766
3683
|
});
|
|
3767
3684
|
};
|
|
@@ -3826,9 +3743,6 @@ const serializeAws_json1_1IpGroupIdList = (input, context) => {
|
|
|
3826
3743
|
return input
|
|
3827
3744
|
.filter((e) => e != null)
|
|
3828
3745
|
.map((entry) => {
|
|
3829
|
-
if (entry === null) {
|
|
3830
|
-
return null;
|
|
3831
|
-
}
|
|
3832
3746
|
return entry;
|
|
3833
3747
|
});
|
|
3834
3748
|
};
|
|
@@ -3836,9 +3750,6 @@ const serializeAws_json1_1IpRevokedRuleList = (input, context) => {
|
|
|
3836
3750
|
return input
|
|
3837
3751
|
.filter((e) => e != null)
|
|
3838
3752
|
.map((entry) => {
|
|
3839
|
-
if (entry === null) {
|
|
3840
|
-
return null;
|
|
3841
|
-
}
|
|
3842
3753
|
return entry;
|
|
3843
3754
|
});
|
|
3844
3755
|
};
|
|
@@ -3852,9 +3763,6 @@ const serializeAws_json1_1IpRuleList = (input, context) => {
|
|
|
3852
3763
|
return input
|
|
3853
3764
|
.filter((e) => e != null)
|
|
3854
3765
|
.map((entry) => {
|
|
3855
|
-
if (entry === null) {
|
|
3856
|
-
return null;
|
|
3857
|
-
}
|
|
3858
3766
|
return serializeAws_json1_1IpRuleItem(entry, context);
|
|
3859
3767
|
});
|
|
3860
3768
|
};
|
|
@@ -3900,6 +3808,17 @@ const serializeAws_json1_1ModifyClientPropertiesRequest = (input, context) => {
|
|
|
3900
3808
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3901
3809
|
};
|
|
3902
3810
|
};
|
|
3811
|
+
const serializeAws_json1_1ModifySamlPropertiesRequest = (input, context) => {
|
|
3812
|
+
return {
|
|
3813
|
+
...(input.PropertiesToDelete != null && {
|
|
3814
|
+
PropertiesToDelete: serializeAws_json1_1DeletableSamlPropertiesList(input.PropertiesToDelete, context),
|
|
3815
|
+
}),
|
|
3816
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3817
|
+
...(input.SamlProperties != null && {
|
|
3818
|
+
SamlProperties: serializeAws_json1_1SamlProperties(input.SamlProperties, context),
|
|
3819
|
+
}),
|
|
3820
|
+
};
|
|
3821
|
+
};
|
|
3903
3822
|
const serializeAws_json1_1ModifySelfservicePermissionsRequest = (input, context) => {
|
|
3904
3823
|
return {
|
|
3905
3824
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
@@ -3947,9 +3866,6 @@ const serializeAws_json1_1RebootWorkspaceRequests = (input, context) => {
|
|
|
3947
3866
|
return input
|
|
3948
3867
|
.filter((e) => e != null)
|
|
3949
3868
|
.map((entry) => {
|
|
3950
|
-
if (entry === null) {
|
|
3951
|
-
return null;
|
|
3952
|
-
}
|
|
3953
3869
|
return serializeAws_json1_1RebootRequest(entry, context);
|
|
3954
3870
|
});
|
|
3955
3871
|
};
|
|
@@ -3969,9 +3885,6 @@ const serializeAws_json1_1RebuildWorkspaceRequests = (input, context) => {
|
|
|
3969
3885
|
return input
|
|
3970
3886
|
.filter((e) => e != null)
|
|
3971
3887
|
.map((entry) => {
|
|
3972
|
-
if (entry === null) {
|
|
3973
|
-
return null;
|
|
3974
|
-
}
|
|
3975
3888
|
return serializeAws_json1_1RebuildRequest(entry, context);
|
|
3976
3889
|
});
|
|
3977
3890
|
};
|
|
@@ -3996,9 +3909,6 @@ const serializeAws_json1_1ResourceIdList = (input, context) => {
|
|
|
3996
3909
|
return input
|
|
3997
3910
|
.filter((e) => e != null)
|
|
3998
3911
|
.map((entry) => {
|
|
3999
|
-
if (entry === null) {
|
|
4000
|
-
return null;
|
|
4001
|
-
}
|
|
4002
3912
|
return entry;
|
|
4003
3913
|
});
|
|
4004
3914
|
};
|
|
@@ -4018,6 +3928,13 @@ const serializeAws_json1_1RootStorage = (input, context) => {
|
|
|
4018
3928
|
...(input.Capacity != null && { Capacity: input.Capacity }),
|
|
4019
3929
|
};
|
|
4020
3930
|
};
|
|
3931
|
+
const serializeAws_json1_1SamlProperties = (input, context) => {
|
|
3932
|
+
return {
|
|
3933
|
+
...(input.RelayStateParameterName != null && { RelayStateParameterName: input.RelayStateParameterName }),
|
|
3934
|
+
...(input.Status != null && { Status: input.Status }),
|
|
3935
|
+
...(input.UserAccessUrl != null && { UserAccessUrl: input.UserAccessUrl }),
|
|
3936
|
+
};
|
|
3937
|
+
};
|
|
4021
3938
|
const serializeAws_json1_1SelfservicePermissions = (input, context) => {
|
|
4022
3939
|
return {
|
|
4023
3940
|
...(input.ChangeComputeType != null && { ChangeComputeType: input.ChangeComputeType }),
|
|
@@ -4036,9 +3953,6 @@ const serializeAws_json1_1StartWorkspaceRequests = (input, context) => {
|
|
|
4036
3953
|
return input
|
|
4037
3954
|
.filter((e) => e != null)
|
|
4038
3955
|
.map((entry) => {
|
|
4039
|
-
if (entry === null) {
|
|
4040
|
-
return null;
|
|
4041
|
-
}
|
|
4042
3956
|
return serializeAws_json1_1StartRequest(entry, context);
|
|
4043
3957
|
});
|
|
4044
3958
|
};
|
|
@@ -4058,9 +3972,6 @@ const serializeAws_json1_1StopWorkspaceRequests = (input, context) => {
|
|
|
4058
3972
|
return input
|
|
4059
3973
|
.filter((e) => e != null)
|
|
4060
3974
|
.map((entry) => {
|
|
4061
|
-
if (entry === null) {
|
|
4062
|
-
return null;
|
|
4063
|
-
}
|
|
4064
3975
|
return serializeAws_json1_1StopRequest(entry, context);
|
|
4065
3976
|
});
|
|
4066
3977
|
};
|
|
@@ -4075,9 +3986,6 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
|
|
|
4075
3986
|
return input
|
|
4076
3987
|
.filter((e) => e != null)
|
|
4077
3988
|
.map((entry) => {
|
|
4078
|
-
if (entry === null) {
|
|
4079
|
-
return null;
|
|
4080
|
-
}
|
|
4081
3989
|
return entry;
|
|
4082
3990
|
});
|
|
4083
3991
|
};
|
|
@@ -4091,9 +3999,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
4091
3999
|
return input
|
|
4092
4000
|
.filter((e) => e != null)
|
|
4093
4001
|
.map((entry) => {
|
|
4094
|
-
if (entry === null) {
|
|
4095
|
-
return null;
|
|
4096
|
-
}
|
|
4097
4002
|
return entry;
|
|
4098
4003
|
});
|
|
4099
4004
|
};
|
|
@@ -4101,9 +4006,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
4101
4006
|
return input
|
|
4102
4007
|
.filter((e) => e != null)
|
|
4103
4008
|
.map((entry) => {
|
|
4104
|
-
if (entry === null) {
|
|
4105
|
-
return null;
|
|
4106
|
-
}
|
|
4107
4009
|
return serializeAws_json1_1Tag(entry, context);
|
|
4108
4010
|
});
|
|
4109
4011
|
};
|
|
@@ -4116,9 +4018,6 @@ const serializeAws_json1_1TerminateWorkspaceRequests = (input, context) => {
|
|
|
4116
4018
|
return input
|
|
4117
4019
|
.filter((e) => e != null)
|
|
4118
4020
|
.map((entry) => {
|
|
4119
|
-
if (entry === null) {
|
|
4120
|
-
return null;
|
|
4121
|
-
}
|
|
4122
4021
|
return serializeAws_json1_1TerminateRequest(entry, context);
|
|
4123
4022
|
});
|
|
4124
4023
|
};
|
|
@@ -4197,9 +4096,6 @@ const serializeAws_json1_1WorkspaceIdList = (input, context) => {
|
|
|
4197
4096
|
return input
|
|
4198
4097
|
.filter((e) => e != null)
|
|
4199
4098
|
.map((entry) => {
|
|
4200
|
-
if (entry === null) {
|
|
4201
|
-
return null;
|
|
4202
|
-
}
|
|
4203
4099
|
return entry;
|
|
4204
4100
|
});
|
|
4205
4101
|
};
|
|
@@ -4207,9 +4103,6 @@ const serializeAws_json1_1WorkspaceImageIdList = (input, context) => {
|
|
|
4207
4103
|
return input
|
|
4208
4104
|
.filter((e) => e != null)
|
|
4209
4105
|
.map((entry) => {
|
|
4210
|
-
if (entry === null) {
|
|
4211
|
-
return null;
|
|
4212
|
-
}
|
|
4213
4106
|
return entry;
|
|
4214
4107
|
});
|
|
4215
4108
|
};
|
|
@@ -4246,9 +4139,6 @@ const serializeAws_json1_1WorkspaceRequestList = (input, context) => {
|
|
|
4246
4139
|
return input
|
|
4247
4140
|
.filter((e) => e != null)
|
|
4248
4141
|
.map((entry) => {
|
|
4249
|
-
if (entry === null) {
|
|
4250
|
-
return null;
|
|
4251
|
-
}
|
|
4252
4142
|
return serializeAws_json1_1WorkspaceRequest(entry, context);
|
|
4253
4143
|
});
|
|
4254
4144
|
};
|
|
@@ -4441,6 +4331,20 @@ const deserializeAws_json1_1CreateWorkspaceBundleResult = (output, context) => {
|
|
|
4441
4331
|
: undefined,
|
|
4442
4332
|
};
|
|
4443
4333
|
};
|
|
4334
|
+
const deserializeAws_json1_1CreateWorkspaceImageResult = (output, context) => {
|
|
4335
|
+
return {
|
|
4336
|
+
Created: output.Created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Created))) : undefined,
|
|
4337
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4338
|
+
ImageId: (0, smithy_client_1.expectString)(output.ImageId),
|
|
4339
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4340
|
+
OperatingSystem: output.OperatingSystem != null
|
|
4341
|
+
? deserializeAws_json1_1OperatingSystem(output.OperatingSystem, context)
|
|
4342
|
+
: undefined,
|
|
4343
|
+
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
4344
|
+
RequiredTenancy: (0, smithy_client_1.expectString)(output.RequiredTenancy),
|
|
4345
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
4346
|
+
};
|
|
4347
|
+
};
|
|
4444
4348
|
const deserializeAws_json1_1CreateWorkspacesResult = (output, context) => {
|
|
4445
4349
|
return {
|
|
4446
4350
|
FailedRequests: output.FailedRequests != null
|
|
@@ -4881,6 +4785,9 @@ const deserializeAws_json1_1ModifyAccountResult = (output, context) => {
|
|
|
4881
4785
|
const deserializeAws_json1_1ModifyClientPropertiesResult = (output, context) => {
|
|
4882
4786
|
return {};
|
|
4883
4787
|
};
|
|
4788
|
+
const deserializeAws_json1_1ModifySamlPropertiesResult = (output, context) => {
|
|
4789
|
+
return {};
|
|
4790
|
+
};
|
|
4884
4791
|
const deserializeAws_json1_1ModifySelfservicePermissionsResult = (output, context) => {
|
|
4885
4792
|
return {};
|
|
4886
4793
|
};
|
|
@@ -4972,6 +4879,13 @@ const deserializeAws_json1_1RootStorage = (output, context) => {
|
|
|
4972
4879
|
Capacity: (0, smithy_client_1.expectString)(output.Capacity),
|
|
4973
4880
|
};
|
|
4974
4881
|
};
|
|
4882
|
+
const deserializeAws_json1_1SamlProperties = (output, context) => {
|
|
4883
|
+
return {
|
|
4884
|
+
RelayStateParameterName: (0, smithy_client_1.expectString)(output.RelayStateParameterName),
|
|
4885
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4886
|
+
UserAccessUrl: (0, smithy_client_1.expectString)(output.UserAccessUrl),
|
|
4887
|
+
};
|
|
4888
|
+
};
|
|
4975
4889
|
const deserializeAws_json1_1SelfservicePermissions = (output, context) => {
|
|
4976
4890
|
return {
|
|
4977
4891
|
ChangeComputeType: (0, smithy_client_1.expectString)(output.ChangeComputeType),
|
|
@@ -5170,6 +5084,7 @@ const deserializeAws_json1_1WorkspaceDirectory = (output, context) => {
|
|
|
5170
5084
|
DnsIpAddresses: output.DnsIpAddresses != null ? deserializeAws_json1_1DnsIpAddresses(output.DnsIpAddresses, context) : undefined,
|
|
5171
5085
|
IamRoleId: (0, smithy_client_1.expectString)(output.IamRoleId),
|
|
5172
5086
|
RegistrationCode: (0, smithy_client_1.expectString)(output.RegistrationCode),
|
|
5087
|
+
SamlProperties: output.SamlProperties != null ? deserializeAws_json1_1SamlProperties(output.SamlProperties, context) : undefined,
|
|
5173
5088
|
SelfservicePermissions: output.SelfservicePermissions != null
|
|
5174
5089
|
? deserializeAws_json1_1SelfservicePermissions(output.SelfservicePermissions, context)
|
|
5175
5090
|
: undefined,
|