@aws-sdk/client-workspaces 3.58.0 → 3.68.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 +18 -4
- package/dist-cjs/WorkSpaces.js +45 -0
- package/dist-cjs/commands/DeleteClientBrandingCommand.js +36 -0
- package/dist-cjs/commands/DescribeClientBrandingCommand.js +36 -0
- package/dist-cjs/commands/ImportClientBrandingCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +76 -4
- package/dist-cjs/protocols/Aws_json1_1.js +327 -3
- package/dist-es/WorkSpaces.js +45 -0
- package/dist-es/commands/DeleteClientBrandingCommand.js +39 -0
- package/dist-es/commands/DescribeClientBrandingCommand.js +39 -0
- package/dist-es/commands/ImportClientBrandingCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +52 -0
- package/dist-es/protocols/Aws_json1_1.js +347 -1
- package/dist-types/WorkSpaces.d.ts +199 -146
- package/dist-types/WorkSpacesClient.d.ts +21 -4
- package/dist-types/commands/AssociateConnectionAliasCommand.d.ts +5 -5
- package/dist-types/commands/CopyWorkspaceImageCommand.d.ts +5 -9
- package/dist-types/commands/CreateConnectClientAddInCommand.d.ts +0 -1
- package/dist-types/commands/CreateConnectionAliasCommand.d.ts +3 -3
- package/dist-types/commands/CreateIpGroupCommand.d.ts +0 -1
- package/dist-types/commands/CreateUpdatedWorkspaceImageCommand.d.ts +11 -13
- package/dist-types/commands/DeleteClientBrandingCommand.d.ts +40 -0
- package/dist-types/commands/DeleteConnectionAliasCommand.d.ts +9 -11
- package/dist-types/commands/DeregisterWorkspaceDirectoryCommand.d.ts +12 -15
- package/dist-types/commands/DescribeClientBrandingCommand.d.ts +42 -0
- package/dist-types/commands/DescribeConnectionAliasPermissionsCommand.d.ts +4 -3
- package/dist-types/commands/DescribeConnectionAliasesCommand.d.ts +3 -3
- package/dist-types/commands/DescribeWorkspaceDirectoriesCommand.d.ts +1 -2
- package/dist-types/commands/DescribeWorkspaceImagePermissionsCommand.d.ts +1 -2
- package/dist-types/commands/DisassociateConnectionAliasCommand.d.ts +6 -6
- package/dist-types/commands/ImportClientBrandingCommand.d.ts +62 -0
- package/dist-types/commands/ImportWorkspaceImageCommand.d.ts +3 -4
- package/dist-types/commands/ListAvailableManagementCidrRangesCommand.d.ts +3 -4
- package/dist-types/commands/MigrateWorkspaceCommand.d.ts +11 -9
- package/dist-types/commands/ModifyWorkspacePropertiesCommand.d.ts +2 -4
- package/dist-types/commands/RebuildWorkspacesCommand.d.ts +2 -1
- package/dist-types/commands/RegisterWorkspaceDirectoryCommand.d.ts +4 -4
- package/dist-types/commands/TerminateWorkspacesCommand.d.ts +12 -17
- package/dist-types/commands/UpdateConnectionAliasPermissionCommand.d.ts +13 -11
- package/dist-types/commands/UpdateWorkspaceImagePermissionCommand.d.ts +13 -16
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +639 -151
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/WorkSpaces.d.ts +15 -0
- package/dist-types/ts3.4/WorkSpacesClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/DeleteClientBrandingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeClientBrandingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ImportClientBrandingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +175 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +9 -0
- package/package.json +3 -3
|
@@ -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 = void 0;
|
|
3
|
+
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_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_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_1ImportWorkspaceImageCommand = exports.deserializeAws_json1_1ImportClientBrandingCommand = 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_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_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 = 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_1ModifyClientPropertiesCommand = exports.deserializeAws_json1_1ModifyAccountCommand = exports.deserializeAws_json1_1MigrateWorkspaceCommand = exports.deserializeAws_json1_1ListAvailableManagementCidrRangesCommand = 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");
|
|
@@ -117,6 +117,16 @@ const serializeAws_json1_1CreateWorkspacesCommand = async (input, context) => {
|
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
exports.serializeAws_json1_1CreateWorkspacesCommand = serializeAws_json1_1CreateWorkspacesCommand;
|
|
120
|
+
const serializeAws_json1_1DeleteClientBrandingCommand = async (input, context) => {
|
|
121
|
+
const headers = {
|
|
122
|
+
"content-type": "application/x-amz-json-1.1",
|
|
123
|
+
"x-amz-target": "WorkspacesService.DeleteClientBranding",
|
|
124
|
+
};
|
|
125
|
+
let body;
|
|
126
|
+
body = JSON.stringify(serializeAws_json1_1DeleteClientBrandingRequest(input, context));
|
|
127
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
+
};
|
|
129
|
+
exports.serializeAws_json1_1DeleteClientBrandingCommand = serializeAws_json1_1DeleteClientBrandingCommand;
|
|
120
130
|
const serializeAws_json1_1DeleteConnectClientAddInCommand = async (input, context) => {
|
|
121
131
|
const headers = {
|
|
122
132
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -207,6 +217,16 @@ const serializeAws_json1_1DescribeAccountModificationsCommand = async (input, co
|
|
|
207
217
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
218
|
};
|
|
209
219
|
exports.serializeAws_json1_1DescribeAccountModificationsCommand = serializeAws_json1_1DescribeAccountModificationsCommand;
|
|
220
|
+
const serializeAws_json1_1DescribeClientBrandingCommand = async (input, context) => {
|
|
221
|
+
const headers = {
|
|
222
|
+
"content-type": "application/x-amz-json-1.1",
|
|
223
|
+
"x-amz-target": "WorkspacesService.DescribeClientBranding",
|
|
224
|
+
};
|
|
225
|
+
let body;
|
|
226
|
+
body = JSON.stringify(serializeAws_json1_1DescribeClientBrandingRequest(input, context));
|
|
227
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
|
+
};
|
|
229
|
+
exports.serializeAws_json1_1DescribeClientBrandingCommand = serializeAws_json1_1DescribeClientBrandingCommand;
|
|
210
230
|
const serializeAws_json1_1DescribeClientPropertiesCommand = async (input, context) => {
|
|
211
231
|
const headers = {
|
|
212
232
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -357,6 +377,16 @@ const serializeAws_json1_1DisassociateIpGroupsCommand = async (input, context) =
|
|
|
357
377
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
358
378
|
};
|
|
359
379
|
exports.serializeAws_json1_1DisassociateIpGroupsCommand = serializeAws_json1_1DisassociateIpGroupsCommand;
|
|
380
|
+
const serializeAws_json1_1ImportClientBrandingCommand = async (input, context) => {
|
|
381
|
+
const headers = {
|
|
382
|
+
"content-type": "application/x-amz-json-1.1",
|
|
383
|
+
"x-amz-target": "WorkspacesService.ImportClientBranding",
|
|
384
|
+
};
|
|
385
|
+
let body;
|
|
386
|
+
body = JSON.stringify(serializeAws_json1_1ImportClientBrandingRequest(input, context));
|
|
387
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
|
+
};
|
|
389
|
+
exports.serializeAws_json1_1ImportClientBrandingCommand = serializeAws_json1_1ImportClientBrandingCommand;
|
|
360
390
|
const serializeAws_json1_1ImportWorkspaceImageCommand = async (input, context) => {
|
|
361
391
|
const headers = {
|
|
362
392
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1124,6 +1154,48 @@ const deserializeAws_json1_1CreateWorkspacesCommandError = async (output, contex
|
|
|
1124
1154
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1125
1155
|
}
|
|
1126
1156
|
};
|
|
1157
|
+
const deserializeAws_json1_1DeleteClientBrandingCommand = async (output, context) => {
|
|
1158
|
+
if (output.statusCode >= 300) {
|
|
1159
|
+
return deserializeAws_json1_1DeleteClientBrandingCommandError(output, context);
|
|
1160
|
+
}
|
|
1161
|
+
const data = await parseBody(output.body, context);
|
|
1162
|
+
let contents = {};
|
|
1163
|
+
contents = deserializeAws_json1_1DeleteClientBrandingResult(data, context);
|
|
1164
|
+
const response = {
|
|
1165
|
+
$metadata: deserializeMetadata(output),
|
|
1166
|
+
...contents,
|
|
1167
|
+
};
|
|
1168
|
+
return Promise.resolve(response);
|
|
1169
|
+
};
|
|
1170
|
+
exports.deserializeAws_json1_1DeleteClientBrandingCommand = deserializeAws_json1_1DeleteClientBrandingCommand;
|
|
1171
|
+
const deserializeAws_json1_1DeleteClientBrandingCommandError = async (output, context) => {
|
|
1172
|
+
const parsedOutput = {
|
|
1173
|
+
...output,
|
|
1174
|
+
body: await parseBody(output.body, context),
|
|
1175
|
+
};
|
|
1176
|
+
let response;
|
|
1177
|
+
let errorCode = "UnknownError";
|
|
1178
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
+
switch (errorCode) {
|
|
1180
|
+
case "AccessDeniedException":
|
|
1181
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1182
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1183
|
+
case "InvalidParameterValuesException":
|
|
1184
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1185
|
+
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1186
|
+
case "ResourceNotFoundException":
|
|
1187
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1188
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1189
|
+
default:
|
|
1190
|
+
const parsedBody = parsedOutput.body;
|
|
1191
|
+
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1192
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1193
|
+
$fault: "client",
|
|
1194
|
+
$metadata: deserializeMetadata(output),
|
|
1195
|
+
});
|
|
1196
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1197
|
+
}
|
|
1198
|
+
};
|
|
1127
1199
|
const deserializeAws_json1_1DeleteConnectClientAddInCommand = async (output, context) => {
|
|
1128
1200
|
if (output.statusCode >= 300) {
|
|
1129
1201
|
return deserializeAws_json1_1DeleteConnectClientAddInCommandError(output, context);
|
|
@@ -1508,6 +1580,48 @@ const deserializeAws_json1_1DescribeAccountModificationsCommandError = async (ou
|
|
|
1508
1580
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1509
1581
|
}
|
|
1510
1582
|
};
|
|
1583
|
+
const deserializeAws_json1_1DescribeClientBrandingCommand = async (output, context) => {
|
|
1584
|
+
if (output.statusCode >= 300) {
|
|
1585
|
+
return deserializeAws_json1_1DescribeClientBrandingCommandError(output, context);
|
|
1586
|
+
}
|
|
1587
|
+
const data = await parseBody(output.body, context);
|
|
1588
|
+
let contents = {};
|
|
1589
|
+
contents = deserializeAws_json1_1DescribeClientBrandingResult(data, context);
|
|
1590
|
+
const response = {
|
|
1591
|
+
$metadata: deserializeMetadata(output),
|
|
1592
|
+
...contents,
|
|
1593
|
+
};
|
|
1594
|
+
return Promise.resolve(response);
|
|
1595
|
+
};
|
|
1596
|
+
exports.deserializeAws_json1_1DescribeClientBrandingCommand = deserializeAws_json1_1DescribeClientBrandingCommand;
|
|
1597
|
+
const deserializeAws_json1_1DescribeClientBrandingCommandError = async (output, context) => {
|
|
1598
|
+
const parsedOutput = {
|
|
1599
|
+
...output,
|
|
1600
|
+
body: await parseBody(output.body, context),
|
|
1601
|
+
};
|
|
1602
|
+
let response;
|
|
1603
|
+
let errorCode = "UnknownError";
|
|
1604
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1605
|
+
switch (errorCode) {
|
|
1606
|
+
case "AccessDeniedException":
|
|
1607
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1608
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1609
|
+
case "InvalidParameterValuesException":
|
|
1610
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1611
|
+
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1612
|
+
case "ResourceNotFoundException":
|
|
1613
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1614
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1615
|
+
default:
|
|
1616
|
+
const parsedBody = parsedOutput.body;
|
|
1617
|
+
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1618
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1619
|
+
$fault: "client",
|
|
1620
|
+
$metadata: deserializeMetadata(output),
|
|
1621
|
+
});
|
|
1622
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1623
|
+
}
|
|
1624
|
+
};
|
|
1511
1625
|
const deserializeAws_json1_1DescribeClientPropertiesCommand = async (output, context) => {
|
|
1512
1626
|
if (output.statusCode >= 300) {
|
|
1513
1627
|
return deserializeAws_json1_1DescribeClientPropertiesCommandError(output, context);
|
|
@@ -2114,6 +2228,48 @@ const deserializeAws_json1_1DisassociateIpGroupsCommandError = async (output, co
|
|
|
2114
2228
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2115
2229
|
}
|
|
2116
2230
|
};
|
|
2231
|
+
const deserializeAws_json1_1ImportClientBrandingCommand = async (output, context) => {
|
|
2232
|
+
if (output.statusCode >= 300) {
|
|
2233
|
+
return deserializeAws_json1_1ImportClientBrandingCommandError(output, context);
|
|
2234
|
+
}
|
|
2235
|
+
const data = await parseBody(output.body, context);
|
|
2236
|
+
let contents = {};
|
|
2237
|
+
contents = deserializeAws_json1_1ImportClientBrandingResult(data, context);
|
|
2238
|
+
const response = {
|
|
2239
|
+
$metadata: deserializeMetadata(output),
|
|
2240
|
+
...contents,
|
|
2241
|
+
};
|
|
2242
|
+
return Promise.resolve(response);
|
|
2243
|
+
};
|
|
2244
|
+
exports.deserializeAws_json1_1ImportClientBrandingCommand = deserializeAws_json1_1ImportClientBrandingCommand;
|
|
2245
|
+
const deserializeAws_json1_1ImportClientBrandingCommandError = async (output, context) => {
|
|
2246
|
+
const parsedOutput = {
|
|
2247
|
+
...output,
|
|
2248
|
+
body: await parseBody(output.body, context),
|
|
2249
|
+
};
|
|
2250
|
+
let response;
|
|
2251
|
+
let errorCode = "UnknownError";
|
|
2252
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2253
|
+
switch (errorCode) {
|
|
2254
|
+
case "AccessDeniedException":
|
|
2255
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2256
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2257
|
+
case "InvalidParameterValuesException":
|
|
2258
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2259
|
+
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2260
|
+
case "ResourceLimitExceededException":
|
|
2261
|
+
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
2262
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
2263
|
+
default:
|
|
2264
|
+
const parsedBody = parsedOutput.body;
|
|
2265
|
+
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
2266
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2267
|
+
$fault: "client",
|
|
2268
|
+
$metadata: deserializeMetadata(output),
|
|
2269
|
+
});
|
|
2270
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2271
|
+
}
|
|
2272
|
+
};
|
|
2117
2273
|
const deserializeAws_json1_1ImportWorkspaceImageCommand = async (output, context) => {
|
|
2118
2274
|
if (output.statusCode >= 300) {
|
|
2119
2275
|
return deserializeAws_json1_1ImportWorkspaceImageCommandError(output, context);
|
|
@@ -3279,6 +3435,16 @@ const serializeAws_json1_1BundleIdList = (input, context) => {
|
|
|
3279
3435
|
return entry;
|
|
3280
3436
|
});
|
|
3281
3437
|
};
|
|
3438
|
+
const serializeAws_json1_1ClientDeviceTypeList = (input, context) => {
|
|
3439
|
+
return input
|
|
3440
|
+
.filter((e) => e != null)
|
|
3441
|
+
.map((entry) => {
|
|
3442
|
+
if (entry === null) {
|
|
3443
|
+
return null;
|
|
3444
|
+
}
|
|
3445
|
+
return entry;
|
|
3446
|
+
});
|
|
3447
|
+
};
|
|
3282
3448
|
const serializeAws_json1_1ClientProperties = (input, context) => {
|
|
3283
3449
|
return {
|
|
3284
3450
|
...(input.ReconnectEnabled !== undefined &&
|
|
@@ -3375,6 +3541,24 @@ const serializeAws_json1_1CreateWorkspacesRequest = (input, context) => {
|
|
|
3375
3541
|
input.Workspaces !== null && { Workspaces: serializeAws_json1_1WorkspaceRequestList(input.Workspaces, context) }),
|
|
3376
3542
|
};
|
|
3377
3543
|
};
|
|
3544
|
+
const serializeAws_json1_1DefaultImportClientBrandingAttributes = (input, context) => {
|
|
3545
|
+
return {
|
|
3546
|
+
...(input.ForgotPasswordLink !== undefined &&
|
|
3547
|
+
input.ForgotPasswordLink !== null && { ForgotPasswordLink: input.ForgotPasswordLink }),
|
|
3548
|
+
...(input.LoginMessage !== undefined &&
|
|
3549
|
+
input.LoginMessage !== null && { LoginMessage: serializeAws_json1_1LoginMessage(input.LoginMessage, context) }),
|
|
3550
|
+
...(input.Logo !== undefined && input.Logo !== null && { Logo: context.base64Encoder(input.Logo) }),
|
|
3551
|
+
...(input.SupportEmail !== undefined && input.SupportEmail !== null && { SupportEmail: input.SupportEmail }),
|
|
3552
|
+
...(input.SupportLink !== undefined && input.SupportLink !== null && { SupportLink: input.SupportLink }),
|
|
3553
|
+
};
|
|
3554
|
+
};
|
|
3555
|
+
const serializeAws_json1_1DeleteClientBrandingRequest = (input, context) => {
|
|
3556
|
+
return {
|
|
3557
|
+
...(input.Platforms !== undefined &&
|
|
3558
|
+
input.Platforms !== null && { Platforms: serializeAws_json1_1ClientDeviceTypeList(input.Platforms, context) }),
|
|
3559
|
+
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
3560
|
+
};
|
|
3561
|
+
};
|
|
3378
3562
|
const serializeAws_json1_1DeleteConnectClientAddInRequest = (input, context) => {
|
|
3379
3563
|
return {
|
|
3380
3564
|
...(input.AddInId !== undefined && input.AddInId !== null && { AddInId: input.AddInId }),
|
|
@@ -3421,6 +3605,11 @@ const serializeAws_json1_1DescribeAccountModificationsRequest = (input, context)
|
|
|
3421
3605
|
const serializeAws_json1_1DescribeAccountRequest = (input, context) => {
|
|
3422
3606
|
return {};
|
|
3423
3607
|
};
|
|
3608
|
+
const serializeAws_json1_1DescribeClientBrandingRequest = (input, context) => {
|
|
3609
|
+
return {
|
|
3610
|
+
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
3611
|
+
};
|
|
3612
|
+
};
|
|
3424
3613
|
const serializeAws_json1_1DescribeClientPropertiesRequest = (input, context) => {
|
|
3425
3614
|
return {
|
|
3426
3615
|
...(input.ResourceIds !== undefined &&
|
|
@@ -3546,6 +3735,35 @@ const serializeAws_json1_1DisassociateIpGroupsRequest = (input, context) => {
|
|
|
3546
3735
|
input.GroupIds !== null && { GroupIds: serializeAws_json1_1IpGroupIdList(input.GroupIds, context) }),
|
|
3547
3736
|
};
|
|
3548
3737
|
};
|
|
3738
|
+
const serializeAws_json1_1ImportClientBrandingRequest = (input, context) => {
|
|
3739
|
+
return {
|
|
3740
|
+
...(input.DeviceTypeAndroid !== undefined &&
|
|
3741
|
+
input.DeviceTypeAndroid !== null && {
|
|
3742
|
+
DeviceTypeAndroid: serializeAws_json1_1DefaultImportClientBrandingAttributes(input.DeviceTypeAndroid, context),
|
|
3743
|
+
}),
|
|
3744
|
+
...(input.DeviceTypeIos !== undefined &&
|
|
3745
|
+
input.DeviceTypeIos !== null && {
|
|
3746
|
+
DeviceTypeIos: serializeAws_json1_1IosImportClientBrandingAttributes(input.DeviceTypeIos, context),
|
|
3747
|
+
}),
|
|
3748
|
+
...(input.DeviceTypeLinux !== undefined &&
|
|
3749
|
+
input.DeviceTypeLinux !== null && {
|
|
3750
|
+
DeviceTypeLinux: serializeAws_json1_1DefaultImportClientBrandingAttributes(input.DeviceTypeLinux, context),
|
|
3751
|
+
}),
|
|
3752
|
+
...(input.DeviceTypeOsx !== undefined &&
|
|
3753
|
+
input.DeviceTypeOsx !== null && {
|
|
3754
|
+
DeviceTypeOsx: serializeAws_json1_1DefaultImportClientBrandingAttributes(input.DeviceTypeOsx, context),
|
|
3755
|
+
}),
|
|
3756
|
+
...(input.DeviceTypeWeb !== undefined &&
|
|
3757
|
+
input.DeviceTypeWeb !== null && {
|
|
3758
|
+
DeviceTypeWeb: serializeAws_json1_1DefaultImportClientBrandingAttributes(input.DeviceTypeWeb, context),
|
|
3759
|
+
}),
|
|
3760
|
+
...(input.DeviceTypeWindows !== undefined &&
|
|
3761
|
+
input.DeviceTypeWindows !== null && {
|
|
3762
|
+
DeviceTypeWindows: serializeAws_json1_1DefaultImportClientBrandingAttributes(input.DeviceTypeWindows, context),
|
|
3763
|
+
}),
|
|
3764
|
+
...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
|
|
3765
|
+
};
|
|
3766
|
+
};
|
|
3549
3767
|
const serializeAws_json1_1ImportWorkspaceImageRequest = (input, context) => {
|
|
3550
3768
|
return {
|
|
3551
3769
|
...(input.Applications !== undefined &&
|
|
@@ -3561,6 +3779,19 @@ const serializeAws_json1_1ImportWorkspaceImageRequest = (input, context) => {
|
|
|
3561
3779
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3562
3780
|
};
|
|
3563
3781
|
};
|
|
3782
|
+
const serializeAws_json1_1IosImportClientBrandingAttributes = (input, context) => {
|
|
3783
|
+
return {
|
|
3784
|
+
...(input.ForgotPasswordLink !== undefined &&
|
|
3785
|
+
input.ForgotPasswordLink !== null && { ForgotPasswordLink: input.ForgotPasswordLink }),
|
|
3786
|
+
...(input.LoginMessage !== undefined &&
|
|
3787
|
+
input.LoginMessage !== null && { LoginMessage: serializeAws_json1_1LoginMessage(input.LoginMessage, context) }),
|
|
3788
|
+
...(input.Logo !== undefined && input.Logo !== null && { Logo: context.base64Encoder(input.Logo) }),
|
|
3789
|
+
...(input.Logo2x !== undefined && input.Logo2x !== null && { Logo2x: context.base64Encoder(input.Logo2x) }),
|
|
3790
|
+
...(input.Logo3x !== undefined && input.Logo3x !== null && { Logo3x: context.base64Encoder(input.Logo3x) }),
|
|
3791
|
+
...(input.SupportEmail !== undefined && input.SupportEmail !== null && { SupportEmail: input.SupportEmail }),
|
|
3792
|
+
...(input.SupportLink !== undefined && input.SupportLink !== null && { SupportLink: input.SupportLink }),
|
|
3793
|
+
};
|
|
3794
|
+
};
|
|
3564
3795
|
const serializeAws_json1_1IpGroupIdList = (input, context) => {
|
|
3565
3796
|
return input
|
|
3566
3797
|
.filter((e) => e != null)
|
|
@@ -3607,6 +3838,17 @@ const serializeAws_json1_1ListAvailableManagementCidrRangesRequest = (input, con
|
|
|
3607
3838
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3608
3839
|
};
|
|
3609
3840
|
};
|
|
3841
|
+
const serializeAws_json1_1LoginMessage = (input, context) => {
|
|
3842
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3843
|
+
if (value === null) {
|
|
3844
|
+
return acc;
|
|
3845
|
+
}
|
|
3846
|
+
return {
|
|
3847
|
+
...acc,
|
|
3848
|
+
[key]: value,
|
|
3849
|
+
};
|
|
3850
|
+
}, {});
|
|
3851
|
+
};
|
|
3610
3852
|
const serializeAws_json1_1MigrateWorkspaceRequest = (input, context) => {
|
|
3611
3853
|
return {
|
|
3612
3854
|
...(input.BundleId !== undefined && input.BundleId !== null && { BundleId: input.BundleId }),
|
|
@@ -4234,6 +4476,17 @@ const deserializeAws_json1_1DedicatedTenancyCidrRangeList = (output, context) =>
|
|
|
4234
4476
|
});
|
|
4235
4477
|
return retVal;
|
|
4236
4478
|
};
|
|
4479
|
+
const deserializeAws_json1_1DefaultClientBrandingAttributes = (output, context) => {
|
|
4480
|
+
return {
|
|
4481
|
+
ForgotPasswordLink: (0, smithy_client_1.expectString)(output.ForgotPasswordLink),
|
|
4482
|
+
LoginMessage: output.LoginMessage !== undefined && output.LoginMessage !== null
|
|
4483
|
+
? deserializeAws_json1_1LoginMessage(output.LoginMessage, context)
|
|
4484
|
+
: undefined,
|
|
4485
|
+
LogoUrl: (0, smithy_client_1.expectString)(output.LogoUrl),
|
|
4486
|
+
SupportEmail: (0, smithy_client_1.expectString)(output.SupportEmail),
|
|
4487
|
+
SupportLink: (0, smithy_client_1.expectString)(output.SupportLink),
|
|
4488
|
+
};
|
|
4489
|
+
};
|
|
4237
4490
|
const deserializeAws_json1_1DefaultWorkspaceCreationProperties = (output, context) => {
|
|
4238
4491
|
return {
|
|
4239
4492
|
CustomSecurityGroupId: (0, smithy_client_1.expectString)(output.CustomSecurityGroupId),
|
|
@@ -4244,6 +4497,9 @@ const deserializeAws_json1_1DefaultWorkspaceCreationProperties = (output, contex
|
|
|
4244
4497
|
UserEnabledAsLocalAdministrator: (0, smithy_client_1.expectBoolean)(output.UserEnabledAsLocalAdministrator),
|
|
4245
4498
|
};
|
|
4246
4499
|
};
|
|
4500
|
+
const deserializeAws_json1_1DeleteClientBrandingResult = (output, context) => {
|
|
4501
|
+
return {};
|
|
4502
|
+
};
|
|
4247
4503
|
const deserializeAws_json1_1DeleteConnectClientAddInResult = (output, context) => {
|
|
4248
4504
|
return {};
|
|
4249
4505
|
};
|
|
@@ -4279,6 +4535,28 @@ const deserializeAws_json1_1DescribeAccountResult = (output, context) => {
|
|
|
4279
4535
|
DedicatedTenancySupport: (0, smithy_client_1.expectString)(output.DedicatedTenancySupport),
|
|
4280
4536
|
};
|
|
4281
4537
|
};
|
|
4538
|
+
const deserializeAws_json1_1DescribeClientBrandingResult = (output, context) => {
|
|
4539
|
+
return {
|
|
4540
|
+
DeviceTypeAndroid: output.DeviceTypeAndroid !== undefined && output.DeviceTypeAndroid !== null
|
|
4541
|
+
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeAndroid, context)
|
|
4542
|
+
: undefined,
|
|
4543
|
+
DeviceTypeIos: output.DeviceTypeIos !== undefined && output.DeviceTypeIos !== null
|
|
4544
|
+
? deserializeAws_json1_1IosClientBrandingAttributes(output.DeviceTypeIos, context)
|
|
4545
|
+
: undefined,
|
|
4546
|
+
DeviceTypeLinux: output.DeviceTypeLinux !== undefined && output.DeviceTypeLinux !== null
|
|
4547
|
+
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeLinux, context)
|
|
4548
|
+
: undefined,
|
|
4549
|
+
DeviceTypeOsx: output.DeviceTypeOsx !== undefined && output.DeviceTypeOsx !== null
|
|
4550
|
+
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeOsx, context)
|
|
4551
|
+
: undefined,
|
|
4552
|
+
DeviceTypeWeb: output.DeviceTypeWeb !== undefined && output.DeviceTypeWeb !== null
|
|
4553
|
+
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeWeb, context)
|
|
4554
|
+
: undefined,
|
|
4555
|
+
DeviceTypeWindows: output.DeviceTypeWindows !== undefined && output.DeviceTypeWindows !== null
|
|
4556
|
+
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeWindows, context)
|
|
4557
|
+
: undefined,
|
|
4558
|
+
};
|
|
4559
|
+
};
|
|
4282
4560
|
const deserializeAws_json1_1DescribeClientPropertiesResult = (output, context) => {
|
|
4283
4561
|
return {
|
|
4284
4562
|
ClientPropertiesList: output.ClientPropertiesList !== undefined && output.ClientPropertiesList !== null
|
|
@@ -4511,6 +4789,28 @@ const deserializeAws_json1_1ImagePermissions = (output, context) => {
|
|
|
4511
4789
|
});
|
|
4512
4790
|
return retVal;
|
|
4513
4791
|
};
|
|
4792
|
+
const deserializeAws_json1_1ImportClientBrandingResult = (output, context) => {
|
|
4793
|
+
return {
|
|
4794
|
+
DeviceTypeAndroid: output.DeviceTypeAndroid !== undefined && output.DeviceTypeAndroid !== null
|
|
4795
|
+
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeAndroid, context)
|
|
4796
|
+
: undefined,
|
|
4797
|
+
DeviceTypeIos: output.DeviceTypeIos !== undefined && output.DeviceTypeIos !== null
|
|
4798
|
+
? deserializeAws_json1_1IosClientBrandingAttributes(output.DeviceTypeIos, context)
|
|
4799
|
+
: undefined,
|
|
4800
|
+
DeviceTypeLinux: output.DeviceTypeLinux !== undefined && output.DeviceTypeLinux !== null
|
|
4801
|
+
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeLinux, context)
|
|
4802
|
+
: undefined,
|
|
4803
|
+
DeviceTypeOsx: output.DeviceTypeOsx !== undefined && output.DeviceTypeOsx !== null
|
|
4804
|
+
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeOsx, context)
|
|
4805
|
+
: undefined,
|
|
4806
|
+
DeviceTypeWeb: output.DeviceTypeWeb !== undefined && output.DeviceTypeWeb !== null
|
|
4807
|
+
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeWeb, context)
|
|
4808
|
+
: undefined,
|
|
4809
|
+
DeviceTypeWindows: output.DeviceTypeWindows !== undefined && output.DeviceTypeWindows !== null
|
|
4810
|
+
? deserializeAws_json1_1DefaultClientBrandingAttributes(output.DeviceTypeWindows, context)
|
|
4811
|
+
: undefined,
|
|
4812
|
+
};
|
|
4813
|
+
};
|
|
4514
4814
|
const deserializeAws_json1_1ImportWorkspaceImageResult = (output, context) => {
|
|
4515
4815
|
return {
|
|
4516
4816
|
ImageId: (0, smithy_client_1.expectString)(output.ImageId),
|
|
@@ -4526,6 +4826,19 @@ const deserializeAws_json1_1InvalidResourceStateException = (output, context) =>
|
|
|
4526
4826
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
4527
4827
|
};
|
|
4528
4828
|
};
|
|
4829
|
+
const deserializeAws_json1_1IosClientBrandingAttributes = (output, context) => {
|
|
4830
|
+
return {
|
|
4831
|
+
ForgotPasswordLink: (0, smithy_client_1.expectString)(output.ForgotPasswordLink),
|
|
4832
|
+
LoginMessage: output.LoginMessage !== undefined && output.LoginMessage !== null
|
|
4833
|
+
? deserializeAws_json1_1LoginMessage(output.LoginMessage, context)
|
|
4834
|
+
: undefined,
|
|
4835
|
+
Logo2xUrl: (0, smithy_client_1.expectString)(output.Logo2xUrl),
|
|
4836
|
+
Logo3xUrl: (0, smithy_client_1.expectString)(output.Logo3xUrl),
|
|
4837
|
+
LogoUrl: (0, smithy_client_1.expectString)(output.LogoUrl),
|
|
4838
|
+
SupportEmail: (0, smithy_client_1.expectString)(output.SupportEmail),
|
|
4839
|
+
SupportLink: (0, smithy_client_1.expectString)(output.SupportLink),
|
|
4840
|
+
};
|
|
4841
|
+
};
|
|
4529
4842
|
const deserializeAws_json1_1IpGroupIdList = (output, context) => {
|
|
4530
4843
|
const retVal = (output || [])
|
|
4531
4844
|
.filter((e) => e != null)
|
|
@@ -4562,6 +4875,17 @@ const deserializeAws_json1_1ListAvailableManagementCidrRangesResult = (output, c
|
|
|
4562
4875
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4563
4876
|
};
|
|
4564
4877
|
};
|
|
4878
|
+
const deserializeAws_json1_1LoginMessage = (output, context) => {
|
|
4879
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4880
|
+
if (value === null) {
|
|
4881
|
+
return acc;
|
|
4882
|
+
}
|
|
4883
|
+
return {
|
|
4884
|
+
...acc,
|
|
4885
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
4886
|
+
};
|
|
4887
|
+
}, {});
|
|
4888
|
+
};
|
|
4565
4889
|
const deserializeAws_json1_1MigrateWorkspaceResult = (output, context) => {
|
|
4566
4890
|
return {
|
|
4567
4891
|
SourceWorkspaceId: (0, smithy_client_1.expectString)(output.SourceWorkspaceId),
|
package/dist-es/WorkSpaces.js
CHANGED
|
@@ -10,6 +10,7 @@ import { CreateTagsCommand } from "./commands/CreateTagsCommand";
|
|
|
10
10
|
import { CreateUpdatedWorkspaceImageCommand, } from "./commands/CreateUpdatedWorkspaceImageCommand";
|
|
11
11
|
import { CreateWorkspaceBundleCommand, } from "./commands/CreateWorkspaceBundleCommand";
|
|
12
12
|
import { CreateWorkspacesCommand, } from "./commands/CreateWorkspacesCommand";
|
|
13
|
+
import { DeleteClientBrandingCommand, } from "./commands/DeleteClientBrandingCommand";
|
|
13
14
|
import { DeleteConnectClientAddInCommand, } from "./commands/DeleteConnectClientAddInCommand";
|
|
14
15
|
import { DeleteConnectionAliasCommand, } from "./commands/DeleteConnectionAliasCommand";
|
|
15
16
|
import { DeleteIpGroupCommand, } from "./commands/DeleteIpGroupCommand";
|
|
@@ -19,6 +20,7 @@ import { DeleteWorkspaceImageCommand, } from "./commands/DeleteWorkspaceImageCom
|
|
|
19
20
|
import { DeregisterWorkspaceDirectoryCommand, } from "./commands/DeregisterWorkspaceDirectoryCommand";
|
|
20
21
|
import { DescribeAccountCommand, } from "./commands/DescribeAccountCommand";
|
|
21
22
|
import { DescribeAccountModificationsCommand, } from "./commands/DescribeAccountModificationsCommand";
|
|
23
|
+
import { DescribeClientBrandingCommand, } from "./commands/DescribeClientBrandingCommand";
|
|
22
24
|
import { DescribeClientPropertiesCommand, } from "./commands/DescribeClientPropertiesCommand";
|
|
23
25
|
import { DescribeConnectClientAddInsCommand, } from "./commands/DescribeConnectClientAddInsCommand";
|
|
24
26
|
import { DescribeConnectionAliasesCommand, } from "./commands/DescribeConnectionAliasesCommand";
|
|
@@ -34,6 +36,7 @@ import { DescribeWorkspacesConnectionStatusCommand, } from "./commands/DescribeW
|
|
|
34
36
|
import { DescribeWorkspaceSnapshotsCommand, } from "./commands/DescribeWorkspaceSnapshotsCommand";
|
|
35
37
|
import { DisassociateConnectionAliasCommand, } from "./commands/DisassociateConnectionAliasCommand";
|
|
36
38
|
import { DisassociateIpGroupsCommand, } from "./commands/DisassociateIpGroupsCommand";
|
|
39
|
+
import { ImportClientBrandingCommand, } from "./commands/ImportClientBrandingCommand";
|
|
37
40
|
import { ImportWorkspaceImageCommand, } from "./commands/ImportWorkspaceImageCommand";
|
|
38
41
|
import { ListAvailableManagementCidrRangesCommand, } from "./commands/ListAvailableManagementCidrRangesCommand";
|
|
39
42
|
import { MigrateWorkspaceCommand, } from "./commands/MigrateWorkspaceCommand";
|
|
@@ -217,6 +220,20 @@ var WorkSpaces = (function (_super) {
|
|
|
217
220
|
return this.send(command, optionsOrCb);
|
|
218
221
|
}
|
|
219
222
|
};
|
|
223
|
+
WorkSpaces.prototype.deleteClientBranding = function (args, optionsOrCb, cb) {
|
|
224
|
+
var command = new DeleteClientBrandingCommand(args);
|
|
225
|
+
if (typeof optionsOrCb === "function") {
|
|
226
|
+
this.send(command, optionsOrCb);
|
|
227
|
+
}
|
|
228
|
+
else if (typeof cb === "function") {
|
|
229
|
+
if (typeof optionsOrCb !== "object")
|
|
230
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
231
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
return this.send(command, optionsOrCb);
|
|
235
|
+
}
|
|
236
|
+
};
|
|
220
237
|
WorkSpaces.prototype.deleteConnectClientAddIn = function (args, optionsOrCb, cb) {
|
|
221
238
|
var command = new DeleteConnectClientAddInCommand(args);
|
|
222
239
|
if (typeof optionsOrCb === "function") {
|
|
@@ -343,6 +360,20 @@ var WorkSpaces = (function (_super) {
|
|
|
343
360
|
return this.send(command, optionsOrCb);
|
|
344
361
|
}
|
|
345
362
|
};
|
|
363
|
+
WorkSpaces.prototype.describeClientBranding = function (args, optionsOrCb, cb) {
|
|
364
|
+
var command = new DescribeClientBrandingCommand(args);
|
|
365
|
+
if (typeof optionsOrCb === "function") {
|
|
366
|
+
this.send(command, optionsOrCb);
|
|
367
|
+
}
|
|
368
|
+
else if (typeof cb === "function") {
|
|
369
|
+
if (typeof optionsOrCb !== "object")
|
|
370
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
371
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
372
|
+
}
|
|
373
|
+
else {
|
|
374
|
+
return this.send(command, optionsOrCb);
|
|
375
|
+
}
|
|
376
|
+
};
|
|
346
377
|
WorkSpaces.prototype.describeClientProperties = function (args, optionsOrCb, cb) {
|
|
347
378
|
var command = new DescribeClientPropertiesCommand(args);
|
|
348
379
|
if (typeof optionsOrCb === "function") {
|
|
@@ -553,6 +584,20 @@ var WorkSpaces = (function (_super) {
|
|
|
553
584
|
return this.send(command, optionsOrCb);
|
|
554
585
|
}
|
|
555
586
|
};
|
|
587
|
+
WorkSpaces.prototype.importClientBranding = function (args, optionsOrCb, cb) {
|
|
588
|
+
var command = new ImportClientBrandingCommand(args);
|
|
589
|
+
if (typeof optionsOrCb === "function") {
|
|
590
|
+
this.send(command, optionsOrCb);
|
|
591
|
+
}
|
|
592
|
+
else if (typeof cb === "function") {
|
|
593
|
+
if (typeof optionsOrCb !== "object")
|
|
594
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
595
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
596
|
+
}
|
|
597
|
+
else {
|
|
598
|
+
return this.send(command, optionsOrCb);
|
|
599
|
+
}
|
|
600
|
+
};
|
|
556
601
|
WorkSpaces.prototype.importWorkspaceImage = function (args, optionsOrCb, cb) {
|
|
557
602
|
var command = new ImportWorkspaceImageCommand(args);
|
|
558
603
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteClientBrandingRequest, DeleteClientBrandingResult } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DeleteClientBrandingCommand, serializeAws_json1_1DeleteClientBrandingCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DeleteClientBrandingCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteClientBrandingCommand, _super);
|
|
8
|
+
function DeleteClientBrandingCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteClientBrandingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "WorkSpacesClient";
|
|
18
|
+
var commandName = "DeleteClientBrandingCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteClientBrandingRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteClientBrandingResult.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteClientBrandingCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DeleteClientBrandingCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteClientBrandingCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DeleteClientBrandingCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteClientBrandingCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteClientBrandingCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeClientBrandingRequest, DescribeClientBrandingResult } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeClientBrandingCommand, serializeAws_json1_1DescribeClientBrandingCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DescribeClientBrandingCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeClientBrandingCommand, _super);
|
|
8
|
+
function DescribeClientBrandingCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeClientBrandingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "WorkSpacesClient";
|
|
18
|
+
var commandName = "DescribeClientBrandingCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeClientBrandingRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeClientBrandingResult.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeClientBrandingCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DescribeClientBrandingCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeClientBrandingCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DescribeClientBrandingCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeClientBrandingCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeClientBrandingCommand };
|