@aws-sdk/client-appstream 3.41.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 +51 -0
- package/README.md +7 -7
- package/dist-cjs/AppStream.js +255 -0
- package/dist-cjs/commands/AssociateApplicationFleetCommand.js +36 -0
- package/dist-cjs/commands/AssociateApplicationToEntitlementCommand.js +36 -0
- package/dist-cjs/commands/CreateAppBlockCommand.js +36 -0
- package/dist-cjs/commands/CreateApplicationCommand.js +36 -0
- package/dist-cjs/commands/CreateEntitlementCommand.js +36 -0
- package/dist-cjs/commands/DeleteAppBlockCommand.js +36 -0
- package/dist-cjs/commands/DeleteApplicationCommand.js +36 -0
- package/dist-cjs/commands/DeleteEntitlementCommand.js +36 -0
- package/dist-cjs/commands/DescribeAppBlocksCommand.js +36 -0
- package/dist-cjs/commands/DescribeApplicationFleetAssociationsCommand.js +36 -0
- package/dist-cjs/commands/DescribeApplicationsCommand.js +36 -0
- package/dist-cjs/commands/DescribeEntitlementsCommand.js +36 -0
- package/dist-cjs/commands/DisassociateApplicationFleetCommand.js +36 -0
- package/dist-cjs/commands/DisassociateApplicationFromEntitlementCommand.js +36 -0
- package/dist-cjs/commands/ListEntitledApplicationsCommand.js +36 -0
- package/dist-cjs/commands/UpdateApplicationCommand.js +36 -0
- package/dist-cjs/commands/UpdateEntitlementCommand.js +36 -0
- package/dist-cjs/commands/index.js +17 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +303 -32
- package/dist-cjs/protocols/Aws_json1_1.js +1969 -112
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/AppStream.js +255 -0
- package/dist-es/commands/AssociateApplicationFleetCommand.js +39 -0
- package/dist-es/commands/AssociateApplicationToEntitlementCommand.js +39 -0
- package/dist-es/commands/CreateAppBlockCommand.js +39 -0
- package/dist-es/commands/CreateApplicationCommand.js +39 -0
- package/dist-es/commands/CreateEntitlementCommand.js +39 -0
- package/dist-es/commands/DeleteAppBlockCommand.js +39 -0
- package/dist-es/commands/DeleteApplicationCommand.js +39 -0
- package/dist-es/commands/DeleteEntitlementCommand.js +39 -0
- package/dist-es/commands/DescribeAppBlocksCommand.js +39 -0
- package/dist-es/commands/DescribeApplicationFleetAssociationsCommand.js +39 -0
- package/dist-es/commands/DescribeApplicationsCommand.js +39 -0
- package/dist-es/commands/DescribeEntitlementsCommand.js +39 -0
- package/dist-es/commands/DisassociateApplicationFleetCommand.js +39 -0
- package/dist-es/commands/DisassociateApplicationFromEntitlementCommand.js +39 -0
- package/dist-es/commands/ListEntitledApplicationsCommand.js +39 -0
- package/dist-es/commands/UpdateApplicationCommand.js +39 -0
- package/dist-es/commands/UpdateEntitlementCommand.js +39 -0
- package/dist-es/commands/index.js +17 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +208 -24
- package/dist-es/protocols/Aws_json1_1.js +2284 -364
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/AppStream.d.ts +158 -4
- package/dist-types/AppStreamClient.d.ts +19 -2
- package/dist-types/commands/AssociateApplicationFleetCommand.d.ts +35 -0
- package/dist-types/commands/AssociateApplicationToEntitlementCommand.d.ts +35 -0
- package/dist-types/commands/CreateAppBlockCommand.d.ts +41 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +41 -0
- package/dist-types/commands/CreateEntitlementCommand.d.ts +40 -0
- package/dist-types/commands/CreateFleetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAppBlockCommand.d.ts +35 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +35 -0
- package/dist-types/commands/DeleteEntitlementCommand.d.ts +35 -0
- package/dist-types/commands/DescribeAppBlocksCommand.d.ts +35 -0
- package/dist-types/commands/DescribeApplicationFleetAssociationsCommand.d.ts +35 -0
- package/dist-types/commands/DescribeApplicationsCommand.d.ts +35 -0
- package/dist-types/commands/DescribeEntitlementsCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateApplicationFleetCommand.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/UpdateApplicationCommand.d.ts +35 -0
- package/dist-types/commands/UpdateEntitlementCommand.d.ts +35 -0
- package/dist-types/commands/UpdateFleetCommand.d.ts +21 -3
- package/dist-types/commands/index.d.ts +17 -0
- package/dist-types/models/models_0.d.ts +1036 -65
- package/dist-types/protocols/Aws_json1_1.d.ts +51 -0
- package/dist-types/ts3.4/AppStream.d.ts +85 -0
- package/dist-types/ts3.4/AppStreamClient.d.ts +19 -2
- package/dist-types/ts3.4/commands/AssociateApplicationFleetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AssociateApplicationToEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateAppBlockCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAppBlockCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAppBlocksCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeApplicationFleetAssociationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeApplicationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeEntitlementsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateApplicationFleetCommand.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/UpdateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +17 -0
- package/dist-types/ts3.4/models/models_0.d.ts +583 -42
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +51 -0
- package/package.json +37 -44
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
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;
|
|
5
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
+
const serializeAws_json1_1AssociateApplicationFleetCommand = async (input, context) => {
|
|
9
|
+
const headers = {
|
|
10
|
+
"content-type": "application/x-amz-json-1.1",
|
|
11
|
+
"x-amz-target": "PhotonAdminProxyService.AssociateApplicationFleet",
|
|
12
|
+
};
|
|
13
|
+
let body;
|
|
14
|
+
body = JSON.stringify(serializeAws_json1_1AssociateApplicationFleetRequest(input, context));
|
|
15
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
|
+
};
|
|
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;
|
|
7
28
|
const serializeAws_json1_1AssociateFleetCommand = async (input, context) => {
|
|
8
29
|
const headers = {
|
|
9
30
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -44,6 +65,26 @@ const serializeAws_json1_1CopyImageCommand = async (input, context) => {
|
|
|
44
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
45
66
|
};
|
|
46
67
|
exports.serializeAws_json1_1CopyImageCommand = serializeAws_json1_1CopyImageCommand;
|
|
68
|
+
const serializeAws_json1_1CreateAppBlockCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "PhotonAdminProxyService.CreateAppBlock",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1CreateAppBlockRequest(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
exports.serializeAws_json1_1CreateAppBlockCommand = serializeAws_json1_1CreateAppBlockCommand;
|
|
78
|
+
const serializeAws_json1_1CreateApplicationCommand = async (input, context) => {
|
|
79
|
+
const headers = {
|
|
80
|
+
"content-type": "application/x-amz-json-1.1",
|
|
81
|
+
"x-amz-target": "PhotonAdminProxyService.CreateApplication",
|
|
82
|
+
};
|
|
83
|
+
let body;
|
|
84
|
+
body = JSON.stringify(serializeAws_json1_1CreateApplicationRequest(input, context));
|
|
85
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
+
};
|
|
87
|
+
exports.serializeAws_json1_1CreateApplicationCommand = serializeAws_json1_1CreateApplicationCommand;
|
|
47
88
|
const serializeAws_json1_1CreateDirectoryConfigCommand = async (input, context) => {
|
|
48
89
|
const headers = {
|
|
49
90
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -54,6 +95,16 @@ const serializeAws_json1_1CreateDirectoryConfigCommand = async (input, context)
|
|
|
54
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
96
|
};
|
|
56
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;
|
|
57
108
|
const serializeAws_json1_1CreateFleetCommand = async (input, context) => {
|
|
58
109
|
const headers = {
|
|
59
110
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -134,6 +185,26 @@ const serializeAws_json1_1CreateUserCommand = async (input, context) => {
|
|
|
134
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
186
|
};
|
|
136
187
|
exports.serializeAws_json1_1CreateUserCommand = serializeAws_json1_1CreateUserCommand;
|
|
188
|
+
const serializeAws_json1_1DeleteAppBlockCommand = async (input, context) => {
|
|
189
|
+
const headers = {
|
|
190
|
+
"content-type": "application/x-amz-json-1.1",
|
|
191
|
+
"x-amz-target": "PhotonAdminProxyService.DeleteAppBlock",
|
|
192
|
+
};
|
|
193
|
+
let body;
|
|
194
|
+
body = JSON.stringify(serializeAws_json1_1DeleteAppBlockRequest(input, context));
|
|
195
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
|
+
};
|
|
197
|
+
exports.serializeAws_json1_1DeleteAppBlockCommand = serializeAws_json1_1DeleteAppBlockCommand;
|
|
198
|
+
const serializeAws_json1_1DeleteApplicationCommand = async (input, context) => {
|
|
199
|
+
const headers = {
|
|
200
|
+
"content-type": "application/x-amz-json-1.1",
|
|
201
|
+
"x-amz-target": "PhotonAdminProxyService.DeleteApplication",
|
|
202
|
+
};
|
|
203
|
+
let body;
|
|
204
|
+
body = JSON.stringify(serializeAws_json1_1DeleteApplicationRequest(input, context));
|
|
205
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
|
+
};
|
|
207
|
+
exports.serializeAws_json1_1DeleteApplicationCommand = serializeAws_json1_1DeleteApplicationCommand;
|
|
137
208
|
const serializeAws_json1_1DeleteDirectoryConfigCommand = async (input, context) => {
|
|
138
209
|
const headers = {
|
|
139
210
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -144,6 +215,16 @@ const serializeAws_json1_1DeleteDirectoryConfigCommand = async (input, context)
|
|
|
144
215
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
145
216
|
};
|
|
146
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;
|
|
147
228
|
const serializeAws_json1_1DeleteFleetCommand = async (input, context) => {
|
|
148
229
|
const headers = {
|
|
149
230
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -214,6 +295,36 @@ const serializeAws_json1_1DeleteUserCommand = async (input, context) => {
|
|
|
214
295
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
296
|
};
|
|
216
297
|
exports.serializeAws_json1_1DeleteUserCommand = serializeAws_json1_1DeleteUserCommand;
|
|
298
|
+
const serializeAws_json1_1DescribeAppBlocksCommand = async (input, context) => {
|
|
299
|
+
const headers = {
|
|
300
|
+
"content-type": "application/x-amz-json-1.1",
|
|
301
|
+
"x-amz-target": "PhotonAdminProxyService.DescribeAppBlocks",
|
|
302
|
+
};
|
|
303
|
+
let body;
|
|
304
|
+
body = JSON.stringify(serializeAws_json1_1DescribeAppBlocksRequest(input, context));
|
|
305
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
306
|
+
};
|
|
307
|
+
exports.serializeAws_json1_1DescribeAppBlocksCommand = serializeAws_json1_1DescribeAppBlocksCommand;
|
|
308
|
+
const serializeAws_json1_1DescribeApplicationFleetAssociationsCommand = async (input, context) => {
|
|
309
|
+
const headers = {
|
|
310
|
+
"content-type": "application/x-amz-json-1.1",
|
|
311
|
+
"x-amz-target": "PhotonAdminProxyService.DescribeApplicationFleetAssociations",
|
|
312
|
+
};
|
|
313
|
+
let body;
|
|
314
|
+
body = JSON.stringify(serializeAws_json1_1DescribeApplicationFleetAssociationsRequest(input, context));
|
|
315
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
316
|
+
};
|
|
317
|
+
exports.serializeAws_json1_1DescribeApplicationFleetAssociationsCommand = serializeAws_json1_1DescribeApplicationFleetAssociationsCommand;
|
|
318
|
+
const serializeAws_json1_1DescribeApplicationsCommand = async (input, context) => {
|
|
319
|
+
const headers = {
|
|
320
|
+
"content-type": "application/x-amz-json-1.1",
|
|
321
|
+
"x-amz-target": "PhotonAdminProxyService.DescribeApplications",
|
|
322
|
+
};
|
|
323
|
+
let body;
|
|
324
|
+
body = JSON.stringify(serializeAws_json1_1DescribeApplicationsRequest(input, context));
|
|
325
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
326
|
+
};
|
|
327
|
+
exports.serializeAws_json1_1DescribeApplicationsCommand = serializeAws_json1_1DescribeApplicationsCommand;
|
|
217
328
|
const serializeAws_json1_1DescribeDirectoryConfigsCommand = async (input, context) => {
|
|
218
329
|
const headers = {
|
|
219
330
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -224,6 +335,16 @@ const serializeAws_json1_1DescribeDirectoryConfigsCommand = async (input, contex
|
|
|
224
335
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
336
|
};
|
|
226
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;
|
|
227
348
|
const serializeAws_json1_1DescribeFleetsCommand = async (input, context) => {
|
|
228
349
|
const headers = {
|
|
229
350
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -324,6 +445,26 @@ const serializeAws_json1_1DisableUserCommand = async (input, context) => {
|
|
|
324
445
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
325
446
|
};
|
|
326
447
|
exports.serializeAws_json1_1DisableUserCommand = serializeAws_json1_1DisableUserCommand;
|
|
448
|
+
const serializeAws_json1_1DisassociateApplicationFleetCommand = async (input, context) => {
|
|
449
|
+
const headers = {
|
|
450
|
+
"content-type": "application/x-amz-json-1.1",
|
|
451
|
+
"x-amz-target": "PhotonAdminProxyService.DisassociateApplicationFleet",
|
|
452
|
+
};
|
|
453
|
+
let body;
|
|
454
|
+
body = JSON.stringify(serializeAws_json1_1DisassociateApplicationFleetRequest(input, context));
|
|
455
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
456
|
+
};
|
|
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;
|
|
327
468
|
const serializeAws_json1_1DisassociateFleetCommand = async (input, context) => {
|
|
328
469
|
const headers = {
|
|
329
470
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -374,6 +515,16 @@ const serializeAws_json1_1ListAssociatedStacksCommand = async (input, context) =
|
|
|
374
515
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
375
516
|
};
|
|
376
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;
|
|
377
528
|
const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
378
529
|
const headers = {
|
|
379
530
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -444,6 +595,16 @@ const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
|
444
595
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
445
596
|
};
|
|
446
597
|
exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand;
|
|
598
|
+
const serializeAws_json1_1UpdateApplicationCommand = async (input, context) => {
|
|
599
|
+
const headers = {
|
|
600
|
+
"content-type": "application/x-amz-json-1.1",
|
|
601
|
+
"x-amz-target": "PhotonAdminProxyService.UpdateApplication",
|
|
602
|
+
};
|
|
603
|
+
let body;
|
|
604
|
+
body = JSON.stringify(serializeAws_json1_1UpdateApplicationRequest(input, context));
|
|
605
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
606
|
+
};
|
|
607
|
+
exports.serializeAws_json1_1UpdateApplicationCommand = serializeAws_json1_1UpdateApplicationCommand;
|
|
447
608
|
const serializeAws_json1_1UpdateDirectoryConfigCommand = async (input, context) => {
|
|
448
609
|
const headers = {
|
|
449
610
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -454,6 +615,16 @@ const serializeAws_json1_1UpdateDirectoryConfigCommand = async (input, context)
|
|
|
454
615
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
455
616
|
};
|
|
456
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;
|
|
457
628
|
const serializeAws_json1_1UpdateFleetCommand = async (input, context) => {
|
|
458
629
|
const headers = {
|
|
459
630
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -484,6 +655,156 @@ const serializeAws_json1_1UpdateStackCommand = async (input, context) => {
|
|
|
484
655
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
485
656
|
};
|
|
486
657
|
exports.serializeAws_json1_1UpdateStackCommand = serializeAws_json1_1UpdateStackCommand;
|
|
658
|
+
const deserializeAws_json1_1AssociateApplicationFleetCommand = async (output, context) => {
|
|
659
|
+
if (output.statusCode >= 300) {
|
|
660
|
+
return deserializeAws_json1_1AssociateApplicationFleetCommandError(output, context);
|
|
661
|
+
}
|
|
662
|
+
const data = await parseBody(output.body, context);
|
|
663
|
+
let contents = {};
|
|
664
|
+
contents = deserializeAws_json1_1AssociateApplicationFleetResult(data, context);
|
|
665
|
+
const response = {
|
|
666
|
+
$metadata: deserializeMetadata(output),
|
|
667
|
+
...contents,
|
|
668
|
+
};
|
|
669
|
+
return Promise.resolve(response);
|
|
670
|
+
};
|
|
671
|
+
exports.deserializeAws_json1_1AssociateApplicationFleetCommand = deserializeAws_json1_1AssociateApplicationFleetCommand;
|
|
672
|
+
const deserializeAws_json1_1AssociateApplicationFleetCommandError = async (output, context) => {
|
|
673
|
+
const parsedOutput = {
|
|
674
|
+
...output,
|
|
675
|
+
body: await parseBody(output.body, context),
|
|
676
|
+
};
|
|
677
|
+
let response;
|
|
678
|
+
let errorCode = "UnknownError";
|
|
679
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
|
+
switch (errorCode) {
|
|
681
|
+
case "ConcurrentModificationException":
|
|
682
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
683
|
+
response = {
|
|
684
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
685
|
+
name: errorCode,
|
|
686
|
+
$metadata: deserializeMetadata(output),
|
|
687
|
+
};
|
|
688
|
+
break;
|
|
689
|
+
case "InvalidParameterCombinationException":
|
|
690
|
+
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
691
|
+
response = {
|
|
692
|
+
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
693
|
+
name: errorCode,
|
|
694
|
+
$metadata: deserializeMetadata(output),
|
|
695
|
+
};
|
|
696
|
+
break;
|
|
697
|
+
case "LimitExceededException":
|
|
698
|
+
case "com.amazonaws.appstream#LimitExceededException":
|
|
699
|
+
response = {
|
|
700
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
701
|
+
name: errorCode,
|
|
702
|
+
$metadata: deserializeMetadata(output),
|
|
703
|
+
};
|
|
704
|
+
break;
|
|
705
|
+
case "OperationNotPermittedException":
|
|
706
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
707
|
+
response = {
|
|
708
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
709
|
+
name: errorCode,
|
|
710
|
+
$metadata: deserializeMetadata(output),
|
|
711
|
+
};
|
|
712
|
+
break;
|
|
713
|
+
case "ResourceNotFoundException":
|
|
714
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
715
|
+
response = {
|
|
716
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
717
|
+
name: errorCode,
|
|
718
|
+
$metadata: deserializeMetadata(output),
|
|
719
|
+
};
|
|
720
|
+
break;
|
|
721
|
+
default:
|
|
722
|
+
const parsedBody = parsedOutput.body;
|
|
723
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
724
|
+
response = {
|
|
725
|
+
...parsedBody,
|
|
726
|
+
name: `${errorCode}`,
|
|
727
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
728
|
+
$fault: "client",
|
|
729
|
+
$metadata: deserializeMetadata(output),
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
const message = response.message || response.Message || errorCode;
|
|
733
|
+
response.message = message;
|
|
734
|
+
delete response.Message;
|
|
735
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
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
|
+
};
|
|
487
808
|
const deserializeAws_json1_1AssociateFleetCommand = async (output, context) => {
|
|
488
809
|
if (output.statusCode >= 300) {
|
|
489
810
|
return deserializeAws_json1_1AssociateFleetCommandError(output, context);
|
|
@@ -768,21 +1089,21 @@ const deserializeAws_json1_1CopyImageCommandError = async (output, context) => {
|
|
|
768
1089
|
delete response.Message;
|
|
769
1090
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
770
1091
|
};
|
|
771
|
-
const
|
|
1092
|
+
const deserializeAws_json1_1CreateAppBlockCommand = async (output, context) => {
|
|
772
1093
|
if (output.statusCode >= 300) {
|
|
773
|
-
return
|
|
1094
|
+
return deserializeAws_json1_1CreateAppBlockCommandError(output, context);
|
|
774
1095
|
}
|
|
775
1096
|
const data = await parseBody(output.body, context);
|
|
776
1097
|
let contents = {};
|
|
777
|
-
contents =
|
|
1098
|
+
contents = deserializeAws_json1_1CreateAppBlockResult(data, context);
|
|
778
1099
|
const response = {
|
|
779
1100
|
$metadata: deserializeMetadata(output),
|
|
780
1101
|
...contents,
|
|
781
1102
|
};
|
|
782
1103
|
return Promise.resolve(response);
|
|
783
1104
|
};
|
|
784
|
-
exports.
|
|
785
|
-
const
|
|
1105
|
+
exports.deserializeAws_json1_1CreateAppBlockCommand = deserializeAws_json1_1CreateAppBlockCommand;
|
|
1106
|
+
const deserializeAws_json1_1CreateAppBlockCommandError = async (output, context) => {
|
|
786
1107
|
const parsedOutput = {
|
|
787
1108
|
...output,
|
|
788
1109
|
body: await parseBody(output.body, context),
|
|
@@ -791,18 +1112,168 @@ const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, c
|
|
|
791
1112
|
let errorCode = "UnknownError";
|
|
792
1113
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
1114
|
switch (errorCode) {
|
|
794
|
-
case "
|
|
795
|
-
case "com.amazonaws.appstream#
|
|
1115
|
+
case "ConcurrentModificationException":
|
|
1116
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
796
1117
|
response = {
|
|
797
|
-
...(await
|
|
1118
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
798
1119
|
name: errorCode,
|
|
799
1120
|
$metadata: deserializeMetadata(output),
|
|
800
1121
|
};
|
|
801
1122
|
break;
|
|
802
|
-
case "
|
|
803
|
-
case "com.amazonaws.appstream#
|
|
1123
|
+
case "LimitExceededException":
|
|
1124
|
+
case "com.amazonaws.appstream#LimitExceededException":
|
|
804
1125
|
response = {
|
|
805
|
-
...(await
|
|
1126
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1127
|
+
name: errorCode,
|
|
1128
|
+
$metadata: deserializeMetadata(output),
|
|
1129
|
+
};
|
|
1130
|
+
break;
|
|
1131
|
+
case "OperationNotPermittedException":
|
|
1132
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1133
|
+
response = {
|
|
1134
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1135
|
+
name: errorCode,
|
|
1136
|
+
$metadata: deserializeMetadata(output),
|
|
1137
|
+
};
|
|
1138
|
+
break;
|
|
1139
|
+
case "ResourceAlreadyExistsException":
|
|
1140
|
+
case "com.amazonaws.appstream#ResourceAlreadyExistsException":
|
|
1141
|
+
response = {
|
|
1142
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1143
|
+
name: errorCode,
|
|
1144
|
+
$metadata: deserializeMetadata(output),
|
|
1145
|
+
};
|
|
1146
|
+
break;
|
|
1147
|
+
default:
|
|
1148
|
+
const parsedBody = parsedOutput.body;
|
|
1149
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1150
|
+
response = {
|
|
1151
|
+
...parsedBody,
|
|
1152
|
+
name: `${errorCode}`,
|
|
1153
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1154
|
+
$fault: "client",
|
|
1155
|
+
$metadata: deserializeMetadata(output),
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
const message = response.message || response.Message || errorCode;
|
|
1159
|
+
response.message = message;
|
|
1160
|
+
delete response.Message;
|
|
1161
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1162
|
+
};
|
|
1163
|
+
const deserializeAws_json1_1CreateApplicationCommand = async (output, context) => {
|
|
1164
|
+
if (output.statusCode >= 300) {
|
|
1165
|
+
return deserializeAws_json1_1CreateApplicationCommandError(output, context);
|
|
1166
|
+
}
|
|
1167
|
+
const data = await parseBody(output.body, context);
|
|
1168
|
+
let contents = {};
|
|
1169
|
+
contents = deserializeAws_json1_1CreateApplicationResult(data, context);
|
|
1170
|
+
const response = {
|
|
1171
|
+
$metadata: deserializeMetadata(output),
|
|
1172
|
+
...contents,
|
|
1173
|
+
};
|
|
1174
|
+
return Promise.resolve(response);
|
|
1175
|
+
};
|
|
1176
|
+
exports.deserializeAws_json1_1CreateApplicationCommand = deserializeAws_json1_1CreateApplicationCommand;
|
|
1177
|
+
const deserializeAws_json1_1CreateApplicationCommandError = async (output, context) => {
|
|
1178
|
+
const parsedOutput = {
|
|
1179
|
+
...output,
|
|
1180
|
+
body: await parseBody(output.body, context),
|
|
1181
|
+
};
|
|
1182
|
+
let response;
|
|
1183
|
+
let errorCode = "UnknownError";
|
|
1184
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1185
|
+
switch (errorCode) {
|
|
1186
|
+
case "ConcurrentModificationException":
|
|
1187
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
1188
|
+
response = {
|
|
1189
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1190
|
+
name: errorCode,
|
|
1191
|
+
$metadata: deserializeMetadata(output),
|
|
1192
|
+
};
|
|
1193
|
+
break;
|
|
1194
|
+
case "LimitExceededException":
|
|
1195
|
+
case "com.amazonaws.appstream#LimitExceededException":
|
|
1196
|
+
response = {
|
|
1197
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1198
|
+
name: errorCode,
|
|
1199
|
+
$metadata: deserializeMetadata(output),
|
|
1200
|
+
};
|
|
1201
|
+
break;
|
|
1202
|
+
case "OperationNotPermittedException":
|
|
1203
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1204
|
+
response = {
|
|
1205
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1206
|
+
name: errorCode,
|
|
1207
|
+
$metadata: deserializeMetadata(output),
|
|
1208
|
+
};
|
|
1209
|
+
break;
|
|
1210
|
+
case "ResourceAlreadyExistsException":
|
|
1211
|
+
case "com.amazonaws.appstream#ResourceAlreadyExistsException":
|
|
1212
|
+
response = {
|
|
1213
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1214
|
+
name: errorCode,
|
|
1215
|
+
$metadata: deserializeMetadata(output),
|
|
1216
|
+
};
|
|
1217
|
+
break;
|
|
1218
|
+
case "ResourceNotFoundException":
|
|
1219
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
1220
|
+
response = {
|
|
1221
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1222
|
+
name: errorCode,
|
|
1223
|
+
$metadata: deserializeMetadata(output),
|
|
1224
|
+
};
|
|
1225
|
+
break;
|
|
1226
|
+
default:
|
|
1227
|
+
const parsedBody = parsedOutput.body;
|
|
1228
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1229
|
+
response = {
|
|
1230
|
+
...parsedBody,
|
|
1231
|
+
name: `${errorCode}`,
|
|
1232
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1233
|
+
$fault: "client",
|
|
1234
|
+
$metadata: deserializeMetadata(output),
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
const message = response.message || response.Message || errorCode;
|
|
1238
|
+
response.message = message;
|
|
1239
|
+
delete response.Message;
|
|
1240
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1241
|
+
};
|
|
1242
|
+
const deserializeAws_json1_1CreateDirectoryConfigCommand = async (output, context) => {
|
|
1243
|
+
if (output.statusCode >= 300) {
|
|
1244
|
+
return deserializeAws_json1_1CreateDirectoryConfigCommandError(output, context);
|
|
1245
|
+
}
|
|
1246
|
+
const data = await parseBody(output.body, context);
|
|
1247
|
+
let contents = {};
|
|
1248
|
+
contents = deserializeAws_json1_1CreateDirectoryConfigResult(data, context);
|
|
1249
|
+
const response = {
|
|
1250
|
+
$metadata: deserializeMetadata(output),
|
|
1251
|
+
...contents,
|
|
1252
|
+
};
|
|
1253
|
+
return Promise.resolve(response);
|
|
1254
|
+
};
|
|
1255
|
+
exports.deserializeAws_json1_1CreateDirectoryConfigCommand = deserializeAws_json1_1CreateDirectoryConfigCommand;
|
|
1256
|
+
const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, context) => {
|
|
1257
|
+
const parsedOutput = {
|
|
1258
|
+
...output,
|
|
1259
|
+
body: await parseBody(output.body, context),
|
|
1260
|
+
};
|
|
1261
|
+
let response;
|
|
1262
|
+
let errorCode = "UnknownError";
|
|
1263
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1264
|
+
switch (errorCode) {
|
|
1265
|
+
case "InvalidAccountStatusException":
|
|
1266
|
+
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
1267
|
+
response = {
|
|
1268
|
+
...(await deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)),
|
|
1269
|
+
name: errorCode,
|
|
1270
|
+
$metadata: deserializeMetadata(output),
|
|
1271
|
+
};
|
|
1272
|
+
break;
|
|
1273
|
+
case "InvalidRoleException":
|
|
1274
|
+
case "com.amazonaws.appstream#InvalidRoleException":
|
|
1275
|
+
response = {
|
|
1276
|
+
...(await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context)),
|
|
806
1277
|
name: errorCode,
|
|
807
1278
|
$metadata: deserializeMetadata(output),
|
|
808
1279
|
};
|
|
@@ -855,6 +1326,77 @@ const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, c
|
|
|
855
1326
|
delete response.Message;
|
|
856
1327
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
857
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
|
+
};
|
|
858
1400
|
const deserializeAws_json1_1CreateFleetCommand = async (output, context) => {
|
|
859
1401
|
if (output.statusCode >= 300) {
|
|
860
1402
|
return deserializeAws_json1_1CreateFleetCommandError(output, context);
|
|
@@ -1567,21 +2109,21 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
1567
2109
|
delete response.Message;
|
|
1568
2110
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1569
2111
|
};
|
|
1570
|
-
const
|
|
2112
|
+
const deserializeAws_json1_1DeleteAppBlockCommand = async (output, context) => {
|
|
1571
2113
|
if (output.statusCode >= 300) {
|
|
1572
|
-
return
|
|
2114
|
+
return deserializeAws_json1_1DeleteAppBlockCommandError(output, context);
|
|
1573
2115
|
}
|
|
1574
2116
|
const data = await parseBody(output.body, context);
|
|
1575
2117
|
let contents = {};
|
|
1576
|
-
contents =
|
|
2118
|
+
contents = deserializeAws_json1_1DeleteAppBlockResult(data, context);
|
|
1577
2119
|
const response = {
|
|
1578
2120
|
$metadata: deserializeMetadata(output),
|
|
1579
2121
|
...contents,
|
|
1580
2122
|
};
|
|
1581
2123
|
return Promise.resolve(response);
|
|
1582
2124
|
};
|
|
1583
|
-
exports.
|
|
1584
|
-
const
|
|
2125
|
+
exports.deserializeAws_json1_1DeleteAppBlockCommand = deserializeAws_json1_1DeleteAppBlockCommand;
|
|
2126
|
+
const deserializeAws_json1_1DeleteAppBlockCommandError = async (output, context) => {
|
|
1585
2127
|
const parsedOutput = {
|
|
1586
2128
|
...output,
|
|
1587
2129
|
body: await parseBody(output.body, context),
|
|
@@ -1590,6 +2132,14 @@ const deserializeAws_json1_1DeleteDirectoryConfigCommandError = async (output, c
|
|
|
1590
2132
|
let errorCode = "UnknownError";
|
|
1591
2133
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1592
2134
|
switch (errorCode) {
|
|
2135
|
+
case "ConcurrentModificationException":
|
|
2136
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
2137
|
+
response = {
|
|
2138
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2139
|
+
name: errorCode,
|
|
2140
|
+
$metadata: deserializeMetadata(output),
|
|
2141
|
+
};
|
|
2142
|
+
break;
|
|
1593
2143
|
case "ResourceInUseException":
|
|
1594
2144
|
case "com.amazonaws.appstream#ResourceInUseException":
|
|
1595
2145
|
response = {
|
|
@@ -1622,21 +2172,21 @@ const deserializeAws_json1_1DeleteDirectoryConfigCommandError = async (output, c
|
|
|
1622
2172
|
delete response.Message;
|
|
1623
2173
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1624
2174
|
};
|
|
1625
|
-
const
|
|
2175
|
+
const deserializeAws_json1_1DeleteApplicationCommand = async (output, context) => {
|
|
1626
2176
|
if (output.statusCode >= 300) {
|
|
1627
|
-
return
|
|
2177
|
+
return deserializeAws_json1_1DeleteApplicationCommandError(output, context);
|
|
1628
2178
|
}
|
|
1629
2179
|
const data = await parseBody(output.body, context);
|
|
1630
2180
|
let contents = {};
|
|
1631
|
-
contents =
|
|
2181
|
+
contents = deserializeAws_json1_1DeleteApplicationResult(data, context);
|
|
1632
2182
|
const response = {
|
|
1633
2183
|
$metadata: deserializeMetadata(output),
|
|
1634
2184
|
...contents,
|
|
1635
2185
|
};
|
|
1636
2186
|
return Promise.resolve(response);
|
|
1637
2187
|
};
|
|
1638
|
-
exports.
|
|
1639
|
-
const
|
|
2188
|
+
exports.deserializeAws_json1_1DeleteApplicationCommand = deserializeAws_json1_1DeleteApplicationCommand;
|
|
2189
|
+
const deserializeAws_json1_1DeleteApplicationCommandError = async (output, context) => {
|
|
1640
2190
|
const parsedOutput = {
|
|
1641
2191
|
...output,
|
|
1642
2192
|
body: await parseBody(output.body, context),
|
|
@@ -1653,6 +2203,14 @@ const deserializeAws_json1_1DeleteFleetCommandError = async (output, context) =>
|
|
|
1653
2203
|
$metadata: deserializeMetadata(output),
|
|
1654
2204
|
};
|
|
1655
2205
|
break;
|
|
2206
|
+
case "OperationNotPermittedException":
|
|
2207
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
2208
|
+
response = {
|
|
2209
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2210
|
+
name: errorCode,
|
|
2211
|
+
$metadata: deserializeMetadata(output),
|
|
2212
|
+
};
|
|
2213
|
+
break;
|
|
1656
2214
|
case "ResourceInUseException":
|
|
1657
2215
|
case "com.amazonaws.appstream#ResourceInUseException":
|
|
1658
2216
|
response = {
|
|
@@ -1685,21 +2243,21 @@ const deserializeAws_json1_1DeleteFleetCommandError = async (output, context) =>
|
|
|
1685
2243
|
delete response.Message;
|
|
1686
2244
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1687
2245
|
};
|
|
1688
|
-
const
|
|
2246
|
+
const deserializeAws_json1_1DeleteDirectoryConfigCommand = async (output, context) => {
|
|
1689
2247
|
if (output.statusCode >= 300) {
|
|
1690
|
-
return
|
|
2248
|
+
return deserializeAws_json1_1DeleteDirectoryConfigCommandError(output, context);
|
|
1691
2249
|
}
|
|
1692
2250
|
const data = await parseBody(output.body, context);
|
|
1693
2251
|
let contents = {};
|
|
1694
|
-
contents =
|
|
2252
|
+
contents = deserializeAws_json1_1DeleteDirectoryConfigResult(data, context);
|
|
1695
2253
|
const response = {
|
|
1696
2254
|
$metadata: deserializeMetadata(output),
|
|
1697
2255
|
...contents,
|
|
1698
2256
|
};
|
|
1699
2257
|
return Promise.resolve(response);
|
|
1700
2258
|
};
|
|
1701
|
-
exports.
|
|
1702
|
-
const
|
|
2259
|
+
exports.deserializeAws_json1_1DeleteDirectoryConfigCommand = deserializeAws_json1_1DeleteDirectoryConfigCommand;
|
|
2260
|
+
const deserializeAws_json1_1DeleteDirectoryConfigCommandError = async (output, context) => {
|
|
1703
2261
|
const parsedOutput = {
|
|
1704
2262
|
...output,
|
|
1705
2263
|
body: await parseBody(output.body, context),
|
|
@@ -1708,18 +2266,207 @@ const deserializeAws_json1_1DeleteImageCommandError = async (output, context) =>
|
|
|
1708
2266
|
let errorCode = "UnknownError";
|
|
1709
2267
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
2268
|
switch (errorCode) {
|
|
1711
|
-
case "
|
|
1712
|
-
case "com.amazonaws.appstream#
|
|
2269
|
+
case "ResourceInUseException":
|
|
2270
|
+
case "com.amazonaws.appstream#ResourceInUseException":
|
|
1713
2271
|
response = {
|
|
1714
|
-
...(await
|
|
2272
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1715
2273
|
name: errorCode,
|
|
1716
2274
|
$metadata: deserializeMetadata(output),
|
|
1717
2275
|
};
|
|
1718
2276
|
break;
|
|
1719
|
-
case "
|
|
1720
|
-
case "com.amazonaws.appstream#
|
|
2277
|
+
case "ResourceNotFoundException":
|
|
2278
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
1721
2279
|
response = {
|
|
1722
|
-
...(await
|
|
2280
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2281
|
+
name: errorCode,
|
|
2282
|
+
$metadata: deserializeMetadata(output),
|
|
2283
|
+
};
|
|
2284
|
+
break;
|
|
2285
|
+
default:
|
|
2286
|
+
const parsedBody = parsedOutput.body;
|
|
2287
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2288
|
+
response = {
|
|
2289
|
+
...parsedBody,
|
|
2290
|
+
name: `${errorCode}`,
|
|
2291
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2292
|
+
$fault: "client",
|
|
2293
|
+
$metadata: deserializeMetadata(output),
|
|
2294
|
+
};
|
|
2295
|
+
}
|
|
2296
|
+
const message = response.message || response.Message || errorCode;
|
|
2297
|
+
response.message = message;
|
|
2298
|
+
delete response.Message;
|
|
2299
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
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
|
+
};
|
|
2372
|
+
const deserializeAws_json1_1DeleteFleetCommand = async (output, context) => {
|
|
2373
|
+
if (output.statusCode >= 300) {
|
|
2374
|
+
return deserializeAws_json1_1DeleteFleetCommandError(output, context);
|
|
2375
|
+
}
|
|
2376
|
+
const data = await parseBody(output.body, context);
|
|
2377
|
+
let contents = {};
|
|
2378
|
+
contents = deserializeAws_json1_1DeleteFleetResult(data, context);
|
|
2379
|
+
const response = {
|
|
2380
|
+
$metadata: deserializeMetadata(output),
|
|
2381
|
+
...contents,
|
|
2382
|
+
};
|
|
2383
|
+
return Promise.resolve(response);
|
|
2384
|
+
};
|
|
2385
|
+
exports.deserializeAws_json1_1DeleteFleetCommand = deserializeAws_json1_1DeleteFleetCommand;
|
|
2386
|
+
const deserializeAws_json1_1DeleteFleetCommandError = async (output, context) => {
|
|
2387
|
+
const parsedOutput = {
|
|
2388
|
+
...output,
|
|
2389
|
+
body: await parseBody(output.body, context),
|
|
2390
|
+
};
|
|
2391
|
+
let response;
|
|
2392
|
+
let errorCode = "UnknownError";
|
|
2393
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2394
|
+
switch (errorCode) {
|
|
2395
|
+
case "ConcurrentModificationException":
|
|
2396
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
2397
|
+
response = {
|
|
2398
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2399
|
+
name: errorCode,
|
|
2400
|
+
$metadata: deserializeMetadata(output),
|
|
2401
|
+
};
|
|
2402
|
+
break;
|
|
2403
|
+
case "ResourceInUseException":
|
|
2404
|
+
case "com.amazonaws.appstream#ResourceInUseException":
|
|
2405
|
+
response = {
|
|
2406
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2407
|
+
name: errorCode,
|
|
2408
|
+
$metadata: deserializeMetadata(output),
|
|
2409
|
+
};
|
|
2410
|
+
break;
|
|
2411
|
+
case "ResourceNotFoundException":
|
|
2412
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2413
|
+
response = {
|
|
2414
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2415
|
+
name: errorCode,
|
|
2416
|
+
$metadata: deserializeMetadata(output),
|
|
2417
|
+
};
|
|
2418
|
+
break;
|
|
2419
|
+
default:
|
|
2420
|
+
const parsedBody = parsedOutput.body;
|
|
2421
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2422
|
+
response = {
|
|
2423
|
+
...parsedBody,
|
|
2424
|
+
name: `${errorCode}`,
|
|
2425
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2426
|
+
$fault: "client",
|
|
2427
|
+
$metadata: deserializeMetadata(output),
|
|
2428
|
+
};
|
|
2429
|
+
}
|
|
2430
|
+
const message = response.message || response.Message || errorCode;
|
|
2431
|
+
response.message = message;
|
|
2432
|
+
delete response.Message;
|
|
2433
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2434
|
+
};
|
|
2435
|
+
const deserializeAws_json1_1DeleteImageCommand = async (output, context) => {
|
|
2436
|
+
if (output.statusCode >= 300) {
|
|
2437
|
+
return deserializeAws_json1_1DeleteImageCommandError(output, context);
|
|
2438
|
+
}
|
|
2439
|
+
const data = await parseBody(output.body, context);
|
|
2440
|
+
let contents = {};
|
|
2441
|
+
contents = deserializeAws_json1_1DeleteImageResult(data, context);
|
|
2442
|
+
const response = {
|
|
2443
|
+
$metadata: deserializeMetadata(output),
|
|
2444
|
+
...contents,
|
|
2445
|
+
};
|
|
2446
|
+
return Promise.resolve(response);
|
|
2447
|
+
};
|
|
2448
|
+
exports.deserializeAws_json1_1DeleteImageCommand = deserializeAws_json1_1DeleteImageCommand;
|
|
2449
|
+
const deserializeAws_json1_1DeleteImageCommandError = async (output, context) => {
|
|
2450
|
+
const parsedOutput = {
|
|
2451
|
+
...output,
|
|
2452
|
+
body: await parseBody(output.body, context),
|
|
2453
|
+
};
|
|
2454
|
+
let response;
|
|
2455
|
+
let errorCode = "UnknownError";
|
|
2456
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2457
|
+
switch (errorCode) {
|
|
2458
|
+
case "ConcurrentModificationException":
|
|
2459
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
2460
|
+
response = {
|
|
2461
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2462
|
+
name: errorCode,
|
|
2463
|
+
$metadata: deserializeMetadata(output),
|
|
2464
|
+
};
|
|
2465
|
+
break;
|
|
2466
|
+
case "OperationNotPermittedException":
|
|
2467
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
2468
|
+
response = {
|
|
2469
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1723
2470
|
name: errorCode,
|
|
1724
2471
|
$metadata: deserializeMetadata(output),
|
|
1725
2472
|
};
|
|
@@ -1762,15 +2509,259 @@ const deserializeAws_json1_1DeleteImageBuilderCommand = async (output, context)
|
|
|
1762
2509
|
}
|
|
1763
2510
|
const data = await parseBody(output.body, context);
|
|
1764
2511
|
let contents = {};
|
|
1765
|
-
contents = deserializeAws_json1_1DeleteImageBuilderResult(data, context);
|
|
2512
|
+
contents = deserializeAws_json1_1DeleteImageBuilderResult(data, context);
|
|
2513
|
+
const response = {
|
|
2514
|
+
$metadata: deserializeMetadata(output),
|
|
2515
|
+
...contents,
|
|
2516
|
+
};
|
|
2517
|
+
return Promise.resolve(response);
|
|
2518
|
+
};
|
|
2519
|
+
exports.deserializeAws_json1_1DeleteImageBuilderCommand = deserializeAws_json1_1DeleteImageBuilderCommand;
|
|
2520
|
+
const deserializeAws_json1_1DeleteImageBuilderCommandError = async (output, context) => {
|
|
2521
|
+
const parsedOutput = {
|
|
2522
|
+
...output,
|
|
2523
|
+
body: await parseBody(output.body, context),
|
|
2524
|
+
};
|
|
2525
|
+
let response;
|
|
2526
|
+
let errorCode = "UnknownError";
|
|
2527
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2528
|
+
switch (errorCode) {
|
|
2529
|
+
case "ConcurrentModificationException":
|
|
2530
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
2531
|
+
response = {
|
|
2532
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2533
|
+
name: errorCode,
|
|
2534
|
+
$metadata: deserializeMetadata(output),
|
|
2535
|
+
};
|
|
2536
|
+
break;
|
|
2537
|
+
case "OperationNotPermittedException":
|
|
2538
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
2539
|
+
response = {
|
|
2540
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2541
|
+
name: errorCode,
|
|
2542
|
+
$metadata: deserializeMetadata(output),
|
|
2543
|
+
};
|
|
2544
|
+
break;
|
|
2545
|
+
case "ResourceNotFoundException":
|
|
2546
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2547
|
+
response = {
|
|
2548
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2549
|
+
name: errorCode,
|
|
2550
|
+
$metadata: deserializeMetadata(output),
|
|
2551
|
+
};
|
|
2552
|
+
break;
|
|
2553
|
+
default:
|
|
2554
|
+
const parsedBody = parsedOutput.body;
|
|
2555
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2556
|
+
response = {
|
|
2557
|
+
...parsedBody,
|
|
2558
|
+
name: `${errorCode}`,
|
|
2559
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2560
|
+
$fault: "client",
|
|
2561
|
+
$metadata: deserializeMetadata(output),
|
|
2562
|
+
};
|
|
2563
|
+
}
|
|
2564
|
+
const message = response.message || response.Message || errorCode;
|
|
2565
|
+
response.message = message;
|
|
2566
|
+
delete response.Message;
|
|
2567
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2568
|
+
};
|
|
2569
|
+
const deserializeAws_json1_1DeleteImagePermissionsCommand = async (output, context) => {
|
|
2570
|
+
if (output.statusCode >= 300) {
|
|
2571
|
+
return deserializeAws_json1_1DeleteImagePermissionsCommandError(output, context);
|
|
2572
|
+
}
|
|
2573
|
+
const data = await parseBody(output.body, context);
|
|
2574
|
+
let contents = {};
|
|
2575
|
+
contents = deserializeAws_json1_1DeleteImagePermissionsResult(data, context);
|
|
2576
|
+
const response = {
|
|
2577
|
+
$metadata: deserializeMetadata(output),
|
|
2578
|
+
...contents,
|
|
2579
|
+
};
|
|
2580
|
+
return Promise.resolve(response);
|
|
2581
|
+
};
|
|
2582
|
+
exports.deserializeAws_json1_1DeleteImagePermissionsCommand = deserializeAws_json1_1DeleteImagePermissionsCommand;
|
|
2583
|
+
const deserializeAws_json1_1DeleteImagePermissionsCommandError = async (output, context) => {
|
|
2584
|
+
const parsedOutput = {
|
|
2585
|
+
...output,
|
|
2586
|
+
body: await parseBody(output.body, context),
|
|
2587
|
+
};
|
|
2588
|
+
let response;
|
|
2589
|
+
let errorCode = "UnknownError";
|
|
2590
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2591
|
+
switch (errorCode) {
|
|
2592
|
+
case "ResourceNotAvailableException":
|
|
2593
|
+
case "com.amazonaws.appstream#ResourceNotAvailableException":
|
|
2594
|
+
response = {
|
|
2595
|
+
...(await deserializeAws_json1_1ResourceNotAvailableExceptionResponse(parsedOutput, context)),
|
|
2596
|
+
name: errorCode,
|
|
2597
|
+
$metadata: deserializeMetadata(output),
|
|
2598
|
+
};
|
|
2599
|
+
break;
|
|
2600
|
+
case "ResourceNotFoundException":
|
|
2601
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2602
|
+
response = {
|
|
2603
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2604
|
+
name: errorCode,
|
|
2605
|
+
$metadata: deserializeMetadata(output),
|
|
2606
|
+
};
|
|
2607
|
+
break;
|
|
2608
|
+
default:
|
|
2609
|
+
const parsedBody = parsedOutput.body;
|
|
2610
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2611
|
+
response = {
|
|
2612
|
+
...parsedBody,
|
|
2613
|
+
name: `${errorCode}`,
|
|
2614
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2615
|
+
$fault: "client",
|
|
2616
|
+
$metadata: deserializeMetadata(output),
|
|
2617
|
+
};
|
|
2618
|
+
}
|
|
2619
|
+
const message = response.message || response.Message || errorCode;
|
|
2620
|
+
response.message = message;
|
|
2621
|
+
delete response.Message;
|
|
2622
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2623
|
+
};
|
|
2624
|
+
const deserializeAws_json1_1DeleteStackCommand = async (output, context) => {
|
|
2625
|
+
if (output.statusCode >= 300) {
|
|
2626
|
+
return deserializeAws_json1_1DeleteStackCommandError(output, context);
|
|
2627
|
+
}
|
|
2628
|
+
const data = await parseBody(output.body, context);
|
|
2629
|
+
let contents = {};
|
|
2630
|
+
contents = deserializeAws_json1_1DeleteStackResult(data, context);
|
|
2631
|
+
const response = {
|
|
2632
|
+
$metadata: deserializeMetadata(output),
|
|
2633
|
+
...contents,
|
|
2634
|
+
};
|
|
2635
|
+
return Promise.resolve(response);
|
|
2636
|
+
};
|
|
2637
|
+
exports.deserializeAws_json1_1DeleteStackCommand = deserializeAws_json1_1DeleteStackCommand;
|
|
2638
|
+
const deserializeAws_json1_1DeleteStackCommandError = async (output, context) => {
|
|
2639
|
+
const parsedOutput = {
|
|
2640
|
+
...output,
|
|
2641
|
+
body: await parseBody(output.body, context),
|
|
2642
|
+
};
|
|
2643
|
+
let response;
|
|
2644
|
+
let errorCode = "UnknownError";
|
|
2645
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2646
|
+
switch (errorCode) {
|
|
2647
|
+
case "ConcurrentModificationException":
|
|
2648
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
2649
|
+
response = {
|
|
2650
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2651
|
+
name: errorCode,
|
|
2652
|
+
$metadata: deserializeMetadata(output),
|
|
2653
|
+
};
|
|
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;
|
|
2663
|
+
case "ResourceInUseException":
|
|
2664
|
+
case "com.amazonaws.appstream#ResourceInUseException":
|
|
2665
|
+
response = {
|
|
2666
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2667
|
+
name: errorCode,
|
|
2668
|
+
$metadata: deserializeMetadata(output),
|
|
2669
|
+
};
|
|
2670
|
+
break;
|
|
2671
|
+
case "ResourceNotFoundException":
|
|
2672
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2673
|
+
response = {
|
|
2674
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2675
|
+
name: errorCode,
|
|
2676
|
+
$metadata: deserializeMetadata(output),
|
|
2677
|
+
};
|
|
2678
|
+
break;
|
|
2679
|
+
default:
|
|
2680
|
+
const parsedBody = parsedOutput.body;
|
|
2681
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2682
|
+
response = {
|
|
2683
|
+
...parsedBody,
|
|
2684
|
+
name: `${errorCode}`,
|
|
2685
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2686
|
+
$fault: "client",
|
|
2687
|
+
$metadata: deserializeMetadata(output),
|
|
2688
|
+
};
|
|
2689
|
+
}
|
|
2690
|
+
const message = response.message || response.Message || errorCode;
|
|
2691
|
+
response.message = message;
|
|
2692
|
+
delete response.Message;
|
|
2693
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2694
|
+
};
|
|
2695
|
+
const deserializeAws_json1_1DeleteUsageReportSubscriptionCommand = async (output, context) => {
|
|
2696
|
+
if (output.statusCode >= 300) {
|
|
2697
|
+
return deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError(output, context);
|
|
2698
|
+
}
|
|
2699
|
+
const data = await parseBody(output.body, context);
|
|
2700
|
+
let contents = {};
|
|
2701
|
+
contents = deserializeAws_json1_1DeleteUsageReportSubscriptionResult(data, context);
|
|
2702
|
+
const response = {
|
|
2703
|
+
$metadata: deserializeMetadata(output),
|
|
2704
|
+
...contents,
|
|
2705
|
+
};
|
|
2706
|
+
return Promise.resolve(response);
|
|
2707
|
+
};
|
|
2708
|
+
exports.deserializeAws_json1_1DeleteUsageReportSubscriptionCommand = deserializeAws_json1_1DeleteUsageReportSubscriptionCommand;
|
|
2709
|
+
const deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = async (output, context) => {
|
|
2710
|
+
const parsedOutput = {
|
|
2711
|
+
...output,
|
|
2712
|
+
body: await parseBody(output.body, context),
|
|
2713
|
+
};
|
|
2714
|
+
let response;
|
|
2715
|
+
let errorCode = "UnknownError";
|
|
2716
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
|
+
switch (errorCode) {
|
|
2718
|
+
case "InvalidAccountStatusException":
|
|
2719
|
+
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
2720
|
+
response = {
|
|
2721
|
+
...(await deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)),
|
|
2722
|
+
name: errorCode,
|
|
2723
|
+
$metadata: deserializeMetadata(output),
|
|
2724
|
+
};
|
|
2725
|
+
break;
|
|
2726
|
+
case "ResourceNotFoundException":
|
|
2727
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2728
|
+
response = {
|
|
2729
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2730
|
+
name: errorCode,
|
|
2731
|
+
$metadata: deserializeMetadata(output),
|
|
2732
|
+
};
|
|
2733
|
+
break;
|
|
2734
|
+
default:
|
|
2735
|
+
const parsedBody = parsedOutput.body;
|
|
2736
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2737
|
+
response = {
|
|
2738
|
+
...parsedBody,
|
|
2739
|
+
name: `${errorCode}`,
|
|
2740
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2741
|
+
$fault: "client",
|
|
2742
|
+
$metadata: deserializeMetadata(output),
|
|
2743
|
+
};
|
|
2744
|
+
}
|
|
2745
|
+
const message = response.message || response.Message || errorCode;
|
|
2746
|
+
response.message = message;
|
|
2747
|
+
delete response.Message;
|
|
2748
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2749
|
+
};
|
|
2750
|
+
const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
|
|
2751
|
+
if (output.statusCode >= 300) {
|
|
2752
|
+
return deserializeAws_json1_1DeleteUserCommandError(output, context);
|
|
2753
|
+
}
|
|
2754
|
+
const data = await parseBody(output.body, context);
|
|
2755
|
+
let contents = {};
|
|
2756
|
+
contents = deserializeAws_json1_1DeleteUserResult(data, context);
|
|
1766
2757
|
const response = {
|
|
1767
2758
|
$metadata: deserializeMetadata(output),
|
|
1768
2759
|
...contents,
|
|
1769
2760
|
};
|
|
1770
2761
|
return Promise.resolve(response);
|
|
1771
2762
|
};
|
|
1772
|
-
exports.
|
|
1773
|
-
const
|
|
2763
|
+
exports.deserializeAws_json1_1DeleteUserCommand = deserializeAws_json1_1DeleteUserCommand;
|
|
2764
|
+
const deserializeAws_json1_1DeleteUserCommandError = async (output, context) => {
|
|
1774
2765
|
const parsedOutput = {
|
|
1775
2766
|
...output,
|
|
1776
2767
|
body: await parseBody(output.body, context),
|
|
@@ -1779,22 +2770,6 @@ const deserializeAws_json1_1DeleteImageBuilderCommandError = async (output, cont
|
|
|
1779
2770
|
let errorCode = "UnknownError";
|
|
1780
2771
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
2772
|
switch (errorCode) {
|
|
1782
|
-
case "ConcurrentModificationException":
|
|
1783
|
-
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
1784
|
-
response = {
|
|
1785
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1786
|
-
name: errorCode,
|
|
1787
|
-
$metadata: deserializeMetadata(output),
|
|
1788
|
-
};
|
|
1789
|
-
break;
|
|
1790
|
-
case "OperationNotPermittedException":
|
|
1791
|
-
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1792
|
-
response = {
|
|
1793
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1794
|
-
name: errorCode,
|
|
1795
|
-
$metadata: deserializeMetadata(output),
|
|
1796
|
-
};
|
|
1797
|
-
break;
|
|
1798
2773
|
case "ResourceNotFoundException":
|
|
1799
2774
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
1800
2775
|
response = {
|
|
@@ -1819,21 +2794,21 @@ const deserializeAws_json1_1DeleteImageBuilderCommandError = async (output, cont
|
|
|
1819
2794
|
delete response.Message;
|
|
1820
2795
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1821
2796
|
};
|
|
1822
|
-
const
|
|
2797
|
+
const deserializeAws_json1_1DescribeAppBlocksCommand = async (output, context) => {
|
|
1823
2798
|
if (output.statusCode >= 300) {
|
|
1824
|
-
return
|
|
2799
|
+
return deserializeAws_json1_1DescribeAppBlocksCommandError(output, context);
|
|
1825
2800
|
}
|
|
1826
2801
|
const data = await parseBody(output.body, context);
|
|
1827
2802
|
let contents = {};
|
|
1828
|
-
contents =
|
|
2803
|
+
contents = deserializeAws_json1_1DescribeAppBlocksResult(data, context);
|
|
1829
2804
|
const response = {
|
|
1830
2805
|
$metadata: deserializeMetadata(output),
|
|
1831
2806
|
...contents,
|
|
1832
2807
|
};
|
|
1833
2808
|
return Promise.resolve(response);
|
|
1834
2809
|
};
|
|
1835
|
-
exports.
|
|
1836
|
-
const
|
|
2810
|
+
exports.deserializeAws_json1_1DescribeAppBlocksCommand = deserializeAws_json1_1DescribeAppBlocksCommand;
|
|
2811
|
+
const deserializeAws_json1_1DescribeAppBlocksCommandError = async (output, context) => {
|
|
1837
2812
|
const parsedOutput = {
|
|
1838
2813
|
...output,
|
|
1839
2814
|
body: await parseBody(output.body, context),
|
|
@@ -1842,10 +2817,10 @@ const deserializeAws_json1_1DeleteImagePermissionsCommandError = async (output,
|
|
|
1842
2817
|
let errorCode = "UnknownError";
|
|
1843
2818
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1844
2819
|
switch (errorCode) {
|
|
1845
|
-
case "
|
|
1846
|
-
case "com.amazonaws.appstream#
|
|
2820
|
+
case "OperationNotPermittedException":
|
|
2821
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1847
2822
|
response = {
|
|
1848
|
-
...(await
|
|
2823
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1849
2824
|
name: errorCode,
|
|
1850
2825
|
$metadata: deserializeMetadata(output),
|
|
1851
2826
|
};
|
|
@@ -1874,21 +2849,21 @@ const deserializeAws_json1_1DeleteImagePermissionsCommandError = async (output,
|
|
|
1874
2849
|
delete response.Message;
|
|
1875
2850
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1876
2851
|
};
|
|
1877
|
-
const
|
|
2852
|
+
const deserializeAws_json1_1DescribeApplicationFleetAssociationsCommand = async (output, context) => {
|
|
1878
2853
|
if (output.statusCode >= 300) {
|
|
1879
|
-
return
|
|
2854
|
+
return deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError(output, context);
|
|
1880
2855
|
}
|
|
1881
2856
|
const data = await parseBody(output.body, context);
|
|
1882
2857
|
let contents = {};
|
|
1883
|
-
contents =
|
|
2858
|
+
contents = deserializeAws_json1_1DescribeApplicationFleetAssociationsResult(data, context);
|
|
1884
2859
|
const response = {
|
|
1885
2860
|
$metadata: deserializeMetadata(output),
|
|
1886
2861
|
...contents,
|
|
1887
2862
|
};
|
|
1888
2863
|
return Promise.resolve(response);
|
|
1889
2864
|
};
|
|
1890
|
-
exports.
|
|
1891
|
-
const
|
|
2865
|
+
exports.deserializeAws_json1_1DescribeApplicationFleetAssociationsCommand = deserializeAws_json1_1DescribeApplicationFleetAssociationsCommand;
|
|
2866
|
+
const deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError = async (output, context) => {
|
|
1892
2867
|
const parsedOutput = {
|
|
1893
2868
|
...output,
|
|
1894
2869
|
body: await parseBody(output.body, context),
|
|
@@ -1897,26 +2872,18 @@ const deserializeAws_json1_1DeleteStackCommandError = async (output, context) =>
|
|
|
1897
2872
|
let errorCode = "UnknownError";
|
|
1898
2873
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1899
2874
|
switch (errorCode) {
|
|
1900
|
-
case "
|
|
1901
|
-
case "com.amazonaws.appstream#
|
|
1902
|
-
response = {
|
|
1903
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1904
|
-
name: errorCode,
|
|
1905
|
-
$metadata: deserializeMetadata(output),
|
|
1906
|
-
};
|
|
1907
|
-
break;
|
|
1908
|
-
case "ResourceInUseException":
|
|
1909
|
-
case "com.amazonaws.appstream#ResourceInUseException":
|
|
2875
|
+
case "InvalidParameterCombinationException":
|
|
2876
|
+
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
1910
2877
|
response = {
|
|
1911
|
-
...(await
|
|
2878
|
+
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
1912
2879
|
name: errorCode,
|
|
1913
2880
|
$metadata: deserializeMetadata(output),
|
|
1914
2881
|
};
|
|
1915
2882
|
break;
|
|
1916
|
-
case "
|
|
1917
|
-
case "com.amazonaws.appstream#
|
|
2883
|
+
case "OperationNotPermittedException":
|
|
2884
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1918
2885
|
response = {
|
|
1919
|
-
...(await
|
|
2886
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1920
2887
|
name: errorCode,
|
|
1921
2888
|
$metadata: deserializeMetadata(output),
|
|
1922
2889
|
};
|
|
@@ -1937,21 +2904,21 @@ const deserializeAws_json1_1DeleteStackCommandError = async (output, context) =>
|
|
|
1937
2904
|
delete response.Message;
|
|
1938
2905
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1939
2906
|
};
|
|
1940
|
-
const
|
|
2907
|
+
const deserializeAws_json1_1DescribeApplicationsCommand = async (output, context) => {
|
|
1941
2908
|
if (output.statusCode >= 300) {
|
|
1942
|
-
return
|
|
2909
|
+
return deserializeAws_json1_1DescribeApplicationsCommandError(output, context);
|
|
1943
2910
|
}
|
|
1944
2911
|
const data = await parseBody(output.body, context);
|
|
1945
2912
|
let contents = {};
|
|
1946
|
-
contents =
|
|
2913
|
+
contents = deserializeAws_json1_1DescribeApplicationsResult(data, context);
|
|
1947
2914
|
const response = {
|
|
1948
2915
|
$metadata: deserializeMetadata(output),
|
|
1949
2916
|
...contents,
|
|
1950
2917
|
};
|
|
1951
2918
|
return Promise.resolve(response);
|
|
1952
2919
|
};
|
|
1953
|
-
exports.
|
|
1954
|
-
const
|
|
2920
|
+
exports.deserializeAws_json1_1DescribeApplicationsCommand = deserializeAws_json1_1DescribeApplicationsCommand;
|
|
2921
|
+
const deserializeAws_json1_1DescribeApplicationsCommandError = async (output, context) => {
|
|
1955
2922
|
const parsedOutput = {
|
|
1956
2923
|
...output,
|
|
1957
2924
|
body: await parseBody(output.body, context),
|
|
@@ -1960,10 +2927,10 @@ const deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = async (o
|
|
|
1960
2927
|
let errorCode = "UnknownError";
|
|
1961
2928
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1962
2929
|
switch (errorCode) {
|
|
1963
|
-
case "
|
|
1964
|
-
case "com.amazonaws.appstream#
|
|
2930
|
+
case "OperationNotPermittedException":
|
|
2931
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1965
2932
|
response = {
|
|
1966
|
-
...(await
|
|
2933
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1967
2934
|
name: errorCode,
|
|
1968
2935
|
$metadata: deserializeMetadata(output),
|
|
1969
2936
|
};
|
|
@@ -1992,21 +2959,21 @@ const deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = async (o
|
|
|
1992
2959
|
delete response.Message;
|
|
1993
2960
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1994
2961
|
};
|
|
1995
|
-
const
|
|
2962
|
+
const deserializeAws_json1_1DescribeDirectoryConfigsCommand = async (output, context) => {
|
|
1996
2963
|
if (output.statusCode >= 300) {
|
|
1997
|
-
return
|
|
2964
|
+
return deserializeAws_json1_1DescribeDirectoryConfigsCommandError(output, context);
|
|
1998
2965
|
}
|
|
1999
2966
|
const data = await parseBody(output.body, context);
|
|
2000
2967
|
let contents = {};
|
|
2001
|
-
contents =
|
|
2968
|
+
contents = deserializeAws_json1_1DescribeDirectoryConfigsResult(data, context);
|
|
2002
2969
|
const response = {
|
|
2003
2970
|
$metadata: deserializeMetadata(output),
|
|
2004
2971
|
...contents,
|
|
2005
2972
|
};
|
|
2006
2973
|
return Promise.resolve(response);
|
|
2007
2974
|
};
|
|
2008
|
-
exports.
|
|
2009
|
-
const
|
|
2975
|
+
exports.deserializeAws_json1_1DescribeDirectoryConfigsCommand = deserializeAws_json1_1DescribeDirectoryConfigsCommand;
|
|
2976
|
+
const deserializeAws_json1_1DescribeDirectoryConfigsCommandError = async (output, context) => {
|
|
2010
2977
|
const parsedOutput = {
|
|
2011
2978
|
...output,
|
|
2012
2979
|
body: await parseBody(output.body, context),
|
|
@@ -2039,21 +3006,21 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
2039
3006
|
delete response.Message;
|
|
2040
3007
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2041
3008
|
};
|
|
2042
|
-
const
|
|
3009
|
+
const deserializeAws_json1_1DescribeEntitlementsCommand = async (output, context) => {
|
|
2043
3010
|
if (output.statusCode >= 300) {
|
|
2044
|
-
return
|
|
3011
|
+
return deserializeAws_json1_1DescribeEntitlementsCommandError(output, context);
|
|
2045
3012
|
}
|
|
2046
3013
|
const data = await parseBody(output.body, context);
|
|
2047
3014
|
let contents = {};
|
|
2048
|
-
contents =
|
|
3015
|
+
contents = deserializeAws_json1_1DescribeEntitlementsResult(data, context);
|
|
2049
3016
|
const response = {
|
|
2050
3017
|
$metadata: deserializeMetadata(output),
|
|
2051
3018
|
...contents,
|
|
2052
3019
|
};
|
|
2053
3020
|
return Promise.resolve(response);
|
|
2054
3021
|
};
|
|
2055
|
-
exports.
|
|
2056
|
-
const
|
|
3022
|
+
exports.deserializeAws_json1_1DescribeEntitlementsCommand = deserializeAws_json1_1DescribeEntitlementsCommand;
|
|
3023
|
+
const deserializeAws_json1_1DescribeEntitlementsCommandError = async (output, context) => {
|
|
2057
3024
|
const parsedOutput = {
|
|
2058
3025
|
...output,
|
|
2059
3026
|
body: await parseBody(output.body, context),
|
|
@@ -2062,6 +3029,22 @@ const deserializeAws_json1_1DescribeDirectoryConfigsCommandError = async (output
|
|
|
2062
3029
|
let errorCode = "UnknownError";
|
|
2063
3030
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2064
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;
|
|
2065
3048
|
case "ResourceNotFoundException":
|
|
2066
3049
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2067
3050
|
response = {
|
|
@@ -2462,6 +3445,14 @@ const deserializeAws_json1_1DescribeUsersCommandError = async (output, context)
|
|
|
2462
3445
|
$metadata: deserializeMetadata(output),
|
|
2463
3446
|
};
|
|
2464
3447
|
break;
|
|
3448
|
+
case "OperationNotPermittedException":
|
|
3449
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
3450
|
+
response = {
|
|
3451
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
3452
|
+
name: errorCode,
|
|
3453
|
+
$metadata: deserializeMetadata(output),
|
|
3454
|
+
};
|
|
3455
|
+
break;
|
|
2465
3456
|
case "ResourceNotFoundException":
|
|
2466
3457
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2467
3458
|
response = {
|
|
@@ -2588,6 +3579,132 @@ const deserializeAws_json1_1DisableUserCommandError = async (output, context) =>
|
|
|
2588
3579
|
delete response.Message;
|
|
2589
3580
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2590
3581
|
};
|
|
3582
|
+
const deserializeAws_json1_1DisassociateApplicationFleetCommand = async (output, context) => {
|
|
3583
|
+
if (output.statusCode >= 300) {
|
|
3584
|
+
return deserializeAws_json1_1DisassociateApplicationFleetCommandError(output, context);
|
|
3585
|
+
}
|
|
3586
|
+
const data = await parseBody(output.body, context);
|
|
3587
|
+
let contents = {};
|
|
3588
|
+
contents = deserializeAws_json1_1DisassociateApplicationFleetResult(data, context);
|
|
3589
|
+
const response = {
|
|
3590
|
+
$metadata: deserializeMetadata(output),
|
|
3591
|
+
...contents,
|
|
3592
|
+
};
|
|
3593
|
+
return Promise.resolve(response);
|
|
3594
|
+
};
|
|
3595
|
+
exports.deserializeAws_json1_1DisassociateApplicationFleetCommand = deserializeAws_json1_1DisassociateApplicationFleetCommand;
|
|
3596
|
+
const deserializeAws_json1_1DisassociateApplicationFleetCommandError = async (output, context) => {
|
|
3597
|
+
const parsedOutput = {
|
|
3598
|
+
...output,
|
|
3599
|
+
body: await parseBody(output.body, context),
|
|
3600
|
+
};
|
|
3601
|
+
let response;
|
|
3602
|
+
let errorCode = "UnknownError";
|
|
3603
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3604
|
+
switch (errorCode) {
|
|
3605
|
+
case "ConcurrentModificationException":
|
|
3606
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
3607
|
+
response = {
|
|
3608
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
3609
|
+
name: errorCode,
|
|
3610
|
+
$metadata: deserializeMetadata(output),
|
|
3611
|
+
};
|
|
3612
|
+
break;
|
|
3613
|
+
case "InvalidParameterCombinationException":
|
|
3614
|
+
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
3615
|
+
response = {
|
|
3616
|
+
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
3617
|
+
name: errorCode,
|
|
3618
|
+
$metadata: deserializeMetadata(output),
|
|
3619
|
+
};
|
|
3620
|
+
break;
|
|
3621
|
+
case "OperationNotPermittedException":
|
|
3622
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
3623
|
+
response = {
|
|
3624
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
3625
|
+
name: errorCode,
|
|
3626
|
+
$metadata: deserializeMetadata(output),
|
|
3627
|
+
};
|
|
3628
|
+
break;
|
|
3629
|
+
default:
|
|
3630
|
+
const parsedBody = parsedOutput.body;
|
|
3631
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3632
|
+
response = {
|
|
3633
|
+
...parsedBody,
|
|
3634
|
+
name: `${errorCode}`,
|
|
3635
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3636
|
+
$fault: "client",
|
|
3637
|
+
$metadata: deserializeMetadata(output),
|
|
3638
|
+
};
|
|
3639
|
+
}
|
|
3640
|
+
const message = response.message || response.Message || errorCode;
|
|
3641
|
+
response.message = message;
|
|
3642
|
+
delete response.Message;
|
|
3643
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
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
|
+
};
|
|
2591
3708
|
const deserializeAws_json1_1DisassociateFleetCommand = async (output, context) => {
|
|
2592
3709
|
if (output.statusCode >= 300) {
|
|
2593
3710
|
return deserializeAws_json1_1DisassociateFleetCommandError(output, context);
|
|
@@ -2716,19 +3833,58 @@ const deserializeAws_json1_1EnableUserCommandError = async (output, context) =>
|
|
|
2716
3833
|
};
|
|
2717
3834
|
const deserializeAws_json1_1ExpireSessionCommand = async (output, context) => {
|
|
2718
3835
|
if (output.statusCode >= 300) {
|
|
2719
|
-
return deserializeAws_json1_1ExpireSessionCommandError(output, context);
|
|
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) => {
|
|
3874
|
+
if (output.statusCode >= 300) {
|
|
3875
|
+
return deserializeAws_json1_1ListAssociatedFleetsCommandError(output, context);
|
|
2720
3876
|
}
|
|
2721
3877
|
const data = await parseBody(output.body, context);
|
|
2722
3878
|
let contents = {};
|
|
2723
|
-
contents =
|
|
3879
|
+
contents = deserializeAws_json1_1ListAssociatedFleetsResult(data, context);
|
|
2724
3880
|
const response = {
|
|
2725
3881
|
$metadata: deserializeMetadata(output),
|
|
2726
3882
|
...contents,
|
|
2727
3883
|
};
|
|
2728
3884
|
return Promise.resolve(response);
|
|
2729
3885
|
};
|
|
2730
|
-
exports.
|
|
2731
|
-
const
|
|
3886
|
+
exports.deserializeAws_json1_1ListAssociatedFleetsCommand = deserializeAws_json1_1ListAssociatedFleetsCommand;
|
|
3887
|
+
const deserializeAws_json1_1ListAssociatedFleetsCommandError = async (output, context) => {
|
|
2732
3888
|
const parsedOutput = {
|
|
2733
3889
|
...output,
|
|
2734
3890
|
body: await parseBody(output.body, context),
|
|
@@ -2753,21 +3909,21 @@ const deserializeAws_json1_1ExpireSessionCommandError = async (output, context)
|
|
|
2753
3909
|
delete response.Message;
|
|
2754
3910
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2755
3911
|
};
|
|
2756
|
-
const
|
|
3912
|
+
const deserializeAws_json1_1ListAssociatedStacksCommand = async (output, context) => {
|
|
2757
3913
|
if (output.statusCode >= 300) {
|
|
2758
|
-
return
|
|
3914
|
+
return deserializeAws_json1_1ListAssociatedStacksCommandError(output, context);
|
|
2759
3915
|
}
|
|
2760
3916
|
const data = await parseBody(output.body, context);
|
|
2761
3917
|
let contents = {};
|
|
2762
|
-
contents =
|
|
3918
|
+
contents = deserializeAws_json1_1ListAssociatedStacksResult(data, context);
|
|
2763
3919
|
const response = {
|
|
2764
3920
|
$metadata: deserializeMetadata(output),
|
|
2765
3921
|
...contents,
|
|
2766
3922
|
};
|
|
2767
3923
|
return Promise.resolve(response);
|
|
2768
3924
|
};
|
|
2769
|
-
exports.
|
|
2770
|
-
const
|
|
3925
|
+
exports.deserializeAws_json1_1ListAssociatedStacksCommand = deserializeAws_json1_1ListAssociatedStacksCommand;
|
|
3926
|
+
const deserializeAws_json1_1ListAssociatedStacksCommandError = async (output, context) => {
|
|
2771
3927
|
const parsedOutput = {
|
|
2772
3928
|
...output,
|
|
2773
3929
|
body: await parseBody(output.body, context),
|
|
@@ -2792,21 +3948,21 @@ const deserializeAws_json1_1ListAssociatedFleetsCommandError = async (output, co
|
|
|
2792
3948
|
delete response.Message;
|
|
2793
3949
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2794
3950
|
};
|
|
2795
|
-
const
|
|
3951
|
+
const deserializeAws_json1_1ListEntitledApplicationsCommand = async (output, context) => {
|
|
2796
3952
|
if (output.statusCode >= 300) {
|
|
2797
|
-
return
|
|
3953
|
+
return deserializeAws_json1_1ListEntitledApplicationsCommandError(output, context);
|
|
2798
3954
|
}
|
|
2799
3955
|
const data = await parseBody(output.body, context);
|
|
2800
3956
|
let contents = {};
|
|
2801
|
-
contents =
|
|
3957
|
+
contents = deserializeAws_json1_1ListEntitledApplicationsResult(data, context);
|
|
2802
3958
|
const response = {
|
|
2803
3959
|
$metadata: deserializeMetadata(output),
|
|
2804
3960
|
...contents,
|
|
2805
3961
|
};
|
|
2806
3962
|
return Promise.resolve(response);
|
|
2807
3963
|
};
|
|
2808
|
-
exports.
|
|
2809
|
-
const
|
|
3964
|
+
exports.deserializeAws_json1_1ListEntitledApplicationsCommand = deserializeAws_json1_1ListEntitledApplicationsCommand;
|
|
3965
|
+
const deserializeAws_json1_1ListEntitledApplicationsCommandError = async (output, context) => {
|
|
2810
3966
|
const parsedOutput = {
|
|
2811
3967
|
...output,
|
|
2812
3968
|
body: await parseBody(output.body, context),
|
|
@@ -2815,6 +3971,30 @@ const deserializeAws_json1_1ListAssociatedStacksCommandError = async (output, co
|
|
|
2815
3971
|
let errorCode = "UnknownError";
|
|
2816
3972
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2817
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;
|
|
2818
3998
|
default:
|
|
2819
3999
|
const parsedBody = parsedOutput.body;
|
|
2820
4000
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3288,6 +4468,69 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3288
4468
|
delete response.Message;
|
|
3289
4469
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3290
4470
|
};
|
|
4471
|
+
const deserializeAws_json1_1UpdateApplicationCommand = async (output, context) => {
|
|
4472
|
+
if (output.statusCode >= 300) {
|
|
4473
|
+
return deserializeAws_json1_1UpdateApplicationCommandError(output, context);
|
|
4474
|
+
}
|
|
4475
|
+
const data = await parseBody(output.body, context);
|
|
4476
|
+
let contents = {};
|
|
4477
|
+
contents = deserializeAws_json1_1UpdateApplicationResult(data, context);
|
|
4478
|
+
const response = {
|
|
4479
|
+
$metadata: deserializeMetadata(output),
|
|
4480
|
+
...contents,
|
|
4481
|
+
};
|
|
4482
|
+
return Promise.resolve(response);
|
|
4483
|
+
};
|
|
4484
|
+
exports.deserializeAws_json1_1UpdateApplicationCommand = deserializeAws_json1_1UpdateApplicationCommand;
|
|
4485
|
+
const deserializeAws_json1_1UpdateApplicationCommandError = async (output, context) => {
|
|
4486
|
+
const parsedOutput = {
|
|
4487
|
+
...output,
|
|
4488
|
+
body: await parseBody(output.body, context),
|
|
4489
|
+
};
|
|
4490
|
+
let response;
|
|
4491
|
+
let errorCode = "UnknownError";
|
|
4492
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4493
|
+
switch (errorCode) {
|
|
4494
|
+
case "ConcurrentModificationException":
|
|
4495
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
4496
|
+
response = {
|
|
4497
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
4498
|
+
name: errorCode,
|
|
4499
|
+
$metadata: deserializeMetadata(output),
|
|
4500
|
+
};
|
|
4501
|
+
break;
|
|
4502
|
+
case "OperationNotPermittedException":
|
|
4503
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
4504
|
+
response = {
|
|
4505
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
4506
|
+
name: errorCode,
|
|
4507
|
+
$metadata: deserializeMetadata(output),
|
|
4508
|
+
};
|
|
4509
|
+
break;
|
|
4510
|
+
case "ResourceNotFoundException":
|
|
4511
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
4512
|
+
response = {
|
|
4513
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4514
|
+
name: errorCode,
|
|
4515
|
+
$metadata: deserializeMetadata(output),
|
|
4516
|
+
};
|
|
4517
|
+
break;
|
|
4518
|
+
default:
|
|
4519
|
+
const parsedBody = parsedOutput.body;
|
|
4520
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4521
|
+
response = {
|
|
4522
|
+
...parsedBody,
|
|
4523
|
+
name: `${errorCode}`,
|
|
4524
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4525
|
+
$fault: "client",
|
|
4526
|
+
$metadata: deserializeMetadata(output),
|
|
4527
|
+
};
|
|
4528
|
+
}
|
|
4529
|
+
const message = response.message || response.Message || errorCode;
|
|
4530
|
+
response.message = message;
|
|
4531
|
+
delete response.Message;
|
|
4532
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4533
|
+
};
|
|
3291
4534
|
const deserializeAws_json1_1UpdateDirectoryConfigCommand = async (output, context) => {
|
|
3292
4535
|
if (output.statusCode >= 300) {
|
|
3293
4536
|
return deserializeAws_json1_1UpdateDirectoryConfigCommandError(output, context);
|
|
@@ -3367,6 +4610,77 @@ const deserializeAws_json1_1UpdateDirectoryConfigCommandError = async (output, c
|
|
|
3367
4610
|
delete response.Message;
|
|
3368
4611
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3369
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
|
+
};
|
|
3370
4684
|
const deserializeAws_json1_1UpdateFleetCommand = async (output, context) => {
|
|
3371
4685
|
if (output.statusCode >= 300) {
|
|
3372
4686
|
return deserializeAws_json1_1UpdateFleetCommandError(output, context);
|
|
@@ -3679,6 +4993,28 @@ const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (par
|
|
|
3679
4993
|
};
|
|
3680
4994
|
return contents;
|
|
3681
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
|
+
};
|
|
3682
5018
|
const deserializeAws_json1_1IncompatibleImageExceptionResponse = async (parsedOutput, context) => {
|
|
3683
5019
|
const body = parsedOutput.body;
|
|
3684
5020
|
const deserialized = deserializeAws_json1_1IncompatibleImageException(body, context);
|
|
@@ -3816,6 +5152,16 @@ const serializeAws_json1_1AccessEndpointList = (input, context) => {
|
|
|
3816
5152
|
return serializeAws_json1_1AccessEndpoint(entry, context);
|
|
3817
5153
|
});
|
|
3818
5154
|
};
|
|
5155
|
+
const serializeAws_json1_1ApplicationAttributes = (input, context) => {
|
|
5156
|
+
return input
|
|
5157
|
+
.filter((e) => e != null)
|
|
5158
|
+
.map((entry) => {
|
|
5159
|
+
if (entry === null) {
|
|
5160
|
+
return null;
|
|
5161
|
+
}
|
|
5162
|
+
return entry;
|
|
5163
|
+
});
|
|
5164
|
+
};
|
|
3819
5165
|
const serializeAws_json1_1ApplicationSettings = (input, context) => {
|
|
3820
5166
|
return {
|
|
3821
5167
|
...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
|
|
@@ -3832,6 +5178,22 @@ const serializeAws_json1_1ArnList = (input, context) => {
|
|
|
3832
5178
|
return entry;
|
|
3833
5179
|
});
|
|
3834
5180
|
};
|
|
5181
|
+
const serializeAws_json1_1AssociateApplicationFleetRequest = (input, context) => {
|
|
5182
|
+
return {
|
|
5183
|
+
...(input.ApplicationArn !== undefined &&
|
|
5184
|
+
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }),
|
|
5185
|
+
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
5186
|
+
};
|
|
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
|
+
};
|
|
3835
5197
|
const serializeAws_json1_1AssociateFleetRequest = (input, context) => {
|
|
3836
5198
|
return {
|
|
3837
5199
|
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
@@ -3882,6 +5244,46 @@ const serializeAws_json1_1CopyImageRequest = (input, context) => {
|
|
|
3882
5244
|
input.SourceImageName !== null && { SourceImageName: input.SourceImageName }),
|
|
3883
5245
|
};
|
|
3884
5246
|
};
|
|
5247
|
+
const serializeAws_json1_1CreateAppBlockRequest = (input, context) => {
|
|
5248
|
+
return {
|
|
5249
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
5250
|
+
...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
|
|
5251
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5252
|
+
...(input.SetupScriptDetails !== undefined &&
|
|
5253
|
+
input.SetupScriptDetails !== null && {
|
|
5254
|
+
SetupScriptDetails: serializeAws_json1_1ScriptDetails(input.SetupScriptDetails, context),
|
|
5255
|
+
}),
|
|
5256
|
+
...(input.SourceS3Location !== undefined &&
|
|
5257
|
+
input.SourceS3Location !== null && {
|
|
5258
|
+
SourceS3Location: serializeAws_json1_1S3Location(input.SourceS3Location, context),
|
|
5259
|
+
}),
|
|
5260
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
5261
|
+
};
|
|
5262
|
+
};
|
|
5263
|
+
const serializeAws_json1_1CreateApplicationRequest = (input, context) => {
|
|
5264
|
+
return {
|
|
5265
|
+
...(input.AppBlockArn !== undefined && input.AppBlockArn !== null && { AppBlockArn: input.AppBlockArn }),
|
|
5266
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
5267
|
+
...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
|
|
5268
|
+
...(input.IconS3Location !== undefined &&
|
|
5269
|
+
input.IconS3Location !== null && {
|
|
5270
|
+
IconS3Location: serializeAws_json1_1S3Location(input.IconS3Location, context),
|
|
5271
|
+
}),
|
|
5272
|
+
...(input.InstanceFamilies !== undefined &&
|
|
5273
|
+
input.InstanceFamilies !== null && {
|
|
5274
|
+
InstanceFamilies: serializeAws_json1_1StringList(input.InstanceFamilies, context),
|
|
5275
|
+
}),
|
|
5276
|
+
...(input.LaunchParameters !== undefined &&
|
|
5277
|
+
input.LaunchParameters !== null && { LaunchParameters: input.LaunchParameters }),
|
|
5278
|
+
...(input.LaunchPath !== undefined && input.LaunchPath !== null && { LaunchPath: input.LaunchPath }),
|
|
5279
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5280
|
+
...(input.Platforms !== undefined &&
|
|
5281
|
+
input.Platforms !== null && { Platforms: serializeAws_json1_1Platforms(input.Platforms, context) }),
|
|
5282
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
5283
|
+
...(input.WorkingDirectory !== undefined &&
|
|
5284
|
+
input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }),
|
|
5285
|
+
};
|
|
5286
|
+
};
|
|
3885
5287
|
const serializeAws_json1_1CreateDirectoryConfigRequest = (input, context) => {
|
|
3886
5288
|
return {
|
|
3887
5289
|
...(input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }),
|
|
@@ -3895,6 +5297,18 @@ const serializeAws_json1_1CreateDirectoryConfigRequest = (input, context) => {
|
|
|
3895
5297
|
}),
|
|
3896
5298
|
};
|
|
3897
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
|
+
};
|
|
3898
5312
|
const serializeAws_json1_1CreateFleetRequest = (input, context) => {
|
|
3899
5313
|
return {
|
|
3900
5314
|
...(input.ComputeCapacity !== undefined &&
|
|
@@ -3920,11 +5334,18 @@ const serializeAws_json1_1CreateFleetRequest = (input, context) => {
|
|
|
3920
5334
|
...(input.ImageArn !== undefined && input.ImageArn !== null && { ImageArn: input.ImageArn }),
|
|
3921
5335
|
...(input.ImageName !== undefined && input.ImageName !== null && { ImageName: input.ImageName }),
|
|
3922
5336
|
...(input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType }),
|
|
5337
|
+
...(input.MaxConcurrentSessions !== undefined &&
|
|
5338
|
+
input.MaxConcurrentSessions !== null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
|
|
3923
5339
|
...(input.MaxUserDurationInSeconds !== undefined &&
|
|
3924
5340
|
input.MaxUserDurationInSeconds !== null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
|
|
3925
5341
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5342
|
+
...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
|
|
3926
5343
|
...(input.StreamView !== undefined && input.StreamView !== null && { StreamView: input.StreamView }),
|
|
3927
5344
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
5345
|
+
...(input.UsbDeviceFilterStrings !== undefined &&
|
|
5346
|
+
input.UsbDeviceFilterStrings !== null && {
|
|
5347
|
+
UsbDeviceFilterStrings: serializeAws_json1_1UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
|
|
5348
|
+
}),
|
|
3928
5349
|
...(input.VpcConfig !== undefined &&
|
|
3929
5350
|
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
3930
5351
|
};
|
|
@@ -4029,11 +5450,27 @@ const serializeAws_json1_1CreateUserRequest = (input, context) => {
|
|
|
4029
5450
|
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
4030
5451
|
};
|
|
4031
5452
|
};
|
|
5453
|
+
const serializeAws_json1_1DeleteAppBlockRequest = (input, context) => {
|
|
5454
|
+
return {
|
|
5455
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5456
|
+
};
|
|
5457
|
+
};
|
|
5458
|
+
const serializeAws_json1_1DeleteApplicationRequest = (input, context) => {
|
|
5459
|
+
return {
|
|
5460
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5461
|
+
};
|
|
5462
|
+
};
|
|
4032
5463
|
const serializeAws_json1_1DeleteDirectoryConfigRequest = (input, context) => {
|
|
4033
5464
|
return {
|
|
4034
5465
|
...(input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }),
|
|
4035
5466
|
};
|
|
4036
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
|
+
};
|
|
4037
5474
|
const serializeAws_json1_1DeleteFleetRequest = (input, context) => {
|
|
4038
5475
|
return {
|
|
4039
5476
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
@@ -4071,6 +5508,29 @@ const serializeAws_json1_1DeleteUserRequest = (input, context) => {
|
|
|
4071
5508
|
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
4072
5509
|
};
|
|
4073
5510
|
};
|
|
5511
|
+
const serializeAws_json1_1DescribeAppBlocksRequest = (input, context) => {
|
|
5512
|
+
return {
|
|
5513
|
+
...(input.Arns !== undefined && input.Arns !== null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
|
|
5514
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
5515
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
5516
|
+
};
|
|
5517
|
+
};
|
|
5518
|
+
const serializeAws_json1_1DescribeApplicationFleetAssociationsRequest = (input, context) => {
|
|
5519
|
+
return {
|
|
5520
|
+
...(input.ApplicationArn !== undefined &&
|
|
5521
|
+
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }),
|
|
5522
|
+
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
5523
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
5524
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
5525
|
+
};
|
|
5526
|
+
};
|
|
5527
|
+
const serializeAws_json1_1DescribeApplicationsRequest = (input, context) => {
|
|
5528
|
+
return {
|
|
5529
|
+
...(input.Arns !== undefined && input.Arns !== null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
|
|
5530
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
5531
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
5532
|
+
};
|
|
5533
|
+
};
|
|
4074
5534
|
const serializeAws_json1_1DescribeDirectoryConfigsRequest = (input, context) => {
|
|
4075
5535
|
return {
|
|
4076
5536
|
...(input.DirectoryNames !== undefined &&
|
|
@@ -4081,6 +5541,14 @@ const serializeAws_json1_1DescribeDirectoryConfigsRequest = (input, context) =>
|
|
|
4081
5541
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4082
5542
|
};
|
|
4083
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
|
+
};
|
|
4084
5552
|
const serializeAws_json1_1DescribeFleetsRequest = (input, context) => {
|
|
4085
5553
|
return {
|
|
4086
5554
|
...(input.Names !== undefined &&
|
|
@@ -4176,6 +5644,22 @@ const serializeAws_json1_1DisableUserRequest = (input, context) => {
|
|
|
4176
5644
|
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
4177
5645
|
};
|
|
4178
5646
|
};
|
|
5647
|
+
const serializeAws_json1_1DisassociateApplicationFleetRequest = (input, context) => {
|
|
5648
|
+
return {
|
|
5649
|
+
...(input.ApplicationArn !== undefined &&
|
|
5650
|
+
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }),
|
|
5651
|
+
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
5652
|
+
};
|
|
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
|
+
};
|
|
4179
5663
|
const serializeAws_json1_1DisassociateFleetRequest = (input, context) => {
|
|
4180
5664
|
return {
|
|
4181
5665
|
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
@@ -4218,6 +5702,22 @@ const serializeAws_json1_1EnableUserRequest = (input, context) => {
|
|
|
4218
5702
|
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
4219
5703
|
};
|
|
4220
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
|
+
};
|
|
4221
5721
|
const serializeAws_json1_1ExpireSessionRequest = (input, context) => {
|
|
4222
5722
|
return {
|
|
4223
5723
|
...(input.SessionId !== undefined && input.SessionId !== null && { SessionId: input.SessionId }),
|
|
@@ -4252,6 +5752,15 @@ const serializeAws_json1_1ListAssociatedStacksRequest = (input, context) => {
|
|
|
4252
5752
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4253
5753
|
};
|
|
4254
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
|
+
};
|
|
4255
5764
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
4256
5765
|
return {
|
|
4257
5766
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
@@ -4267,6 +5776,36 @@ const serializeAws_json1_1OrganizationalUnitDistinguishedNamesList = (input, con
|
|
|
4267
5776
|
return entry;
|
|
4268
5777
|
});
|
|
4269
5778
|
};
|
|
5779
|
+
const serializeAws_json1_1Platforms = (input, context) => {
|
|
5780
|
+
return input
|
|
5781
|
+
.filter((e) => e != null)
|
|
5782
|
+
.map((entry) => {
|
|
5783
|
+
if (entry === null) {
|
|
5784
|
+
return null;
|
|
5785
|
+
}
|
|
5786
|
+
return entry;
|
|
5787
|
+
});
|
|
5788
|
+
};
|
|
5789
|
+
const serializeAws_json1_1S3Location = (input, context) => {
|
|
5790
|
+
return {
|
|
5791
|
+
...(input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket }),
|
|
5792
|
+
...(input.S3Key !== undefined && input.S3Key !== null && { S3Key: input.S3Key }),
|
|
5793
|
+
};
|
|
5794
|
+
};
|
|
5795
|
+
const serializeAws_json1_1ScriptDetails = (input, context) => {
|
|
5796
|
+
return {
|
|
5797
|
+
...(input.ExecutableParameters !== undefined &&
|
|
5798
|
+
input.ExecutableParameters !== null && { ExecutableParameters: input.ExecutableParameters }),
|
|
5799
|
+
...(input.ExecutablePath !== undefined &&
|
|
5800
|
+
input.ExecutablePath !== null && { ExecutablePath: input.ExecutablePath }),
|
|
5801
|
+
...(input.ScriptS3Location !== undefined &&
|
|
5802
|
+
input.ScriptS3Location !== null && {
|
|
5803
|
+
ScriptS3Location: serializeAws_json1_1S3Location(input.ScriptS3Location, context),
|
|
5804
|
+
}),
|
|
5805
|
+
...(input.TimeoutInSeconds !== undefined &&
|
|
5806
|
+
input.TimeoutInSeconds !== null && { TimeoutInSeconds: input.TimeoutInSeconds }),
|
|
5807
|
+
};
|
|
5808
|
+
};
|
|
4270
5809
|
const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
|
|
4271
5810
|
return input
|
|
4272
5811
|
.filter((e) => e != null)
|
|
@@ -4389,6 +5928,27 @@ const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
|
4389
5928
|
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
4390
5929
|
};
|
|
4391
5930
|
};
|
|
5931
|
+
const serializeAws_json1_1UpdateApplicationRequest = (input, context) => {
|
|
5932
|
+
return {
|
|
5933
|
+
...(input.AppBlockArn !== undefined && input.AppBlockArn !== null && { AppBlockArn: input.AppBlockArn }),
|
|
5934
|
+
...(input.AttributesToDelete !== undefined &&
|
|
5935
|
+
input.AttributesToDelete !== null && {
|
|
5936
|
+
AttributesToDelete: serializeAws_json1_1ApplicationAttributes(input.AttributesToDelete, context),
|
|
5937
|
+
}),
|
|
5938
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
5939
|
+
...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
|
|
5940
|
+
...(input.IconS3Location !== undefined &&
|
|
5941
|
+
input.IconS3Location !== null && {
|
|
5942
|
+
IconS3Location: serializeAws_json1_1S3Location(input.IconS3Location, context),
|
|
5943
|
+
}),
|
|
5944
|
+
...(input.LaunchParameters !== undefined &&
|
|
5945
|
+
input.LaunchParameters !== null && { LaunchParameters: input.LaunchParameters }),
|
|
5946
|
+
...(input.LaunchPath !== undefined && input.LaunchPath !== null && { LaunchPath: input.LaunchPath }),
|
|
5947
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5948
|
+
...(input.WorkingDirectory !== undefined &&
|
|
5949
|
+
input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }),
|
|
5950
|
+
};
|
|
5951
|
+
};
|
|
4392
5952
|
const serializeAws_json1_1UpdateDirectoryConfigRequest = (input, context) => {
|
|
4393
5953
|
return {
|
|
4394
5954
|
...(input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }),
|
|
@@ -4402,6 +5962,18 @@ const serializeAws_json1_1UpdateDirectoryConfigRequest = (input, context) => {
|
|
|
4402
5962
|
}),
|
|
4403
5963
|
};
|
|
4404
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
|
+
};
|
|
4405
5977
|
const serializeAws_json1_1UpdateFleetRequest = (input, context) => {
|
|
4406
5978
|
return {
|
|
4407
5979
|
...(input.AttributesToDelete !== undefined &&
|
|
@@ -4432,10 +6004,17 @@ const serializeAws_json1_1UpdateFleetRequest = (input, context) => {
|
|
|
4432
6004
|
...(input.ImageArn !== undefined && input.ImageArn !== null && { ImageArn: input.ImageArn }),
|
|
4433
6005
|
...(input.ImageName !== undefined && input.ImageName !== null && { ImageName: input.ImageName }),
|
|
4434
6006
|
...(input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType }),
|
|
6007
|
+
...(input.MaxConcurrentSessions !== undefined &&
|
|
6008
|
+
input.MaxConcurrentSessions !== null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
|
|
4435
6009
|
...(input.MaxUserDurationInSeconds !== undefined &&
|
|
4436
6010
|
input.MaxUserDurationInSeconds !== null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
|
|
4437
6011
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
6012
|
+
...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
|
|
4438
6013
|
...(input.StreamView !== undefined && input.StreamView !== null && { StreamView: input.StreamView }),
|
|
6014
|
+
...(input.UsbDeviceFilterStrings !== undefined &&
|
|
6015
|
+
input.UsbDeviceFilterStrings !== null && {
|
|
6016
|
+
UsbDeviceFilterStrings: serializeAws_json1_1UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
|
|
6017
|
+
}),
|
|
4439
6018
|
...(input.VpcConfig !== undefined &&
|
|
4440
6019
|
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4441
6020
|
};
|
|
@@ -4486,6 +6065,16 @@ const serializeAws_json1_1UpdateStackRequest = (input, context) => {
|
|
|
4486
6065
|
}),
|
|
4487
6066
|
};
|
|
4488
6067
|
};
|
|
6068
|
+
const serializeAws_json1_1UsbDeviceFilterStrings = (input, context) => {
|
|
6069
|
+
return input
|
|
6070
|
+
.filter((e) => e != null)
|
|
6071
|
+
.map((entry) => {
|
|
6072
|
+
if (entry === null) {
|
|
6073
|
+
return null;
|
|
6074
|
+
}
|
|
6075
|
+
return entry;
|
|
6076
|
+
});
|
|
6077
|
+
};
|
|
4489
6078
|
const serializeAws_json1_1UserSetting = (input, context) => {
|
|
4490
6079
|
return {
|
|
4491
6080
|
...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
|
|
@@ -4548,19 +6137,78 @@ const deserializeAws_json1_1AccessEndpointList = (output, context) => {
|
|
|
4548
6137
|
return deserializeAws_json1_1AccessEndpoint(entry, context);
|
|
4549
6138
|
});
|
|
4550
6139
|
};
|
|
6140
|
+
const deserializeAws_json1_1AppBlock = (output, context) => {
|
|
6141
|
+
return {
|
|
6142
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
6143
|
+
CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
|
|
6144
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTime)))
|
|
6145
|
+
: undefined,
|
|
6146
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
6147
|
+
DisplayName: smithy_client_1.expectString(output.DisplayName),
|
|
6148
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
6149
|
+
SetupScriptDetails: output.SetupScriptDetails !== undefined && output.SetupScriptDetails !== null
|
|
6150
|
+
? deserializeAws_json1_1ScriptDetails(output.SetupScriptDetails, context)
|
|
6151
|
+
: undefined,
|
|
6152
|
+
SourceS3Location: output.SourceS3Location !== undefined && output.SourceS3Location !== null
|
|
6153
|
+
? deserializeAws_json1_1S3Location(output.SourceS3Location, context)
|
|
6154
|
+
: undefined,
|
|
6155
|
+
};
|
|
6156
|
+
};
|
|
6157
|
+
const deserializeAws_json1_1AppBlocks = (output, context) => {
|
|
6158
|
+
return (output || [])
|
|
6159
|
+
.filter((e) => e != null)
|
|
6160
|
+
.map((entry) => {
|
|
6161
|
+
if (entry === null) {
|
|
6162
|
+
return null;
|
|
6163
|
+
}
|
|
6164
|
+
return deserializeAws_json1_1AppBlock(entry, context);
|
|
6165
|
+
});
|
|
6166
|
+
};
|
|
4551
6167
|
const deserializeAws_json1_1Application = (output, context) => {
|
|
4552
6168
|
return {
|
|
6169
|
+
AppBlockArn: smithy_client_1.expectString(output.AppBlockArn),
|
|
6170
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
6171
|
+
CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
|
|
6172
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTime)))
|
|
6173
|
+
: undefined,
|
|
6174
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
4553
6175
|
DisplayName: smithy_client_1.expectString(output.DisplayName),
|
|
4554
6176
|
Enabled: smithy_client_1.expectBoolean(output.Enabled),
|
|
6177
|
+
IconS3Location: output.IconS3Location !== undefined && output.IconS3Location !== null
|
|
6178
|
+
? deserializeAws_json1_1S3Location(output.IconS3Location, context)
|
|
6179
|
+
: undefined,
|
|
4555
6180
|
IconURL: smithy_client_1.expectString(output.IconURL),
|
|
6181
|
+
InstanceFamilies: output.InstanceFamilies !== undefined && output.InstanceFamilies !== null
|
|
6182
|
+
? deserializeAws_json1_1StringList(output.InstanceFamilies, context)
|
|
6183
|
+
: undefined,
|
|
4556
6184
|
LaunchParameters: smithy_client_1.expectString(output.LaunchParameters),
|
|
4557
6185
|
LaunchPath: smithy_client_1.expectString(output.LaunchPath),
|
|
4558
6186
|
Metadata: output.Metadata !== undefined && output.Metadata !== null
|
|
4559
6187
|
? deserializeAws_json1_1Metadata(output.Metadata, context)
|
|
4560
6188
|
: undefined,
|
|
4561
6189
|
Name: smithy_client_1.expectString(output.Name),
|
|
6190
|
+
Platforms: output.Platforms !== undefined && output.Platforms !== null
|
|
6191
|
+
? deserializeAws_json1_1Platforms(output.Platforms, context)
|
|
6192
|
+
: undefined,
|
|
6193
|
+
WorkingDirectory: smithy_client_1.expectString(output.WorkingDirectory),
|
|
4562
6194
|
};
|
|
4563
6195
|
};
|
|
6196
|
+
const deserializeAws_json1_1ApplicationFleetAssociation = (output, context) => {
|
|
6197
|
+
return {
|
|
6198
|
+
ApplicationArn: smithy_client_1.expectString(output.ApplicationArn),
|
|
6199
|
+
FleetName: smithy_client_1.expectString(output.FleetName),
|
|
6200
|
+
};
|
|
6201
|
+
};
|
|
6202
|
+
const deserializeAws_json1_1ApplicationFleetAssociationList = (output, context) => {
|
|
6203
|
+
return (output || [])
|
|
6204
|
+
.filter((e) => e != null)
|
|
6205
|
+
.map((entry) => {
|
|
6206
|
+
if (entry === null) {
|
|
6207
|
+
return null;
|
|
6208
|
+
}
|
|
6209
|
+
return deserializeAws_json1_1ApplicationFleetAssociation(entry, context);
|
|
6210
|
+
});
|
|
6211
|
+
};
|
|
4564
6212
|
const deserializeAws_json1_1Applications = (output, context) => {
|
|
4565
6213
|
return (output || [])
|
|
4566
6214
|
.filter((e) => e != null)
|
|
@@ -4578,6 +6226,16 @@ const deserializeAws_json1_1ApplicationSettingsResponse = (output, context) => {
|
|
|
4578
6226
|
SettingsGroup: smithy_client_1.expectString(output.SettingsGroup),
|
|
4579
6227
|
};
|
|
4580
6228
|
};
|
|
6229
|
+
const deserializeAws_json1_1AssociateApplicationFleetResult = (output, context) => {
|
|
6230
|
+
return {
|
|
6231
|
+
ApplicationFleetAssociation: output.ApplicationFleetAssociation !== undefined && output.ApplicationFleetAssociation !== null
|
|
6232
|
+
? deserializeAws_json1_1ApplicationFleetAssociation(output.ApplicationFleetAssociation, context)
|
|
6233
|
+
: undefined,
|
|
6234
|
+
};
|
|
6235
|
+
};
|
|
6236
|
+
const deserializeAws_json1_1AssociateApplicationToEntitlementResult = (output, context) => {
|
|
6237
|
+
return {};
|
|
6238
|
+
};
|
|
4581
6239
|
const deserializeAws_json1_1AssociateFleetResult = (output, context) => {
|
|
4582
6240
|
return {};
|
|
4583
6241
|
};
|
|
@@ -4613,6 +6271,20 @@ const deserializeAws_json1_1CopyImageResponse = (output, context) => {
|
|
|
4613
6271
|
DestinationImageName: smithy_client_1.expectString(output.DestinationImageName),
|
|
4614
6272
|
};
|
|
4615
6273
|
};
|
|
6274
|
+
const deserializeAws_json1_1CreateAppBlockResult = (output, context) => {
|
|
6275
|
+
return {
|
|
6276
|
+
AppBlock: output.AppBlock !== undefined && output.AppBlock !== null
|
|
6277
|
+
? deserializeAws_json1_1AppBlock(output.AppBlock, context)
|
|
6278
|
+
: undefined,
|
|
6279
|
+
};
|
|
6280
|
+
};
|
|
6281
|
+
const deserializeAws_json1_1CreateApplicationResult = (output, context) => {
|
|
6282
|
+
return {
|
|
6283
|
+
Application: output.Application !== undefined && output.Application !== null
|
|
6284
|
+
? deserializeAws_json1_1Application(output.Application, context)
|
|
6285
|
+
: undefined,
|
|
6286
|
+
};
|
|
6287
|
+
};
|
|
4616
6288
|
const deserializeAws_json1_1CreateDirectoryConfigResult = (output, context) => {
|
|
4617
6289
|
return {
|
|
4618
6290
|
DirectoryConfig: output.DirectoryConfig !== undefined && output.DirectoryConfig !== null
|
|
@@ -4620,6 +6292,13 @@ const deserializeAws_json1_1CreateDirectoryConfigResult = (output, context) => {
|
|
|
4620
6292
|
: undefined,
|
|
4621
6293
|
};
|
|
4622
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
|
+
};
|
|
4623
6302
|
const deserializeAws_json1_1CreateFleetResult = (output, context) => {
|
|
4624
6303
|
return {
|
|
4625
6304
|
Fleet: output.Fleet !== undefined && output.Fleet !== null
|
|
@@ -4674,9 +6353,18 @@ const deserializeAws_json1_1CreateUsageReportSubscriptionResult = (output, conte
|
|
|
4674
6353
|
const deserializeAws_json1_1CreateUserResult = (output, context) => {
|
|
4675
6354
|
return {};
|
|
4676
6355
|
};
|
|
6356
|
+
const deserializeAws_json1_1DeleteAppBlockResult = (output, context) => {
|
|
6357
|
+
return {};
|
|
6358
|
+
};
|
|
6359
|
+
const deserializeAws_json1_1DeleteApplicationResult = (output, context) => {
|
|
6360
|
+
return {};
|
|
6361
|
+
};
|
|
4677
6362
|
const deserializeAws_json1_1DeleteDirectoryConfigResult = (output, context) => {
|
|
4678
6363
|
return {};
|
|
4679
6364
|
};
|
|
6365
|
+
const deserializeAws_json1_1DeleteEntitlementResult = (output, context) => {
|
|
6366
|
+
return {};
|
|
6367
|
+
};
|
|
4680
6368
|
const deserializeAws_json1_1DeleteFleetResult = (output, context) => {
|
|
4681
6369
|
return {};
|
|
4682
6370
|
};
|
|
@@ -4706,6 +6394,30 @@ const deserializeAws_json1_1DeleteUsageReportSubscriptionResult = (output, conte
|
|
|
4706
6394
|
const deserializeAws_json1_1DeleteUserResult = (output, context) => {
|
|
4707
6395
|
return {};
|
|
4708
6396
|
};
|
|
6397
|
+
const deserializeAws_json1_1DescribeAppBlocksResult = (output, context) => {
|
|
6398
|
+
return {
|
|
6399
|
+
AppBlocks: output.AppBlocks !== undefined && output.AppBlocks !== null
|
|
6400
|
+
? deserializeAws_json1_1AppBlocks(output.AppBlocks, context)
|
|
6401
|
+
: undefined,
|
|
6402
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
6403
|
+
};
|
|
6404
|
+
};
|
|
6405
|
+
const deserializeAws_json1_1DescribeApplicationFleetAssociationsResult = (output, context) => {
|
|
6406
|
+
return {
|
|
6407
|
+
ApplicationFleetAssociations: output.ApplicationFleetAssociations !== undefined && output.ApplicationFleetAssociations !== null
|
|
6408
|
+
? deserializeAws_json1_1ApplicationFleetAssociationList(output.ApplicationFleetAssociations, context)
|
|
6409
|
+
: undefined,
|
|
6410
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
6411
|
+
};
|
|
6412
|
+
};
|
|
6413
|
+
const deserializeAws_json1_1DescribeApplicationsResult = (output, context) => {
|
|
6414
|
+
return {
|
|
6415
|
+
Applications: output.Applications !== undefined && output.Applications !== null
|
|
6416
|
+
? deserializeAws_json1_1Applications(output.Applications, context)
|
|
6417
|
+
: undefined,
|
|
6418
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
6419
|
+
};
|
|
6420
|
+
};
|
|
4709
6421
|
const deserializeAws_json1_1DescribeDirectoryConfigsResult = (output, context) => {
|
|
4710
6422
|
return {
|
|
4711
6423
|
DirectoryConfigs: output.DirectoryConfigs !== undefined && output.DirectoryConfigs !== null
|
|
@@ -4714,6 +6426,14 @@ const deserializeAws_json1_1DescribeDirectoryConfigsResult = (output, context) =
|
|
|
4714
6426
|
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
4715
6427
|
};
|
|
4716
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
|
+
};
|
|
4717
6437
|
const deserializeAws_json1_1DescribeFleetsResult = (output, context) => {
|
|
4718
6438
|
return {
|
|
4719
6439
|
Fleets: output.Fleets !== undefined && output.Fleets !== null
|
|
@@ -4814,6 +6534,12 @@ const deserializeAws_json1_1DirectoryConfigList = (output, context) => {
|
|
|
4814
6534
|
const deserializeAws_json1_1DisableUserResult = (output, context) => {
|
|
4815
6535
|
return {};
|
|
4816
6536
|
};
|
|
6537
|
+
const deserializeAws_json1_1DisassociateApplicationFleetResult = (output, context) => {
|
|
6538
|
+
return {};
|
|
6539
|
+
};
|
|
6540
|
+
const deserializeAws_json1_1DisassociateApplicationFromEntitlementResult = (output, context) => {
|
|
6541
|
+
return {};
|
|
6542
|
+
};
|
|
4817
6543
|
const deserializeAws_json1_1DisassociateFleetResult = (output, context) => {
|
|
4818
6544
|
return {};
|
|
4819
6545
|
};
|
|
@@ -4846,6 +6572,74 @@ const deserializeAws_json1_1EmbedHostDomains = (output, context) => {
|
|
|
4846
6572
|
const deserializeAws_json1_1EnableUserResult = (output, context) => {
|
|
4847
6573
|
return {};
|
|
4848
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
|
+
};
|
|
4849
6643
|
const deserializeAws_json1_1ExpireSessionResult = (output, context) => {
|
|
4850
6644
|
return {};
|
|
4851
6645
|
};
|
|
@@ -4874,10 +6668,15 @@ const deserializeAws_json1_1Fleet = (output, context) => {
|
|
|
4874
6668
|
ImageArn: smithy_client_1.expectString(output.ImageArn),
|
|
4875
6669
|
ImageName: smithy_client_1.expectString(output.ImageName),
|
|
4876
6670
|
InstanceType: smithy_client_1.expectString(output.InstanceType),
|
|
6671
|
+
MaxConcurrentSessions: smithy_client_1.expectInt32(output.MaxConcurrentSessions),
|
|
4877
6672
|
MaxUserDurationInSeconds: smithy_client_1.expectInt32(output.MaxUserDurationInSeconds),
|
|
4878
6673
|
Name: smithy_client_1.expectString(output.Name),
|
|
6674
|
+
Platform: smithy_client_1.expectString(output.Platform),
|
|
4879
6675
|
State: smithy_client_1.expectString(output.State),
|
|
4880
6676
|
StreamView: smithy_client_1.expectString(output.StreamView),
|
|
6677
|
+
UsbDeviceFilterStrings: output.UsbDeviceFilterStrings !== undefined && output.UsbDeviceFilterStrings !== null
|
|
6678
|
+
? deserializeAws_json1_1UsbDeviceFilterStrings(output.UsbDeviceFilterStrings, context)
|
|
6679
|
+
: undefined,
|
|
4881
6680
|
VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
|
|
4882
6681
|
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
4883
6682
|
: undefined,
|
|
@@ -5073,6 +6872,14 @@ const deserializeAws_json1_1ListAssociatedStacksResult = (output, context) => {
|
|
|
5073
6872
|
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
5074
6873
|
};
|
|
5075
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
|
+
};
|
|
5076
6883
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
5077
6884
|
return {
|
|
5078
6885
|
Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
@@ -5110,6 +6917,16 @@ const deserializeAws_json1_1OrganizationalUnitDistinguishedNamesList = (output,
|
|
|
5110
6917
|
return smithy_client_1.expectString(entry);
|
|
5111
6918
|
});
|
|
5112
6919
|
};
|
|
6920
|
+
const deserializeAws_json1_1Platforms = (output, context) => {
|
|
6921
|
+
return (output || [])
|
|
6922
|
+
.filter((e) => e != null)
|
|
6923
|
+
.map((entry) => {
|
|
6924
|
+
if (entry === null) {
|
|
6925
|
+
return null;
|
|
6926
|
+
}
|
|
6927
|
+
return smithy_client_1.expectString(entry);
|
|
6928
|
+
});
|
|
6929
|
+
};
|
|
5113
6930
|
const deserializeAws_json1_1RequestLimitExceededException = (output, context) => {
|
|
5114
6931
|
return {
|
|
5115
6932
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -5154,6 +6971,22 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
5154
6971
|
Message: smithy_client_1.expectString(output.Message),
|
|
5155
6972
|
};
|
|
5156
6973
|
};
|
|
6974
|
+
const deserializeAws_json1_1S3Location = (output, context) => {
|
|
6975
|
+
return {
|
|
6976
|
+
S3Bucket: smithy_client_1.expectString(output.S3Bucket),
|
|
6977
|
+
S3Key: smithy_client_1.expectString(output.S3Key),
|
|
6978
|
+
};
|
|
6979
|
+
};
|
|
6980
|
+
const deserializeAws_json1_1ScriptDetails = (output, context) => {
|
|
6981
|
+
return {
|
|
6982
|
+
ExecutableParameters: smithy_client_1.expectString(output.ExecutableParameters),
|
|
6983
|
+
ExecutablePath: smithy_client_1.expectString(output.ExecutablePath),
|
|
6984
|
+
ScriptS3Location: output.ScriptS3Location !== undefined && output.ScriptS3Location !== null
|
|
6985
|
+
? deserializeAws_json1_1S3Location(output.ScriptS3Location, context)
|
|
6986
|
+
: undefined,
|
|
6987
|
+
TimeoutInSeconds: smithy_client_1.expectInt32(output.TimeoutInSeconds),
|
|
6988
|
+
};
|
|
6989
|
+
};
|
|
5157
6990
|
const deserializeAws_json1_1SecurityGroupIdList = (output, context) => {
|
|
5158
6991
|
return (output || [])
|
|
5159
6992
|
.filter((e) => e != null)
|
|
@@ -5351,6 +7184,13 @@ const deserializeAws_json1_1Tags = (output, context) => {
|
|
|
5351
7184
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
5352
7185
|
return {};
|
|
5353
7186
|
};
|
|
7187
|
+
const deserializeAws_json1_1UpdateApplicationResult = (output, context) => {
|
|
7188
|
+
return {
|
|
7189
|
+
Application: output.Application !== undefined && output.Application !== null
|
|
7190
|
+
? deserializeAws_json1_1Application(output.Application, context)
|
|
7191
|
+
: undefined,
|
|
7192
|
+
};
|
|
7193
|
+
};
|
|
5354
7194
|
const deserializeAws_json1_1UpdateDirectoryConfigResult = (output, context) => {
|
|
5355
7195
|
return {
|
|
5356
7196
|
DirectoryConfig: output.DirectoryConfig !== undefined && output.DirectoryConfig !== null
|
|
@@ -5358,6 +7198,13 @@ const deserializeAws_json1_1UpdateDirectoryConfigResult = (output, context) => {
|
|
|
5358
7198
|
: undefined,
|
|
5359
7199
|
};
|
|
5360
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
|
+
};
|
|
5361
7208
|
const deserializeAws_json1_1UpdateFleetResult = (output, context) => {
|
|
5362
7209
|
return {
|
|
5363
7210
|
Fleet: output.Fleet !== undefined && output.Fleet !== null
|
|
@@ -5397,6 +7244,16 @@ const deserializeAws_json1_1UsageReportSubscriptionList = (output, context) => {
|
|
|
5397
7244
|
return deserializeAws_json1_1UsageReportSubscription(entry, context);
|
|
5398
7245
|
});
|
|
5399
7246
|
};
|
|
7247
|
+
const deserializeAws_json1_1UsbDeviceFilterStrings = (output, context) => {
|
|
7248
|
+
return (output || [])
|
|
7249
|
+
.filter((e) => e != null)
|
|
7250
|
+
.map((entry) => {
|
|
7251
|
+
if (entry === null) {
|
|
7252
|
+
return null;
|
|
7253
|
+
}
|
|
7254
|
+
return smithy_client_1.expectString(entry);
|
|
7255
|
+
});
|
|
7256
|
+
};
|
|
5400
7257
|
const deserializeAws_json1_1User = (output, context) => {
|
|
5401
7258
|
return {
|
|
5402
7259
|
Arn: smithy_client_1.expectString(output.Arn),
|