@aws-sdk/client-workspaces 3.138.0 → 3.145.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 +30 -0
- package/README.md +1 -1
- package/dist-cjs/WorkSpaces.js +15 -0
- package/dist-cjs/commands/ModifySamlPropertiesCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +28 -5
- package/dist-cjs/protocols/Aws_json1_1.js +412 -584
- package/dist-es/WorkSpaces.js +15 -0
- package/dist-es/commands/ModifySamlPropertiesCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +14 -0
- package/dist-es/protocols/Aws_json1_1.js +599 -582
- package/dist-types/WorkSpaces.d.ts +9 -0
- package/dist-types/WorkSpacesClient.d.ts +3 -2
- package/dist-types/commands/ModifySamlPropertiesCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +94 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/WorkSpaces.d.ts +5 -0
- package/dist-types/ts3.4/WorkSpacesClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/ModifySamlPropertiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +36 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/package.json +11 -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 = exports.deserializeAws_json1_1ImportWorkspaceImageCommand = exports.deserializeAws_json1_1ImportClientBrandingCommand = 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");
|
|
@@ -447,6 +447,16 @@ const serializeAws_json1_1ModifyClientPropertiesCommand = async (input, context)
|
|
|
447
447
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
448
448
|
};
|
|
449
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;
|
|
450
460
|
const serializeAws_json1_1ModifySelfservicePermissionsCommand = async (input, context) => {
|
|
451
461
|
const headers = {
|
|
452
462
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -646,7 +656,6 @@ const deserializeAws_json1_1AssociateConnectionAliasCommandError = async (output
|
|
|
646
656
|
...output,
|
|
647
657
|
body: await parseBody(output.body, context),
|
|
648
658
|
};
|
|
649
|
-
let response;
|
|
650
659
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
660
|
switch (errorCode) {
|
|
652
661
|
case "AccessDeniedException":
|
|
@@ -669,14 +678,12 @@ const deserializeAws_json1_1AssociateConnectionAliasCommandError = async (output
|
|
|
669
678
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
670
679
|
default:
|
|
671
680
|
const parsedBody = parsedOutput.body;
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
$metadata,
|
|
681
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
682
|
+
output,
|
|
683
|
+
parsedBody,
|
|
684
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
685
|
+
errorCode,
|
|
678
686
|
});
|
|
679
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
680
687
|
}
|
|
681
688
|
};
|
|
682
689
|
const deserializeAws_json1_1AssociateIpGroupsCommand = async (output, context) => {
|
|
@@ -698,7 +705,6 @@ const deserializeAws_json1_1AssociateIpGroupsCommandError = async (output, conte
|
|
|
698
705
|
...output,
|
|
699
706
|
body: await parseBody(output.body, context),
|
|
700
707
|
};
|
|
701
|
-
let response;
|
|
702
708
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
703
709
|
switch (errorCode) {
|
|
704
710
|
case "AccessDeniedException":
|
|
@@ -721,14 +727,12 @@ const deserializeAws_json1_1AssociateIpGroupsCommandError = async (output, conte
|
|
|
721
727
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
722
728
|
default:
|
|
723
729
|
const parsedBody = parsedOutput.body;
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
$metadata,
|
|
730
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
731
|
+
output,
|
|
732
|
+
parsedBody,
|
|
733
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
734
|
+
errorCode,
|
|
730
735
|
});
|
|
731
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
732
736
|
}
|
|
733
737
|
};
|
|
734
738
|
const deserializeAws_json1_1AuthorizeIpRulesCommand = async (output, context) => {
|
|
@@ -750,7 +754,6 @@ const deserializeAws_json1_1AuthorizeIpRulesCommandError = async (output, contex
|
|
|
750
754
|
...output,
|
|
751
755
|
body: await parseBody(output.body, context),
|
|
752
756
|
};
|
|
753
|
-
let response;
|
|
754
757
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
758
|
switch (errorCode) {
|
|
756
759
|
case "AccessDeniedException":
|
|
@@ -770,14 +773,12 @@ const deserializeAws_json1_1AuthorizeIpRulesCommandError = async (output, contex
|
|
|
770
773
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
771
774
|
default:
|
|
772
775
|
const parsedBody = parsedOutput.body;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
$metadata,
|
|
776
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
777
|
+
output,
|
|
778
|
+
parsedBody,
|
|
779
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
780
|
+
errorCode,
|
|
779
781
|
});
|
|
780
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
781
782
|
}
|
|
782
783
|
};
|
|
783
784
|
const deserializeAws_json1_1CopyWorkspaceImageCommand = async (output, context) => {
|
|
@@ -799,7 +800,6 @@ const deserializeAws_json1_1CopyWorkspaceImageCommandError = async (output, cont
|
|
|
799
800
|
...output,
|
|
800
801
|
body: await parseBody(output.body, context),
|
|
801
802
|
};
|
|
802
|
-
let response;
|
|
803
803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
804
|
switch (errorCode) {
|
|
805
805
|
case "AccessDeniedException":
|
|
@@ -825,14 +825,12 @@ const deserializeAws_json1_1CopyWorkspaceImageCommandError = async (output, cont
|
|
|
825
825
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
826
826
|
default:
|
|
827
827
|
const parsedBody = parsedOutput.body;
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
$metadata,
|
|
828
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
829
|
+
output,
|
|
830
|
+
parsedBody,
|
|
831
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
832
|
+
errorCode,
|
|
834
833
|
});
|
|
835
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
836
834
|
}
|
|
837
835
|
};
|
|
838
836
|
const deserializeAws_json1_1CreateConnectClientAddInCommand = async (output, context) => {
|
|
@@ -854,7 +852,6 @@ const deserializeAws_json1_1CreateConnectClientAddInCommandError = async (output
|
|
|
854
852
|
...output,
|
|
855
853
|
body: await parseBody(output.body, context),
|
|
856
854
|
};
|
|
857
|
-
let response;
|
|
858
855
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
856
|
switch (errorCode) {
|
|
860
857
|
case "AccessDeniedException":
|
|
@@ -874,14 +871,12 @@ const deserializeAws_json1_1CreateConnectClientAddInCommandError = async (output
|
|
|
874
871
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
875
872
|
default:
|
|
876
873
|
const parsedBody = parsedOutput.body;
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
$metadata,
|
|
874
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
875
|
+
output,
|
|
876
|
+
parsedBody,
|
|
877
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
878
|
+
errorCode,
|
|
883
879
|
});
|
|
884
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
885
880
|
}
|
|
886
881
|
};
|
|
887
882
|
const deserializeAws_json1_1CreateConnectionAliasCommand = async (output, context) => {
|
|
@@ -903,7 +898,6 @@ const deserializeAws_json1_1CreateConnectionAliasCommandError = async (output, c
|
|
|
903
898
|
...output,
|
|
904
899
|
body: await parseBody(output.body, context),
|
|
905
900
|
};
|
|
906
|
-
let response;
|
|
907
901
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
902
|
switch (errorCode) {
|
|
909
903
|
case "AccessDeniedException":
|
|
@@ -926,14 +920,12 @@ const deserializeAws_json1_1CreateConnectionAliasCommandError = async (output, c
|
|
|
926
920
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
927
921
|
default:
|
|
928
922
|
const parsedBody = parsedOutput.body;
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
$metadata,
|
|
923
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
924
|
+
output,
|
|
925
|
+
parsedBody,
|
|
926
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
927
|
+
errorCode,
|
|
935
928
|
});
|
|
936
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
937
929
|
}
|
|
938
930
|
};
|
|
939
931
|
const deserializeAws_json1_1CreateIpGroupCommand = async (output, context) => {
|
|
@@ -955,7 +947,6 @@ const deserializeAws_json1_1CreateIpGroupCommandError = async (output, context)
|
|
|
955
947
|
...output,
|
|
956
948
|
body: await parseBody(output.body, context),
|
|
957
949
|
};
|
|
958
|
-
let response;
|
|
959
950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
951
|
switch (errorCode) {
|
|
961
952
|
case "AccessDeniedException":
|
|
@@ -975,14 +966,12 @@ const deserializeAws_json1_1CreateIpGroupCommandError = async (output, context)
|
|
|
975
966
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
976
967
|
default:
|
|
977
968
|
const parsedBody = parsedOutput.body;
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
$metadata,
|
|
969
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
970
|
+
output,
|
|
971
|
+
parsedBody,
|
|
972
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
973
|
+
errorCode,
|
|
984
974
|
});
|
|
985
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
986
975
|
}
|
|
987
976
|
};
|
|
988
977
|
const deserializeAws_json1_1CreateTagsCommand = async (output, context) => {
|
|
@@ -1004,7 +993,6 @@ const deserializeAws_json1_1CreateTagsCommandError = async (output, context) =>
|
|
|
1004
993
|
...output,
|
|
1005
994
|
body: await parseBody(output.body, context),
|
|
1006
995
|
};
|
|
1007
|
-
let response;
|
|
1008
996
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
997
|
switch (errorCode) {
|
|
1010
998
|
case "InvalidParameterValuesException":
|
|
@@ -1018,14 +1006,12 @@ const deserializeAws_json1_1CreateTagsCommandError = async (output, context) =>
|
|
|
1018
1006
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1019
1007
|
default:
|
|
1020
1008
|
const parsedBody = parsedOutput.body;
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
$metadata,
|
|
1009
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1010
|
+
output,
|
|
1011
|
+
parsedBody,
|
|
1012
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1013
|
+
errorCode,
|
|
1027
1014
|
});
|
|
1028
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1029
1015
|
}
|
|
1030
1016
|
};
|
|
1031
1017
|
const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommand = async (output, context) => {
|
|
@@ -1047,7 +1033,6 @@ const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommandError = async (out
|
|
|
1047
1033
|
...output,
|
|
1048
1034
|
body: await parseBody(output.body, context),
|
|
1049
1035
|
};
|
|
1050
|
-
let response;
|
|
1051
1036
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
1037
|
switch (errorCode) {
|
|
1053
1038
|
case "AccessDeniedException":
|
|
@@ -1073,14 +1058,12 @@ const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommandError = async (out
|
|
|
1073
1058
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1074
1059
|
default:
|
|
1075
1060
|
const parsedBody = parsedOutput.body;
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
$metadata,
|
|
1061
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1062
|
+
output,
|
|
1063
|
+
parsedBody,
|
|
1064
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1065
|
+
errorCode,
|
|
1082
1066
|
});
|
|
1083
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1084
1067
|
}
|
|
1085
1068
|
};
|
|
1086
1069
|
const deserializeAws_json1_1CreateWorkspaceBundleCommand = async (output, context) => {
|
|
@@ -1102,7 +1085,6 @@ const deserializeAws_json1_1CreateWorkspaceBundleCommandError = async (output, c
|
|
|
1102
1085
|
...output,
|
|
1103
1086
|
body: await parseBody(output.body, context),
|
|
1104
1087
|
};
|
|
1105
|
-
let response;
|
|
1106
1088
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
1089
|
switch (errorCode) {
|
|
1108
1090
|
case "AccessDeniedException":
|
|
@@ -1125,14 +1107,12 @@ const deserializeAws_json1_1CreateWorkspaceBundleCommandError = async (output, c
|
|
|
1125
1107
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
1126
1108
|
default:
|
|
1127
1109
|
const parsedBody = parsedOutput.body;
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
$metadata,
|
|
1110
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1111
|
+
output,
|
|
1112
|
+
parsedBody,
|
|
1113
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1114
|
+
errorCode,
|
|
1134
1115
|
});
|
|
1135
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1136
1116
|
}
|
|
1137
1117
|
};
|
|
1138
1118
|
const deserializeAws_json1_1CreateWorkspaceImageCommand = async (output, context) => {
|
|
@@ -1154,7 +1134,6 @@ const deserializeAws_json1_1CreateWorkspaceImageCommandError = async (output, co
|
|
|
1154
1134
|
...output,
|
|
1155
1135
|
body: await parseBody(output.body, context),
|
|
1156
1136
|
};
|
|
1157
|
-
let response;
|
|
1158
1137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
1138
|
switch (errorCode) {
|
|
1160
1139
|
case "AccessDeniedException":
|
|
@@ -1180,14 +1159,12 @@ const deserializeAws_json1_1CreateWorkspaceImageCommandError = async (output, co
|
|
|
1180
1159
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1181
1160
|
default:
|
|
1182
1161
|
const parsedBody = parsedOutput.body;
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
$metadata,
|
|
1162
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1163
|
+
output,
|
|
1164
|
+
parsedBody,
|
|
1165
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1166
|
+
errorCode,
|
|
1189
1167
|
});
|
|
1190
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1191
1168
|
}
|
|
1192
1169
|
};
|
|
1193
1170
|
const deserializeAws_json1_1CreateWorkspacesCommand = async (output, context) => {
|
|
@@ -1209,7 +1186,6 @@ const deserializeAws_json1_1CreateWorkspacesCommandError = async (output, contex
|
|
|
1209
1186
|
...output,
|
|
1210
1187
|
body: await parseBody(output.body, context),
|
|
1211
1188
|
};
|
|
1212
|
-
let response;
|
|
1213
1189
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
1190
|
switch (errorCode) {
|
|
1215
1191
|
case "InvalidParameterValuesException":
|
|
@@ -1220,14 +1196,12 @@ const deserializeAws_json1_1CreateWorkspacesCommandError = async (output, contex
|
|
|
1220
1196
|
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1221
1197
|
default:
|
|
1222
1198
|
const parsedBody = parsedOutput.body;
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
$metadata,
|
|
1199
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1200
|
+
output,
|
|
1201
|
+
parsedBody,
|
|
1202
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1203
|
+
errorCode,
|
|
1229
1204
|
});
|
|
1230
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1231
1205
|
}
|
|
1232
1206
|
};
|
|
1233
1207
|
const deserializeAws_json1_1DeleteClientBrandingCommand = async (output, context) => {
|
|
@@ -1249,7 +1223,6 @@ const deserializeAws_json1_1DeleteClientBrandingCommandError = async (output, co
|
|
|
1249
1223
|
...output,
|
|
1250
1224
|
body: await parseBody(output.body, context),
|
|
1251
1225
|
};
|
|
1252
|
-
let response;
|
|
1253
1226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1254
1227
|
switch (errorCode) {
|
|
1255
1228
|
case "AccessDeniedException":
|
|
@@ -1263,14 +1236,12 @@ const deserializeAws_json1_1DeleteClientBrandingCommandError = async (output, co
|
|
|
1263
1236
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1264
1237
|
default:
|
|
1265
1238
|
const parsedBody = parsedOutput.body;
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
$metadata,
|
|
1239
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1240
|
+
output,
|
|
1241
|
+
parsedBody,
|
|
1242
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1243
|
+
errorCode,
|
|
1272
1244
|
});
|
|
1273
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1274
1245
|
}
|
|
1275
1246
|
};
|
|
1276
1247
|
const deserializeAws_json1_1DeleteConnectClientAddInCommand = async (output, context) => {
|
|
@@ -1292,7 +1263,6 @@ const deserializeAws_json1_1DeleteConnectClientAddInCommandError = async (output
|
|
|
1292
1263
|
...output,
|
|
1293
1264
|
body: await parseBody(output.body, context),
|
|
1294
1265
|
};
|
|
1295
|
-
let response;
|
|
1296
1266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
1267
|
switch (errorCode) {
|
|
1298
1268
|
case "AccessDeniedException":
|
|
@@ -1306,14 +1276,12 @@ const deserializeAws_json1_1DeleteConnectClientAddInCommandError = async (output
|
|
|
1306
1276
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1307
1277
|
default:
|
|
1308
1278
|
const parsedBody = parsedOutput.body;
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
$metadata,
|
|
1279
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1280
|
+
output,
|
|
1281
|
+
parsedBody,
|
|
1282
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1283
|
+
errorCode,
|
|
1315
1284
|
});
|
|
1316
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1317
1285
|
}
|
|
1318
1286
|
};
|
|
1319
1287
|
const deserializeAws_json1_1DeleteConnectionAliasCommand = async (output, context) => {
|
|
@@ -1335,7 +1303,6 @@ const deserializeAws_json1_1DeleteConnectionAliasCommandError = async (output, c
|
|
|
1335
1303
|
...output,
|
|
1336
1304
|
body: await parseBody(output.body, context),
|
|
1337
1305
|
};
|
|
1338
|
-
let response;
|
|
1339
1306
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
1307
|
switch (errorCode) {
|
|
1341
1308
|
case "AccessDeniedException":
|
|
@@ -1358,14 +1325,12 @@ const deserializeAws_json1_1DeleteConnectionAliasCommandError = async (output, c
|
|
|
1358
1325
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1359
1326
|
default:
|
|
1360
1327
|
const parsedBody = parsedOutput.body;
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
$metadata,
|
|
1328
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1329
|
+
output,
|
|
1330
|
+
parsedBody,
|
|
1331
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1332
|
+
errorCode,
|
|
1367
1333
|
});
|
|
1368
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1369
1334
|
}
|
|
1370
1335
|
};
|
|
1371
1336
|
const deserializeAws_json1_1DeleteIpGroupCommand = async (output, context) => {
|
|
@@ -1387,7 +1352,6 @@ const deserializeAws_json1_1DeleteIpGroupCommandError = async (output, context)
|
|
|
1387
1352
|
...output,
|
|
1388
1353
|
body: await parseBody(output.body, context),
|
|
1389
1354
|
};
|
|
1390
|
-
let response;
|
|
1391
1355
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
1356
|
switch (errorCode) {
|
|
1393
1357
|
case "AccessDeniedException":
|
|
@@ -1404,14 +1368,12 @@ const deserializeAws_json1_1DeleteIpGroupCommandError = async (output, context)
|
|
|
1404
1368
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1405
1369
|
default:
|
|
1406
1370
|
const parsedBody = parsedOutput.body;
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
$metadata,
|
|
1371
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1372
|
+
output,
|
|
1373
|
+
parsedBody,
|
|
1374
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1375
|
+
errorCode,
|
|
1413
1376
|
});
|
|
1414
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1415
1377
|
}
|
|
1416
1378
|
};
|
|
1417
1379
|
const deserializeAws_json1_1DeleteTagsCommand = async (output, context) => {
|
|
@@ -1433,7 +1395,6 @@ const deserializeAws_json1_1DeleteTagsCommandError = async (output, context) =>
|
|
|
1433
1395
|
...output,
|
|
1434
1396
|
body: await parseBody(output.body, context),
|
|
1435
1397
|
};
|
|
1436
|
-
let response;
|
|
1437
1398
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
1399
|
switch (errorCode) {
|
|
1439
1400
|
case "InvalidParameterValuesException":
|
|
@@ -1444,14 +1405,12 @@ const deserializeAws_json1_1DeleteTagsCommandError = async (output, context) =>
|
|
|
1444
1405
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1445
1406
|
default:
|
|
1446
1407
|
const parsedBody = parsedOutput.body;
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
$metadata,
|
|
1408
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1409
|
+
output,
|
|
1410
|
+
parsedBody,
|
|
1411
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1412
|
+
errorCode,
|
|
1453
1413
|
});
|
|
1454
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1455
1414
|
}
|
|
1456
1415
|
};
|
|
1457
1416
|
const deserializeAws_json1_1DeleteWorkspaceBundleCommand = async (output, context) => {
|
|
@@ -1473,7 +1432,6 @@ const deserializeAws_json1_1DeleteWorkspaceBundleCommandError = async (output, c
|
|
|
1473
1432
|
...output,
|
|
1474
1433
|
body: await parseBody(output.body, context),
|
|
1475
1434
|
};
|
|
1476
|
-
let response;
|
|
1477
1435
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
1436
|
switch (errorCode) {
|
|
1479
1437
|
case "AccessDeniedException":
|
|
@@ -1490,14 +1448,12 @@ const deserializeAws_json1_1DeleteWorkspaceBundleCommandError = async (output, c
|
|
|
1490
1448
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1491
1449
|
default:
|
|
1492
1450
|
const parsedBody = parsedOutput.body;
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
$metadata,
|
|
1451
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1452
|
+
output,
|
|
1453
|
+
parsedBody,
|
|
1454
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1455
|
+
errorCode,
|
|
1499
1456
|
});
|
|
1500
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1501
1457
|
}
|
|
1502
1458
|
};
|
|
1503
1459
|
const deserializeAws_json1_1DeleteWorkspaceImageCommand = async (output, context) => {
|
|
@@ -1519,7 +1475,6 @@ const deserializeAws_json1_1DeleteWorkspaceImageCommandError = async (output, co
|
|
|
1519
1475
|
...output,
|
|
1520
1476
|
body: await parseBody(output.body, context),
|
|
1521
1477
|
};
|
|
1522
|
-
let response;
|
|
1523
1478
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1524
1479
|
switch (errorCode) {
|
|
1525
1480
|
case "AccessDeniedException":
|
|
@@ -1533,14 +1488,12 @@ const deserializeAws_json1_1DeleteWorkspaceImageCommandError = async (output, co
|
|
|
1533
1488
|
throw await deserializeAws_json1_1ResourceAssociatedExceptionResponse(parsedOutput, context);
|
|
1534
1489
|
default:
|
|
1535
1490
|
const parsedBody = parsedOutput.body;
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
$metadata,
|
|
1491
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1492
|
+
output,
|
|
1493
|
+
parsedBody,
|
|
1494
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1495
|
+
errorCode,
|
|
1542
1496
|
});
|
|
1543
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1544
1497
|
}
|
|
1545
1498
|
};
|
|
1546
1499
|
const deserializeAws_json1_1DeregisterWorkspaceDirectoryCommand = async (output, context) => {
|
|
@@ -1562,7 +1515,6 @@ const deserializeAws_json1_1DeregisterWorkspaceDirectoryCommandError = async (ou
|
|
|
1562
1515
|
...output,
|
|
1563
1516
|
body: await parseBody(output.body, context),
|
|
1564
1517
|
};
|
|
1565
|
-
let response;
|
|
1566
1518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
1519
|
switch (errorCode) {
|
|
1568
1520
|
case "AccessDeniedException":
|
|
@@ -1582,14 +1534,12 @@ const deserializeAws_json1_1DeregisterWorkspaceDirectoryCommandError = async (ou
|
|
|
1582
1534
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1583
1535
|
default:
|
|
1584
1536
|
const parsedBody = parsedOutput.body;
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
$metadata,
|
|
1537
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1538
|
+
output,
|
|
1539
|
+
parsedBody,
|
|
1540
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1541
|
+
errorCode,
|
|
1591
1542
|
});
|
|
1592
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1593
1543
|
}
|
|
1594
1544
|
};
|
|
1595
1545
|
const deserializeAws_json1_1DescribeAccountCommand = async (output, context) => {
|
|
@@ -1611,7 +1561,6 @@ const deserializeAws_json1_1DescribeAccountCommandError = async (output, context
|
|
|
1611
1561
|
...output,
|
|
1612
1562
|
body: await parseBody(output.body, context),
|
|
1613
1563
|
};
|
|
1614
|
-
let response;
|
|
1615
1564
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1616
1565
|
switch (errorCode) {
|
|
1617
1566
|
case "AccessDeniedException":
|
|
@@ -1619,14 +1568,12 @@ const deserializeAws_json1_1DescribeAccountCommandError = async (output, context
|
|
|
1619
1568
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1620
1569
|
default:
|
|
1621
1570
|
const parsedBody = parsedOutput.body;
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
$metadata,
|
|
1571
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1572
|
+
output,
|
|
1573
|
+
parsedBody,
|
|
1574
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1575
|
+
errorCode,
|
|
1628
1576
|
});
|
|
1629
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1630
1577
|
}
|
|
1631
1578
|
};
|
|
1632
1579
|
const deserializeAws_json1_1DescribeAccountModificationsCommand = async (output, context) => {
|
|
@@ -1648,7 +1595,6 @@ const deserializeAws_json1_1DescribeAccountModificationsCommandError = async (ou
|
|
|
1648
1595
|
...output,
|
|
1649
1596
|
body: await parseBody(output.body, context),
|
|
1650
1597
|
};
|
|
1651
|
-
let response;
|
|
1652
1598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
1599
|
switch (errorCode) {
|
|
1654
1600
|
case "AccessDeniedException":
|
|
@@ -1656,14 +1602,12 @@ const deserializeAws_json1_1DescribeAccountModificationsCommandError = async (ou
|
|
|
1656
1602
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1657
1603
|
default:
|
|
1658
1604
|
const parsedBody = parsedOutput.body;
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
$metadata,
|
|
1605
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1606
|
+
output,
|
|
1607
|
+
parsedBody,
|
|
1608
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1609
|
+
errorCode,
|
|
1665
1610
|
});
|
|
1666
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1667
1611
|
}
|
|
1668
1612
|
};
|
|
1669
1613
|
const deserializeAws_json1_1DescribeClientBrandingCommand = async (output, context) => {
|
|
@@ -1685,7 +1629,6 @@ const deserializeAws_json1_1DescribeClientBrandingCommandError = async (output,
|
|
|
1685
1629
|
...output,
|
|
1686
1630
|
body: await parseBody(output.body, context),
|
|
1687
1631
|
};
|
|
1688
|
-
let response;
|
|
1689
1632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
1633
|
switch (errorCode) {
|
|
1691
1634
|
case "AccessDeniedException":
|
|
@@ -1699,14 +1642,12 @@ const deserializeAws_json1_1DescribeClientBrandingCommandError = async (output,
|
|
|
1699
1642
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1700
1643
|
default:
|
|
1701
1644
|
const parsedBody = parsedOutput.body;
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
$metadata,
|
|
1645
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1646
|
+
output,
|
|
1647
|
+
parsedBody,
|
|
1648
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1649
|
+
errorCode,
|
|
1708
1650
|
});
|
|
1709
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1710
1651
|
}
|
|
1711
1652
|
};
|
|
1712
1653
|
const deserializeAws_json1_1DescribeClientPropertiesCommand = async (output, context) => {
|
|
@@ -1728,7 +1669,6 @@ const deserializeAws_json1_1DescribeClientPropertiesCommandError = async (output
|
|
|
1728
1669
|
...output,
|
|
1729
1670
|
body: await parseBody(output.body, context),
|
|
1730
1671
|
};
|
|
1731
|
-
let response;
|
|
1732
1672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1733
1673
|
switch (errorCode) {
|
|
1734
1674
|
case "AccessDeniedException":
|
|
@@ -1742,14 +1682,12 @@ const deserializeAws_json1_1DescribeClientPropertiesCommandError = async (output
|
|
|
1742
1682
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1743
1683
|
default:
|
|
1744
1684
|
const parsedBody = parsedOutput.body;
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
$metadata,
|
|
1685
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1686
|
+
output,
|
|
1687
|
+
parsedBody,
|
|
1688
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1689
|
+
errorCode,
|
|
1751
1690
|
});
|
|
1752
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1753
1691
|
}
|
|
1754
1692
|
};
|
|
1755
1693
|
const deserializeAws_json1_1DescribeConnectClientAddInsCommand = async (output, context) => {
|
|
@@ -1771,7 +1709,6 @@ const deserializeAws_json1_1DescribeConnectClientAddInsCommandError = async (out
|
|
|
1771
1709
|
...output,
|
|
1772
1710
|
body: await parseBody(output.body, context),
|
|
1773
1711
|
};
|
|
1774
|
-
let response;
|
|
1775
1712
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1776
1713
|
switch (errorCode) {
|
|
1777
1714
|
case "AccessDeniedException":
|
|
@@ -1785,14 +1722,12 @@ const deserializeAws_json1_1DescribeConnectClientAddInsCommandError = async (out
|
|
|
1785
1722
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1786
1723
|
default:
|
|
1787
1724
|
const parsedBody = parsedOutput.body;
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
$metadata,
|
|
1725
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1726
|
+
output,
|
|
1727
|
+
parsedBody,
|
|
1728
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1729
|
+
errorCode,
|
|
1794
1730
|
});
|
|
1795
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1796
1731
|
}
|
|
1797
1732
|
};
|
|
1798
1733
|
const deserializeAws_json1_1DescribeConnectionAliasesCommand = async (output, context) => {
|
|
@@ -1814,7 +1749,6 @@ const deserializeAws_json1_1DescribeConnectionAliasesCommandError = async (outpu
|
|
|
1814
1749
|
...output,
|
|
1815
1750
|
body: await parseBody(output.body, context),
|
|
1816
1751
|
};
|
|
1817
|
-
let response;
|
|
1818
1752
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1819
1753
|
switch (errorCode) {
|
|
1820
1754
|
case "AccessDeniedException":
|
|
@@ -1828,14 +1762,12 @@ const deserializeAws_json1_1DescribeConnectionAliasesCommandError = async (outpu
|
|
|
1828
1762
|
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
1829
1763
|
default:
|
|
1830
1764
|
const parsedBody = parsedOutput.body;
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
$metadata,
|
|
1765
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1766
|
+
output,
|
|
1767
|
+
parsedBody,
|
|
1768
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1769
|
+
errorCode,
|
|
1837
1770
|
});
|
|
1838
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1839
1771
|
}
|
|
1840
1772
|
};
|
|
1841
1773
|
const deserializeAws_json1_1DescribeConnectionAliasPermissionsCommand = async (output, context) => {
|
|
@@ -1857,7 +1789,6 @@ const deserializeAws_json1_1DescribeConnectionAliasPermissionsCommandError = asy
|
|
|
1857
1789
|
...output,
|
|
1858
1790
|
body: await parseBody(output.body, context),
|
|
1859
1791
|
};
|
|
1860
|
-
let response;
|
|
1861
1792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1862
1793
|
switch (errorCode) {
|
|
1863
1794
|
case "AccessDeniedException":
|
|
@@ -1874,14 +1805,12 @@ const deserializeAws_json1_1DescribeConnectionAliasPermissionsCommandError = asy
|
|
|
1874
1805
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1875
1806
|
default:
|
|
1876
1807
|
const parsedBody = parsedOutput.body;
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
$metadata,
|
|
1808
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1809
|
+
output,
|
|
1810
|
+
parsedBody,
|
|
1811
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1812
|
+
errorCode,
|
|
1883
1813
|
});
|
|
1884
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1885
1814
|
}
|
|
1886
1815
|
};
|
|
1887
1816
|
const deserializeAws_json1_1DescribeIpGroupsCommand = async (output, context) => {
|
|
@@ -1903,7 +1832,6 @@ const deserializeAws_json1_1DescribeIpGroupsCommandError = async (output, contex
|
|
|
1903
1832
|
...output,
|
|
1904
1833
|
body: await parseBody(output.body, context),
|
|
1905
1834
|
};
|
|
1906
|
-
let response;
|
|
1907
1835
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1908
1836
|
switch (errorCode) {
|
|
1909
1837
|
case "AccessDeniedException":
|
|
@@ -1914,14 +1842,12 @@ const deserializeAws_json1_1DescribeIpGroupsCommandError = async (output, contex
|
|
|
1914
1842
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1915
1843
|
default:
|
|
1916
1844
|
const parsedBody = parsedOutput.body;
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
$metadata,
|
|
1845
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1846
|
+
output,
|
|
1847
|
+
parsedBody,
|
|
1848
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1849
|
+
errorCode,
|
|
1923
1850
|
});
|
|
1924
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1925
1851
|
}
|
|
1926
1852
|
};
|
|
1927
1853
|
const deserializeAws_json1_1DescribeTagsCommand = async (output, context) => {
|
|
@@ -1943,7 +1869,6 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
1943
1869
|
...output,
|
|
1944
1870
|
body: await parseBody(output.body, context),
|
|
1945
1871
|
};
|
|
1946
|
-
let response;
|
|
1947
1872
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
1873
|
switch (errorCode) {
|
|
1949
1874
|
case "ResourceNotFoundException":
|
|
@@ -1951,14 +1876,12 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
1951
1876
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1952
1877
|
default:
|
|
1953
1878
|
const parsedBody = parsedOutput.body;
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
$metadata,
|
|
1879
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1880
|
+
output,
|
|
1881
|
+
parsedBody,
|
|
1882
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1883
|
+
errorCode,
|
|
1960
1884
|
});
|
|
1961
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1962
1885
|
}
|
|
1963
1886
|
};
|
|
1964
1887
|
const deserializeAws_json1_1DescribeWorkspaceBundlesCommand = async (output, context) => {
|
|
@@ -1980,7 +1903,6 @@ const deserializeAws_json1_1DescribeWorkspaceBundlesCommandError = async (output
|
|
|
1980
1903
|
...output,
|
|
1981
1904
|
body: await parseBody(output.body, context),
|
|
1982
1905
|
};
|
|
1983
|
-
let response;
|
|
1984
1906
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1985
1907
|
switch (errorCode) {
|
|
1986
1908
|
case "InvalidParameterValuesException":
|
|
@@ -1988,14 +1910,12 @@ const deserializeAws_json1_1DescribeWorkspaceBundlesCommandError = async (output
|
|
|
1988
1910
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1989
1911
|
default:
|
|
1990
1912
|
const parsedBody = parsedOutput.body;
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
$metadata,
|
|
1913
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1914
|
+
output,
|
|
1915
|
+
parsedBody,
|
|
1916
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1917
|
+
errorCode,
|
|
1997
1918
|
});
|
|
1998
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1999
1919
|
}
|
|
2000
1920
|
};
|
|
2001
1921
|
const deserializeAws_json1_1DescribeWorkspaceDirectoriesCommand = async (output, context) => {
|
|
@@ -2017,7 +1937,6 @@ const deserializeAws_json1_1DescribeWorkspaceDirectoriesCommandError = async (ou
|
|
|
2017
1937
|
...output,
|
|
2018
1938
|
body: await parseBody(output.body, context),
|
|
2019
1939
|
};
|
|
2020
|
-
let response;
|
|
2021
1940
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
1941
|
switch (errorCode) {
|
|
2023
1942
|
case "InvalidParameterValuesException":
|
|
@@ -2025,14 +1944,12 @@ const deserializeAws_json1_1DescribeWorkspaceDirectoriesCommandError = async (ou
|
|
|
2025
1944
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2026
1945
|
default:
|
|
2027
1946
|
const parsedBody = parsedOutput.body;
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
$metadata,
|
|
1947
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1948
|
+
output,
|
|
1949
|
+
parsedBody,
|
|
1950
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1951
|
+
errorCode,
|
|
2034
1952
|
});
|
|
2035
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2036
1953
|
}
|
|
2037
1954
|
};
|
|
2038
1955
|
const deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommand = async (output, context) => {
|
|
@@ -2054,7 +1971,6 @@ const deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommandError = asyn
|
|
|
2054
1971
|
...output,
|
|
2055
1972
|
body: await parseBody(output.body, context),
|
|
2056
1973
|
};
|
|
2057
|
-
let response;
|
|
2058
1974
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2059
1975
|
switch (errorCode) {
|
|
2060
1976
|
case "AccessDeniedException":
|
|
@@ -2068,14 +1984,12 @@ const deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommandError = asyn
|
|
|
2068
1984
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2069
1985
|
default:
|
|
2070
1986
|
const parsedBody = parsedOutput.body;
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
$metadata,
|
|
1987
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1988
|
+
output,
|
|
1989
|
+
parsedBody,
|
|
1990
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
1991
|
+
errorCode,
|
|
2077
1992
|
});
|
|
2078
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2079
1993
|
}
|
|
2080
1994
|
};
|
|
2081
1995
|
const deserializeAws_json1_1DescribeWorkspaceImagesCommand = async (output, context) => {
|
|
@@ -2097,7 +2011,6 @@ const deserializeAws_json1_1DescribeWorkspaceImagesCommandError = async (output,
|
|
|
2097
2011
|
...output,
|
|
2098
2012
|
body: await parseBody(output.body, context),
|
|
2099
2013
|
};
|
|
2100
|
-
let response;
|
|
2101
2014
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2102
2015
|
switch (errorCode) {
|
|
2103
2016
|
case "AccessDeniedException":
|
|
@@ -2105,14 +2018,12 @@ const deserializeAws_json1_1DescribeWorkspaceImagesCommandError = async (output,
|
|
|
2105
2018
|
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2106
2019
|
default:
|
|
2107
2020
|
const parsedBody = parsedOutput.body;
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
$metadata,
|
|
2021
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2022
|
+
output,
|
|
2023
|
+
parsedBody,
|
|
2024
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2025
|
+
errorCode,
|
|
2114
2026
|
});
|
|
2115
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2116
2027
|
}
|
|
2117
2028
|
};
|
|
2118
2029
|
const deserializeAws_json1_1DescribeWorkspacesCommand = async (output, context) => {
|
|
@@ -2134,7 +2045,6 @@ const deserializeAws_json1_1DescribeWorkspacesCommandError = async (output, cont
|
|
|
2134
2045
|
...output,
|
|
2135
2046
|
body: await parseBody(output.body, context),
|
|
2136
2047
|
};
|
|
2137
|
-
let response;
|
|
2138
2048
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2139
2049
|
switch (errorCode) {
|
|
2140
2050
|
case "InvalidParameterValuesException":
|
|
@@ -2145,14 +2055,12 @@ const deserializeAws_json1_1DescribeWorkspacesCommandError = async (output, cont
|
|
|
2145
2055
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2146
2056
|
default:
|
|
2147
2057
|
const parsedBody = parsedOutput.body;
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
$metadata,
|
|
2058
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2059
|
+
output,
|
|
2060
|
+
parsedBody,
|
|
2061
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2062
|
+
errorCode,
|
|
2154
2063
|
});
|
|
2155
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2156
2064
|
}
|
|
2157
2065
|
};
|
|
2158
2066
|
const deserializeAws_json1_1DescribeWorkspacesConnectionStatusCommand = async (output, context) => {
|
|
@@ -2174,7 +2082,6 @@ const deserializeAws_json1_1DescribeWorkspacesConnectionStatusCommandError = asy
|
|
|
2174
2082
|
...output,
|
|
2175
2083
|
body: await parseBody(output.body, context),
|
|
2176
2084
|
};
|
|
2177
|
-
let response;
|
|
2178
2085
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
2086
|
switch (errorCode) {
|
|
2180
2087
|
case "InvalidParameterValuesException":
|
|
@@ -2182,14 +2089,12 @@ const deserializeAws_json1_1DescribeWorkspacesConnectionStatusCommandError = asy
|
|
|
2182
2089
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2183
2090
|
default:
|
|
2184
2091
|
const parsedBody = parsedOutput.body;
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
$metadata,
|
|
2092
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2093
|
+
output,
|
|
2094
|
+
parsedBody,
|
|
2095
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2096
|
+
errorCode,
|
|
2191
2097
|
});
|
|
2192
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2193
2098
|
}
|
|
2194
2099
|
};
|
|
2195
2100
|
const deserializeAws_json1_1DescribeWorkspaceSnapshotsCommand = async (output, context) => {
|
|
@@ -2211,7 +2116,6 @@ const deserializeAws_json1_1DescribeWorkspaceSnapshotsCommandError = async (outp
|
|
|
2211
2116
|
...output,
|
|
2212
2117
|
body: await parseBody(output.body, context),
|
|
2213
2118
|
};
|
|
2214
|
-
let response;
|
|
2215
2119
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2216
2120
|
switch (errorCode) {
|
|
2217
2121
|
case "AccessDeniedException":
|
|
@@ -2225,14 +2129,12 @@ const deserializeAws_json1_1DescribeWorkspaceSnapshotsCommandError = async (outp
|
|
|
2225
2129
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2226
2130
|
default:
|
|
2227
2131
|
const parsedBody = parsedOutput.body;
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
$metadata,
|
|
2132
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2133
|
+
output,
|
|
2134
|
+
parsedBody,
|
|
2135
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2136
|
+
errorCode,
|
|
2234
2137
|
});
|
|
2235
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2236
2138
|
}
|
|
2237
2139
|
};
|
|
2238
2140
|
const deserializeAws_json1_1DisassociateConnectionAliasCommand = async (output, context) => {
|
|
@@ -2254,7 +2156,6 @@ const deserializeAws_json1_1DisassociateConnectionAliasCommandError = async (out
|
|
|
2254
2156
|
...output,
|
|
2255
2157
|
body: await parseBody(output.body, context),
|
|
2256
2158
|
};
|
|
2257
|
-
let response;
|
|
2258
2159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2259
2160
|
switch (errorCode) {
|
|
2260
2161
|
case "AccessDeniedException":
|
|
@@ -2274,14 +2175,12 @@ const deserializeAws_json1_1DisassociateConnectionAliasCommandError = async (out
|
|
|
2274
2175
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2275
2176
|
default:
|
|
2276
2177
|
const parsedBody = parsedOutput.body;
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
$metadata,
|
|
2178
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2179
|
+
output,
|
|
2180
|
+
parsedBody,
|
|
2181
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2182
|
+
errorCode,
|
|
2283
2183
|
});
|
|
2284
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2285
2184
|
}
|
|
2286
2185
|
};
|
|
2287
2186
|
const deserializeAws_json1_1DisassociateIpGroupsCommand = async (output, context) => {
|
|
@@ -2303,7 +2202,6 @@ const deserializeAws_json1_1DisassociateIpGroupsCommandError = async (output, co
|
|
|
2303
2202
|
...output,
|
|
2304
2203
|
body: await parseBody(output.body, context),
|
|
2305
2204
|
};
|
|
2306
|
-
let response;
|
|
2307
2205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2308
2206
|
switch (errorCode) {
|
|
2309
2207
|
case "AccessDeniedException":
|
|
@@ -2320,14 +2218,12 @@ const deserializeAws_json1_1DisassociateIpGroupsCommandError = async (output, co
|
|
|
2320
2218
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2321
2219
|
default:
|
|
2322
2220
|
const parsedBody = parsedOutput.body;
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
$metadata,
|
|
2221
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2222
|
+
output,
|
|
2223
|
+
parsedBody,
|
|
2224
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2225
|
+
errorCode,
|
|
2329
2226
|
});
|
|
2330
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2331
2227
|
}
|
|
2332
2228
|
};
|
|
2333
2229
|
const deserializeAws_json1_1ImportClientBrandingCommand = async (output, context) => {
|
|
@@ -2349,7 +2245,6 @@ const deserializeAws_json1_1ImportClientBrandingCommandError = async (output, co
|
|
|
2349
2245
|
...output,
|
|
2350
2246
|
body: await parseBody(output.body, context),
|
|
2351
2247
|
};
|
|
2352
|
-
let response;
|
|
2353
2248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
2249
|
switch (errorCode) {
|
|
2355
2250
|
case "AccessDeniedException":
|
|
@@ -2366,14 +2261,12 @@ const deserializeAws_json1_1ImportClientBrandingCommandError = async (output, co
|
|
|
2366
2261
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2367
2262
|
default:
|
|
2368
2263
|
const parsedBody = parsedOutput.body;
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
$metadata,
|
|
2264
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2265
|
+
output,
|
|
2266
|
+
parsedBody,
|
|
2267
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2268
|
+
errorCode,
|
|
2375
2269
|
});
|
|
2376
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2377
2270
|
}
|
|
2378
2271
|
};
|
|
2379
2272
|
const deserializeAws_json1_1ImportWorkspaceImageCommand = async (output, context) => {
|
|
@@ -2395,7 +2288,6 @@ const deserializeAws_json1_1ImportWorkspaceImageCommandError = async (output, co
|
|
|
2395
2288
|
...output,
|
|
2396
2289
|
body: await parseBody(output.body, context),
|
|
2397
2290
|
};
|
|
2398
|
-
let response;
|
|
2399
2291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2400
2292
|
switch (errorCode) {
|
|
2401
2293
|
case "AccessDeniedException":
|
|
@@ -2418,14 +2310,12 @@ const deserializeAws_json1_1ImportWorkspaceImageCommandError = async (output, co
|
|
|
2418
2310
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2419
2311
|
default:
|
|
2420
2312
|
const parsedBody = parsedOutput.body;
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
$metadata,
|
|
2313
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2314
|
+
output,
|
|
2315
|
+
parsedBody,
|
|
2316
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2317
|
+
errorCode,
|
|
2427
2318
|
});
|
|
2428
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2429
2319
|
}
|
|
2430
2320
|
};
|
|
2431
2321
|
const deserializeAws_json1_1ListAvailableManagementCidrRangesCommand = async (output, context) => {
|
|
@@ -2447,7 +2337,6 @@ const deserializeAws_json1_1ListAvailableManagementCidrRangesCommandError = asyn
|
|
|
2447
2337
|
...output,
|
|
2448
2338
|
body: await parseBody(output.body, context),
|
|
2449
2339
|
};
|
|
2450
|
-
let response;
|
|
2451
2340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2452
2341
|
switch (errorCode) {
|
|
2453
2342
|
case "AccessDeniedException":
|
|
@@ -2458,14 +2347,12 @@ const deserializeAws_json1_1ListAvailableManagementCidrRangesCommandError = asyn
|
|
|
2458
2347
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2459
2348
|
default:
|
|
2460
2349
|
const parsedBody = parsedOutput.body;
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
$metadata,
|
|
2350
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2351
|
+
output,
|
|
2352
|
+
parsedBody,
|
|
2353
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2354
|
+
errorCode,
|
|
2467
2355
|
});
|
|
2468
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2469
2356
|
}
|
|
2470
2357
|
};
|
|
2471
2358
|
const deserializeAws_json1_1MigrateWorkspaceCommand = async (output, context) => {
|
|
@@ -2487,7 +2374,6 @@ const deserializeAws_json1_1MigrateWorkspaceCommandError = async (output, contex
|
|
|
2487
2374
|
...output,
|
|
2488
2375
|
body: await parseBody(output.body, context),
|
|
2489
2376
|
};
|
|
2490
|
-
let response;
|
|
2491
2377
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2492
2378
|
switch (errorCode) {
|
|
2493
2379
|
case "AccessDeniedException":
|
|
@@ -2510,14 +2396,12 @@ const deserializeAws_json1_1MigrateWorkspaceCommandError = async (output, contex
|
|
|
2510
2396
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2511
2397
|
default:
|
|
2512
2398
|
const parsedBody = parsedOutput.body;
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
$metadata,
|
|
2399
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2400
|
+
output,
|
|
2401
|
+
parsedBody,
|
|
2402
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2403
|
+
errorCode,
|
|
2519
2404
|
});
|
|
2520
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2521
2405
|
}
|
|
2522
2406
|
};
|
|
2523
2407
|
const deserializeAws_json1_1ModifyAccountCommand = async (output, context) => {
|
|
@@ -2539,7 +2423,6 @@ const deserializeAws_json1_1ModifyAccountCommandError = async (output, context)
|
|
|
2539
2423
|
...output,
|
|
2540
2424
|
body: await parseBody(output.body, context),
|
|
2541
2425
|
};
|
|
2542
|
-
let response;
|
|
2543
2426
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2544
2427
|
switch (errorCode) {
|
|
2545
2428
|
case "AccessDeniedException":
|
|
@@ -2559,14 +2442,12 @@ const deserializeAws_json1_1ModifyAccountCommandError = async (output, context)
|
|
|
2559
2442
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2560
2443
|
default:
|
|
2561
2444
|
const parsedBody = parsedOutput.body;
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
$metadata,
|
|
2445
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2446
|
+
output,
|
|
2447
|
+
parsedBody,
|
|
2448
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2449
|
+
errorCode,
|
|
2568
2450
|
});
|
|
2569
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2570
2451
|
}
|
|
2571
2452
|
};
|
|
2572
2453
|
const deserializeAws_json1_1ModifyClientPropertiesCommand = async (output, context) => {
|
|
@@ -2588,7 +2469,6 @@ const deserializeAws_json1_1ModifyClientPropertiesCommandError = async (output,
|
|
|
2588
2469
|
...output,
|
|
2589
2470
|
body: await parseBody(output.body, context),
|
|
2590
2471
|
};
|
|
2591
|
-
let response;
|
|
2592
2472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
2473
|
switch (errorCode) {
|
|
2594
2474
|
case "AccessDeniedException":
|
|
@@ -2602,14 +2482,55 @@ const deserializeAws_json1_1ModifyClientPropertiesCommandError = async (output,
|
|
|
2602
2482
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2603
2483
|
default:
|
|
2604
2484
|
const parsedBody = parsedOutput.body;
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
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,
|
|
2611
2533
|
});
|
|
2612
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2613
2534
|
}
|
|
2614
2535
|
};
|
|
2615
2536
|
const deserializeAws_json1_1ModifySelfservicePermissionsCommand = async (output, context) => {
|
|
@@ -2631,7 +2552,6 @@ const deserializeAws_json1_1ModifySelfservicePermissionsCommandError = async (ou
|
|
|
2631
2552
|
...output,
|
|
2632
2553
|
body: await parseBody(output.body, context),
|
|
2633
2554
|
};
|
|
2634
|
-
let response;
|
|
2635
2555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2636
2556
|
switch (errorCode) {
|
|
2637
2557
|
case "AccessDeniedException":
|
|
@@ -2645,14 +2565,12 @@ const deserializeAws_json1_1ModifySelfservicePermissionsCommandError = async (ou
|
|
|
2645
2565
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2646
2566
|
default:
|
|
2647
2567
|
const parsedBody = parsedOutput.body;
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
$metadata,
|
|
2568
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2569
|
+
output,
|
|
2570
|
+
parsedBody,
|
|
2571
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2572
|
+
errorCode,
|
|
2654
2573
|
});
|
|
2655
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2656
2574
|
}
|
|
2657
2575
|
};
|
|
2658
2576
|
const deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommand = async (output, context) => {
|
|
@@ -2674,7 +2592,6 @@ const deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommandError = async
|
|
|
2674
2592
|
...output,
|
|
2675
2593
|
body: await parseBody(output.body, context),
|
|
2676
2594
|
};
|
|
2677
|
-
let response;
|
|
2678
2595
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2679
2596
|
switch (errorCode) {
|
|
2680
2597
|
case "AccessDeniedException":
|
|
@@ -2685,14 +2602,12 @@ const deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommandError = async
|
|
|
2685
2602
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2686
2603
|
default:
|
|
2687
2604
|
const parsedBody = parsedOutput.body;
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
$metadata,
|
|
2605
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2606
|
+
output,
|
|
2607
|
+
parsedBody,
|
|
2608
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2609
|
+
errorCode,
|
|
2694
2610
|
});
|
|
2695
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2696
2611
|
}
|
|
2697
2612
|
};
|
|
2698
2613
|
const deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommand = async (output, context) => {
|
|
@@ -2714,7 +2629,6 @@ const deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommandError = asyn
|
|
|
2714
2629
|
...output,
|
|
2715
2630
|
body: await parseBody(output.body, context),
|
|
2716
2631
|
};
|
|
2717
|
-
let response;
|
|
2718
2632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2719
2633
|
switch (errorCode) {
|
|
2720
2634
|
case "AccessDeniedException":
|
|
@@ -2731,14 +2645,12 @@ const deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommandError = asyn
|
|
|
2731
2645
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2732
2646
|
default:
|
|
2733
2647
|
const parsedBody = parsedOutput.body;
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
$metadata,
|
|
2648
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2649
|
+
output,
|
|
2650
|
+
parsedBody,
|
|
2651
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2652
|
+
errorCode,
|
|
2740
2653
|
});
|
|
2741
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2742
2654
|
}
|
|
2743
2655
|
};
|
|
2744
2656
|
const deserializeAws_json1_1ModifyWorkspacePropertiesCommand = async (output, context) => {
|
|
@@ -2760,7 +2672,6 @@ const deserializeAws_json1_1ModifyWorkspacePropertiesCommandError = async (outpu
|
|
|
2760
2672
|
...output,
|
|
2761
2673
|
body: await parseBody(output.body, context),
|
|
2762
2674
|
};
|
|
2763
|
-
let response;
|
|
2764
2675
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2765
2676
|
switch (errorCode) {
|
|
2766
2677
|
case "AccessDeniedException":
|
|
@@ -2786,14 +2697,12 @@ const deserializeAws_json1_1ModifyWorkspacePropertiesCommandError = async (outpu
|
|
|
2786
2697
|
throw await deserializeAws_json1_1UnsupportedWorkspaceConfigurationExceptionResponse(parsedOutput, context);
|
|
2787
2698
|
default:
|
|
2788
2699
|
const parsedBody = parsedOutput.body;
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
$metadata,
|
|
2700
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2701
|
+
output,
|
|
2702
|
+
parsedBody,
|
|
2703
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2704
|
+
errorCode,
|
|
2795
2705
|
});
|
|
2796
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2797
2706
|
}
|
|
2798
2707
|
};
|
|
2799
2708
|
const deserializeAws_json1_1ModifyWorkspaceStateCommand = async (output, context) => {
|
|
@@ -2815,7 +2724,6 @@ const deserializeAws_json1_1ModifyWorkspaceStateCommandError = async (output, co
|
|
|
2815
2724
|
...output,
|
|
2816
2725
|
body: await parseBody(output.body, context),
|
|
2817
2726
|
};
|
|
2818
|
-
let response;
|
|
2819
2727
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2820
2728
|
switch (errorCode) {
|
|
2821
2729
|
case "InvalidParameterValuesException":
|
|
@@ -2829,14 +2737,12 @@ const deserializeAws_json1_1ModifyWorkspaceStateCommandError = async (output, co
|
|
|
2829
2737
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2830
2738
|
default:
|
|
2831
2739
|
const parsedBody = parsedOutput.body;
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
$metadata,
|
|
2740
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2741
|
+
output,
|
|
2742
|
+
parsedBody,
|
|
2743
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2744
|
+
errorCode,
|
|
2838
2745
|
});
|
|
2839
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2840
2746
|
}
|
|
2841
2747
|
};
|
|
2842
2748
|
const deserializeAws_json1_1RebootWorkspacesCommand = async (output, context) => {
|
|
@@ -2858,20 +2764,14 @@ const deserializeAws_json1_1RebootWorkspacesCommandError = async (output, contex
|
|
|
2858
2764
|
...output,
|
|
2859
2765
|
body: await parseBody(output.body, context),
|
|
2860
2766
|
};
|
|
2861
|
-
let response;
|
|
2862
2767
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
$fault: "client",
|
|
2871
|
-
$metadata,
|
|
2872
|
-
});
|
|
2873
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2874
|
-
}
|
|
2768
|
+
const parsedBody = parsedOutput.body;
|
|
2769
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2770
|
+
output,
|
|
2771
|
+
parsedBody,
|
|
2772
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2773
|
+
errorCode,
|
|
2774
|
+
});
|
|
2875
2775
|
};
|
|
2876
2776
|
const deserializeAws_json1_1RebuildWorkspacesCommand = async (output, context) => {
|
|
2877
2777
|
if (output.statusCode >= 300) {
|
|
@@ -2892,20 +2792,14 @@ const deserializeAws_json1_1RebuildWorkspacesCommandError = async (output, conte
|
|
|
2892
2792
|
...output,
|
|
2893
2793
|
body: await parseBody(output.body, context),
|
|
2894
2794
|
};
|
|
2895
|
-
let response;
|
|
2896
2795
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
$fault: "client",
|
|
2905
|
-
$metadata,
|
|
2906
|
-
});
|
|
2907
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2908
|
-
}
|
|
2796
|
+
const parsedBody = parsedOutput.body;
|
|
2797
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2798
|
+
output,
|
|
2799
|
+
parsedBody,
|
|
2800
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2801
|
+
errorCode,
|
|
2802
|
+
});
|
|
2909
2803
|
};
|
|
2910
2804
|
const deserializeAws_json1_1RegisterWorkspaceDirectoryCommand = async (output, context) => {
|
|
2911
2805
|
if (output.statusCode >= 300) {
|
|
@@ -2926,7 +2820,6 @@ const deserializeAws_json1_1RegisterWorkspaceDirectoryCommandError = async (outp
|
|
|
2926
2820
|
...output,
|
|
2927
2821
|
body: await parseBody(output.body, context),
|
|
2928
2822
|
};
|
|
2929
|
-
let response;
|
|
2930
2823
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2931
2824
|
switch (errorCode) {
|
|
2932
2825
|
case "AccessDeniedException":
|
|
@@ -2955,14 +2848,12 @@ const deserializeAws_json1_1RegisterWorkspaceDirectoryCommandError = async (outp
|
|
|
2955
2848
|
throw await deserializeAws_json1_1WorkspacesDefaultRoleNotFoundExceptionResponse(parsedOutput, context);
|
|
2956
2849
|
default:
|
|
2957
2850
|
const parsedBody = parsedOutput.body;
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
$metadata,
|
|
2851
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2852
|
+
output,
|
|
2853
|
+
parsedBody,
|
|
2854
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2855
|
+
errorCode,
|
|
2964
2856
|
});
|
|
2965
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2966
2857
|
}
|
|
2967
2858
|
};
|
|
2968
2859
|
const deserializeAws_json1_1RestoreWorkspaceCommand = async (output, context) => {
|
|
@@ -2984,7 +2875,6 @@ const deserializeAws_json1_1RestoreWorkspaceCommandError = async (output, contex
|
|
|
2984
2875
|
...output,
|
|
2985
2876
|
body: await parseBody(output.body, context),
|
|
2986
2877
|
};
|
|
2987
|
-
let response;
|
|
2988
2878
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2989
2879
|
switch (errorCode) {
|
|
2990
2880
|
case "AccessDeniedException":
|
|
@@ -2998,14 +2888,12 @@ const deserializeAws_json1_1RestoreWorkspaceCommandError = async (output, contex
|
|
|
2998
2888
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2999
2889
|
default:
|
|
3000
2890
|
const parsedBody = parsedOutput.body;
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
$metadata,
|
|
2891
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2892
|
+
output,
|
|
2893
|
+
parsedBody,
|
|
2894
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2895
|
+
errorCode,
|
|
3007
2896
|
});
|
|
3008
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3009
2897
|
}
|
|
3010
2898
|
};
|
|
3011
2899
|
const deserializeAws_json1_1RevokeIpRulesCommand = async (output, context) => {
|
|
@@ -3027,7 +2915,6 @@ const deserializeAws_json1_1RevokeIpRulesCommandError = async (output, context)
|
|
|
3027
2915
|
...output,
|
|
3028
2916
|
body: await parseBody(output.body, context),
|
|
3029
2917
|
};
|
|
3030
|
-
let response;
|
|
3031
2918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3032
2919
|
switch (errorCode) {
|
|
3033
2920
|
case "AccessDeniedException":
|
|
@@ -3044,14 +2931,12 @@ const deserializeAws_json1_1RevokeIpRulesCommandError = async (output, context)
|
|
|
3044
2931
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3045
2932
|
default:
|
|
3046
2933
|
const parsedBody = parsedOutput.body;
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
$metadata,
|
|
2934
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2935
|
+
output,
|
|
2936
|
+
parsedBody,
|
|
2937
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2938
|
+
errorCode,
|
|
3053
2939
|
});
|
|
3054
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3055
2940
|
}
|
|
3056
2941
|
};
|
|
3057
2942
|
const deserializeAws_json1_1StartWorkspacesCommand = async (output, context) => {
|
|
@@ -3073,20 +2958,14 @@ const deserializeAws_json1_1StartWorkspacesCommandError = async (output, context
|
|
|
3073
2958
|
...output,
|
|
3074
2959
|
body: await parseBody(output.body, context),
|
|
3075
2960
|
};
|
|
3076
|
-
let response;
|
|
3077
2961
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
$fault: "client",
|
|
3086
|
-
$metadata,
|
|
3087
|
-
});
|
|
3088
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3089
|
-
}
|
|
2962
|
+
const parsedBody = parsedOutput.body;
|
|
2963
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2964
|
+
output,
|
|
2965
|
+
parsedBody,
|
|
2966
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2967
|
+
errorCode,
|
|
2968
|
+
});
|
|
3090
2969
|
};
|
|
3091
2970
|
const deserializeAws_json1_1StopWorkspacesCommand = async (output, context) => {
|
|
3092
2971
|
if (output.statusCode >= 300) {
|
|
@@ -3107,20 +2986,14 @@ const deserializeAws_json1_1StopWorkspacesCommandError = async (output, context)
|
|
|
3107
2986
|
...output,
|
|
3108
2987
|
body: await parseBody(output.body, context),
|
|
3109
2988
|
};
|
|
3110
|
-
let response;
|
|
3111
2989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
$fault: "client",
|
|
3120
|
-
$metadata,
|
|
3121
|
-
});
|
|
3122
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3123
|
-
}
|
|
2990
|
+
const parsedBody = parsedOutput.body;
|
|
2991
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2992
|
+
output,
|
|
2993
|
+
parsedBody,
|
|
2994
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
2995
|
+
errorCode,
|
|
2996
|
+
});
|
|
3124
2997
|
};
|
|
3125
2998
|
const deserializeAws_json1_1TerminateWorkspacesCommand = async (output, context) => {
|
|
3126
2999
|
if (output.statusCode >= 300) {
|
|
@@ -3141,20 +3014,14 @@ const deserializeAws_json1_1TerminateWorkspacesCommandError = async (output, con
|
|
|
3141
3014
|
...output,
|
|
3142
3015
|
body: await parseBody(output.body, context),
|
|
3143
3016
|
};
|
|
3144
|
-
let response;
|
|
3145
3017
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
$fault: "client",
|
|
3154
|
-
$metadata,
|
|
3155
|
-
});
|
|
3156
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3157
|
-
}
|
|
3018
|
+
const parsedBody = parsedOutput.body;
|
|
3019
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3020
|
+
output,
|
|
3021
|
+
parsedBody,
|
|
3022
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3023
|
+
errorCode,
|
|
3024
|
+
});
|
|
3158
3025
|
};
|
|
3159
3026
|
const deserializeAws_json1_1UpdateConnectClientAddInCommand = async (output, context) => {
|
|
3160
3027
|
if (output.statusCode >= 300) {
|
|
@@ -3175,7 +3042,6 @@ const deserializeAws_json1_1UpdateConnectClientAddInCommandError = async (output
|
|
|
3175
3042
|
...output,
|
|
3176
3043
|
body: await parseBody(output.body, context),
|
|
3177
3044
|
};
|
|
3178
|
-
let response;
|
|
3179
3045
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3180
3046
|
switch (errorCode) {
|
|
3181
3047
|
case "AccessDeniedException":
|
|
@@ -3189,14 +3055,12 @@ const deserializeAws_json1_1UpdateConnectClientAddInCommandError = async (output
|
|
|
3189
3055
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3190
3056
|
default:
|
|
3191
3057
|
const parsedBody = parsedOutput.body;
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
$metadata,
|
|
3058
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3059
|
+
output,
|
|
3060
|
+
parsedBody,
|
|
3061
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3062
|
+
errorCode,
|
|
3198
3063
|
});
|
|
3199
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3200
3064
|
}
|
|
3201
3065
|
};
|
|
3202
3066
|
const deserializeAws_json1_1UpdateConnectionAliasPermissionCommand = async (output, context) => {
|
|
@@ -3218,7 +3082,6 @@ const deserializeAws_json1_1UpdateConnectionAliasPermissionCommandError = async
|
|
|
3218
3082
|
...output,
|
|
3219
3083
|
body: await parseBody(output.body, context),
|
|
3220
3084
|
};
|
|
3221
|
-
let response;
|
|
3222
3085
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3223
3086
|
switch (errorCode) {
|
|
3224
3087
|
case "AccessDeniedException":
|
|
@@ -3244,14 +3107,12 @@ const deserializeAws_json1_1UpdateConnectionAliasPermissionCommandError = async
|
|
|
3244
3107
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3245
3108
|
default:
|
|
3246
3109
|
const parsedBody = parsedOutput.body;
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
$metadata,
|
|
3110
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3111
|
+
output,
|
|
3112
|
+
parsedBody,
|
|
3113
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3114
|
+
errorCode,
|
|
3253
3115
|
});
|
|
3254
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3255
3116
|
}
|
|
3256
3117
|
};
|
|
3257
3118
|
const deserializeAws_json1_1UpdateRulesOfIpGroupCommand = async (output, context) => {
|
|
@@ -3273,7 +3134,6 @@ const deserializeAws_json1_1UpdateRulesOfIpGroupCommandError = async (output, co
|
|
|
3273
3134
|
...output,
|
|
3274
3135
|
body: await parseBody(output.body, context),
|
|
3275
3136
|
};
|
|
3276
|
-
let response;
|
|
3277
3137
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3278
3138
|
switch (errorCode) {
|
|
3279
3139
|
case "AccessDeniedException":
|
|
@@ -3293,14 +3153,12 @@ const deserializeAws_json1_1UpdateRulesOfIpGroupCommandError = async (output, co
|
|
|
3293
3153
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3294
3154
|
default:
|
|
3295
3155
|
const parsedBody = parsedOutput.body;
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
$metadata,
|
|
3156
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3157
|
+
output,
|
|
3158
|
+
parsedBody,
|
|
3159
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3160
|
+
errorCode,
|
|
3302
3161
|
});
|
|
3303
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3304
3162
|
}
|
|
3305
3163
|
};
|
|
3306
3164
|
const deserializeAws_json1_1UpdateWorkspaceBundleCommand = async (output, context) => {
|
|
@@ -3322,7 +3180,6 @@ const deserializeAws_json1_1UpdateWorkspaceBundleCommandError = async (output, c
|
|
|
3322
3180
|
...output,
|
|
3323
3181
|
body: await parseBody(output.body, context),
|
|
3324
3182
|
};
|
|
3325
|
-
let response;
|
|
3326
3183
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3327
3184
|
switch (errorCode) {
|
|
3328
3185
|
case "AccessDeniedException":
|
|
@@ -3339,14 +3196,12 @@ const deserializeAws_json1_1UpdateWorkspaceBundleCommandError = async (output, c
|
|
|
3339
3196
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
3340
3197
|
default:
|
|
3341
3198
|
const parsedBody = parsedOutput.body;
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
$metadata,
|
|
3199
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3200
|
+
output,
|
|
3201
|
+
parsedBody,
|
|
3202
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3203
|
+
errorCode,
|
|
3348
3204
|
});
|
|
3349
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3350
3205
|
}
|
|
3351
3206
|
};
|
|
3352
3207
|
const deserializeAws_json1_1UpdateWorkspaceImagePermissionCommand = async (output, context) => {
|
|
@@ -3368,7 +3223,6 @@ const deserializeAws_json1_1UpdateWorkspaceImagePermissionCommandError = async (
|
|
|
3368
3223
|
...output,
|
|
3369
3224
|
body: await parseBody(output.body, context),
|
|
3370
3225
|
};
|
|
3371
|
-
let response;
|
|
3372
3226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3373
3227
|
switch (errorCode) {
|
|
3374
3228
|
case "AccessDeniedException":
|
|
@@ -3388,14 +3242,12 @@ const deserializeAws_json1_1UpdateWorkspaceImagePermissionCommandError = async (
|
|
|
3388
3242
|
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
3389
3243
|
default:
|
|
3390
3244
|
const parsedBody = parsedOutput.body;
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
$metadata,
|
|
3245
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3246
|
+
output,
|
|
3247
|
+
parsedBody,
|
|
3248
|
+
exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
|
|
3249
|
+
errorCode,
|
|
3397
3250
|
});
|
|
3398
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3399
3251
|
}
|
|
3400
3252
|
};
|
|
3401
3253
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -3528,9 +3380,6 @@ const serializeAws_json1_1ApplicationList = (input, context) => {
|
|
|
3528
3380
|
return input
|
|
3529
3381
|
.filter((e) => e != null)
|
|
3530
3382
|
.map((entry) => {
|
|
3531
|
-
if (entry === null) {
|
|
3532
|
-
return null;
|
|
3533
|
-
}
|
|
3534
3383
|
return entry;
|
|
3535
3384
|
});
|
|
3536
3385
|
};
|
|
@@ -3556,9 +3405,6 @@ const serializeAws_json1_1BundleIdList = (input, context) => {
|
|
|
3556
3405
|
return input
|
|
3557
3406
|
.filter((e) => e != null)
|
|
3558
3407
|
.map((entry) => {
|
|
3559
|
-
if (entry === null) {
|
|
3560
|
-
return null;
|
|
3561
|
-
}
|
|
3562
3408
|
return entry;
|
|
3563
3409
|
});
|
|
3564
3410
|
};
|
|
@@ -3566,9 +3412,6 @@ const serializeAws_json1_1ClientDeviceTypeList = (input, context) => {
|
|
|
3566
3412
|
return input
|
|
3567
3413
|
.filter((e) => e != null)
|
|
3568
3414
|
.map((entry) => {
|
|
3569
|
-
if (entry === null) {
|
|
3570
|
-
return null;
|
|
3571
|
-
}
|
|
3572
3415
|
return entry;
|
|
3573
3416
|
});
|
|
3574
3417
|
};
|
|
@@ -3586,9 +3429,6 @@ const serializeAws_json1_1ConnectionAliasIdList = (input, context) => {
|
|
|
3586
3429
|
return input
|
|
3587
3430
|
.filter((e) => e != null)
|
|
3588
3431
|
.map((entry) => {
|
|
3589
|
-
if (entry === null) {
|
|
3590
|
-
return null;
|
|
3591
|
-
}
|
|
3592
3432
|
return entry;
|
|
3593
3433
|
});
|
|
3594
3434
|
};
|
|
@@ -3677,6 +3517,13 @@ const serializeAws_json1_1DefaultImportClientBrandingAttributes = (input, contex
|
|
|
3677
3517
|
...(input.SupportLink != null && { SupportLink: input.SupportLink }),
|
|
3678
3518
|
};
|
|
3679
3519
|
};
|
|
3520
|
+
const serializeAws_json1_1DeletableSamlPropertiesList = (input, context) => {
|
|
3521
|
+
return input
|
|
3522
|
+
.filter((e) => e != null)
|
|
3523
|
+
.map((entry) => {
|
|
3524
|
+
return entry;
|
|
3525
|
+
});
|
|
3526
|
+
};
|
|
3680
3527
|
const serializeAws_json1_1DeleteClientBrandingRequest = (input, context) => {
|
|
3681
3528
|
return {
|
|
3682
3529
|
...(input.Platforms != null && { Platforms: serializeAws_json1_1ClientDeviceTypeList(input.Platforms, context) }),
|
|
@@ -3832,9 +3679,6 @@ const serializeAws_json1_1DirectoryIdList = (input, context) => {
|
|
|
3832
3679
|
return input
|
|
3833
3680
|
.filter((e) => e != null)
|
|
3834
3681
|
.map((entry) => {
|
|
3835
|
-
if (entry === null) {
|
|
3836
|
-
return null;
|
|
3837
|
-
}
|
|
3838
3682
|
return entry;
|
|
3839
3683
|
});
|
|
3840
3684
|
};
|
|
@@ -3899,9 +3743,6 @@ const serializeAws_json1_1IpGroupIdList = (input, context) => {
|
|
|
3899
3743
|
return input
|
|
3900
3744
|
.filter((e) => e != null)
|
|
3901
3745
|
.map((entry) => {
|
|
3902
|
-
if (entry === null) {
|
|
3903
|
-
return null;
|
|
3904
|
-
}
|
|
3905
3746
|
return entry;
|
|
3906
3747
|
});
|
|
3907
3748
|
};
|
|
@@ -3909,9 +3750,6 @@ const serializeAws_json1_1IpRevokedRuleList = (input, context) => {
|
|
|
3909
3750
|
return input
|
|
3910
3751
|
.filter((e) => e != null)
|
|
3911
3752
|
.map((entry) => {
|
|
3912
|
-
if (entry === null) {
|
|
3913
|
-
return null;
|
|
3914
|
-
}
|
|
3915
3753
|
return entry;
|
|
3916
3754
|
});
|
|
3917
3755
|
};
|
|
@@ -3925,9 +3763,6 @@ const serializeAws_json1_1IpRuleList = (input, context) => {
|
|
|
3925
3763
|
return input
|
|
3926
3764
|
.filter((e) => e != null)
|
|
3927
3765
|
.map((entry) => {
|
|
3928
|
-
if (entry === null) {
|
|
3929
|
-
return null;
|
|
3930
|
-
}
|
|
3931
3766
|
return serializeAws_json1_1IpRuleItem(entry, context);
|
|
3932
3767
|
});
|
|
3933
3768
|
};
|
|
@@ -3973,6 +3808,17 @@ const serializeAws_json1_1ModifyClientPropertiesRequest = (input, context) => {
|
|
|
3973
3808
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
3974
3809
|
};
|
|
3975
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
|
+
};
|
|
3976
3822
|
const serializeAws_json1_1ModifySelfservicePermissionsRequest = (input, context) => {
|
|
3977
3823
|
return {
|
|
3978
3824
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
@@ -4020,9 +3866,6 @@ const serializeAws_json1_1RebootWorkspaceRequests = (input, context) => {
|
|
|
4020
3866
|
return input
|
|
4021
3867
|
.filter((e) => e != null)
|
|
4022
3868
|
.map((entry) => {
|
|
4023
|
-
if (entry === null) {
|
|
4024
|
-
return null;
|
|
4025
|
-
}
|
|
4026
3869
|
return serializeAws_json1_1RebootRequest(entry, context);
|
|
4027
3870
|
});
|
|
4028
3871
|
};
|
|
@@ -4042,9 +3885,6 @@ const serializeAws_json1_1RebuildWorkspaceRequests = (input, context) => {
|
|
|
4042
3885
|
return input
|
|
4043
3886
|
.filter((e) => e != null)
|
|
4044
3887
|
.map((entry) => {
|
|
4045
|
-
if (entry === null) {
|
|
4046
|
-
return null;
|
|
4047
|
-
}
|
|
4048
3888
|
return serializeAws_json1_1RebuildRequest(entry, context);
|
|
4049
3889
|
});
|
|
4050
3890
|
};
|
|
@@ -4069,9 +3909,6 @@ const serializeAws_json1_1ResourceIdList = (input, context) => {
|
|
|
4069
3909
|
return input
|
|
4070
3910
|
.filter((e) => e != null)
|
|
4071
3911
|
.map((entry) => {
|
|
4072
|
-
if (entry === null) {
|
|
4073
|
-
return null;
|
|
4074
|
-
}
|
|
4075
3912
|
return entry;
|
|
4076
3913
|
});
|
|
4077
3914
|
};
|
|
@@ -4091,6 +3928,13 @@ const serializeAws_json1_1RootStorage = (input, context) => {
|
|
|
4091
3928
|
...(input.Capacity != null && { Capacity: input.Capacity }),
|
|
4092
3929
|
};
|
|
4093
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
|
+
};
|
|
4094
3938
|
const serializeAws_json1_1SelfservicePermissions = (input, context) => {
|
|
4095
3939
|
return {
|
|
4096
3940
|
...(input.ChangeComputeType != null && { ChangeComputeType: input.ChangeComputeType }),
|
|
@@ -4109,9 +3953,6 @@ const serializeAws_json1_1StartWorkspaceRequests = (input, context) => {
|
|
|
4109
3953
|
return input
|
|
4110
3954
|
.filter((e) => e != null)
|
|
4111
3955
|
.map((entry) => {
|
|
4112
|
-
if (entry === null) {
|
|
4113
|
-
return null;
|
|
4114
|
-
}
|
|
4115
3956
|
return serializeAws_json1_1StartRequest(entry, context);
|
|
4116
3957
|
});
|
|
4117
3958
|
};
|
|
@@ -4131,9 +3972,6 @@ const serializeAws_json1_1StopWorkspaceRequests = (input, context) => {
|
|
|
4131
3972
|
return input
|
|
4132
3973
|
.filter((e) => e != null)
|
|
4133
3974
|
.map((entry) => {
|
|
4134
|
-
if (entry === null) {
|
|
4135
|
-
return null;
|
|
4136
|
-
}
|
|
4137
3975
|
return serializeAws_json1_1StopRequest(entry, context);
|
|
4138
3976
|
});
|
|
4139
3977
|
};
|
|
@@ -4148,9 +3986,6 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
|
|
|
4148
3986
|
return input
|
|
4149
3987
|
.filter((e) => e != null)
|
|
4150
3988
|
.map((entry) => {
|
|
4151
|
-
if (entry === null) {
|
|
4152
|
-
return null;
|
|
4153
|
-
}
|
|
4154
3989
|
return entry;
|
|
4155
3990
|
});
|
|
4156
3991
|
};
|
|
@@ -4164,9 +3999,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
4164
3999
|
return input
|
|
4165
4000
|
.filter((e) => e != null)
|
|
4166
4001
|
.map((entry) => {
|
|
4167
|
-
if (entry === null) {
|
|
4168
|
-
return null;
|
|
4169
|
-
}
|
|
4170
4002
|
return entry;
|
|
4171
4003
|
});
|
|
4172
4004
|
};
|
|
@@ -4174,9 +4006,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
4174
4006
|
return input
|
|
4175
4007
|
.filter((e) => e != null)
|
|
4176
4008
|
.map((entry) => {
|
|
4177
|
-
if (entry === null) {
|
|
4178
|
-
return null;
|
|
4179
|
-
}
|
|
4180
4009
|
return serializeAws_json1_1Tag(entry, context);
|
|
4181
4010
|
});
|
|
4182
4011
|
};
|
|
@@ -4189,9 +4018,6 @@ const serializeAws_json1_1TerminateWorkspaceRequests = (input, context) => {
|
|
|
4189
4018
|
return input
|
|
4190
4019
|
.filter((e) => e != null)
|
|
4191
4020
|
.map((entry) => {
|
|
4192
|
-
if (entry === null) {
|
|
4193
|
-
return null;
|
|
4194
|
-
}
|
|
4195
4021
|
return serializeAws_json1_1TerminateRequest(entry, context);
|
|
4196
4022
|
});
|
|
4197
4023
|
};
|
|
@@ -4270,9 +4096,6 @@ const serializeAws_json1_1WorkspaceIdList = (input, context) => {
|
|
|
4270
4096
|
return input
|
|
4271
4097
|
.filter((e) => e != null)
|
|
4272
4098
|
.map((entry) => {
|
|
4273
|
-
if (entry === null) {
|
|
4274
|
-
return null;
|
|
4275
|
-
}
|
|
4276
4099
|
return entry;
|
|
4277
4100
|
});
|
|
4278
4101
|
};
|
|
@@ -4280,9 +4103,6 @@ const serializeAws_json1_1WorkspaceImageIdList = (input, context) => {
|
|
|
4280
4103
|
return input
|
|
4281
4104
|
.filter((e) => e != null)
|
|
4282
4105
|
.map((entry) => {
|
|
4283
|
-
if (entry === null) {
|
|
4284
|
-
return null;
|
|
4285
|
-
}
|
|
4286
4106
|
return entry;
|
|
4287
4107
|
});
|
|
4288
4108
|
};
|
|
@@ -4319,9 +4139,6 @@ const serializeAws_json1_1WorkspaceRequestList = (input, context) => {
|
|
|
4319
4139
|
return input
|
|
4320
4140
|
.filter((e) => e != null)
|
|
4321
4141
|
.map((entry) => {
|
|
4322
|
-
if (entry === null) {
|
|
4323
|
-
return null;
|
|
4324
|
-
}
|
|
4325
4142
|
return serializeAws_json1_1WorkspaceRequest(entry, context);
|
|
4326
4143
|
});
|
|
4327
4144
|
};
|
|
@@ -4968,6 +4785,9 @@ const deserializeAws_json1_1ModifyAccountResult = (output, context) => {
|
|
|
4968
4785
|
const deserializeAws_json1_1ModifyClientPropertiesResult = (output, context) => {
|
|
4969
4786
|
return {};
|
|
4970
4787
|
};
|
|
4788
|
+
const deserializeAws_json1_1ModifySamlPropertiesResult = (output, context) => {
|
|
4789
|
+
return {};
|
|
4790
|
+
};
|
|
4971
4791
|
const deserializeAws_json1_1ModifySelfservicePermissionsResult = (output, context) => {
|
|
4972
4792
|
return {};
|
|
4973
4793
|
};
|
|
@@ -5059,6 +4879,13 @@ const deserializeAws_json1_1RootStorage = (output, context) => {
|
|
|
5059
4879
|
Capacity: (0, smithy_client_1.expectString)(output.Capacity),
|
|
5060
4880
|
};
|
|
5061
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
|
+
};
|
|
5062
4889
|
const deserializeAws_json1_1SelfservicePermissions = (output, context) => {
|
|
5063
4890
|
return {
|
|
5064
4891
|
ChangeComputeType: (0, smithy_client_1.expectString)(output.ChangeComputeType),
|
|
@@ -5257,6 +5084,7 @@ const deserializeAws_json1_1WorkspaceDirectory = (output, context) => {
|
|
|
5257
5084
|
DnsIpAddresses: output.DnsIpAddresses != null ? deserializeAws_json1_1DnsIpAddresses(output.DnsIpAddresses, context) : undefined,
|
|
5258
5085
|
IamRoleId: (0, smithy_client_1.expectString)(output.IamRoleId),
|
|
5259
5086
|
RegistrationCode: (0, smithy_client_1.expectString)(output.RegistrationCode),
|
|
5087
|
+
SamlProperties: output.SamlProperties != null ? deserializeAws_json1_1SamlProperties(output.SamlProperties, context) : undefined,
|
|
5260
5088
|
SelfservicePermissions: output.SelfservicePermissions != null
|
|
5261
5089
|
? deserializeAws_json1_1SelfservicePermissions(output.SelfservicePermissions, context)
|
|
5262
5090
|
: undefined,
|