@aws-sdk/client-workspaces 3.425.0 → 3.426.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/README.md +64 -0
- package/dist-cjs/WorkSpaces.js +16 -0
- package/dist-cjs/commands/AssociateWorkspaceApplicationCommand.js +51 -0
- package/dist-cjs/commands/DeployWorkspaceApplicationsCommand.js +51 -0
- package/dist-cjs/commands/DescribeApplicationAssociationsCommand.js +51 -0
- package/dist-cjs/commands/DescribeApplicationsCommand.js +51 -0
- package/dist-cjs/commands/DescribeBundleAssociationsCommand.js +51 -0
- package/dist-cjs/commands/DescribeImageAssociationsCommand.js +51 -0
- package/dist-cjs/commands/DescribeWorkspaceAssociationsCommand.js +51 -0
- package/dist-cjs/commands/DisassociateWorkspaceApplicationCommand.js +51 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +136 -14
- package/dist-cjs/pagination/DescribeApplicationAssociationsPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeApplicationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +611 -3
- package/dist-es/WorkSpaces.js +16 -0
- package/dist-es/commands/AssociateWorkspaceApplicationCommand.js +47 -0
- package/dist-es/commands/DeployWorkspaceApplicationsCommand.js +47 -0
- package/dist-es/commands/DescribeApplicationAssociationsCommand.js +47 -0
- package/dist-es/commands/DescribeApplicationsCommand.js +47 -0
- package/dist-es/commands/DescribeBundleAssociationsCommand.js +47 -0
- package/dist-es/commands/DescribeImageAssociationsCommand.js +47 -0
- package/dist-es/commands/DescribeWorkspaceAssociationsCommand.js +47 -0
- package/dist-es/commands/DisassociateWorkspaceApplicationCommand.js +47 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +128 -12
- package/dist-es/pagination/DescribeApplicationAssociationsPaginator.js +25 -0
- package/dist-es/pagination/DescribeApplicationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +593 -1
- package/dist-types/WorkSpaces.d.ts +56 -0
- package/dist-types/WorkSpacesClient.d.ts +10 -2
- package/dist-types/commands/AssociateWorkspaceApplicationCommand.d.ts +115 -0
- package/dist-types/commands/CreateWorkspacesCommand.d.ts +3 -0
- package/dist-types/commands/DeployWorkspaceApplicationsCommand.d.ts +107 -0
- package/dist-types/commands/DescribeApplicationAssociationsCommand.d.ts +104 -0
- package/dist-types/commands/DescribeApplicationsCommand.d.ts +114 -0
- package/dist-types/commands/DescribeBundleAssociationsCommand.d.ts +101 -0
- package/dist-types/commands/DescribeImageAssociationsCommand.d.ts +101 -0
- package/dist-types/commands/DescribeWorkspaceAssociationsCommand.d.ts +101 -0
- package/dist-types/commands/DescribeWorkspacesCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateWorkspaceApplicationCommand.d.ts +100 -0
- package/dist-types/commands/ModifyWorkspacePropertiesCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +701 -15
- package/dist-types/pagination/DescribeApplicationAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeApplicationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +72 -0
- package/dist-types/ts3.4/WorkSpaces.d.ts +136 -0
- package/dist-types/ts3.4/WorkSpacesClient.d.ts +48 -0
- package/dist-types/ts3.4/commands/AssociateWorkspaceApplicationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeployWorkspaceApplicationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeApplicationAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeApplicationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeBundleAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeImageAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeWorkspaceAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DisassociateWorkspaceApplicationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +251 -7
- package/dist-types/ts3.4/pagination/DescribeApplicationAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeApplicationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +96 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
-
import { AccessDeniedException, InvalidParameterValuesException, InvalidResourceStateException, OperationInProgressException, OperationNotSupportedException, ResourceAlreadyExistsException, ResourceAssociatedException, ResourceCreationFailedException, ResourceLimitExceededException, ResourceNotFoundException, ResourceUnavailableException, UnsupportedNetworkConfigurationException, UnsupportedWorkspaceConfigurationException, WorkspacesDefaultRoleNotFoundException, } from "../models/models_0";
|
|
3
|
+
import { AccessDeniedException, ApplicationNotSupportedException, ComputeNotCompatibleException, IncompatibleApplicationsException, InvalidParameterValuesException, InvalidResourceStateException, OperatingSystemNotCompatibleException, OperationInProgressException, OperationNotSupportedException, ResourceAlreadyExistsException, ResourceAssociatedException, ResourceCreationFailedException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourceUnavailableException, UnsupportedNetworkConfigurationException, UnsupportedWorkspaceConfigurationException, WorkspacesDefaultRoleNotFoundException, } from "../models/models_0";
|
|
4
4
|
import { WorkSpacesServiceException as __BaseException } from "../models/WorkSpacesServiceException";
|
|
5
5
|
export const se_AssociateConnectionAliasCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("AssociateConnectionAlias");
|
|
@@ -14,6 +14,12 @@ export const se_AssociateIpGroupsCommand = async (input, context) => {
|
|
|
14
14
|
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
|
+
export const se_AssociateWorkspaceApplicationCommand = async (input, context) => {
|
|
18
|
+
const headers = sharedHeaders("AssociateWorkspaceApplication");
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
17
23
|
export const se_AuthorizeIpRulesCommand = async (input, context) => {
|
|
18
24
|
const headers = sharedHeaders("AuthorizeIpRules");
|
|
19
25
|
let body;
|
|
@@ -122,6 +128,12 @@ export const se_DeleteWorkspaceImageCommand = async (input, context) => {
|
|
|
122
128
|
body = JSON.stringify(_json(input));
|
|
123
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
130
|
};
|
|
131
|
+
export const se_DeployWorkspaceApplicationsCommand = async (input, context) => {
|
|
132
|
+
const headers = sharedHeaders("DeployWorkspaceApplications");
|
|
133
|
+
let body;
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
135
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
|
+
};
|
|
125
137
|
export const se_DeregisterWorkspaceDirectoryCommand = async (input, context) => {
|
|
126
138
|
const headers = sharedHeaders("DeregisterWorkspaceDirectory");
|
|
127
139
|
let body;
|
|
@@ -140,6 +152,24 @@ export const se_DescribeAccountModificationsCommand = async (input, context) =>
|
|
|
140
152
|
body = JSON.stringify(_json(input));
|
|
141
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
154
|
};
|
|
155
|
+
export const se_DescribeApplicationAssociationsCommand = async (input, context) => {
|
|
156
|
+
const headers = sharedHeaders("DescribeApplicationAssociations");
|
|
157
|
+
let body;
|
|
158
|
+
body = JSON.stringify(_json(input));
|
|
159
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
|
+
};
|
|
161
|
+
export const se_DescribeApplicationsCommand = async (input, context) => {
|
|
162
|
+
const headers = sharedHeaders("DescribeApplications");
|
|
163
|
+
let body;
|
|
164
|
+
body = JSON.stringify(_json(input));
|
|
165
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
|
+
};
|
|
167
|
+
export const se_DescribeBundleAssociationsCommand = async (input, context) => {
|
|
168
|
+
const headers = sharedHeaders("DescribeBundleAssociations");
|
|
169
|
+
let body;
|
|
170
|
+
body = JSON.stringify(_json(input));
|
|
171
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
172
|
+
};
|
|
143
173
|
export const se_DescribeClientBrandingCommand = async (input, context) => {
|
|
144
174
|
const headers = sharedHeaders("DescribeClientBranding");
|
|
145
175
|
let body;
|
|
@@ -170,6 +200,12 @@ export const se_DescribeConnectionAliasPermissionsCommand = async (input, contex
|
|
|
170
200
|
body = JSON.stringify(_json(input));
|
|
171
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
172
202
|
};
|
|
203
|
+
export const se_DescribeImageAssociationsCommand = async (input, context) => {
|
|
204
|
+
const headers = sharedHeaders("DescribeImageAssociations");
|
|
205
|
+
let body;
|
|
206
|
+
body = JSON.stringify(_json(input));
|
|
207
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
|
+
};
|
|
173
209
|
export const se_DescribeIpGroupsCommand = async (input, context) => {
|
|
174
210
|
const headers = sharedHeaders("DescribeIpGroups");
|
|
175
211
|
let body;
|
|
@@ -182,6 +218,12 @@ export const se_DescribeTagsCommand = async (input, context) => {
|
|
|
182
218
|
body = JSON.stringify(_json(input));
|
|
183
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
220
|
};
|
|
221
|
+
export const se_DescribeWorkspaceAssociationsCommand = async (input, context) => {
|
|
222
|
+
const headers = sharedHeaders("DescribeWorkspaceAssociations");
|
|
223
|
+
let body;
|
|
224
|
+
body = JSON.stringify(_json(input));
|
|
225
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
+
};
|
|
185
227
|
export const se_DescribeWorkspaceBundlesCommand = async (input, context) => {
|
|
186
228
|
const headers = sharedHeaders("DescribeWorkspaceBundles");
|
|
187
229
|
let body;
|
|
@@ -236,6 +278,12 @@ export const se_DisassociateIpGroupsCommand = async (input, context) => {
|
|
|
236
278
|
body = JSON.stringify(_json(input));
|
|
237
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
280
|
};
|
|
281
|
+
export const se_DisassociateWorkspaceApplicationCommand = async (input, context) => {
|
|
282
|
+
const headers = sharedHeaders("DisassociateWorkspaceApplication");
|
|
283
|
+
let body;
|
|
284
|
+
body = JSON.stringify(_json(input));
|
|
285
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
286
|
+
};
|
|
239
287
|
export const se_ImportClientBrandingCommand = async (input, context) => {
|
|
240
288
|
const headers = sharedHeaders("ImportClientBranding");
|
|
241
289
|
let body;
|
|
@@ -486,6 +534,65 @@ const de_AssociateIpGroupsCommandError = async (output, context) => {
|
|
|
486
534
|
});
|
|
487
535
|
}
|
|
488
536
|
};
|
|
537
|
+
export const de_AssociateWorkspaceApplicationCommand = async (output, context) => {
|
|
538
|
+
if (output.statusCode >= 300) {
|
|
539
|
+
return de_AssociateWorkspaceApplicationCommandError(output, context);
|
|
540
|
+
}
|
|
541
|
+
const data = await parseBody(output.body, context);
|
|
542
|
+
let contents = {};
|
|
543
|
+
contents = de_AssociateWorkspaceApplicationResult(data, context);
|
|
544
|
+
const response = {
|
|
545
|
+
$metadata: deserializeMetadata(output),
|
|
546
|
+
...contents,
|
|
547
|
+
};
|
|
548
|
+
return response;
|
|
549
|
+
};
|
|
550
|
+
const de_AssociateWorkspaceApplicationCommandError = async (output, context) => {
|
|
551
|
+
const parsedOutput = {
|
|
552
|
+
...output,
|
|
553
|
+
body: await parseErrorBody(output.body, context),
|
|
554
|
+
};
|
|
555
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
|
+
switch (errorCode) {
|
|
557
|
+
case "AccessDeniedException":
|
|
558
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
559
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
560
|
+
case "ApplicationNotSupportedException":
|
|
561
|
+
case "com.amazonaws.workspaces#ApplicationNotSupportedException":
|
|
562
|
+
throw await de_ApplicationNotSupportedExceptionRes(parsedOutput, context);
|
|
563
|
+
case "ComputeNotCompatibleException":
|
|
564
|
+
case "com.amazonaws.workspaces#ComputeNotCompatibleException":
|
|
565
|
+
throw await de_ComputeNotCompatibleExceptionRes(parsedOutput, context);
|
|
566
|
+
case "IncompatibleApplicationsException":
|
|
567
|
+
case "com.amazonaws.workspaces#IncompatibleApplicationsException":
|
|
568
|
+
throw await de_IncompatibleApplicationsExceptionRes(parsedOutput, context);
|
|
569
|
+
case "InvalidParameterValuesException":
|
|
570
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
571
|
+
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
572
|
+
case "OperatingSystemNotCompatibleException":
|
|
573
|
+
case "com.amazonaws.workspaces#OperatingSystemNotCompatibleException":
|
|
574
|
+
throw await de_OperatingSystemNotCompatibleExceptionRes(parsedOutput, context);
|
|
575
|
+
case "OperationNotSupportedException":
|
|
576
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
577
|
+
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
578
|
+
case "ResourceAlreadyExistsException":
|
|
579
|
+
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
580
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
581
|
+
case "ResourceInUseException":
|
|
582
|
+
case "com.amazonaws.workspaces#ResourceInUseException":
|
|
583
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
584
|
+
case "ResourceNotFoundException":
|
|
585
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
586
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
587
|
+
default:
|
|
588
|
+
const parsedBody = parsedOutput.body;
|
|
589
|
+
return throwDefaultError({
|
|
590
|
+
output,
|
|
591
|
+
parsedBody,
|
|
592
|
+
errorCode,
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
};
|
|
489
596
|
export const de_AuthorizeIpRulesCommand = async (output, context) => {
|
|
490
597
|
if (output.statusCode >= 300) {
|
|
491
598
|
return de_AuthorizeIpRulesCommandError(output, context);
|
|
@@ -1257,6 +1364,53 @@ const de_DeleteWorkspaceImageCommandError = async (output, context) => {
|
|
|
1257
1364
|
});
|
|
1258
1365
|
}
|
|
1259
1366
|
};
|
|
1367
|
+
export const de_DeployWorkspaceApplicationsCommand = async (output, context) => {
|
|
1368
|
+
if (output.statusCode >= 300) {
|
|
1369
|
+
return de_DeployWorkspaceApplicationsCommandError(output, context);
|
|
1370
|
+
}
|
|
1371
|
+
const data = await parseBody(output.body, context);
|
|
1372
|
+
let contents = {};
|
|
1373
|
+
contents = de_DeployWorkspaceApplicationsResult(data, context);
|
|
1374
|
+
const response = {
|
|
1375
|
+
$metadata: deserializeMetadata(output),
|
|
1376
|
+
...contents,
|
|
1377
|
+
};
|
|
1378
|
+
return response;
|
|
1379
|
+
};
|
|
1380
|
+
const de_DeployWorkspaceApplicationsCommandError = async (output, context) => {
|
|
1381
|
+
const parsedOutput = {
|
|
1382
|
+
...output,
|
|
1383
|
+
body: await parseErrorBody(output.body, context),
|
|
1384
|
+
};
|
|
1385
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
|
+
switch (errorCode) {
|
|
1387
|
+
case "AccessDeniedException":
|
|
1388
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1389
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1390
|
+
case "IncompatibleApplicationsException":
|
|
1391
|
+
case "com.amazonaws.workspaces#IncompatibleApplicationsException":
|
|
1392
|
+
throw await de_IncompatibleApplicationsExceptionRes(parsedOutput, context);
|
|
1393
|
+
case "InvalidParameterValuesException":
|
|
1394
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1395
|
+
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1396
|
+
case "OperationNotSupportedException":
|
|
1397
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1398
|
+
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1399
|
+
case "ResourceInUseException":
|
|
1400
|
+
case "com.amazonaws.workspaces#ResourceInUseException":
|
|
1401
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1402
|
+
case "ResourceNotFoundException":
|
|
1403
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1404
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1405
|
+
default:
|
|
1406
|
+
const parsedBody = parsedOutput.body;
|
|
1407
|
+
return throwDefaultError({
|
|
1408
|
+
output,
|
|
1409
|
+
parsedBody,
|
|
1410
|
+
errorCode,
|
|
1411
|
+
});
|
|
1412
|
+
}
|
|
1413
|
+
};
|
|
1260
1414
|
export const de_DeregisterWorkspaceDirectoryCommand = async (output, context) => {
|
|
1261
1415
|
if (output.statusCode >= 300) {
|
|
1262
1416
|
return de_DeregisterWorkspaceDirectoryCommandError(output, context);
|
|
@@ -1365,6 +1519,129 @@ const de_DescribeAccountModificationsCommandError = async (output, context) => {
|
|
|
1365
1519
|
});
|
|
1366
1520
|
}
|
|
1367
1521
|
};
|
|
1522
|
+
export const de_DescribeApplicationAssociationsCommand = async (output, context) => {
|
|
1523
|
+
if (output.statusCode >= 300) {
|
|
1524
|
+
return de_DescribeApplicationAssociationsCommandError(output, context);
|
|
1525
|
+
}
|
|
1526
|
+
const data = await parseBody(output.body, context);
|
|
1527
|
+
let contents = {};
|
|
1528
|
+
contents = de_DescribeApplicationAssociationsResult(data, context);
|
|
1529
|
+
const response = {
|
|
1530
|
+
$metadata: deserializeMetadata(output),
|
|
1531
|
+
...contents,
|
|
1532
|
+
};
|
|
1533
|
+
return response;
|
|
1534
|
+
};
|
|
1535
|
+
const de_DescribeApplicationAssociationsCommandError = async (output, context) => {
|
|
1536
|
+
const parsedOutput = {
|
|
1537
|
+
...output,
|
|
1538
|
+
body: await parseErrorBody(output.body, context),
|
|
1539
|
+
};
|
|
1540
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
|
+
switch (errorCode) {
|
|
1542
|
+
case "AccessDeniedException":
|
|
1543
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1544
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1545
|
+
case "InvalidParameterValuesException":
|
|
1546
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1547
|
+
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1548
|
+
case "OperationNotSupportedException":
|
|
1549
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1550
|
+
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1551
|
+
case "ResourceNotFoundException":
|
|
1552
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1553
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1554
|
+
default:
|
|
1555
|
+
const parsedBody = parsedOutput.body;
|
|
1556
|
+
return throwDefaultError({
|
|
1557
|
+
output,
|
|
1558
|
+
parsedBody,
|
|
1559
|
+
errorCode,
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
};
|
|
1563
|
+
export const de_DescribeApplicationsCommand = async (output, context) => {
|
|
1564
|
+
if (output.statusCode >= 300) {
|
|
1565
|
+
return de_DescribeApplicationsCommandError(output, context);
|
|
1566
|
+
}
|
|
1567
|
+
const data = await parseBody(output.body, context);
|
|
1568
|
+
let contents = {};
|
|
1569
|
+
contents = de_DescribeApplicationsResult(data, context);
|
|
1570
|
+
const response = {
|
|
1571
|
+
$metadata: deserializeMetadata(output),
|
|
1572
|
+
...contents,
|
|
1573
|
+
};
|
|
1574
|
+
return response;
|
|
1575
|
+
};
|
|
1576
|
+
const de_DescribeApplicationsCommandError = async (output, context) => {
|
|
1577
|
+
const parsedOutput = {
|
|
1578
|
+
...output,
|
|
1579
|
+
body: await parseErrorBody(output.body, context),
|
|
1580
|
+
};
|
|
1581
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
|
+
switch (errorCode) {
|
|
1583
|
+
case "AccessDeniedException":
|
|
1584
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1585
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1586
|
+
case "InvalidParameterValuesException":
|
|
1587
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1588
|
+
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1589
|
+
case "OperationNotSupportedException":
|
|
1590
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1591
|
+
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1592
|
+
case "ResourceNotFoundException":
|
|
1593
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1594
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
+
default:
|
|
1596
|
+
const parsedBody = parsedOutput.body;
|
|
1597
|
+
return throwDefaultError({
|
|
1598
|
+
output,
|
|
1599
|
+
parsedBody,
|
|
1600
|
+
errorCode,
|
|
1601
|
+
});
|
|
1602
|
+
}
|
|
1603
|
+
};
|
|
1604
|
+
export const de_DescribeBundleAssociationsCommand = async (output, context) => {
|
|
1605
|
+
if (output.statusCode >= 300) {
|
|
1606
|
+
return de_DescribeBundleAssociationsCommandError(output, context);
|
|
1607
|
+
}
|
|
1608
|
+
const data = await parseBody(output.body, context);
|
|
1609
|
+
let contents = {};
|
|
1610
|
+
contents = de_DescribeBundleAssociationsResult(data, context);
|
|
1611
|
+
const response = {
|
|
1612
|
+
$metadata: deserializeMetadata(output),
|
|
1613
|
+
...contents,
|
|
1614
|
+
};
|
|
1615
|
+
return response;
|
|
1616
|
+
};
|
|
1617
|
+
const de_DescribeBundleAssociationsCommandError = async (output, context) => {
|
|
1618
|
+
const parsedOutput = {
|
|
1619
|
+
...output,
|
|
1620
|
+
body: await parseErrorBody(output.body, context),
|
|
1621
|
+
};
|
|
1622
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
+
switch (errorCode) {
|
|
1624
|
+
case "AccessDeniedException":
|
|
1625
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1626
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1627
|
+
case "InvalidParameterValuesException":
|
|
1628
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1629
|
+
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1630
|
+
case "OperationNotSupportedException":
|
|
1631
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1632
|
+
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1633
|
+
case "ResourceNotFoundException":
|
|
1634
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1635
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1636
|
+
default:
|
|
1637
|
+
const parsedBody = parsedOutput.body;
|
|
1638
|
+
return throwDefaultError({
|
|
1639
|
+
output,
|
|
1640
|
+
parsedBody,
|
|
1641
|
+
errorCode,
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
};
|
|
1368
1645
|
export const de_DescribeClientBrandingCommand = async (output, context) => {
|
|
1369
1646
|
if (output.statusCode >= 300) {
|
|
1370
1647
|
return de_DescribeClientBrandingCommandError(output, context);
|
|
@@ -1558,6 +1835,47 @@ const de_DescribeConnectionAliasPermissionsCommandError = async (output, context
|
|
|
1558
1835
|
});
|
|
1559
1836
|
}
|
|
1560
1837
|
};
|
|
1838
|
+
export const de_DescribeImageAssociationsCommand = async (output, context) => {
|
|
1839
|
+
if (output.statusCode >= 300) {
|
|
1840
|
+
return de_DescribeImageAssociationsCommandError(output, context);
|
|
1841
|
+
}
|
|
1842
|
+
const data = await parseBody(output.body, context);
|
|
1843
|
+
let contents = {};
|
|
1844
|
+
contents = de_DescribeImageAssociationsResult(data, context);
|
|
1845
|
+
const response = {
|
|
1846
|
+
$metadata: deserializeMetadata(output),
|
|
1847
|
+
...contents,
|
|
1848
|
+
};
|
|
1849
|
+
return response;
|
|
1850
|
+
};
|
|
1851
|
+
const de_DescribeImageAssociationsCommandError = async (output, context) => {
|
|
1852
|
+
const parsedOutput = {
|
|
1853
|
+
...output,
|
|
1854
|
+
body: await parseErrorBody(output.body, context),
|
|
1855
|
+
};
|
|
1856
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1857
|
+
switch (errorCode) {
|
|
1858
|
+
case "AccessDeniedException":
|
|
1859
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1860
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1861
|
+
case "InvalidParameterValuesException":
|
|
1862
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1863
|
+
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1864
|
+
case "OperationNotSupportedException":
|
|
1865
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1866
|
+
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1867
|
+
case "ResourceNotFoundException":
|
|
1868
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1869
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1870
|
+
default:
|
|
1871
|
+
const parsedBody = parsedOutput.body;
|
|
1872
|
+
return throwDefaultError({
|
|
1873
|
+
output,
|
|
1874
|
+
parsedBody,
|
|
1875
|
+
errorCode,
|
|
1876
|
+
});
|
|
1877
|
+
}
|
|
1878
|
+
};
|
|
1561
1879
|
export const de_DescribeIpGroupsCommand = async (output, context) => {
|
|
1562
1880
|
if (output.statusCode >= 300) {
|
|
1563
1881
|
return de_DescribeIpGroupsCommandError(output, context);
|
|
@@ -1625,6 +1943,47 @@ const de_DescribeTagsCommandError = async (output, context) => {
|
|
|
1625
1943
|
});
|
|
1626
1944
|
}
|
|
1627
1945
|
};
|
|
1946
|
+
export const de_DescribeWorkspaceAssociationsCommand = async (output, context) => {
|
|
1947
|
+
if (output.statusCode >= 300) {
|
|
1948
|
+
return de_DescribeWorkspaceAssociationsCommandError(output, context);
|
|
1949
|
+
}
|
|
1950
|
+
const data = await parseBody(output.body, context);
|
|
1951
|
+
let contents = {};
|
|
1952
|
+
contents = de_DescribeWorkspaceAssociationsResult(data, context);
|
|
1953
|
+
const response = {
|
|
1954
|
+
$metadata: deserializeMetadata(output),
|
|
1955
|
+
...contents,
|
|
1956
|
+
};
|
|
1957
|
+
return response;
|
|
1958
|
+
};
|
|
1959
|
+
const de_DescribeWorkspaceAssociationsCommandError = async (output, context) => {
|
|
1960
|
+
const parsedOutput = {
|
|
1961
|
+
...output,
|
|
1962
|
+
body: await parseErrorBody(output.body, context),
|
|
1963
|
+
};
|
|
1964
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1965
|
+
switch (errorCode) {
|
|
1966
|
+
case "AccessDeniedException":
|
|
1967
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1968
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1969
|
+
case "InvalidParameterValuesException":
|
|
1970
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1971
|
+
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1972
|
+
case "OperationNotSupportedException":
|
|
1973
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1974
|
+
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1975
|
+
case "ResourceNotFoundException":
|
|
1976
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1977
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1978
|
+
default:
|
|
1979
|
+
const parsedBody = parsedOutput.body;
|
|
1980
|
+
return throwDefaultError({
|
|
1981
|
+
output,
|
|
1982
|
+
parsedBody,
|
|
1983
|
+
errorCode,
|
|
1984
|
+
});
|
|
1985
|
+
}
|
|
1986
|
+
};
|
|
1628
1987
|
export const de_DescribeWorkspaceBundlesCommand = async (output, context) => {
|
|
1629
1988
|
if (output.statusCode >= 300) {
|
|
1630
1989
|
return de_DescribeWorkspaceBundlesCommandError(output, context);
|
|
@@ -1949,6 +2308,50 @@ const de_DisassociateIpGroupsCommandError = async (output, context) => {
|
|
|
1949
2308
|
});
|
|
1950
2309
|
}
|
|
1951
2310
|
};
|
|
2311
|
+
export const de_DisassociateWorkspaceApplicationCommand = async (output, context) => {
|
|
2312
|
+
if (output.statusCode >= 300) {
|
|
2313
|
+
return de_DisassociateWorkspaceApplicationCommandError(output, context);
|
|
2314
|
+
}
|
|
2315
|
+
const data = await parseBody(output.body, context);
|
|
2316
|
+
let contents = {};
|
|
2317
|
+
contents = de_DisassociateWorkspaceApplicationResult(data, context);
|
|
2318
|
+
const response = {
|
|
2319
|
+
$metadata: deserializeMetadata(output),
|
|
2320
|
+
...contents,
|
|
2321
|
+
};
|
|
2322
|
+
return response;
|
|
2323
|
+
};
|
|
2324
|
+
const de_DisassociateWorkspaceApplicationCommandError = async (output, context) => {
|
|
2325
|
+
const parsedOutput = {
|
|
2326
|
+
...output,
|
|
2327
|
+
body: await parseErrorBody(output.body, context),
|
|
2328
|
+
};
|
|
2329
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2330
|
+
switch (errorCode) {
|
|
2331
|
+
case "AccessDeniedException":
|
|
2332
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2333
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2334
|
+
case "InvalidParameterValuesException":
|
|
2335
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2336
|
+
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2337
|
+
case "OperationNotSupportedException":
|
|
2338
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2339
|
+
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2340
|
+
case "ResourceInUseException":
|
|
2341
|
+
case "com.amazonaws.workspaces#ResourceInUseException":
|
|
2342
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2343
|
+
case "ResourceNotFoundException":
|
|
2344
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2345
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2346
|
+
default:
|
|
2347
|
+
const parsedBody = parsedOutput.body;
|
|
2348
|
+
return throwDefaultError({
|
|
2349
|
+
output,
|
|
2350
|
+
parsedBody,
|
|
2351
|
+
errorCode,
|
|
2352
|
+
});
|
|
2353
|
+
}
|
|
2354
|
+
};
|
|
1952
2355
|
export const de_ImportClientBrandingCommand = async (output, context) => {
|
|
1953
2356
|
if (output.statusCode >= 300) {
|
|
1954
2357
|
return de_ImportClientBrandingCommandError(output, context);
|
|
@@ -2994,6 +3397,33 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2994
3397
|
});
|
|
2995
3398
|
return __decorateServiceException(exception, body);
|
|
2996
3399
|
};
|
|
3400
|
+
const de_ApplicationNotSupportedExceptionRes = async (parsedOutput, context) => {
|
|
3401
|
+
const body = parsedOutput.body;
|
|
3402
|
+
const deserialized = _json(body);
|
|
3403
|
+
const exception = new ApplicationNotSupportedException({
|
|
3404
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3405
|
+
...deserialized,
|
|
3406
|
+
});
|
|
3407
|
+
return __decorateServiceException(exception, body);
|
|
3408
|
+
};
|
|
3409
|
+
const de_ComputeNotCompatibleExceptionRes = async (parsedOutput, context) => {
|
|
3410
|
+
const body = parsedOutput.body;
|
|
3411
|
+
const deserialized = _json(body);
|
|
3412
|
+
const exception = new ComputeNotCompatibleException({
|
|
3413
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3414
|
+
...deserialized,
|
|
3415
|
+
});
|
|
3416
|
+
return __decorateServiceException(exception, body);
|
|
3417
|
+
};
|
|
3418
|
+
const de_IncompatibleApplicationsExceptionRes = async (parsedOutput, context) => {
|
|
3419
|
+
const body = parsedOutput.body;
|
|
3420
|
+
const deserialized = _json(body);
|
|
3421
|
+
const exception = new IncompatibleApplicationsException({
|
|
3422
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3423
|
+
...deserialized,
|
|
3424
|
+
});
|
|
3425
|
+
return __decorateServiceException(exception, body);
|
|
3426
|
+
};
|
|
2997
3427
|
const de_InvalidParameterValuesExceptionRes = async (parsedOutput, context) => {
|
|
2998
3428
|
const body = parsedOutput.body;
|
|
2999
3429
|
const deserialized = _json(body);
|
|
@@ -3012,6 +3442,15 @@ const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
|
|
|
3012
3442
|
});
|
|
3013
3443
|
return __decorateServiceException(exception, body);
|
|
3014
3444
|
};
|
|
3445
|
+
const de_OperatingSystemNotCompatibleExceptionRes = async (parsedOutput, context) => {
|
|
3446
|
+
const body = parsedOutput.body;
|
|
3447
|
+
const deserialized = _json(body);
|
|
3448
|
+
const exception = new OperatingSystemNotCompatibleException({
|
|
3449
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3450
|
+
...deserialized,
|
|
3451
|
+
});
|
|
3452
|
+
return __decorateServiceException(exception, body);
|
|
3453
|
+
};
|
|
3015
3454
|
const de_OperationInProgressExceptionRes = async (parsedOutput, context) => {
|
|
3016
3455
|
const body = parsedOutput.body;
|
|
3017
3456
|
const deserialized = _json(body);
|
|
@@ -3057,6 +3496,15 @@ const de_ResourceCreationFailedExceptionRes = async (parsedOutput, context) => {
|
|
|
3057
3496
|
});
|
|
3058
3497
|
return __decorateServiceException(exception, body);
|
|
3059
3498
|
};
|
|
3499
|
+
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
3500
|
+
const body = parsedOutput.body;
|
|
3501
|
+
const deserialized = _json(body);
|
|
3502
|
+
const exception = new ResourceInUseException({
|
|
3503
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3504
|
+
...deserialized,
|
|
3505
|
+
});
|
|
3506
|
+
return __decorateServiceException(exception, body);
|
|
3507
|
+
};
|
|
3060
3508
|
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3061
3509
|
const body = parsedOutput.body;
|
|
3062
3510
|
const deserialized = _json(body);
|
|
@@ -3160,6 +3608,30 @@ const de_AccountModificationList = (output, context) => {
|
|
|
3160
3608
|
});
|
|
3161
3609
|
return retVal;
|
|
3162
3610
|
};
|
|
3611
|
+
const de_ApplicationResourceAssociation = (output, context) => {
|
|
3612
|
+
return take(output, {
|
|
3613
|
+
ApplicationId: __expectString,
|
|
3614
|
+
AssociatedResourceId: __expectString,
|
|
3615
|
+
AssociatedResourceType: __expectString,
|
|
3616
|
+
Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3617
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3618
|
+
State: __expectString,
|
|
3619
|
+
StateReason: _json,
|
|
3620
|
+
});
|
|
3621
|
+
};
|
|
3622
|
+
const de_ApplicationResourceAssociationList = (output, context) => {
|
|
3623
|
+
const retVal = (output || [])
|
|
3624
|
+
.filter((e) => e != null)
|
|
3625
|
+
.map((entry) => {
|
|
3626
|
+
return de_ApplicationResourceAssociation(entry, context);
|
|
3627
|
+
});
|
|
3628
|
+
return retVal;
|
|
3629
|
+
};
|
|
3630
|
+
const de_AssociateWorkspaceApplicationResult = (output, context) => {
|
|
3631
|
+
return take(output, {
|
|
3632
|
+
Association: (_) => de_WorkspaceResourceAssociation(_, context),
|
|
3633
|
+
});
|
|
3634
|
+
};
|
|
3163
3635
|
const de_BundleList = (output, context) => {
|
|
3164
3636
|
const retVal = (output || [])
|
|
3165
3637
|
.filter((e) => e != null)
|
|
@@ -3168,6 +3640,25 @@ const de_BundleList = (output, context) => {
|
|
|
3168
3640
|
});
|
|
3169
3641
|
return retVal;
|
|
3170
3642
|
};
|
|
3643
|
+
const de_BundleResourceAssociation = (output, context) => {
|
|
3644
|
+
return take(output, {
|
|
3645
|
+
AssociatedResourceId: __expectString,
|
|
3646
|
+
AssociatedResourceType: __expectString,
|
|
3647
|
+
BundleId: __expectString,
|
|
3648
|
+
Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3649
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3650
|
+
State: __expectString,
|
|
3651
|
+
StateReason: _json,
|
|
3652
|
+
});
|
|
3653
|
+
};
|
|
3654
|
+
const de_BundleResourceAssociationList = (output, context) => {
|
|
3655
|
+
const retVal = (output || [])
|
|
3656
|
+
.filter((e) => e != null)
|
|
3657
|
+
.map((entry) => {
|
|
3658
|
+
return de_BundleResourceAssociation(entry, context);
|
|
3659
|
+
});
|
|
3660
|
+
return retVal;
|
|
3661
|
+
};
|
|
3171
3662
|
const de_CreateWorkspaceBundleResult = (output, context) => {
|
|
3172
3663
|
return take(output, {
|
|
3173
3664
|
WorkspaceBundle: (_) => de_WorkspaceBundle(_, context),
|
|
@@ -3185,12 +3676,44 @@ const de_CreateWorkspaceImageResult = (output, context) => {
|
|
|
3185
3676
|
State: __expectString,
|
|
3186
3677
|
});
|
|
3187
3678
|
};
|
|
3679
|
+
const de_DeployWorkspaceApplicationsResult = (output, context) => {
|
|
3680
|
+
return take(output, {
|
|
3681
|
+
Deployment: (_) => de_WorkSpaceApplicationDeployment(_, context),
|
|
3682
|
+
});
|
|
3683
|
+
};
|
|
3188
3684
|
const de_DescribeAccountModificationsResult = (output, context) => {
|
|
3189
3685
|
return take(output, {
|
|
3190
3686
|
AccountModifications: (_) => de_AccountModificationList(_, context),
|
|
3191
3687
|
NextToken: __expectString,
|
|
3192
3688
|
});
|
|
3193
3689
|
};
|
|
3690
|
+
const de_DescribeApplicationAssociationsResult = (output, context) => {
|
|
3691
|
+
return take(output, {
|
|
3692
|
+
Associations: (_) => de_ApplicationResourceAssociationList(_, context),
|
|
3693
|
+
NextToken: __expectString,
|
|
3694
|
+
});
|
|
3695
|
+
};
|
|
3696
|
+
const de_DescribeApplicationsResult = (output, context) => {
|
|
3697
|
+
return take(output, {
|
|
3698
|
+
Applications: (_) => de_WorkSpaceApplicationList(_, context),
|
|
3699
|
+
NextToken: __expectString,
|
|
3700
|
+
});
|
|
3701
|
+
};
|
|
3702
|
+
const de_DescribeBundleAssociationsResult = (output, context) => {
|
|
3703
|
+
return take(output, {
|
|
3704
|
+
Associations: (_) => de_BundleResourceAssociationList(_, context),
|
|
3705
|
+
});
|
|
3706
|
+
};
|
|
3707
|
+
const de_DescribeImageAssociationsResult = (output, context) => {
|
|
3708
|
+
return take(output, {
|
|
3709
|
+
Associations: (_) => de_ImageResourceAssociationList(_, context),
|
|
3710
|
+
});
|
|
3711
|
+
};
|
|
3712
|
+
const de_DescribeWorkspaceAssociationsResult = (output, context) => {
|
|
3713
|
+
return take(output, {
|
|
3714
|
+
Associations: (_) => de_WorkspaceResourceAssociationList(_, context),
|
|
3715
|
+
});
|
|
3716
|
+
};
|
|
3194
3717
|
const de_DescribeWorkspaceBundlesResult = (output, context) => {
|
|
3195
3718
|
return take(output, {
|
|
3196
3719
|
Bundles: (_) => de_BundleList(_, context),
|
|
@@ -3215,6 +3738,30 @@ const de_DescribeWorkspaceSnapshotsResult = (output, context) => {
|
|
|
3215
3738
|
RestoreSnapshots: (_) => de_SnapshotList(_, context),
|
|
3216
3739
|
});
|
|
3217
3740
|
};
|
|
3741
|
+
const de_DisassociateWorkspaceApplicationResult = (output, context) => {
|
|
3742
|
+
return take(output, {
|
|
3743
|
+
Association: (_) => de_WorkspaceResourceAssociation(_, context),
|
|
3744
|
+
});
|
|
3745
|
+
};
|
|
3746
|
+
const de_ImageResourceAssociation = (output, context) => {
|
|
3747
|
+
return take(output, {
|
|
3748
|
+
AssociatedResourceId: __expectString,
|
|
3749
|
+
AssociatedResourceType: __expectString,
|
|
3750
|
+
Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3751
|
+
ImageId: __expectString,
|
|
3752
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3753
|
+
State: __expectString,
|
|
3754
|
+
StateReason: _json,
|
|
3755
|
+
});
|
|
3756
|
+
};
|
|
3757
|
+
const de_ImageResourceAssociationList = (output, context) => {
|
|
3758
|
+
const retVal = (output || [])
|
|
3759
|
+
.filter((e) => e != null)
|
|
3760
|
+
.map((entry) => {
|
|
3761
|
+
return de_ImageResourceAssociation(entry, context);
|
|
3762
|
+
});
|
|
3763
|
+
return retVal;
|
|
3764
|
+
};
|
|
3218
3765
|
const de_Snapshot = (output, context) => {
|
|
3219
3766
|
return take(output, {
|
|
3220
3767
|
SnapshotTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -3228,6 +3775,32 @@ const de_SnapshotList = (output, context) => {
|
|
|
3228
3775
|
});
|
|
3229
3776
|
return retVal;
|
|
3230
3777
|
};
|
|
3778
|
+
const de_WorkSpaceApplication = (output, context) => {
|
|
3779
|
+
return take(output, {
|
|
3780
|
+
ApplicationId: __expectString,
|
|
3781
|
+
Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3782
|
+
Description: __expectString,
|
|
3783
|
+
LicenseType: __expectString,
|
|
3784
|
+
Name: __expectString,
|
|
3785
|
+
Owner: __expectString,
|
|
3786
|
+
State: __expectString,
|
|
3787
|
+
SupportedComputeTypeNames: _json,
|
|
3788
|
+
SupportedOperatingSystemNames: _json,
|
|
3789
|
+
});
|
|
3790
|
+
};
|
|
3791
|
+
const de_WorkSpaceApplicationDeployment = (output, context) => {
|
|
3792
|
+
return take(output, {
|
|
3793
|
+
Associations: (_) => de_WorkspaceResourceAssociationList(_, context),
|
|
3794
|
+
});
|
|
3795
|
+
};
|
|
3796
|
+
const de_WorkSpaceApplicationList = (output, context) => {
|
|
3797
|
+
const retVal = (output || [])
|
|
3798
|
+
.filter((e) => e != null)
|
|
3799
|
+
.map((entry) => {
|
|
3800
|
+
return de_WorkSpaceApplication(entry, context);
|
|
3801
|
+
});
|
|
3802
|
+
return retVal;
|
|
3803
|
+
};
|
|
3231
3804
|
const de_WorkspaceBundle = (output, context) => {
|
|
3232
3805
|
return take(output, {
|
|
3233
3806
|
BundleId: __expectString,
|
|
@@ -3284,6 +3857,25 @@ const de_WorkspaceImageList = (output, context) => {
|
|
|
3284
3857
|
});
|
|
3285
3858
|
return retVal;
|
|
3286
3859
|
};
|
|
3860
|
+
const de_WorkspaceResourceAssociation = (output, context) => {
|
|
3861
|
+
return take(output, {
|
|
3862
|
+
AssociatedResourceId: __expectString,
|
|
3863
|
+
AssociatedResourceType: __expectString,
|
|
3864
|
+
Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3865
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3866
|
+
State: __expectString,
|
|
3867
|
+
StateReason: _json,
|
|
3868
|
+
WorkspaceId: __expectString,
|
|
3869
|
+
});
|
|
3870
|
+
};
|
|
3871
|
+
const de_WorkspaceResourceAssociationList = (output, context) => {
|
|
3872
|
+
const retVal = (output || [])
|
|
3873
|
+
.filter((e) => e != null)
|
|
3874
|
+
.map((entry) => {
|
|
3875
|
+
return de_WorkspaceResourceAssociation(entry, context);
|
|
3876
|
+
});
|
|
3877
|
+
return retVal;
|
|
3878
|
+
};
|
|
3287
3879
|
const deserializeMetadata = (output) => ({
|
|
3288
3880
|
httpStatusCode: output.statusCode,
|
|
3289
3881
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|