@aws-sdk/client-appstream 3.45.0 → 3.46.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 +18 -0
- package/dist-cjs/AppStream.js +105 -0
- package/dist-cjs/commands/AssociateApplicationToEntitlementCommand.js +36 -0
- package/dist-cjs/commands/CreateEntitlementCommand.js +36 -0
- package/dist-cjs/commands/DeleteEntitlementCommand.js +36 -0
- package/dist-cjs/commands/DescribeEntitlementsCommand.js +36 -0
- package/dist-cjs/commands/DisassociateApplicationFromEntitlementCommand.js +36 -0
- package/dist-cjs/commands/ListEntitledApplicationsCommand.js +36 -0
- package/dist-cjs/commands/UpdateEntitlementCommand.js +36 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +124 -4
- package/dist-cjs/protocols/Aws_json1_1.js +779 -18
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/AppStream.js +105 -0
- package/dist-es/commands/AssociateApplicationToEntitlementCommand.js +39 -0
- package/dist-es/commands/CreateEntitlementCommand.js +39 -0
- package/dist-es/commands/DeleteEntitlementCommand.js +39 -0
- package/dist-es/commands/DescribeEntitlementsCommand.js +39 -0
- package/dist-es/commands/DisassociateApplicationFromEntitlementCommand.js +39 -0
- package/dist-es/commands/ListEntitledApplicationsCommand.js +39 -0
- package/dist-es/commands/UpdateEntitlementCommand.js +39 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +81 -0
- package/dist-es/protocols/Aws_json1_1.js +822 -31
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/AppStream.d.ts +54 -0
- package/dist-types/AppStreamClient.d.ts +9 -2
- package/dist-types/commands/AssociateApplicationToEntitlementCommand.d.ts +35 -0
- package/dist-types/commands/CreateEntitlementCommand.d.ts +40 -0
- package/dist-types/commands/DeleteEntitlementCommand.d.ts +35 -0
- package/dist-types/commands/DescribeEntitlementsCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateApplicationFromEntitlementCommand.d.ts +35 -0
- package/dist-types/commands/ListEntitledApplicationsCommand.d.ts +35 -0
- package/dist-types/commands/UpdateEntitlementCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +387 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +21 -0
- package/dist-types/ts3.4/AppStream.d.ts +35 -0
- package/dist-types/ts3.4/AppStreamClient.d.ts +9 -2
- package/dist-types/ts3.4/commands/AssociateApplicationToEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeEntitlementsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateApplicationFromEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEntitledApplicationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +215 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +21 -0
- package/package.json +37 -44
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateStackCommand = exports.deserializeAws_json1_1UpdateImagePermissionsCommand = exports.deserializeAws_json1_1UpdateFleetCommand = exports.deserializeAws_json1_1UpdateDirectoryConfigCommand = exports.deserializeAws_json1_1UpdateApplicationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopImageBuilderCommand = exports.deserializeAws_json1_1StopFleetCommand = exports.deserializeAws_json1_1StartImageBuilderCommand = exports.deserializeAws_json1_1StartFleetCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListAssociatedStacksCommand = exports.deserializeAws_json1_1ListAssociatedFleetsCommand = exports.deserializeAws_json1_1ExpireSessionCommand = exports.deserializeAws_json1_1EnableUserCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1ListAssociatedFleetsCommand = exports.serializeAws_json1_1ExpireSessionCommand = exports.serializeAws_json1_1EnableUserCommand = exports.serializeAws_json1_1DisassociateFleetCommand = exports.serializeAws_json1_1DisassociateApplicationFromEntitlementCommand = exports.serializeAws_json1_1DisassociateApplicationFleetCommand = exports.serializeAws_json1_1DisableUserCommand = exports.serializeAws_json1_1DescribeUserStackAssociationsCommand = exports.serializeAws_json1_1DescribeUsersCommand = exports.serializeAws_json1_1DescribeUsageReportSubscriptionsCommand = exports.serializeAws_json1_1DescribeStacksCommand = exports.serializeAws_json1_1DescribeSessionsCommand = exports.serializeAws_json1_1DescribeImagesCommand = exports.serializeAws_json1_1DescribeImagePermissionsCommand = exports.serializeAws_json1_1DescribeImageBuildersCommand = exports.serializeAws_json1_1DescribeFleetsCommand = exports.serializeAws_json1_1DescribeEntitlementsCommand = exports.serializeAws_json1_1DescribeDirectoryConfigsCommand = exports.serializeAws_json1_1DescribeApplicationsCommand = exports.serializeAws_json1_1DescribeApplicationFleetAssociationsCommand = exports.serializeAws_json1_1DescribeAppBlocksCommand = exports.serializeAws_json1_1DeleteUserCommand = exports.serializeAws_json1_1DeleteUsageReportSubscriptionCommand = exports.serializeAws_json1_1DeleteStackCommand = exports.serializeAws_json1_1DeleteImagePermissionsCommand = exports.serializeAws_json1_1DeleteImageBuilderCommand = exports.serializeAws_json1_1DeleteImageCommand = exports.serializeAws_json1_1DeleteFleetCommand = exports.serializeAws_json1_1DeleteEntitlementCommand = exports.serializeAws_json1_1DeleteDirectoryConfigCommand = exports.serializeAws_json1_1DeleteApplicationCommand = exports.serializeAws_json1_1DeleteAppBlockCommand = exports.serializeAws_json1_1CreateUserCommand = exports.serializeAws_json1_1CreateUsageReportSubscriptionCommand = exports.serializeAws_json1_1CreateUpdatedImageCommand = exports.serializeAws_json1_1CreateStreamingURLCommand = exports.serializeAws_json1_1CreateStackCommand = exports.serializeAws_json1_1CreateImageBuilderStreamingURLCommand = exports.serializeAws_json1_1CreateImageBuilderCommand = exports.serializeAws_json1_1CreateFleetCommand = exports.serializeAws_json1_1CreateEntitlementCommand = exports.serializeAws_json1_1CreateDirectoryConfigCommand = exports.serializeAws_json1_1CreateApplicationCommand = exports.serializeAws_json1_1CreateAppBlockCommand = exports.serializeAws_json1_1CopyImageCommand = exports.serializeAws_json1_1BatchDisassociateUserStackCommand = exports.serializeAws_json1_1BatchAssociateUserStackCommand = exports.serializeAws_json1_1AssociateFleetCommand = exports.serializeAws_json1_1AssociateApplicationToEntitlementCommand = exports.serializeAws_json1_1AssociateApplicationFleetCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1DescribeFleetsCommand = exports.deserializeAws_json1_1DescribeEntitlementsCommand = exports.deserializeAws_json1_1DescribeDirectoryConfigsCommand = exports.deserializeAws_json1_1DescribeApplicationsCommand = exports.deserializeAws_json1_1DescribeApplicationFleetAssociationsCommand = exports.deserializeAws_json1_1DescribeAppBlocksCommand = exports.deserializeAws_json1_1DeleteUserCommand = exports.deserializeAws_json1_1DeleteUsageReportSubscriptionCommand = exports.deserializeAws_json1_1DeleteStackCommand = exports.deserializeAws_json1_1DeleteImagePermissionsCommand = exports.deserializeAws_json1_1DeleteImageBuilderCommand = exports.deserializeAws_json1_1DeleteImageCommand = exports.deserializeAws_json1_1DeleteFleetCommand = exports.deserializeAws_json1_1DeleteEntitlementCommand = exports.deserializeAws_json1_1DeleteDirectoryConfigCommand = exports.deserializeAws_json1_1DeleteApplicationCommand = exports.deserializeAws_json1_1DeleteAppBlockCommand = exports.deserializeAws_json1_1CreateUserCommand = exports.deserializeAws_json1_1CreateUsageReportSubscriptionCommand = exports.deserializeAws_json1_1CreateUpdatedImageCommand = exports.deserializeAws_json1_1CreateStreamingURLCommand = exports.deserializeAws_json1_1CreateStackCommand = exports.deserializeAws_json1_1CreateImageBuilderStreamingURLCommand = exports.deserializeAws_json1_1CreateImageBuilderCommand = exports.deserializeAws_json1_1CreateFleetCommand = exports.deserializeAws_json1_1CreateEntitlementCommand = exports.deserializeAws_json1_1CreateDirectoryConfigCommand = exports.deserializeAws_json1_1CreateApplicationCommand = exports.deserializeAws_json1_1CreateAppBlockCommand = exports.deserializeAws_json1_1CopyImageCommand = exports.deserializeAws_json1_1BatchDisassociateUserStackCommand = exports.deserializeAws_json1_1BatchAssociateUserStackCommand = exports.deserializeAws_json1_1AssociateFleetCommand = exports.deserializeAws_json1_1AssociateApplicationToEntitlementCommand = exports.deserializeAws_json1_1AssociateApplicationFleetCommand = exports.serializeAws_json1_1UpdateStackCommand = exports.serializeAws_json1_1UpdateImagePermissionsCommand = exports.serializeAws_json1_1UpdateFleetCommand = exports.serializeAws_json1_1UpdateEntitlementCommand = exports.serializeAws_json1_1UpdateDirectoryConfigCommand = exports.serializeAws_json1_1UpdateApplicationCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopImageBuilderCommand = exports.serializeAws_json1_1StopFleetCommand = exports.serializeAws_json1_1StartImageBuilderCommand = exports.serializeAws_json1_1StartFleetCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListEntitledApplicationsCommand = exports.serializeAws_json1_1ListAssociatedStacksCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateStackCommand = exports.deserializeAws_json1_1UpdateImagePermissionsCommand = exports.deserializeAws_json1_1UpdateFleetCommand = exports.deserializeAws_json1_1UpdateEntitlementCommand = exports.deserializeAws_json1_1UpdateDirectoryConfigCommand = exports.deserializeAws_json1_1UpdateApplicationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopImageBuilderCommand = exports.deserializeAws_json1_1StopFleetCommand = exports.deserializeAws_json1_1StartImageBuilderCommand = exports.deserializeAws_json1_1StartFleetCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListEntitledApplicationsCommand = exports.deserializeAws_json1_1ListAssociatedStacksCommand = exports.deserializeAws_json1_1ListAssociatedFleetsCommand = exports.deserializeAws_json1_1ExpireSessionCommand = exports.deserializeAws_json1_1EnableUserCommand = exports.deserializeAws_json1_1DisassociateFleetCommand = exports.deserializeAws_json1_1DisassociateApplicationFromEntitlementCommand = exports.deserializeAws_json1_1DisassociateApplicationFleetCommand = exports.deserializeAws_json1_1DisableUserCommand = exports.deserializeAws_json1_1DescribeUserStackAssociationsCommand = exports.deserializeAws_json1_1DescribeUsersCommand = exports.deserializeAws_json1_1DescribeUsageReportSubscriptionsCommand = exports.deserializeAws_json1_1DescribeStacksCommand = exports.deserializeAws_json1_1DescribeSessionsCommand = exports.deserializeAws_json1_1DescribeImagesCommand = exports.deserializeAws_json1_1DescribeImagePermissionsCommand = exports.deserializeAws_json1_1DescribeImageBuildersCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const serializeAws_json1_1AssociateApplicationFleetCommand = async (input, context) => {
|
|
@@ -15,6 +15,16 @@ const serializeAws_json1_1AssociateApplicationFleetCommand = async (input, conte
|
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
exports.serializeAws_json1_1AssociateApplicationFleetCommand = serializeAws_json1_1AssociateApplicationFleetCommand;
|
|
18
|
+
const serializeAws_json1_1AssociateApplicationToEntitlementCommand = async (input, context) => {
|
|
19
|
+
const headers = {
|
|
20
|
+
"content-type": "application/x-amz-json-1.1",
|
|
21
|
+
"x-amz-target": "PhotonAdminProxyService.AssociateApplicationToEntitlement",
|
|
22
|
+
};
|
|
23
|
+
let body;
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_1AssociateApplicationToEntitlementRequest(input, context));
|
|
25
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
|
+
};
|
|
27
|
+
exports.serializeAws_json1_1AssociateApplicationToEntitlementCommand = serializeAws_json1_1AssociateApplicationToEntitlementCommand;
|
|
18
28
|
const serializeAws_json1_1AssociateFleetCommand = async (input, context) => {
|
|
19
29
|
const headers = {
|
|
20
30
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -85,6 +95,16 @@ const serializeAws_json1_1CreateDirectoryConfigCommand = async (input, context)
|
|
|
85
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
96
|
};
|
|
87
97
|
exports.serializeAws_json1_1CreateDirectoryConfigCommand = serializeAws_json1_1CreateDirectoryConfigCommand;
|
|
98
|
+
const serializeAws_json1_1CreateEntitlementCommand = async (input, context) => {
|
|
99
|
+
const headers = {
|
|
100
|
+
"content-type": "application/x-amz-json-1.1",
|
|
101
|
+
"x-amz-target": "PhotonAdminProxyService.CreateEntitlement",
|
|
102
|
+
};
|
|
103
|
+
let body;
|
|
104
|
+
body = JSON.stringify(serializeAws_json1_1CreateEntitlementRequest(input, context));
|
|
105
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
|
+
};
|
|
107
|
+
exports.serializeAws_json1_1CreateEntitlementCommand = serializeAws_json1_1CreateEntitlementCommand;
|
|
88
108
|
const serializeAws_json1_1CreateFleetCommand = async (input, context) => {
|
|
89
109
|
const headers = {
|
|
90
110
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -195,6 +215,16 @@ const serializeAws_json1_1DeleteDirectoryConfigCommand = async (input, context)
|
|
|
195
215
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
216
|
};
|
|
197
217
|
exports.serializeAws_json1_1DeleteDirectoryConfigCommand = serializeAws_json1_1DeleteDirectoryConfigCommand;
|
|
218
|
+
const serializeAws_json1_1DeleteEntitlementCommand = async (input, context) => {
|
|
219
|
+
const headers = {
|
|
220
|
+
"content-type": "application/x-amz-json-1.1",
|
|
221
|
+
"x-amz-target": "PhotonAdminProxyService.DeleteEntitlement",
|
|
222
|
+
};
|
|
223
|
+
let body;
|
|
224
|
+
body = JSON.stringify(serializeAws_json1_1DeleteEntitlementRequest(input, context));
|
|
225
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
+
};
|
|
227
|
+
exports.serializeAws_json1_1DeleteEntitlementCommand = serializeAws_json1_1DeleteEntitlementCommand;
|
|
198
228
|
const serializeAws_json1_1DeleteFleetCommand = async (input, context) => {
|
|
199
229
|
const headers = {
|
|
200
230
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -305,6 +335,16 @@ const serializeAws_json1_1DescribeDirectoryConfigsCommand = async (input, contex
|
|
|
305
335
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
306
336
|
};
|
|
307
337
|
exports.serializeAws_json1_1DescribeDirectoryConfigsCommand = serializeAws_json1_1DescribeDirectoryConfigsCommand;
|
|
338
|
+
const serializeAws_json1_1DescribeEntitlementsCommand = async (input, context) => {
|
|
339
|
+
const headers = {
|
|
340
|
+
"content-type": "application/x-amz-json-1.1",
|
|
341
|
+
"x-amz-target": "PhotonAdminProxyService.DescribeEntitlements",
|
|
342
|
+
};
|
|
343
|
+
let body;
|
|
344
|
+
body = JSON.stringify(serializeAws_json1_1DescribeEntitlementsRequest(input, context));
|
|
345
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
|
+
};
|
|
347
|
+
exports.serializeAws_json1_1DescribeEntitlementsCommand = serializeAws_json1_1DescribeEntitlementsCommand;
|
|
308
348
|
const serializeAws_json1_1DescribeFleetsCommand = async (input, context) => {
|
|
309
349
|
const headers = {
|
|
310
350
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -415,6 +455,16 @@ const serializeAws_json1_1DisassociateApplicationFleetCommand = async (input, co
|
|
|
415
455
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
416
456
|
};
|
|
417
457
|
exports.serializeAws_json1_1DisassociateApplicationFleetCommand = serializeAws_json1_1DisassociateApplicationFleetCommand;
|
|
458
|
+
const serializeAws_json1_1DisassociateApplicationFromEntitlementCommand = async (input, context) => {
|
|
459
|
+
const headers = {
|
|
460
|
+
"content-type": "application/x-amz-json-1.1",
|
|
461
|
+
"x-amz-target": "PhotonAdminProxyService.DisassociateApplicationFromEntitlement",
|
|
462
|
+
};
|
|
463
|
+
let body;
|
|
464
|
+
body = JSON.stringify(serializeAws_json1_1DisassociateApplicationFromEntitlementRequest(input, context));
|
|
465
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
466
|
+
};
|
|
467
|
+
exports.serializeAws_json1_1DisassociateApplicationFromEntitlementCommand = serializeAws_json1_1DisassociateApplicationFromEntitlementCommand;
|
|
418
468
|
const serializeAws_json1_1DisassociateFleetCommand = async (input, context) => {
|
|
419
469
|
const headers = {
|
|
420
470
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -465,6 +515,16 @@ const serializeAws_json1_1ListAssociatedStacksCommand = async (input, context) =
|
|
|
465
515
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
466
516
|
};
|
|
467
517
|
exports.serializeAws_json1_1ListAssociatedStacksCommand = serializeAws_json1_1ListAssociatedStacksCommand;
|
|
518
|
+
const serializeAws_json1_1ListEntitledApplicationsCommand = async (input, context) => {
|
|
519
|
+
const headers = {
|
|
520
|
+
"content-type": "application/x-amz-json-1.1",
|
|
521
|
+
"x-amz-target": "PhotonAdminProxyService.ListEntitledApplications",
|
|
522
|
+
};
|
|
523
|
+
let body;
|
|
524
|
+
body = JSON.stringify(serializeAws_json1_1ListEntitledApplicationsRequest(input, context));
|
|
525
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
526
|
+
};
|
|
527
|
+
exports.serializeAws_json1_1ListEntitledApplicationsCommand = serializeAws_json1_1ListEntitledApplicationsCommand;
|
|
468
528
|
const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
469
529
|
const headers = {
|
|
470
530
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -555,6 +615,16 @@ const serializeAws_json1_1UpdateDirectoryConfigCommand = async (input, context)
|
|
|
555
615
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
556
616
|
};
|
|
557
617
|
exports.serializeAws_json1_1UpdateDirectoryConfigCommand = serializeAws_json1_1UpdateDirectoryConfigCommand;
|
|
618
|
+
const serializeAws_json1_1UpdateEntitlementCommand = async (input, context) => {
|
|
619
|
+
const headers = {
|
|
620
|
+
"content-type": "application/x-amz-json-1.1",
|
|
621
|
+
"x-amz-target": "PhotonAdminProxyService.UpdateEntitlement",
|
|
622
|
+
};
|
|
623
|
+
let body;
|
|
624
|
+
body = JSON.stringify(serializeAws_json1_1UpdateEntitlementRequest(input, context));
|
|
625
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
626
|
+
};
|
|
627
|
+
exports.serializeAws_json1_1UpdateEntitlementCommand = serializeAws_json1_1UpdateEntitlementCommand;
|
|
558
628
|
const serializeAws_json1_1UpdateFleetCommand = async (input, context) => {
|
|
559
629
|
const headers = {
|
|
560
630
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -664,6 +734,77 @@ const deserializeAws_json1_1AssociateApplicationFleetCommandError = async (outpu
|
|
|
664
734
|
delete response.Message;
|
|
665
735
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
666
736
|
};
|
|
737
|
+
const deserializeAws_json1_1AssociateApplicationToEntitlementCommand = async (output, context) => {
|
|
738
|
+
if (output.statusCode >= 300) {
|
|
739
|
+
return deserializeAws_json1_1AssociateApplicationToEntitlementCommandError(output, context);
|
|
740
|
+
}
|
|
741
|
+
const data = await parseBody(output.body, context);
|
|
742
|
+
let contents = {};
|
|
743
|
+
contents = deserializeAws_json1_1AssociateApplicationToEntitlementResult(data, context);
|
|
744
|
+
const response = {
|
|
745
|
+
$metadata: deserializeMetadata(output),
|
|
746
|
+
...contents,
|
|
747
|
+
};
|
|
748
|
+
return Promise.resolve(response);
|
|
749
|
+
};
|
|
750
|
+
exports.deserializeAws_json1_1AssociateApplicationToEntitlementCommand = deserializeAws_json1_1AssociateApplicationToEntitlementCommand;
|
|
751
|
+
const deserializeAws_json1_1AssociateApplicationToEntitlementCommandError = async (output, context) => {
|
|
752
|
+
const parsedOutput = {
|
|
753
|
+
...output,
|
|
754
|
+
body: await parseBody(output.body, context),
|
|
755
|
+
};
|
|
756
|
+
let response;
|
|
757
|
+
let errorCode = "UnknownError";
|
|
758
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
+
switch (errorCode) {
|
|
760
|
+
case "EntitlementNotFoundException":
|
|
761
|
+
case "com.amazonaws.appstream#EntitlementNotFoundException":
|
|
762
|
+
response = {
|
|
763
|
+
...(await deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)),
|
|
764
|
+
name: errorCode,
|
|
765
|
+
$metadata: deserializeMetadata(output),
|
|
766
|
+
};
|
|
767
|
+
break;
|
|
768
|
+
case "LimitExceededException":
|
|
769
|
+
case "com.amazonaws.appstream#LimitExceededException":
|
|
770
|
+
response = {
|
|
771
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
772
|
+
name: errorCode,
|
|
773
|
+
$metadata: deserializeMetadata(output),
|
|
774
|
+
};
|
|
775
|
+
break;
|
|
776
|
+
case "OperationNotPermittedException":
|
|
777
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
778
|
+
response = {
|
|
779
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
780
|
+
name: errorCode,
|
|
781
|
+
$metadata: deserializeMetadata(output),
|
|
782
|
+
};
|
|
783
|
+
break;
|
|
784
|
+
case "ResourceNotFoundException":
|
|
785
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
786
|
+
response = {
|
|
787
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
788
|
+
name: errorCode,
|
|
789
|
+
$metadata: deserializeMetadata(output),
|
|
790
|
+
};
|
|
791
|
+
break;
|
|
792
|
+
default:
|
|
793
|
+
const parsedBody = parsedOutput.body;
|
|
794
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
795
|
+
response = {
|
|
796
|
+
...parsedBody,
|
|
797
|
+
name: `${errorCode}`,
|
|
798
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
799
|
+
$fault: "client",
|
|
800
|
+
$metadata: deserializeMetadata(output),
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
const message = response.message || response.Message || errorCode;
|
|
804
|
+
response.message = message;
|
|
805
|
+
delete response.Message;
|
|
806
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
807
|
+
};
|
|
667
808
|
const deserializeAws_json1_1AssociateFleetCommand = async (output, context) => {
|
|
668
809
|
if (output.statusCode >= 300) {
|
|
669
810
|
return deserializeAws_json1_1AssociateFleetCommandError(output, context);
|
|
@@ -1185,6 +1326,77 @@ const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, c
|
|
|
1185
1326
|
delete response.Message;
|
|
1186
1327
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1187
1328
|
};
|
|
1329
|
+
const deserializeAws_json1_1CreateEntitlementCommand = async (output, context) => {
|
|
1330
|
+
if (output.statusCode >= 300) {
|
|
1331
|
+
return deserializeAws_json1_1CreateEntitlementCommandError(output, context);
|
|
1332
|
+
}
|
|
1333
|
+
const data = await parseBody(output.body, context);
|
|
1334
|
+
let contents = {};
|
|
1335
|
+
contents = deserializeAws_json1_1CreateEntitlementResult(data, context);
|
|
1336
|
+
const response = {
|
|
1337
|
+
$metadata: deserializeMetadata(output),
|
|
1338
|
+
...contents,
|
|
1339
|
+
};
|
|
1340
|
+
return Promise.resolve(response);
|
|
1341
|
+
};
|
|
1342
|
+
exports.deserializeAws_json1_1CreateEntitlementCommand = deserializeAws_json1_1CreateEntitlementCommand;
|
|
1343
|
+
const deserializeAws_json1_1CreateEntitlementCommandError = async (output, context) => {
|
|
1344
|
+
const parsedOutput = {
|
|
1345
|
+
...output,
|
|
1346
|
+
body: await parseBody(output.body, context),
|
|
1347
|
+
};
|
|
1348
|
+
let response;
|
|
1349
|
+
let errorCode = "UnknownError";
|
|
1350
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1351
|
+
switch (errorCode) {
|
|
1352
|
+
case "EntitlementAlreadyExistsException":
|
|
1353
|
+
case "com.amazonaws.appstream#EntitlementAlreadyExistsException":
|
|
1354
|
+
response = {
|
|
1355
|
+
...(await deserializeAws_json1_1EntitlementAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1356
|
+
name: errorCode,
|
|
1357
|
+
$metadata: deserializeMetadata(output),
|
|
1358
|
+
};
|
|
1359
|
+
break;
|
|
1360
|
+
case "LimitExceededException":
|
|
1361
|
+
case "com.amazonaws.appstream#LimitExceededException":
|
|
1362
|
+
response = {
|
|
1363
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1364
|
+
name: errorCode,
|
|
1365
|
+
$metadata: deserializeMetadata(output),
|
|
1366
|
+
};
|
|
1367
|
+
break;
|
|
1368
|
+
case "OperationNotPermittedException":
|
|
1369
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1370
|
+
response = {
|
|
1371
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1372
|
+
name: errorCode,
|
|
1373
|
+
$metadata: deserializeMetadata(output),
|
|
1374
|
+
};
|
|
1375
|
+
break;
|
|
1376
|
+
case "ResourceNotFoundException":
|
|
1377
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
1378
|
+
response = {
|
|
1379
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1380
|
+
name: errorCode,
|
|
1381
|
+
$metadata: deserializeMetadata(output),
|
|
1382
|
+
};
|
|
1383
|
+
break;
|
|
1384
|
+
default:
|
|
1385
|
+
const parsedBody = parsedOutput.body;
|
|
1386
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1387
|
+
response = {
|
|
1388
|
+
...parsedBody,
|
|
1389
|
+
name: `${errorCode}`,
|
|
1390
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1391
|
+
$fault: "client",
|
|
1392
|
+
$metadata: deserializeMetadata(output),
|
|
1393
|
+
};
|
|
1394
|
+
}
|
|
1395
|
+
const message = response.message || response.Message || errorCode;
|
|
1396
|
+
response.message = message;
|
|
1397
|
+
delete response.Message;
|
|
1398
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1399
|
+
};
|
|
1188
1400
|
const deserializeAws_json1_1CreateFleetCommand = async (output, context) => {
|
|
1189
1401
|
if (output.statusCode >= 300) {
|
|
1190
1402
|
return deserializeAws_json1_1CreateFleetCommandError(output, context);
|
|
@@ -2086,6 +2298,77 @@ const deserializeAws_json1_1DeleteDirectoryConfigCommandError = async (output, c
|
|
|
2086
2298
|
delete response.Message;
|
|
2087
2299
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2088
2300
|
};
|
|
2301
|
+
const deserializeAws_json1_1DeleteEntitlementCommand = async (output, context) => {
|
|
2302
|
+
if (output.statusCode >= 300) {
|
|
2303
|
+
return deserializeAws_json1_1DeleteEntitlementCommandError(output, context);
|
|
2304
|
+
}
|
|
2305
|
+
const data = await parseBody(output.body, context);
|
|
2306
|
+
let contents = {};
|
|
2307
|
+
contents = deserializeAws_json1_1DeleteEntitlementResult(data, context);
|
|
2308
|
+
const response = {
|
|
2309
|
+
$metadata: deserializeMetadata(output),
|
|
2310
|
+
...contents,
|
|
2311
|
+
};
|
|
2312
|
+
return Promise.resolve(response);
|
|
2313
|
+
};
|
|
2314
|
+
exports.deserializeAws_json1_1DeleteEntitlementCommand = deserializeAws_json1_1DeleteEntitlementCommand;
|
|
2315
|
+
const deserializeAws_json1_1DeleteEntitlementCommandError = async (output, context) => {
|
|
2316
|
+
const parsedOutput = {
|
|
2317
|
+
...output,
|
|
2318
|
+
body: await parseBody(output.body, context),
|
|
2319
|
+
};
|
|
2320
|
+
let response;
|
|
2321
|
+
let errorCode = "UnknownError";
|
|
2322
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
|
+
switch (errorCode) {
|
|
2324
|
+
case "ConcurrentModificationException":
|
|
2325
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
2326
|
+
response = {
|
|
2327
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2328
|
+
name: errorCode,
|
|
2329
|
+
$metadata: deserializeMetadata(output),
|
|
2330
|
+
};
|
|
2331
|
+
break;
|
|
2332
|
+
case "EntitlementNotFoundException":
|
|
2333
|
+
case "com.amazonaws.appstream#EntitlementNotFoundException":
|
|
2334
|
+
response = {
|
|
2335
|
+
...(await deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)),
|
|
2336
|
+
name: errorCode,
|
|
2337
|
+
$metadata: deserializeMetadata(output),
|
|
2338
|
+
};
|
|
2339
|
+
break;
|
|
2340
|
+
case "OperationNotPermittedException":
|
|
2341
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
2342
|
+
response = {
|
|
2343
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2344
|
+
name: errorCode,
|
|
2345
|
+
$metadata: deserializeMetadata(output),
|
|
2346
|
+
};
|
|
2347
|
+
break;
|
|
2348
|
+
case "ResourceNotFoundException":
|
|
2349
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2350
|
+
response = {
|
|
2351
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2352
|
+
name: errorCode,
|
|
2353
|
+
$metadata: deserializeMetadata(output),
|
|
2354
|
+
};
|
|
2355
|
+
break;
|
|
2356
|
+
default:
|
|
2357
|
+
const parsedBody = parsedOutput.body;
|
|
2358
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2359
|
+
response = {
|
|
2360
|
+
...parsedBody,
|
|
2361
|
+
name: `${errorCode}`,
|
|
2362
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2363
|
+
$fault: "client",
|
|
2364
|
+
$metadata: deserializeMetadata(output),
|
|
2365
|
+
};
|
|
2366
|
+
}
|
|
2367
|
+
const message = response.message || response.Message || errorCode;
|
|
2368
|
+
response.message = message;
|
|
2369
|
+
delete response.Message;
|
|
2370
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2371
|
+
};
|
|
2089
2372
|
const deserializeAws_json1_1DeleteFleetCommand = async (output, context) => {
|
|
2090
2373
|
if (output.statusCode >= 300) {
|
|
2091
2374
|
return deserializeAws_json1_1DeleteFleetCommandError(output, context);
|
|
@@ -2369,6 +2652,14 @@ const deserializeAws_json1_1DeleteStackCommandError = async (output, context) =>
|
|
|
2369
2652
|
$metadata: deserializeMetadata(output),
|
|
2370
2653
|
};
|
|
2371
2654
|
break;
|
|
2655
|
+
case "OperationNotPermittedException":
|
|
2656
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
2657
|
+
response = {
|
|
2658
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2659
|
+
name: errorCode,
|
|
2660
|
+
$metadata: deserializeMetadata(output),
|
|
2661
|
+
};
|
|
2662
|
+
break;
|
|
2372
2663
|
case "ResourceInUseException":
|
|
2373
2664
|
case "com.amazonaws.appstream#ResourceInUseException":
|
|
2374
2665
|
response = {
|
|
@@ -2715,6 +3006,69 @@ const deserializeAws_json1_1DescribeDirectoryConfigsCommandError = async (output
|
|
|
2715
3006
|
delete response.Message;
|
|
2716
3007
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2717
3008
|
};
|
|
3009
|
+
const deserializeAws_json1_1DescribeEntitlementsCommand = async (output, context) => {
|
|
3010
|
+
if (output.statusCode >= 300) {
|
|
3011
|
+
return deserializeAws_json1_1DescribeEntitlementsCommandError(output, context);
|
|
3012
|
+
}
|
|
3013
|
+
const data = await parseBody(output.body, context);
|
|
3014
|
+
let contents = {};
|
|
3015
|
+
contents = deserializeAws_json1_1DescribeEntitlementsResult(data, context);
|
|
3016
|
+
const response = {
|
|
3017
|
+
$metadata: deserializeMetadata(output),
|
|
3018
|
+
...contents,
|
|
3019
|
+
};
|
|
3020
|
+
return Promise.resolve(response);
|
|
3021
|
+
};
|
|
3022
|
+
exports.deserializeAws_json1_1DescribeEntitlementsCommand = deserializeAws_json1_1DescribeEntitlementsCommand;
|
|
3023
|
+
const deserializeAws_json1_1DescribeEntitlementsCommandError = async (output, context) => {
|
|
3024
|
+
const parsedOutput = {
|
|
3025
|
+
...output,
|
|
3026
|
+
body: await parseBody(output.body, context),
|
|
3027
|
+
};
|
|
3028
|
+
let response;
|
|
3029
|
+
let errorCode = "UnknownError";
|
|
3030
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3031
|
+
switch (errorCode) {
|
|
3032
|
+
case "EntitlementNotFoundException":
|
|
3033
|
+
case "com.amazonaws.appstream#EntitlementNotFoundException":
|
|
3034
|
+
response = {
|
|
3035
|
+
...(await deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)),
|
|
3036
|
+
name: errorCode,
|
|
3037
|
+
$metadata: deserializeMetadata(output),
|
|
3038
|
+
};
|
|
3039
|
+
break;
|
|
3040
|
+
case "OperationNotPermittedException":
|
|
3041
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
3042
|
+
response = {
|
|
3043
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
3044
|
+
name: errorCode,
|
|
3045
|
+
$metadata: deserializeMetadata(output),
|
|
3046
|
+
};
|
|
3047
|
+
break;
|
|
3048
|
+
case "ResourceNotFoundException":
|
|
3049
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
3050
|
+
response = {
|
|
3051
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3052
|
+
name: errorCode,
|
|
3053
|
+
$metadata: deserializeMetadata(output),
|
|
3054
|
+
};
|
|
3055
|
+
break;
|
|
3056
|
+
default:
|
|
3057
|
+
const parsedBody = parsedOutput.body;
|
|
3058
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3059
|
+
response = {
|
|
3060
|
+
...parsedBody,
|
|
3061
|
+
name: `${errorCode}`,
|
|
3062
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3063
|
+
$fault: "client",
|
|
3064
|
+
$metadata: deserializeMetadata(output),
|
|
3065
|
+
};
|
|
3066
|
+
}
|
|
3067
|
+
const message = response.message || response.Message || errorCode;
|
|
3068
|
+
response.message = message;
|
|
3069
|
+
delete response.Message;
|
|
3070
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3071
|
+
};
|
|
2718
3072
|
const deserializeAws_json1_1DescribeFleetsCommand = async (output, context) => {
|
|
2719
3073
|
if (output.statusCode >= 300) {
|
|
2720
3074
|
return deserializeAws_json1_1DescribeFleetsCommandError(output, context);
|
|
@@ -3288,6 +3642,69 @@ const deserializeAws_json1_1DisassociateApplicationFleetCommandError = async (ou
|
|
|
3288
3642
|
delete response.Message;
|
|
3289
3643
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3290
3644
|
};
|
|
3645
|
+
const deserializeAws_json1_1DisassociateApplicationFromEntitlementCommand = async (output, context) => {
|
|
3646
|
+
if (output.statusCode >= 300) {
|
|
3647
|
+
return deserializeAws_json1_1DisassociateApplicationFromEntitlementCommandError(output, context);
|
|
3648
|
+
}
|
|
3649
|
+
const data = await parseBody(output.body, context);
|
|
3650
|
+
let contents = {};
|
|
3651
|
+
contents = deserializeAws_json1_1DisassociateApplicationFromEntitlementResult(data, context);
|
|
3652
|
+
const response = {
|
|
3653
|
+
$metadata: deserializeMetadata(output),
|
|
3654
|
+
...contents,
|
|
3655
|
+
};
|
|
3656
|
+
return Promise.resolve(response);
|
|
3657
|
+
};
|
|
3658
|
+
exports.deserializeAws_json1_1DisassociateApplicationFromEntitlementCommand = deserializeAws_json1_1DisassociateApplicationFromEntitlementCommand;
|
|
3659
|
+
const deserializeAws_json1_1DisassociateApplicationFromEntitlementCommandError = async (output, context) => {
|
|
3660
|
+
const parsedOutput = {
|
|
3661
|
+
...output,
|
|
3662
|
+
body: await parseBody(output.body, context),
|
|
3663
|
+
};
|
|
3664
|
+
let response;
|
|
3665
|
+
let errorCode = "UnknownError";
|
|
3666
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3667
|
+
switch (errorCode) {
|
|
3668
|
+
case "EntitlementNotFoundException":
|
|
3669
|
+
case "com.amazonaws.appstream#EntitlementNotFoundException":
|
|
3670
|
+
response = {
|
|
3671
|
+
...(await deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)),
|
|
3672
|
+
name: errorCode,
|
|
3673
|
+
$metadata: deserializeMetadata(output),
|
|
3674
|
+
};
|
|
3675
|
+
break;
|
|
3676
|
+
case "OperationNotPermittedException":
|
|
3677
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
3678
|
+
response = {
|
|
3679
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
3680
|
+
name: errorCode,
|
|
3681
|
+
$metadata: deserializeMetadata(output),
|
|
3682
|
+
};
|
|
3683
|
+
break;
|
|
3684
|
+
case "ResourceNotFoundException":
|
|
3685
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
3686
|
+
response = {
|
|
3687
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3688
|
+
name: errorCode,
|
|
3689
|
+
$metadata: deserializeMetadata(output),
|
|
3690
|
+
};
|
|
3691
|
+
break;
|
|
3692
|
+
default:
|
|
3693
|
+
const parsedBody = parsedOutput.body;
|
|
3694
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3695
|
+
response = {
|
|
3696
|
+
...parsedBody,
|
|
3697
|
+
name: `${errorCode}`,
|
|
3698
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3699
|
+
$fault: "client",
|
|
3700
|
+
$metadata: deserializeMetadata(output),
|
|
3701
|
+
};
|
|
3702
|
+
}
|
|
3703
|
+
const message = response.message || response.Message || errorCode;
|
|
3704
|
+
response.message = message;
|
|
3705
|
+
delete response.Message;
|
|
3706
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3707
|
+
};
|
|
3291
3708
|
const deserializeAws_json1_1DisassociateFleetCommand = async (output, context) => {
|
|
3292
3709
|
if (output.statusCode >= 300) {
|
|
3293
3710
|
return deserializeAws_json1_1DisassociateFleetCommandError(output, context);
|
|
@@ -3414,21 +3831,60 @@ const deserializeAws_json1_1EnableUserCommandError = async (output, context) =>
|
|
|
3414
3831
|
delete response.Message;
|
|
3415
3832
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3416
3833
|
};
|
|
3417
|
-
const deserializeAws_json1_1ExpireSessionCommand = async (output, context) => {
|
|
3834
|
+
const deserializeAws_json1_1ExpireSessionCommand = async (output, context) => {
|
|
3835
|
+
if (output.statusCode >= 300) {
|
|
3836
|
+
return deserializeAws_json1_1ExpireSessionCommandError(output, context);
|
|
3837
|
+
}
|
|
3838
|
+
const data = await parseBody(output.body, context);
|
|
3839
|
+
let contents = {};
|
|
3840
|
+
contents = deserializeAws_json1_1ExpireSessionResult(data, context);
|
|
3841
|
+
const response = {
|
|
3842
|
+
$metadata: deserializeMetadata(output),
|
|
3843
|
+
...contents,
|
|
3844
|
+
};
|
|
3845
|
+
return Promise.resolve(response);
|
|
3846
|
+
};
|
|
3847
|
+
exports.deserializeAws_json1_1ExpireSessionCommand = deserializeAws_json1_1ExpireSessionCommand;
|
|
3848
|
+
const deserializeAws_json1_1ExpireSessionCommandError = async (output, context) => {
|
|
3849
|
+
const parsedOutput = {
|
|
3850
|
+
...output,
|
|
3851
|
+
body: await parseBody(output.body, context),
|
|
3852
|
+
};
|
|
3853
|
+
let response;
|
|
3854
|
+
let errorCode = "UnknownError";
|
|
3855
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3856
|
+
switch (errorCode) {
|
|
3857
|
+
default:
|
|
3858
|
+
const parsedBody = parsedOutput.body;
|
|
3859
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3860
|
+
response = {
|
|
3861
|
+
...parsedBody,
|
|
3862
|
+
name: `${errorCode}`,
|
|
3863
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3864
|
+
$fault: "client",
|
|
3865
|
+
$metadata: deserializeMetadata(output),
|
|
3866
|
+
};
|
|
3867
|
+
}
|
|
3868
|
+
const message = response.message || response.Message || errorCode;
|
|
3869
|
+
response.message = message;
|
|
3870
|
+
delete response.Message;
|
|
3871
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3872
|
+
};
|
|
3873
|
+
const deserializeAws_json1_1ListAssociatedFleetsCommand = async (output, context) => {
|
|
3418
3874
|
if (output.statusCode >= 300) {
|
|
3419
|
-
return
|
|
3875
|
+
return deserializeAws_json1_1ListAssociatedFleetsCommandError(output, context);
|
|
3420
3876
|
}
|
|
3421
3877
|
const data = await parseBody(output.body, context);
|
|
3422
3878
|
let contents = {};
|
|
3423
|
-
contents =
|
|
3879
|
+
contents = deserializeAws_json1_1ListAssociatedFleetsResult(data, context);
|
|
3424
3880
|
const response = {
|
|
3425
3881
|
$metadata: deserializeMetadata(output),
|
|
3426
3882
|
...contents,
|
|
3427
3883
|
};
|
|
3428
3884
|
return Promise.resolve(response);
|
|
3429
3885
|
};
|
|
3430
|
-
exports.
|
|
3431
|
-
const
|
|
3886
|
+
exports.deserializeAws_json1_1ListAssociatedFleetsCommand = deserializeAws_json1_1ListAssociatedFleetsCommand;
|
|
3887
|
+
const deserializeAws_json1_1ListAssociatedFleetsCommandError = async (output, context) => {
|
|
3432
3888
|
const parsedOutput = {
|
|
3433
3889
|
...output,
|
|
3434
3890
|
body: await parseBody(output.body, context),
|
|
@@ -3453,21 +3909,21 @@ const deserializeAws_json1_1ExpireSessionCommandError = async (output, context)
|
|
|
3453
3909
|
delete response.Message;
|
|
3454
3910
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3455
3911
|
};
|
|
3456
|
-
const
|
|
3912
|
+
const deserializeAws_json1_1ListAssociatedStacksCommand = async (output, context) => {
|
|
3457
3913
|
if (output.statusCode >= 300) {
|
|
3458
|
-
return
|
|
3914
|
+
return deserializeAws_json1_1ListAssociatedStacksCommandError(output, context);
|
|
3459
3915
|
}
|
|
3460
3916
|
const data = await parseBody(output.body, context);
|
|
3461
3917
|
let contents = {};
|
|
3462
|
-
contents =
|
|
3918
|
+
contents = deserializeAws_json1_1ListAssociatedStacksResult(data, context);
|
|
3463
3919
|
const response = {
|
|
3464
3920
|
$metadata: deserializeMetadata(output),
|
|
3465
3921
|
...contents,
|
|
3466
3922
|
};
|
|
3467
3923
|
return Promise.resolve(response);
|
|
3468
3924
|
};
|
|
3469
|
-
exports.
|
|
3470
|
-
const
|
|
3925
|
+
exports.deserializeAws_json1_1ListAssociatedStacksCommand = deserializeAws_json1_1ListAssociatedStacksCommand;
|
|
3926
|
+
const deserializeAws_json1_1ListAssociatedStacksCommandError = async (output, context) => {
|
|
3471
3927
|
const parsedOutput = {
|
|
3472
3928
|
...output,
|
|
3473
3929
|
body: await parseBody(output.body, context),
|
|
@@ -3492,21 +3948,21 @@ const deserializeAws_json1_1ListAssociatedFleetsCommandError = async (output, co
|
|
|
3492
3948
|
delete response.Message;
|
|
3493
3949
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3494
3950
|
};
|
|
3495
|
-
const
|
|
3951
|
+
const deserializeAws_json1_1ListEntitledApplicationsCommand = async (output, context) => {
|
|
3496
3952
|
if (output.statusCode >= 300) {
|
|
3497
|
-
return
|
|
3953
|
+
return deserializeAws_json1_1ListEntitledApplicationsCommandError(output, context);
|
|
3498
3954
|
}
|
|
3499
3955
|
const data = await parseBody(output.body, context);
|
|
3500
3956
|
let contents = {};
|
|
3501
|
-
contents =
|
|
3957
|
+
contents = deserializeAws_json1_1ListEntitledApplicationsResult(data, context);
|
|
3502
3958
|
const response = {
|
|
3503
3959
|
$metadata: deserializeMetadata(output),
|
|
3504
3960
|
...contents,
|
|
3505
3961
|
};
|
|
3506
3962
|
return Promise.resolve(response);
|
|
3507
3963
|
};
|
|
3508
|
-
exports.
|
|
3509
|
-
const
|
|
3964
|
+
exports.deserializeAws_json1_1ListEntitledApplicationsCommand = deserializeAws_json1_1ListEntitledApplicationsCommand;
|
|
3965
|
+
const deserializeAws_json1_1ListEntitledApplicationsCommandError = async (output, context) => {
|
|
3510
3966
|
const parsedOutput = {
|
|
3511
3967
|
...output,
|
|
3512
3968
|
body: await parseBody(output.body, context),
|
|
@@ -3515,6 +3971,30 @@ const deserializeAws_json1_1ListAssociatedStacksCommandError = async (output, co
|
|
|
3515
3971
|
let errorCode = "UnknownError";
|
|
3516
3972
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3517
3973
|
switch (errorCode) {
|
|
3974
|
+
case "EntitlementNotFoundException":
|
|
3975
|
+
case "com.amazonaws.appstream#EntitlementNotFoundException":
|
|
3976
|
+
response = {
|
|
3977
|
+
...(await deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)),
|
|
3978
|
+
name: errorCode,
|
|
3979
|
+
$metadata: deserializeMetadata(output),
|
|
3980
|
+
};
|
|
3981
|
+
break;
|
|
3982
|
+
case "OperationNotPermittedException":
|
|
3983
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
3984
|
+
response = {
|
|
3985
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
3986
|
+
name: errorCode,
|
|
3987
|
+
$metadata: deserializeMetadata(output),
|
|
3988
|
+
};
|
|
3989
|
+
break;
|
|
3990
|
+
case "ResourceNotFoundException":
|
|
3991
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
3992
|
+
response = {
|
|
3993
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3994
|
+
name: errorCode,
|
|
3995
|
+
$metadata: deserializeMetadata(output),
|
|
3996
|
+
};
|
|
3997
|
+
break;
|
|
3518
3998
|
default:
|
|
3519
3999
|
const parsedBody = parsedOutput.body;
|
|
3520
4000
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4130,6 +4610,77 @@ const deserializeAws_json1_1UpdateDirectoryConfigCommandError = async (output, c
|
|
|
4130
4610
|
delete response.Message;
|
|
4131
4611
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
4132
4612
|
};
|
|
4613
|
+
const deserializeAws_json1_1UpdateEntitlementCommand = async (output, context) => {
|
|
4614
|
+
if (output.statusCode >= 300) {
|
|
4615
|
+
return deserializeAws_json1_1UpdateEntitlementCommandError(output, context);
|
|
4616
|
+
}
|
|
4617
|
+
const data = await parseBody(output.body, context);
|
|
4618
|
+
let contents = {};
|
|
4619
|
+
contents = deserializeAws_json1_1UpdateEntitlementResult(data, context);
|
|
4620
|
+
const response = {
|
|
4621
|
+
$metadata: deserializeMetadata(output),
|
|
4622
|
+
...contents,
|
|
4623
|
+
};
|
|
4624
|
+
return Promise.resolve(response);
|
|
4625
|
+
};
|
|
4626
|
+
exports.deserializeAws_json1_1UpdateEntitlementCommand = deserializeAws_json1_1UpdateEntitlementCommand;
|
|
4627
|
+
const deserializeAws_json1_1UpdateEntitlementCommandError = async (output, context) => {
|
|
4628
|
+
const parsedOutput = {
|
|
4629
|
+
...output,
|
|
4630
|
+
body: await parseBody(output.body, context),
|
|
4631
|
+
};
|
|
4632
|
+
let response;
|
|
4633
|
+
let errorCode = "UnknownError";
|
|
4634
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4635
|
+
switch (errorCode) {
|
|
4636
|
+
case "ConcurrentModificationException":
|
|
4637
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
4638
|
+
response = {
|
|
4639
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
4640
|
+
name: errorCode,
|
|
4641
|
+
$metadata: deserializeMetadata(output),
|
|
4642
|
+
};
|
|
4643
|
+
break;
|
|
4644
|
+
case "EntitlementNotFoundException":
|
|
4645
|
+
case "com.amazonaws.appstream#EntitlementNotFoundException":
|
|
4646
|
+
response = {
|
|
4647
|
+
...(await deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)),
|
|
4648
|
+
name: errorCode,
|
|
4649
|
+
$metadata: deserializeMetadata(output),
|
|
4650
|
+
};
|
|
4651
|
+
break;
|
|
4652
|
+
case "OperationNotPermittedException":
|
|
4653
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
4654
|
+
response = {
|
|
4655
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
4656
|
+
name: errorCode,
|
|
4657
|
+
$metadata: deserializeMetadata(output),
|
|
4658
|
+
};
|
|
4659
|
+
break;
|
|
4660
|
+
case "ResourceNotFoundException":
|
|
4661
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
4662
|
+
response = {
|
|
4663
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4664
|
+
name: errorCode,
|
|
4665
|
+
$metadata: deserializeMetadata(output),
|
|
4666
|
+
};
|
|
4667
|
+
break;
|
|
4668
|
+
default:
|
|
4669
|
+
const parsedBody = parsedOutput.body;
|
|
4670
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4671
|
+
response = {
|
|
4672
|
+
...parsedBody,
|
|
4673
|
+
name: `${errorCode}`,
|
|
4674
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4675
|
+
$fault: "client",
|
|
4676
|
+
$metadata: deserializeMetadata(output),
|
|
4677
|
+
};
|
|
4678
|
+
}
|
|
4679
|
+
const message = response.message || response.Message || errorCode;
|
|
4680
|
+
response.message = message;
|
|
4681
|
+
delete response.Message;
|
|
4682
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4683
|
+
};
|
|
4133
4684
|
const deserializeAws_json1_1UpdateFleetCommand = async (output, context) => {
|
|
4134
4685
|
if (output.statusCode >= 300) {
|
|
4135
4686
|
return deserializeAws_json1_1UpdateFleetCommandError(output, context);
|
|
@@ -4442,6 +4993,28 @@ const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (par
|
|
|
4442
4993
|
};
|
|
4443
4994
|
return contents;
|
|
4444
4995
|
};
|
|
4996
|
+
const deserializeAws_json1_1EntitlementAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4997
|
+
const body = parsedOutput.body;
|
|
4998
|
+
const deserialized = deserializeAws_json1_1EntitlementAlreadyExistsException(body, context);
|
|
4999
|
+
const contents = {
|
|
5000
|
+
name: "EntitlementAlreadyExistsException",
|
|
5001
|
+
$fault: "client",
|
|
5002
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5003
|
+
...deserialized,
|
|
5004
|
+
};
|
|
5005
|
+
return contents;
|
|
5006
|
+
};
|
|
5007
|
+
const deserializeAws_json1_1EntitlementNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
5008
|
+
const body = parsedOutput.body;
|
|
5009
|
+
const deserialized = deserializeAws_json1_1EntitlementNotFoundException(body, context);
|
|
5010
|
+
const contents = {
|
|
5011
|
+
name: "EntitlementNotFoundException",
|
|
5012
|
+
$fault: "client",
|
|
5013
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5014
|
+
...deserialized,
|
|
5015
|
+
};
|
|
5016
|
+
return contents;
|
|
5017
|
+
};
|
|
4445
5018
|
const deserializeAws_json1_1IncompatibleImageExceptionResponse = async (parsedOutput, context) => {
|
|
4446
5019
|
const body = parsedOutput.body;
|
|
4447
5020
|
const deserialized = deserializeAws_json1_1IncompatibleImageException(body, context);
|
|
@@ -4612,6 +5185,15 @@ const serializeAws_json1_1AssociateApplicationFleetRequest = (input, context) =>
|
|
|
4612
5185
|
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
4613
5186
|
};
|
|
4614
5187
|
};
|
|
5188
|
+
const serializeAws_json1_1AssociateApplicationToEntitlementRequest = (input, context) => {
|
|
5189
|
+
return {
|
|
5190
|
+
...(input.ApplicationIdentifier !== undefined &&
|
|
5191
|
+
input.ApplicationIdentifier !== null && { ApplicationIdentifier: input.ApplicationIdentifier }),
|
|
5192
|
+
...(input.EntitlementName !== undefined &&
|
|
5193
|
+
input.EntitlementName !== null && { EntitlementName: input.EntitlementName }),
|
|
5194
|
+
...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
|
|
5195
|
+
};
|
|
5196
|
+
};
|
|
4615
5197
|
const serializeAws_json1_1AssociateFleetRequest = (input, context) => {
|
|
4616
5198
|
return {
|
|
4617
5199
|
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
@@ -4715,6 +5297,18 @@ const serializeAws_json1_1CreateDirectoryConfigRequest = (input, context) => {
|
|
|
4715
5297
|
}),
|
|
4716
5298
|
};
|
|
4717
5299
|
};
|
|
5300
|
+
const serializeAws_json1_1CreateEntitlementRequest = (input, context) => {
|
|
5301
|
+
return {
|
|
5302
|
+
...(input.AppVisibility !== undefined && input.AppVisibility !== null && { AppVisibility: input.AppVisibility }),
|
|
5303
|
+
...(input.Attributes !== undefined &&
|
|
5304
|
+
input.Attributes !== null && {
|
|
5305
|
+
Attributes: serializeAws_json1_1EntitlementAttributeList(input.Attributes, context),
|
|
5306
|
+
}),
|
|
5307
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
5308
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5309
|
+
...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
|
|
5310
|
+
};
|
|
5311
|
+
};
|
|
4718
5312
|
const serializeAws_json1_1CreateFleetRequest = (input, context) => {
|
|
4719
5313
|
return {
|
|
4720
5314
|
...(input.ComputeCapacity !== undefined &&
|
|
@@ -4871,6 +5465,12 @@ const serializeAws_json1_1DeleteDirectoryConfigRequest = (input, context) => {
|
|
|
4871
5465
|
...(input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }),
|
|
4872
5466
|
};
|
|
4873
5467
|
};
|
|
5468
|
+
const serializeAws_json1_1DeleteEntitlementRequest = (input, context) => {
|
|
5469
|
+
return {
|
|
5470
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5471
|
+
...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
|
|
5472
|
+
};
|
|
5473
|
+
};
|
|
4874
5474
|
const serializeAws_json1_1DeleteFleetRequest = (input, context) => {
|
|
4875
5475
|
return {
|
|
4876
5476
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
@@ -4941,6 +5541,14 @@ const serializeAws_json1_1DescribeDirectoryConfigsRequest = (input, context) =>
|
|
|
4941
5541
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4942
5542
|
};
|
|
4943
5543
|
};
|
|
5544
|
+
const serializeAws_json1_1DescribeEntitlementsRequest = (input, context) => {
|
|
5545
|
+
return {
|
|
5546
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
5547
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5548
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
5549
|
+
...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
|
|
5550
|
+
};
|
|
5551
|
+
};
|
|
4944
5552
|
const serializeAws_json1_1DescribeFleetsRequest = (input, context) => {
|
|
4945
5553
|
return {
|
|
4946
5554
|
...(input.Names !== undefined &&
|
|
@@ -5043,6 +5651,15 @@ const serializeAws_json1_1DisassociateApplicationFleetRequest = (input, context)
|
|
|
5043
5651
|
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
5044
5652
|
};
|
|
5045
5653
|
};
|
|
5654
|
+
const serializeAws_json1_1DisassociateApplicationFromEntitlementRequest = (input, context) => {
|
|
5655
|
+
return {
|
|
5656
|
+
...(input.ApplicationIdentifier !== undefined &&
|
|
5657
|
+
input.ApplicationIdentifier !== null && { ApplicationIdentifier: input.ApplicationIdentifier }),
|
|
5658
|
+
...(input.EntitlementName !== undefined &&
|
|
5659
|
+
input.EntitlementName !== null && { EntitlementName: input.EntitlementName }),
|
|
5660
|
+
...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
|
|
5661
|
+
};
|
|
5662
|
+
};
|
|
5046
5663
|
const serializeAws_json1_1DisassociateFleetRequest = (input, context) => {
|
|
5047
5664
|
return {
|
|
5048
5665
|
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
@@ -5085,6 +5702,22 @@ const serializeAws_json1_1EnableUserRequest = (input, context) => {
|
|
|
5085
5702
|
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
5086
5703
|
};
|
|
5087
5704
|
};
|
|
5705
|
+
const serializeAws_json1_1EntitlementAttribute = (input, context) => {
|
|
5706
|
+
return {
|
|
5707
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5708
|
+
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
5709
|
+
};
|
|
5710
|
+
};
|
|
5711
|
+
const serializeAws_json1_1EntitlementAttributeList = (input, context) => {
|
|
5712
|
+
return input
|
|
5713
|
+
.filter((e) => e != null)
|
|
5714
|
+
.map((entry) => {
|
|
5715
|
+
if (entry === null) {
|
|
5716
|
+
return null;
|
|
5717
|
+
}
|
|
5718
|
+
return serializeAws_json1_1EntitlementAttribute(entry, context);
|
|
5719
|
+
});
|
|
5720
|
+
};
|
|
5088
5721
|
const serializeAws_json1_1ExpireSessionRequest = (input, context) => {
|
|
5089
5722
|
return {
|
|
5090
5723
|
...(input.SessionId !== undefined && input.SessionId !== null && { SessionId: input.SessionId }),
|
|
@@ -5119,6 +5752,15 @@ const serializeAws_json1_1ListAssociatedStacksRequest = (input, context) => {
|
|
|
5119
5752
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
5120
5753
|
};
|
|
5121
5754
|
};
|
|
5755
|
+
const serializeAws_json1_1ListEntitledApplicationsRequest = (input, context) => {
|
|
5756
|
+
return {
|
|
5757
|
+
...(input.EntitlementName !== undefined &&
|
|
5758
|
+
input.EntitlementName !== null && { EntitlementName: input.EntitlementName }),
|
|
5759
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
5760
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
5761
|
+
...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
|
|
5762
|
+
};
|
|
5763
|
+
};
|
|
5122
5764
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
5123
5765
|
return {
|
|
5124
5766
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
@@ -5320,6 +5962,18 @@ const serializeAws_json1_1UpdateDirectoryConfigRequest = (input, context) => {
|
|
|
5320
5962
|
}),
|
|
5321
5963
|
};
|
|
5322
5964
|
};
|
|
5965
|
+
const serializeAws_json1_1UpdateEntitlementRequest = (input, context) => {
|
|
5966
|
+
return {
|
|
5967
|
+
...(input.AppVisibility !== undefined && input.AppVisibility !== null && { AppVisibility: input.AppVisibility }),
|
|
5968
|
+
...(input.Attributes !== undefined &&
|
|
5969
|
+
input.Attributes !== null && {
|
|
5970
|
+
Attributes: serializeAws_json1_1EntitlementAttributeList(input.Attributes, context),
|
|
5971
|
+
}),
|
|
5972
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
5973
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5974
|
+
...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
|
|
5975
|
+
};
|
|
5976
|
+
};
|
|
5323
5977
|
const serializeAws_json1_1UpdateFleetRequest = (input, context) => {
|
|
5324
5978
|
return {
|
|
5325
5979
|
...(input.AttributesToDelete !== undefined &&
|
|
@@ -5579,6 +6233,9 @@ const deserializeAws_json1_1AssociateApplicationFleetResult = (output, context)
|
|
|
5579
6233
|
: undefined,
|
|
5580
6234
|
};
|
|
5581
6235
|
};
|
|
6236
|
+
const deserializeAws_json1_1AssociateApplicationToEntitlementResult = (output, context) => {
|
|
6237
|
+
return {};
|
|
6238
|
+
};
|
|
5582
6239
|
const deserializeAws_json1_1AssociateFleetResult = (output, context) => {
|
|
5583
6240
|
return {};
|
|
5584
6241
|
};
|
|
@@ -5635,6 +6292,13 @@ const deserializeAws_json1_1CreateDirectoryConfigResult = (output, context) => {
|
|
|
5635
6292
|
: undefined,
|
|
5636
6293
|
};
|
|
5637
6294
|
};
|
|
6295
|
+
const deserializeAws_json1_1CreateEntitlementResult = (output, context) => {
|
|
6296
|
+
return {
|
|
6297
|
+
Entitlement: output.Entitlement !== undefined && output.Entitlement !== null
|
|
6298
|
+
? deserializeAws_json1_1Entitlement(output.Entitlement, context)
|
|
6299
|
+
: undefined,
|
|
6300
|
+
};
|
|
6301
|
+
};
|
|
5638
6302
|
const deserializeAws_json1_1CreateFleetResult = (output, context) => {
|
|
5639
6303
|
return {
|
|
5640
6304
|
Fleet: output.Fleet !== undefined && output.Fleet !== null
|
|
@@ -5698,6 +6362,9 @@ const deserializeAws_json1_1DeleteApplicationResult = (output, context) => {
|
|
|
5698
6362
|
const deserializeAws_json1_1DeleteDirectoryConfigResult = (output, context) => {
|
|
5699
6363
|
return {};
|
|
5700
6364
|
};
|
|
6365
|
+
const deserializeAws_json1_1DeleteEntitlementResult = (output, context) => {
|
|
6366
|
+
return {};
|
|
6367
|
+
};
|
|
5701
6368
|
const deserializeAws_json1_1DeleteFleetResult = (output, context) => {
|
|
5702
6369
|
return {};
|
|
5703
6370
|
};
|
|
@@ -5759,6 +6426,14 @@ const deserializeAws_json1_1DescribeDirectoryConfigsResult = (output, context) =
|
|
|
5759
6426
|
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
5760
6427
|
};
|
|
5761
6428
|
};
|
|
6429
|
+
const deserializeAws_json1_1DescribeEntitlementsResult = (output, context) => {
|
|
6430
|
+
return {
|
|
6431
|
+
Entitlements: output.Entitlements !== undefined && output.Entitlements !== null
|
|
6432
|
+
? deserializeAws_json1_1EntitlementList(output.Entitlements, context)
|
|
6433
|
+
: undefined,
|
|
6434
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
6435
|
+
};
|
|
6436
|
+
};
|
|
5762
6437
|
const deserializeAws_json1_1DescribeFleetsResult = (output, context) => {
|
|
5763
6438
|
return {
|
|
5764
6439
|
Fleets: output.Fleets !== undefined && output.Fleets !== null
|
|
@@ -5862,6 +6537,9 @@ const deserializeAws_json1_1DisableUserResult = (output, context) => {
|
|
|
5862
6537
|
const deserializeAws_json1_1DisassociateApplicationFleetResult = (output, context) => {
|
|
5863
6538
|
return {};
|
|
5864
6539
|
};
|
|
6540
|
+
const deserializeAws_json1_1DisassociateApplicationFromEntitlementResult = (output, context) => {
|
|
6541
|
+
return {};
|
|
6542
|
+
};
|
|
5865
6543
|
const deserializeAws_json1_1DisassociateFleetResult = (output, context) => {
|
|
5866
6544
|
return {};
|
|
5867
6545
|
};
|
|
@@ -5894,6 +6572,74 @@ const deserializeAws_json1_1EmbedHostDomains = (output, context) => {
|
|
|
5894
6572
|
const deserializeAws_json1_1EnableUserResult = (output, context) => {
|
|
5895
6573
|
return {};
|
|
5896
6574
|
};
|
|
6575
|
+
const deserializeAws_json1_1EntitledApplication = (output, context) => {
|
|
6576
|
+
return {
|
|
6577
|
+
ApplicationIdentifier: smithy_client_1.expectString(output.ApplicationIdentifier),
|
|
6578
|
+
};
|
|
6579
|
+
};
|
|
6580
|
+
const deserializeAws_json1_1EntitledApplicationList = (output, context) => {
|
|
6581
|
+
return (output || [])
|
|
6582
|
+
.filter((e) => e != null)
|
|
6583
|
+
.map((entry) => {
|
|
6584
|
+
if (entry === null) {
|
|
6585
|
+
return null;
|
|
6586
|
+
}
|
|
6587
|
+
return deserializeAws_json1_1EntitledApplication(entry, context);
|
|
6588
|
+
});
|
|
6589
|
+
};
|
|
6590
|
+
const deserializeAws_json1_1Entitlement = (output, context) => {
|
|
6591
|
+
return {
|
|
6592
|
+
AppVisibility: smithy_client_1.expectString(output.AppVisibility),
|
|
6593
|
+
Attributes: output.Attributes !== undefined && output.Attributes !== null
|
|
6594
|
+
? deserializeAws_json1_1EntitlementAttributeList(output.Attributes, context)
|
|
6595
|
+
: undefined,
|
|
6596
|
+
CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
|
|
6597
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTime)))
|
|
6598
|
+
: undefined,
|
|
6599
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
6600
|
+
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
6601
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
|
|
6602
|
+
: undefined,
|
|
6603
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
6604
|
+
StackName: smithy_client_1.expectString(output.StackName),
|
|
6605
|
+
};
|
|
6606
|
+
};
|
|
6607
|
+
const deserializeAws_json1_1EntitlementAlreadyExistsException = (output, context) => {
|
|
6608
|
+
return {
|
|
6609
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
6610
|
+
};
|
|
6611
|
+
};
|
|
6612
|
+
const deserializeAws_json1_1EntitlementAttribute = (output, context) => {
|
|
6613
|
+
return {
|
|
6614
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
6615
|
+
Value: smithy_client_1.expectString(output.Value),
|
|
6616
|
+
};
|
|
6617
|
+
};
|
|
6618
|
+
const deserializeAws_json1_1EntitlementAttributeList = (output, context) => {
|
|
6619
|
+
return (output || [])
|
|
6620
|
+
.filter((e) => e != null)
|
|
6621
|
+
.map((entry) => {
|
|
6622
|
+
if (entry === null) {
|
|
6623
|
+
return null;
|
|
6624
|
+
}
|
|
6625
|
+
return deserializeAws_json1_1EntitlementAttribute(entry, context);
|
|
6626
|
+
});
|
|
6627
|
+
};
|
|
6628
|
+
const deserializeAws_json1_1EntitlementList = (output, context) => {
|
|
6629
|
+
return (output || [])
|
|
6630
|
+
.filter((e) => e != null)
|
|
6631
|
+
.map((entry) => {
|
|
6632
|
+
if (entry === null) {
|
|
6633
|
+
return null;
|
|
6634
|
+
}
|
|
6635
|
+
return deserializeAws_json1_1Entitlement(entry, context);
|
|
6636
|
+
});
|
|
6637
|
+
};
|
|
6638
|
+
const deserializeAws_json1_1EntitlementNotFoundException = (output, context) => {
|
|
6639
|
+
return {
|
|
6640
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
6641
|
+
};
|
|
6642
|
+
};
|
|
5897
6643
|
const deserializeAws_json1_1ExpireSessionResult = (output, context) => {
|
|
5898
6644
|
return {};
|
|
5899
6645
|
};
|
|
@@ -6126,6 +6872,14 @@ const deserializeAws_json1_1ListAssociatedStacksResult = (output, context) => {
|
|
|
6126
6872
|
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
6127
6873
|
};
|
|
6128
6874
|
};
|
|
6875
|
+
const deserializeAws_json1_1ListEntitledApplicationsResult = (output, context) => {
|
|
6876
|
+
return {
|
|
6877
|
+
EntitledApplications: output.EntitledApplications !== undefined && output.EntitledApplications !== null
|
|
6878
|
+
? deserializeAws_json1_1EntitledApplicationList(output.EntitledApplications, context)
|
|
6879
|
+
: undefined,
|
|
6880
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
6881
|
+
};
|
|
6882
|
+
};
|
|
6129
6883
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
6130
6884
|
return {
|
|
6131
6885
|
Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
@@ -6444,6 +7198,13 @@ const deserializeAws_json1_1UpdateDirectoryConfigResult = (output, context) => {
|
|
|
6444
7198
|
: undefined,
|
|
6445
7199
|
};
|
|
6446
7200
|
};
|
|
7201
|
+
const deserializeAws_json1_1UpdateEntitlementResult = (output, context) => {
|
|
7202
|
+
return {
|
|
7203
|
+
Entitlement: output.Entitlement !== undefined && output.Entitlement !== null
|
|
7204
|
+
? deserializeAws_json1_1Entitlement(output.Entitlement, context)
|
|
7205
|
+
: undefined,
|
|
7206
|
+
};
|
|
7207
|
+
};
|
|
6447
7208
|
const deserializeAws_json1_1UpdateFleetResult = (output, context) => {
|
|
6448
7209
|
return {
|
|
6449
7210
|
Fleet: output.Fleet !== undefined && output.Fleet !== null
|