@aws-sdk/client-workspaces 3.47.2 → 3.51.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 +35 -0
- package/dist-cjs/WorkSpaces.js +60 -0
- package/dist-cjs/commands/CreateConnectClientAddInCommand.js +36 -0
- package/dist-cjs/commands/DeleteConnectClientAddInCommand.js +36 -0
- package/dist-cjs/commands/DescribeConnectClientAddInsCommand.js +36 -0
- package/dist-cjs/commands/UpdateConnectClientAddInCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +58 -4
- package/dist-cjs/protocols/Aws_json1_1.js +376 -3
- package/dist-es/WorkSpaces.js +60 -0
- package/dist-es/commands/CreateConnectClientAddInCommand.js +39 -0
- package/dist-es/commands/DeleteConnectClientAddInCommand.js +39 -0
- package/dist-es/commands/DescribeConnectClientAddInsCommand.js +39 -0
- package/dist-es/commands/UpdateConnectClientAddInCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +36 -0
- package/dist-es/protocols/Aws_json1_1.js +397 -0
- package/dist-types/WorkSpaces.d.ts +33 -0
- package/dist-types/WorkSpacesClient.d.ts +6 -2
- package/dist-types/commands/CreateConnectClientAddInCommand.d.ts +38 -0
- package/dist-types/commands/DeleteConnectClientAddInCommand.d.ts +36 -0
- package/dist-types/commands/DescribeConnectClientAddInsCommand.d.ts +35 -0
- package/dist-types/commands/UpdateConnectClientAddInCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +161 -8
- package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/ts3.4/WorkSpaces.d.ts +20 -0
- package/dist-types/ts3.4/WorkSpacesClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/CreateConnectClientAddInCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteConnectClientAddInCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeConnectClientAddInsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateConnectClientAddInCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +99 -6
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +39 -33
|
@@ -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_1TerminateWorkspacesCommand = exports.deserializeAws_json1_1StopWorkspacesCommand = exports.deserializeAws_json1_1StartWorkspacesCommand = exports.deserializeAws_json1_1RevokeIpRulesCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1RevokeIpRulesCommand = exports.serializeAws_json1_1RestoreWorkspaceCommand = exports.serializeAws_json1_1RegisterWorkspaceDirectoryCommand = exports.serializeAws_json1_1RebuildWorkspacesCommand = exports.serializeAws_json1_1RebootWorkspacesCommand = exports.serializeAws_json1_1ModifyWorkspaceStateCommand = exports.serializeAws_json1_1ModifyWorkspacePropertiesCommand = exports.serializeAws_json1_1ModifyWorkspaceCreationPropertiesCommand = exports.serializeAws_json1_1ModifyWorkspaceAccessPropertiesCommand = exports.serializeAws_json1_1ModifySelfservicePermissionsCommand = exports.serializeAws_json1_1ModifyClientPropertiesCommand = exports.serializeAws_json1_1ModifyAccountCommand = exports.serializeAws_json1_1MigrateWorkspaceCommand = exports.serializeAws_json1_1ListAvailableManagementCidrRangesCommand = exports.serializeAws_json1_1ImportWorkspaceImageCommand = 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_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_1CreateWorkspacesCommand = 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_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_1DisassociateIpGroupsCommand = 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_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_1CreateWorkspacesCommand = 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 = 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 = 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 serializeAws_json1_1AssociateConnectionAliasCommand = async (input, context) => {
|
|
@@ -45,6 +45,16 @@ const serializeAws_json1_1CopyWorkspaceImageCommand = async (input, context) =>
|
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
exports.serializeAws_json1_1CopyWorkspaceImageCommand = serializeAws_json1_1CopyWorkspaceImageCommand;
|
|
48
|
+
const serializeAws_json1_1CreateConnectClientAddInCommand = async (input, context) => {
|
|
49
|
+
const headers = {
|
|
50
|
+
"content-type": "application/x-amz-json-1.1",
|
|
51
|
+
"x-amz-target": "WorkspacesService.CreateConnectClientAddIn",
|
|
52
|
+
};
|
|
53
|
+
let body;
|
|
54
|
+
body = JSON.stringify(serializeAws_json1_1CreateConnectClientAddInRequest(input, context));
|
|
55
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
|
+
};
|
|
57
|
+
exports.serializeAws_json1_1CreateConnectClientAddInCommand = serializeAws_json1_1CreateConnectClientAddInCommand;
|
|
48
58
|
const serializeAws_json1_1CreateConnectionAliasCommand = async (input, context) => {
|
|
49
59
|
const headers = {
|
|
50
60
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -105,6 +115,16 @@ const serializeAws_json1_1CreateWorkspacesCommand = async (input, context) => {
|
|
|
105
115
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
116
|
};
|
|
107
117
|
exports.serializeAws_json1_1CreateWorkspacesCommand = serializeAws_json1_1CreateWorkspacesCommand;
|
|
118
|
+
const serializeAws_json1_1DeleteConnectClientAddInCommand = async (input, context) => {
|
|
119
|
+
const headers = {
|
|
120
|
+
"content-type": "application/x-amz-json-1.1",
|
|
121
|
+
"x-amz-target": "WorkspacesService.DeleteConnectClientAddIn",
|
|
122
|
+
};
|
|
123
|
+
let body;
|
|
124
|
+
body = JSON.stringify(serializeAws_json1_1DeleteConnectClientAddInRequest(input, context));
|
|
125
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
+
};
|
|
127
|
+
exports.serializeAws_json1_1DeleteConnectClientAddInCommand = serializeAws_json1_1DeleteConnectClientAddInCommand;
|
|
108
128
|
const serializeAws_json1_1DeleteConnectionAliasCommand = async (input, context) => {
|
|
109
129
|
const headers = {
|
|
110
130
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -195,6 +215,16 @@ const serializeAws_json1_1DescribeClientPropertiesCommand = async (input, contex
|
|
|
195
215
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
216
|
};
|
|
197
217
|
exports.serializeAws_json1_1DescribeClientPropertiesCommand = serializeAws_json1_1DescribeClientPropertiesCommand;
|
|
218
|
+
const serializeAws_json1_1DescribeConnectClientAddInsCommand = async (input, context) => {
|
|
219
|
+
const headers = {
|
|
220
|
+
"content-type": "application/x-amz-json-1.1",
|
|
221
|
+
"x-amz-target": "WorkspacesService.DescribeConnectClientAddIns",
|
|
222
|
+
};
|
|
223
|
+
let body;
|
|
224
|
+
body = JSON.stringify(serializeAws_json1_1DescribeConnectClientAddInsRequest(input, context));
|
|
225
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
+
};
|
|
227
|
+
exports.serializeAws_json1_1DescribeConnectClientAddInsCommand = serializeAws_json1_1DescribeConnectClientAddInsCommand;
|
|
198
228
|
const serializeAws_json1_1DescribeConnectionAliasesCommand = async (input, context) => {
|
|
199
229
|
const headers = {
|
|
200
230
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -505,6 +535,16 @@ const serializeAws_json1_1TerminateWorkspacesCommand = async (input, context) =>
|
|
|
505
535
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
506
536
|
};
|
|
507
537
|
exports.serializeAws_json1_1TerminateWorkspacesCommand = serializeAws_json1_1TerminateWorkspacesCommand;
|
|
538
|
+
const serializeAws_json1_1UpdateConnectClientAddInCommand = async (input, context) => {
|
|
539
|
+
const headers = {
|
|
540
|
+
"content-type": "application/x-amz-json-1.1",
|
|
541
|
+
"x-amz-target": "WorkspacesService.UpdateConnectClientAddIn",
|
|
542
|
+
};
|
|
543
|
+
let body;
|
|
544
|
+
body = JSON.stringify(serializeAws_json1_1UpdateConnectClientAddInRequest(input, context));
|
|
545
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
546
|
+
};
|
|
547
|
+
exports.serializeAws_json1_1UpdateConnectClientAddInCommand = serializeAws_json1_1UpdateConnectClientAddInCommand;
|
|
508
548
|
const serializeAws_json1_1UpdateConnectionAliasPermissionCommand = async (input, context) => {
|
|
509
549
|
const headers = {
|
|
510
550
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -893,6 +933,85 @@ const deserializeAws_json1_1CopyWorkspaceImageCommandError = async (output, cont
|
|
|
893
933
|
delete response.Message;
|
|
894
934
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
895
935
|
};
|
|
936
|
+
const deserializeAws_json1_1CreateConnectClientAddInCommand = async (output, context) => {
|
|
937
|
+
if (output.statusCode >= 300) {
|
|
938
|
+
return deserializeAws_json1_1CreateConnectClientAddInCommandError(output, context);
|
|
939
|
+
}
|
|
940
|
+
const data = await parseBody(output.body, context);
|
|
941
|
+
let contents = {};
|
|
942
|
+
contents = deserializeAws_json1_1CreateConnectClientAddInResult(data, context);
|
|
943
|
+
const response = {
|
|
944
|
+
$metadata: deserializeMetadata(output),
|
|
945
|
+
...contents,
|
|
946
|
+
};
|
|
947
|
+
return Promise.resolve(response);
|
|
948
|
+
};
|
|
949
|
+
exports.deserializeAws_json1_1CreateConnectClientAddInCommand = deserializeAws_json1_1CreateConnectClientAddInCommand;
|
|
950
|
+
const deserializeAws_json1_1CreateConnectClientAddInCommandError = async (output, context) => {
|
|
951
|
+
const parsedOutput = {
|
|
952
|
+
...output,
|
|
953
|
+
body: await parseBody(output.body, context),
|
|
954
|
+
};
|
|
955
|
+
let response;
|
|
956
|
+
let errorCode = "UnknownError";
|
|
957
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
|
+
switch (errorCode) {
|
|
959
|
+
case "AccessDeniedException":
|
|
960
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
961
|
+
response = {
|
|
962
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
963
|
+
name: errorCode,
|
|
964
|
+
$metadata: deserializeMetadata(output),
|
|
965
|
+
};
|
|
966
|
+
break;
|
|
967
|
+
case "InvalidParameterValuesException":
|
|
968
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
969
|
+
response = {
|
|
970
|
+
...(await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context)),
|
|
971
|
+
name: errorCode,
|
|
972
|
+
$metadata: deserializeMetadata(output),
|
|
973
|
+
};
|
|
974
|
+
break;
|
|
975
|
+
case "ResourceAlreadyExistsException":
|
|
976
|
+
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
977
|
+
response = {
|
|
978
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
979
|
+
name: errorCode,
|
|
980
|
+
$metadata: deserializeMetadata(output),
|
|
981
|
+
};
|
|
982
|
+
break;
|
|
983
|
+
case "ResourceCreationFailedException":
|
|
984
|
+
case "com.amazonaws.workspaces#ResourceCreationFailedException":
|
|
985
|
+
response = {
|
|
986
|
+
...(await deserializeAws_json1_1ResourceCreationFailedExceptionResponse(parsedOutput, context)),
|
|
987
|
+
name: errorCode,
|
|
988
|
+
$metadata: deserializeMetadata(output),
|
|
989
|
+
};
|
|
990
|
+
break;
|
|
991
|
+
case "ResourceNotFoundException":
|
|
992
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
993
|
+
response = {
|
|
994
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
995
|
+
name: errorCode,
|
|
996
|
+
$metadata: deserializeMetadata(output),
|
|
997
|
+
};
|
|
998
|
+
break;
|
|
999
|
+
default:
|
|
1000
|
+
const parsedBody = parsedOutput.body;
|
|
1001
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1002
|
+
response = {
|
|
1003
|
+
...parsedBody,
|
|
1004
|
+
name: `${errorCode}`,
|
|
1005
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1006
|
+
$fault: "client",
|
|
1007
|
+
$metadata: deserializeMetadata(output),
|
|
1008
|
+
};
|
|
1009
|
+
}
|
|
1010
|
+
const message = response.message || response.Message || errorCode;
|
|
1011
|
+
response.message = message;
|
|
1012
|
+
delete response.Message;
|
|
1013
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1014
|
+
};
|
|
896
1015
|
const deserializeAws_json1_1CreateConnectionAliasCommand = async (output, context) => {
|
|
897
1016
|
if (output.statusCode >= 300) {
|
|
898
1017
|
return deserializeAws_json1_1CreateConnectionAliasCommandError(output, context);
|
|
@@ -1359,6 +1478,69 @@ const deserializeAws_json1_1CreateWorkspacesCommandError = async (output, contex
|
|
|
1359
1478
|
delete response.Message;
|
|
1360
1479
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1361
1480
|
};
|
|
1481
|
+
const deserializeAws_json1_1DeleteConnectClientAddInCommand = async (output, context) => {
|
|
1482
|
+
if (output.statusCode >= 300) {
|
|
1483
|
+
return deserializeAws_json1_1DeleteConnectClientAddInCommandError(output, context);
|
|
1484
|
+
}
|
|
1485
|
+
const data = await parseBody(output.body, context);
|
|
1486
|
+
let contents = {};
|
|
1487
|
+
contents = deserializeAws_json1_1DeleteConnectClientAddInResult(data, context);
|
|
1488
|
+
const response = {
|
|
1489
|
+
$metadata: deserializeMetadata(output),
|
|
1490
|
+
...contents,
|
|
1491
|
+
};
|
|
1492
|
+
return Promise.resolve(response);
|
|
1493
|
+
};
|
|
1494
|
+
exports.deserializeAws_json1_1DeleteConnectClientAddInCommand = deserializeAws_json1_1DeleteConnectClientAddInCommand;
|
|
1495
|
+
const deserializeAws_json1_1DeleteConnectClientAddInCommandError = async (output, context) => {
|
|
1496
|
+
const parsedOutput = {
|
|
1497
|
+
...output,
|
|
1498
|
+
body: await parseBody(output.body, context),
|
|
1499
|
+
};
|
|
1500
|
+
let response;
|
|
1501
|
+
let errorCode = "UnknownError";
|
|
1502
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
|
+
switch (errorCode) {
|
|
1504
|
+
case "AccessDeniedException":
|
|
1505
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1506
|
+
response = {
|
|
1507
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1508
|
+
name: errorCode,
|
|
1509
|
+
$metadata: deserializeMetadata(output),
|
|
1510
|
+
};
|
|
1511
|
+
break;
|
|
1512
|
+
case "InvalidParameterValuesException":
|
|
1513
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1514
|
+
response = {
|
|
1515
|
+
...(await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context)),
|
|
1516
|
+
name: errorCode,
|
|
1517
|
+
$metadata: deserializeMetadata(output),
|
|
1518
|
+
};
|
|
1519
|
+
break;
|
|
1520
|
+
case "ResourceNotFoundException":
|
|
1521
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1522
|
+
response = {
|
|
1523
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1524
|
+
name: errorCode,
|
|
1525
|
+
$metadata: deserializeMetadata(output),
|
|
1526
|
+
};
|
|
1527
|
+
break;
|
|
1528
|
+
default:
|
|
1529
|
+
const parsedBody = parsedOutput.body;
|
|
1530
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1531
|
+
response = {
|
|
1532
|
+
...parsedBody,
|
|
1533
|
+
name: `${errorCode}`,
|
|
1534
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1535
|
+
$fault: "client",
|
|
1536
|
+
$metadata: deserializeMetadata(output),
|
|
1537
|
+
};
|
|
1538
|
+
}
|
|
1539
|
+
const message = response.message || response.Message || errorCode;
|
|
1540
|
+
response.message = message;
|
|
1541
|
+
delete response.Message;
|
|
1542
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1543
|
+
};
|
|
1362
1544
|
const deserializeAws_json1_1DeleteConnectionAliasCommand = async (output, context) => {
|
|
1363
1545
|
if (output.statusCode >= 300) {
|
|
1364
1546
|
return deserializeAws_json1_1DeleteConnectionAliasCommandError(output, context);
|
|
@@ -1942,6 +2124,69 @@ const deserializeAws_json1_1DescribeClientPropertiesCommandError = async (output
|
|
|
1942
2124
|
delete response.Message;
|
|
1943
2125
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1944
2126
|
};
|
|
2127
|
+
const deserializeAws_json1_1DescribeConnectClientAddInsCommand = async (output, context) => {
|
|
2128
|
+
if (output.statusCode >= 300) {
|
|
2129
|
+
return deserializeAws_json1_1DescribeConnectClientAddInsCommandError(output, context);
|
|
2130
|
+
}
|
|
2131
|
+
const data = await parseBody(output.body, context);
|
|
2132
|
+
let contents = {};
|
|
2133
|
+
contents = deserializeAws_json1_1DescribeConnectClientAddInsResult(data, context);
|
|
2134
|
+
const response = {
|
|
2135
|
+
$metadata: deserializeMetadata(output),
|
|
2136
|
+
...contents,
|
|
2137
|
+
};
|
|
2138
|
+
return Promise.resolve(response);
|
|
2139
|
+
};
|
|
2140
|
+
exports.deserializeAws_json1_1DescribeConnectClientAddInsCommand = deserializeAws_json1_1DescribeConnectClientAddInsCommand;
|
|
2141
|
+
const deserializeAws_json1_1DescribeConnectClientAddInsCommandError = async (output, context) => {
|
|
2142
|
+
const parsedOutput = {
|
|
2143
|
+
...output,
|
|
2144
|
+
body: await parseBody(output.body, context),
|
|
2145
|
+
};
|
|
2146
|
+
let response;
|
|
2147
|
+
let errorCode = "UnknownError";
|
|
2148
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2149
|
+
switch (errorCode) {
|
|
2150
|
+
case "AccessDeniedException":
|
|
2151
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2152
|
+
response = {
|
|
2153
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2154
|
+
name: errorCode,
|
|
2155
|
+
$metadata: deserializeMetadata(output),
|
|
2156
|
+
};
|
|
2157
|
+
break;
|
|
2158
|
+
case "InvalidParameterValuesException":
|
|
2159
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2160
|
+
response = {
|
|
2161
|
+
...(await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context)),
|
|
2162
|
+
name: errorCode,
|
|
2163
|
+
$metadata: deserializeMetadata(output),
|
|
2164
|
+
};
|
|
2165
|
+
break;
|
|
2166
|
+
case "ResourceNotFoundException":
|
|
2167
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2168
|
+
response = {
|
|
2169
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2170
|
+
name: errorCode,
|
|
2171
|
+
$metadata: deserializeMetadata(output),
|
|
2172
|
+
};
|
|
2173
|
+
break;
|
|
2174
|
+
default:
|
|
2175
|
+
const parsedBody = parsedOutput.body;
|
|
2176
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2177
|
+
response = {
|
|
2178
|
+
...parsedBody,
|
|
2179
|
+
name: `${errorCode}`,
|
|
2180
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2181
|
+
$fault: "client",
|
|
2182
|
+
$metadata: deserializeMetadata(output),
|
|
2183
|
+
};
|
|
2184
|
+
}
|
|
2185
|
+
const message = response.message || response.Message || errorCode;
|
|
2186
|
+
response.message = message;
|
|
2187
|
+
delete response.Message;
|
|
2188
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2189
|
+
};
|
|
1945
2190
|
const deserializeAws_json1_1DescribeConnectionAliasesCommand = async (output, context) => {
|
|
1946
2191
|
if (output.statusCode >= 300) {
|
|
1947
2192
|
return deserializeAws_json1_1DescribeConnectionAliasesCommandError(output, context);
|
|
@@ -3847,6 +4092,69 @@ const deserializeAws_json1_1TerminateWorkspacesCommandError = async (output, con
|
|
|
3847
4092
|
delete response.Message;
|
|
3848
4093
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3849
4094
|
};
|
|
4095
|
+
const deserializeAws_json1_1UpdateConnectClientAddInCommand = async (output, context) => {
|
|
4096
|
+
if (output.statusCode >= 300) {
|
|
4097
|
+
return deserializeAws_json1_1UpdateConnectClientAddInCommandError(output, context);
|
|
4098
|
+
}
|
|
4099
|
+
const data = await parseBody(output.body, context);
|
|
4100
|
+
let contents = {};
|
|
4101
|
+
contents = deserializeAws_json1_1UpdateConnectClientAddInResult(data, context);
|
|
4102
|
+
const response = {
|
|
4103
|
+
$metadata: deserializeMetadata(output),
|
|
4104
|
+
...contents,
|
|
4105
|
+
};
|
|
4106
|
+
return Promise.resolve(response);
|
|
4107
|
+
};
|
|
4108
|
+
exports.deserializeAws_json1_1UpdateConnectClientAddInCommand = deserializeAws_json1_1UpdateConnectClientAddInCommand;
|
|
4109
|
+
const deserializeAws_json1_1UpdateConnectClientAddInCommandError = async (output, context) => {
|
|
4110
|
+
const parsedOutput = {
|
|
4111
|
+
...output,
|
|
4112
|
+
body: await parseBody(output.body, context),
|
|
4113
|
+
};
|
|
4114
|
+
let response;
|
|
4115
|
+
let errorCode = "UnknownError";
|
|
4116
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4117
|
+
switch (errorCode) {
|
|
4118
|
+
case "AccessDeniedException":
|
|
4119
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
4120
|
+
response = {
|
|
4121
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4122
|
+
name: errorCode,
|
|
4123
|
+
$metadata: deserializeMetadata(output),
|
|
4124
|
+
};
|
|
4125
|
+
break;
|
|
4126
|
+
case "InvalidParameterValuesException":
|
|
4127
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
4128
|
+
response = {
|
|
4129
|
+
...(await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context)),
|
|
4130
|
+
name: errorCode,
|
|
4131
|
+
$metadata: deserializeMetadata(output),
|
|
4132
|
+
};
|
|
4133
|
+
break;
|
|
4134
|
+
case "ResourceNotFoundException":
|
|
4135
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
4136
|
+
response = {
|
|
4137
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4138
|
+
name: errorCode,
|
|
4139
|
+
$metadata: deserializeMetadata(output),
|
|
4140
|
+
};
|
|
4141
|
+
break;
|
|
4142
|
+
default:
|
|
4143
|
+
const parsedBody = parsedOutput.body;
|
|
4144
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4145
|
+
response = {
|
|
4146
|
+
...parsedBody,
|
|
4147
|
+
name: `${errorCode}`,
|
|
4148
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4149
|
+
$fault: "client",
|
|
4150
|
+
$metadata: deserializeMetadata(output),
|
|
4151
|
+
};
|
|
4152
|
+
}
|
|
4153
|
+
const message = response.message || response.Message || errorCode;
|
|
4154
|
+
response.message = message;
|
|
4155
|
+
delete response.Message;
|
|
4156
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4157
|
+
};
|
|
3850
4158
|
const deserializeAws_json1_1UpdateConnectionAliasPermissionCommand = async (output, context) => {
|
|
3851
4159
|
if (output.statusCode >= 300) {
|
|
3852
4160
|
return deserializeAws_json1_1UpdateConnectionAliasPermissionCommandError(output, context);
|
|
@@ -4403,6 +4711,13 @@ const serializeAws_json1_1CopyWorkspaceImageRequest = (input, context) => {
|
|
|
4403
4711
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4404
4712
|
};
|
|
4405
4713
|
};
|
|
4714
|
+
const serializeAws_json1_1CreateConnectClientAddInRequest = (input, context) => {
|
|
4715
|
+
return {
|
|
4716
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4717
|
+
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
4718
|
+
...(input.URL !== undefined && input.URL !== null && { URL: input.URL }),
|
|
4719
|
+
};
|
|
4720
|
+
};
|
|
4406
4721
|
const serializeAws_json1_1CreateConnectionAliasRequest = (input, context) => {
|
|
4407
4722
|
return {
|
|
4408
4723
|
...(input.ConnectionString !== undefined &&
|
|
@@ -4454,6 +4769,12 @@ const serializeAws_json1_1CreateWorkspacesRequest = (input, context) => {
|
|
|
4454
4769
|
input.Workspaces !== null && { Workspaces: serializeAws_json1_1WorkspaceRequestList(input.Workspaces, context) }),
|
|
4455
4770
|
};
|
|
4456
4771
|
};
|
|
4772
|
+
const serializeAws_json1_1DeleteConnectClientAddInRequest = (input, context) => {
|
|
4773
|
+
return {
|
|
4774
|
+
...(input.AddInId !== undefined && input.AddInId !== null && { AddInId: input.AddInId }),
|
|
4775
|
+
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
4776
|
+
};
|
|
4777
|
+
};
|
|
4457
4778
|
const serializeAws_json1_1DeleteConnectionAliasRequest = (input, context) => {
|
|
4458
4779
|
return {
|
|
4459
4780
|
...(input.AliasId !== undefined && input.AliasId !== null && { AliasId: input.AliasId }),
|
|
@@ -4500,6 +4821,13 @@ const serializeAws_json1_1DescribeClientPropertiesRequest = (input, context) =>
|
|
|
4500
4821
|
input.ResourceIds !== null && { ResourceIds: serializeAws_json1_1ResourceIdList(input.ResourceIds, context) }),
|
|
4501
4822
|
};
|
|
4502
4823
|
};
|
|
4824
|
+
const serializeAws_json1_1DescribeConnectClientAddInsRequest = (input, context) => {
|
|
4825
|
+
return {
|
|
4826
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
4827
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4828
|
+
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
4829
|
+
};
|
|
4830
|
+
};
|
|
4503
4831
|
const serializeAws_json1_1DescribeConnectionAliasesRequest = (input, context) => {
|
|
4504
4832
|
return {
|
|
4505
4833
|
...(input.AliasIds !== undefined &&
|
|
@@ -4947,6 +5275,14 @@ const serializeAws_json1_1TerminateWorkspacesRequest = (input, context) => {
|
|
|
4947
5275
|
}),
|
|
4948
5276
|
};
|
|
4949
5277
|
};
|
|
5278
|
+
const serializeAws_json1_1UpdateConnectClientAddInRequest = (input, context) => {
|
|
5279
|
+
return {
|
|
5280
|
+
...(input.AddInId !== undefined && input.AddInId !== null && { AddInId: input.AddInId }),
|
|
5281
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5282
|
+
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
5283
|
+
...(input.URL !== undefined && input.URL !== null && { URL: input.URL }),
|
|
5284
|
+
};
|
|
5285
|
+
};
|
|
4950
5286
|
const serializeAws_json1_1UpdateConnectionAliasPermissionRequest = (input, context) => {
|
|
4951
5287
|
return {
|
|
4952
5288
|
...(input.AliasId !== undefined && input.AliasId !== null && { AliasId: input.AliasId }),
|
|
@@ -5156,6 +5492,24 @@ const deserializeAws_json1_1ComputeType = (output, context) => {
|
|
|
5156
5492
|
Name: smithy_client_1.expectString(output.Name),
|
|
5157
5493
|
};
|
|
5158
5494
|
};
|
|
5495
|
+
const deserializeAws_json1_1ConnectClientAddIn = (output, context) => {
|
|
5496
|
+
return {
|
|
5497
|
+
AddInId: smithy_client_1.expectString(output.AddInId),
|
|
5498
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
5499
|
+
ResourceId: smithy_client_1.expectString(output.ResourceId),
|
|
5500
|
+
URL: smithy_client_1.expectString(output.URL),
|
|
5501
|
+
};
|
|
5502
|
+
};
|
|
5503
|
+
const deserializeAws_json1_1ConnectClientAddInList = (output, context) => {
|
|
5504
|
+
return (output || [])
|
|
5505
|
+
.filter((e) => e != null)
|
|
5506
|
+
.map((entry) => {
|
|
5507
|
+
if (entry === null) {
|
|
5508
|
+
return null;
|
|
5509
|
+
}
|
|
5510
|
+
return deserializeAws_json1_1ConnectClientAddIn(entry, context);
|
|
5511
|
+
});
|
|
5512
|
+
};
|
|
5159
5513
|
const deserializeAws_json1_1ConnectionAlias = (output, context) => {
|
|
5160
5514
|
return {
|
|
5161
5515
|
AliasId: smithy_client_1.expectString(output.AliasId),
|
|
@@ -5216,6 +5570,11 @@ const deserializeAws_json1_1CopyWorkspaceImageResult = (output, context) => {
|
|
|
5216
5570
|
ImageId: smithy_client_1.expectString(output.ImageId),
|
|
5217
5571
|
};
|
|
5218
5572
|
};
|
|
5573
|
+
const deserializeAws_json1_1CreateConnectClientAddInResult = (output, context) => {
|
|
5574
|
+
return {
|
|
5575
|
+
AddInId: smithy_client_1.expectString(output.AddInId),
|
|
5576
|
+
};
|
|
5577
|
+
};
|
|
5219
5578
|
const deserializeAws_json1_1CreateConnectionAliasResult = (output, context) => {
|
|
5220
5579
|
return {
|
|
5221
5580
|
AliasId: smithy_client_1.expectString(output.AliasId),
|
|
@@ -5271,6 +5630,9 @@ const deserializeAws_json1_1DefaultWorkspaceCreationProperties = (output, contex
|
|
|
5271
5630
|
UserEnabledAsLocalAdministrator: smithy_client_1.expectBoolean(output.UserEnabledAsLocalAdministrator),
|
|
5272
5631
|
};
|
|
5273
5632
|
};
|
|
5633
|
+
const deserializeAws_json1_1DeleteConnectClientAddInResult = (output, context) => {
|
|
5634
|
+
return {};
|
|
5635
|
+
};
|
|
5274
5636
|
const deserializeAws_json1_1DeleteConnectionAliasResult = (output, context) => {
|
|
5275
5637
|
return {};
|
|
5276
5638
|
};
|
|
@@ -5310,6 +5672,14 @@ const deserializeAws_json1_1DescribeClientPropertiesResult = (output, context) =
|
|
|
5310
5672
|
: undefined,
|
|
5311
5673
|
};
|
|
5312
5674
|
};
|
|
5675
|
+
const deserializeAws_json1_1DescribeConnectClientAddInsResult = (output, context) => {
|
|
5676
|
+
return {
|
|
5677
|
+
AddIns: output.AddIns !== undefined && output.AddIns !== null
|
|
5678
|
+
? deserializeAws_json1_1ConnectClientAddInList(output.AddIns, context)
|
|
5679
|
+
: undefined,
|
|
5680
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
5681
|
+
};
|
|
5682
|
+
};
|
|
5313
5683
|
const deserializeAws_json1_1DescribeConnectionAliasesResult = (output, context) => {
|
|
5314
5684
|
return {
|
|
5315
5685
|
ConnectionAliases: output.ConnectionAliases !== undefined && output.ConnectionAliases !== null
|
|
@@ -5768,6 +6138,9 @@ const deserializeAws_json1_1UnsupportedWorkspaceConfigurationException = (output
|
|
|
5768
6138
|
message: smithy_client_1.expectString(output.message),
|
|
5769
6139
|
};
|
|
5770
6140
|
};
|
|
6141
|
+
const deserializeAws_json1_1UpdateConnectClientAddInResult = (output, context) => {
|
|
6142
|
+
return {};
|
|
6143
|
+
};
|
|
5771
6144
|
const deserializeAws_json1_1UpdateConnectionAliasPermissionResult = (output, context) => {
|
|
5772
6145
|
return {};
|
|
5773
6146
|
};
|
package/dist-es/WorkSpaces.js
CHANGED
|
@@ -3,12 +3,14 @@ import { AssociateConnectionAliasCommand, } from "./commands/AssociateConnection
|
|
|
3
3
|
import { AssociateIpGroupsCommand, } from "./commands/AssociateIpGroupsCommand";
|
|
4
4
|
import { AuthorizeIpRulesCommand, } from "./commands/AuthorizeIpRulesCommand";
|
|
5
5
|
import { CopyWorkspaceImageCommand, } from "./commands/CopyWorkspaceImageCommand";
|
|
6
|
+
import { CreateConnectClientAddInCommand, } from "./commands/CreateConnectClientAddInCommand";
|
|
6
7
|
import { CreateConnectionAliasCommand, } from "./commands/CreateConnectionAliasCommand";
|
|
7
8
|
import { CreateIpGroupCommand, } from "./commands/CreateIpGroupCommand";
|
|
8
9
|
import { CreateTagsCommand } from "./commands/CreateTagsCommand";
|
|
9
10
|
import { CreateUpdatedWorkspaceImageCommand, } from "./commands/CreateUpdatedWorkspaceImageCommand";
|
|
10
11
|
import { CreateWorkspaceBundleCommand, } from "./commands/CreateWorkspaceBundleCommand";
|
|
11
12
|
import { CreateWorkspacesCommand, } from "./commands/CreateWorkspacesCommand";
|
|
13
|
+
import { DeleteConnectClientAddInCommand, } from "./commands/DeleteConnectClientAddInCommand";
|
|
12
14
|
import { DeleteConnectionAliasCommand, } from "./commands/DeleteConnectionAliasCommand";
|
|
13
15
|
import { DeleteIpGroupCommand, } from "./commands/DeleteIpGroupCommand";
|
|
14
16
|
import { DeleteTagsCommand } from "./commands/DeleteTagsCommand";
|
|
@@ -18,6 +20,7 @@ import { DeregisterWorkspaceDirectoryCommand, } from "./commands/DeregisterWorks
|
|
|
18
20
|
import { DescribeAccountCommand, } from "./commands/DescribeAccountCommand";
|
|
19
21
|
import { DescribeAccountModificationsCommand, } from "./commands/DescribeAccountModificationsCommand";
|
|
20
22
|
import { DescribeClientPropertiesCommand, } from "./commands/DescribeClientPropertiesCommand";
|
|
23
|
+
import { DescribeConnectClientAddInsCommand, } from "./commands/DescribeConnectClientAddInsCommand";
|
|
21
24
|
import { DescribeConnectionAliasesCommand, } from "./commands/DescribeConnectionAliasesCommand";
|
|
22
25
|
import { DescribeConnectionAliasPermissionsCommand, } from "./commands/DescribeConnectionAliasPermissionsCommand";
|
|
23
26
|
import { DescribeIpGroupsCommand, } from "./commands/DescribeIpGroupsCommand";
|
|
@@ -49,6 +52,7 @@ import { RevokeIpRulesCommand, } from "./commands/RevokeIpRulesCommand";
|
|
|
49
52
|
import { StartWorkspacesCommand, } from "./commands/StartWorkspacesCommand";
|
|
50
53
|
import { StopWorkspacesCommand, } from "./commands/StopWorkspacesCommand";
|
|
51
54
|
import { TerminateWorkspacesCommand, } from "./commands/TerminateWorkspacesCommand";
|
|
55
|
+
import { UpdateConnectClientAddInCommand, } from "./commands/UpdateConnectClientAddInCommand";
|
|
52
56
|
import { UpdateConnectionAliasPermissionCommand, } from "./commands/UpdateConnectionAliasPermissionCommand";
|
|
53
57
|
import { UpdateRulesOfIpGroupCommand, } from "./commands/UpdateRulesOfIpGroupCommand";
|
|
54
58
|
import { UpdateWorkspaceBundleCommand, } from "./commands/UpdateWorkspaceBundleCommand";
|
|
@@ -115,6 +119,20 @@ var WorkSpaces = (function (_super) {
|
|
|
115
119
|
return this.send(command, optionsOrCb);
|
|
116
120
|
}
|
|
117
121
|
};
|
|
122
|
+
WorkSpaces.prototype.createConnectClientAddIn = function (args, optionsOrCb, cb) {
|
|
123
|
+
var command = new CreateConnectClientAddInCommand(args);
|
|
124
|
+
if (typeof optionsOrCb === "function") {
|
|
125
|
+
this.send(command, optionsOrCb);
|
|
126
|
+
}
|
|
127
|
+
else if (typeof cb === "function") {
|
|
128
|
+
if (typeof optionsOrCb !== "object")
|
|
129
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
130
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return this.send(command, optionsOrCb);
|
|
134
|
+
}
|
|
135
|
+
};
|
|
118
136
|
WorkSpaces.prototype.createConnectionAlias = function (args, optionsOrCb, cb) {
|
|
119
137
|
var command = new CreateConnectionAliasCommand(args);
|
|
120
138
|
if (typeof optionsOrCb === "function") {
|
|
@@ -199,6 +217,20 @@ var WorkSpaces = (function (_super) {
|
|
|
199
217
|
return this.send(command, optionsOrCb);
|
|
200
218
|
}
|
|
201
219
|
};
|
|
220
|
+
WorkSpaces.prototype.deleteConnectClientAddIn = function (args, optionsOrCb, cb) {
|
|
221
|
+
var command = new DeleteConnectClientAddInCommand(args);
|
|
222
|
+
if (typeof optionsOrCb === "function") {
|
|
223
|
+
this.send(command, optionsOrCb);
|
|
224
|
+
}
|
|
225
|
+
else if (typeof cb === "function") {
|
|
226
|
+
if (typeof optionsOrCb !== "object")
|
|
227
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
228
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
return this.send(command, optionsOrCb);
|
|
232
|
+
}
|
|
233
|
+
};
|
|
202
234
|
WorkSpaces.prototype.deleteConnectionAlias = function (args, optionsOrCb, cb) {
|
|
203
235
|
var command = new DeleteConnectionAliasCommand(args);
|
|
204
236
|
if (typeof optionsOrCb === "function") {
|
|
@@ -325,6 +357,20 @@ var WorkSpaces = (function (_super) {
|
|
|
325
357
|
return this.send(command, optionsOrCb);
|
|
326
358
|
}
|
|
327
359
|
};
|
|
360
|
+
WorkSpaces.prototype.describeConnectClientAddIns = function (args, optionsOrCb, cb) {
|
|
361
|
+
var command = new DescribeConnectClientAddInsCommand(args);
|
|
362
|
+
if (typeof optionsOrCb === "function") {
|
|
363
|
+
this.send(command, optionsOrCb);
|
|
364
|
+
}
|
|
365
|
+
else if (typeof cb === "function") {
|
|
366
|
+
if (typeof optionsOrCb !== "object")
|
|
367
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
368
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
return this.send(command, optionsOrCb);
|
|
372
|
+
}
|
|
373
|
+
};
|
|
328
374
|
WorkSpaces.prototype.describeConnectionAliases = function (args, optionsOrCb, cb) {
|
|
329
375
|
var command = new DescribeConnectionAliasesCommand(args);
|
|
330
376
|
if (typeof optionsOrCb === "function") {
|
|
@@ -759,6 +805,20 @@ var WorkSpaces = (function (_super) {
|
|
|
759
805
|
return this.send(command, optionsOrCb);
|
|
760
806
|
}
|
|
761
807
|
};
|
|
808
|
+
WorkSpaces.prototype.updateConnectClientAddIn = function (args, optionsOrCb, cb) {
|
|
809
|
+
var command = new UpdateConnectClientAddInCommand(args);
|
|
810
|
+
if (typeof optionsOrCb === "function") {
|
|
811
|
+
this.send(command, optionsOrCb);
|
|
812
|
+
}
|
|
813
|
+
else if (typeof cb === "function") {
|
|
814
|
+
if (typeof optionsOrCb !== "object")
|
|
815
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
816
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
817
|
+
}
|
|
818
|
+
else {
|
|
819
|
+
return this.send(command, optionsOrCb);
|
|
820
|
+
}
|
|
821
|
+
};
|
|
762
822
|
WorkSpaces.prototype.updateConnectionAliasPermission = function (args, optionsOrCb, cb) {
|
|
763
823
|
var command = new UpdateConnectionAliasPermissionCommand(args);
|
|
764
824
|
if (typeof optionsOrCb === "function") {
|