@aws-sdk/client-appstream 3.39.0 → 3.43.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 +44 -0
- package/README.md +7 -7
- package/dist-cjs/AppStream.js +150 -0
- package/dist-cjs/commands/AssociateApplicationFleetCommand.js +36 -0
- package/dist-cjs/commands/CreateAppBlockCommand.js +36 -0
- package/dist-cjs/commands/CreateApplicationCommand.js +36 -0
- package/dist-cjs/commands/DeleteAppBlockCommand.js +36 -0
- package/dist-cjs/commands/DeleteApplicationCommand.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/DisassociateApplicationFleetCommand.js +36 -0
- package/dist-cjs/commands/UpdateApplicationCommand.js +36 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/endpoints.js +112 -9
- package/dist-cjs/models/models_0.js +185 -34
- package/dist-cjs/protocols/Aws_json1_1.js +1335 -239
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/AppStream.js +150 -0
- package/dist-es/commands/AssociateApplicationFleetCommand.js +39 -0
- package/dist-es/commands/CreateAppBlockCommand.js +39 -0
- package/dist-es/commands/CreateApplicationCommand.js +39 -0
- package/dist-es/commands/DeleteAppBlockCommand.js +39 -0
- package/dist-es/commands/DeleteApplicationCommand.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/DisassociateApplicationFleetCommand.js +39 -0
- package/dist-es/commands/UpdateApplicationCommand.js +39 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/endpoints.js +112 -9
- package/dist-es/models/models_0.js +127 -24
- package/dist-es/protocols/Aws_json1_1.js +1291 -162
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/AppStream.d.ts +104 -4
- package/dist-types/AppStreamClient.d.ts +20 -2
- package/dist-types/commands/AssociateApplicationFleetCommand.d.ts +35 -0
- package/dist-types/commands/AssociateFleetCommand.d.ts +1 -1
- package/dist-types/commands/BatchAssociateUserStackCommand.d.ts +1 -1
- package/dist-types/commands/BatchDisassociateUserStackCommand.d.ts +1 -1
- package/dist-types/commands/CopyImageCommand.d.ts +1 -1
- package/dist-types/commands/CreateAppBlockCommand.d.ts +41 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +41 -0
- package/dist-types/commands/CreateDirectoryConfigCommand.d.ts +1 -1
- package/dist-types/commands/CreateFleetCommand.d.ts +2 -2
- package/dist-types/commands/CreateImageBuilderCommand.d.ts +1 -1
- package/dist-types/commands/CreateImageBuilderStreamingURLCommand.d.ts +1 -1
- package/dist-types/commands/CreateStackCommand.d.ts +1 -1
- package/dist-types/commands/CreateStreamingURLCommand.d.ts +1 -1
- package/dist-types/commands/CreateUpdatedImageCommand.d.ts +1 -1
- package/dist-types/commands/CreateUsageReportSubscriptionCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserCommand.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/DeleteDirectoryConfigCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFleetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteImageBuilderCommand.d.ts +1 -1
- package/dist-types/commands/DeleteImageCommand.d.ts +1 -1
- package/dist-types/commands/DeleteImagePermissionsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteStackCommand.d.ts +1 -1
- package/dist-types/commands/DeleteUsageReportSubscriptionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteUserCommand.d.ts +1 -1
- 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/DescribeDirectoryConfigsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeFleetsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImageBuildersCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImagePermissionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImagesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSessionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeStacksCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUsageReportSubscriptionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUserStackAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUsersCommand.d.ts +1 -1
- package/dist-types/commands/DisableUserCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateApplicationFleetCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateFleetCommand.d.ts +1 -1
- package/dist-types/commands/EnableUserCommand.d.ts +1 -1
- package/dist-types/commands/ExpireSessionCommand.d.ts +1 -1
- package/dist-types/commands/ListAssociatedFleetsCommand.d.ts +1 -1
- package/dist-types/commands/ListAssociatedStacksCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/StartFleetCommand.d.ts +1 -1
- package/dist-types/commands/StartImageBuilderCommand.d.ts +1 -1
- package/dist-types/commands/StopFleetCommand.d.ts +1 -1
- package/dist-types/commands/StopImageBuilderCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateApplicationCommand.d.ts +35 -0
- package/dist-types/commands/UpdateDirectoryConfigCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFleetCommand.d.ts +22 -4
- package/dist-types/commands/UpdateImagePermissionsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateStackCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +647 -63
- package/dist-types/protocols/Aws_json1_1.d.ts +30 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/AppStream.d.ts +50 -0
- package/dist-types/ts3.4/AppStreamClient.d.ts +16 -2
- package/dist-types/ts3.4/commands/AssociateApplicationFleetCommand.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/DeleteAppBlockCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.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/DisassociateApplicationFleetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +368 -42
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +30 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +24 -24
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.serializeAws_json1_1StopFleetCommand = exports.serializeAws_json1_1StartImageBuilderCommand = exports.serializeAws_json1_1StartFleetCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListAssociatedStacksCommand = exports.serializeAws_json1_1ListAssociatedFleetsCommand = exports.serializeAws_json1_1ExpireSessionCommand = exports.serializeAws_json1_1EnableUserCommand = exports.serializeAws_json1_1DisassociateFleetCommand = 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_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_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_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_1AssociateApplicationFleetCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1DisassociateFleetCommand = 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 = exports.deserializeAws_json1_1DescribeFleetsCommand = 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_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_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_1AssociateApplicationFleetCommand = exports.serializeAws_json1_1UpdateStackCommand = exports.serializeAws_json1_1UpdateImagePermissionsCommand = exports.serializeAws_json1_1UpdateFleetCommand = exports.serializeAws_json1_1UpdateDirectoryConfigCommand = exports.serializeAws_json1_1UpdateApplicationCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopImageBuilderCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateStackCommand = exports.deserializeAws_json1_1UpdateImagePermissionsCommand = exports.deserializeAws_json1_1UpdateFleetCommand = exports.deserializeAws_json1_1UpdateDirectoryConfigCommand = exports.deserializeAws_json1_1UpdateApplicationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopImageBuilderCommand = exports.deserializeAws_json1_1StopFleetCommand = exports.deserializeAws_json1_1StartImageBuilderCommand = exports.deserializeAws_json1_1StartFleetCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListAssociatedStacksCommand = exports.deserializeAws_json1_1ListAssociatedFleetsCommand = exports.deserializeAws_json1_1ExpireSessionCommand = exports.deserializeAws_json1_1EnableUserCommand = void 0;
|
|
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;
|
|
7
18
|
const serializeAws_json1_1AssociateFleetCommand = async (input, context) => {
|
|
8
19
|
const headers = {
|
|
9
20
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -44,6 +55,26 @@ const serializeAws_json1_1CopyImageCommand = async (input, context) => {
|
|
|
44
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
45
56
|
};
|
|
46
57
|
exports.serializeAws_json1_1CopyImageCommand = serializeAws_json1_1CopyImageCommand;
|
|
58
|
+
const serializeAws_json1_1CreateAppBlockCommand = async (input, context) => {
|
|
59
|
+
const headers = {
|
|
60
|
+
"content-type": "application/x-amz-json-1.1",
|
|
61
|
+
"x-amz-target": "PhotonAdminProxyService.CreateAppBlock",
|
|
62
|
+
};
|
|
63
|
+
let body;
|
|
64
|
+
body = JSON.stringify(serializeAws_json1_1CreateAppBlockRequest(input, context));
|
|
65
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
+
};
|
|
67
|
+
exports.serializeAws_json1_1CreateAppBlockCommand = serializeAws_json1_1CreateAppBlockCommand;
|
|
68
|
+
const serializeAws_json1_1CreateApplicationCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "PhotonAdminProxyService.CreateApplication",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1CreateApplicationRequest(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
77
|
+
exports.serializeAws_json1_1CreateApplicationCommand = serializeAws_json1_1CreateApplicationCommand;
|
|
47
78
|
const serializeAws_json1_1CreateDirectoryConfigCommand = async (input, context) => {
|
|
48
79
|
const headers = {
|
|
49
80
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -134,6 +165,26 @@ const serializeAws_json1_1CreateUserCommand = async (input, context) => {
|
|
|
134
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
166
|
};
|
|
136
167
|
exports.serializeAws_json1_1CreateUserCommand = serializeAws_json1_1CreateUserCommand;
|
|
168
|
+
const serializeAws_json1_1DeleteAppBlockCommand = async (input, context) => {
|
|
169
|
+
const headers = {
|
|
170
|
+
"content-type": "application/x-amz-json-1.1",
|
|
171
|
+
"x-amz-target": "PhotonAdminProxyService.DeleteAppBlock",
|
|
172
|
+
};
|
|
173
|
+
let body;
|
|
174
|
+
body = JSON.stringify(serializeAws_json1_1DeleteAppBlockRequest(input, context));
|
|
175
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
+
};
|
|
177
|
+
exports.serializeAws_json1_1DeleteAppBlockCommand = serializeAws_json1_1DeleteAppBlockCommand;
|
|
178
|
+
const serializeAws_json1_1DeleteApplicationCommand = async (input, context) => {
|
|
179
|
+
const headers = {
|
|
180
|
+
"content-type": "application/x-amz-json-1.1",
|
|
181
|
+
"x-amz-target": "PhotonAdminProxyService.DeleteApplication",
|
|
182
|
+
};
|
|
183
|
+
let body;
|
|
184
|
+
body = JSON.stringify(serializeAws_json1_1DeleteApplicationRequest(input, context));
|
|
185
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
+
};
|
|
187
|
+
exports.serializeAws_json1_1DeleteApplicationCommand = serializeAws_json1_1DeleteApplicationCommand;
|
|
137
188
|
const serializeAws_json1_1DeleteDirectoryConfigCommand = async (input, context) => {
|
|
138
189
|
const headers = {
|
|
139
190
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -214,6 +265,36 @@ const serializeAws_json1_1DeleteUserCommand = async (input, context) => {
|
|
|
214
265
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
266
|
};
|
|
216
267
|
exports.serializeAws_json1_1DeleteUserCommand = serializeAws_json1_1DeleteUserCommand;
|
|
268
|
+
const serializeAws_json1_1DescribeAppBlocksCommand = async (input, context) => {
|
|
269
|
+
const headers = {
|
|
270
|
+
"content-type": "application/x-amz-json-1.1",
|
|
271
|
+
"x-amz-target": "PhotonAdminProxyService.DescribeAppBlocks",
|
|
272
|
+
};
|
|
273
|
+
let body;
|
|
274
|
+
body = JSON.stringify(serializeAws_json1_1DescribeAppBlocksRequest(input, context));
|
|
275
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
|
+
};
|
|
277
|
+
exports.serializeAws_json1_1DescribeAppBlocksCommand = serializeAws_json1_1DescribeAppBlocksCommand;
|
|
278
|
+
const serializeAws_json1_1DescribeApplicationFleetAssociationsCommand = async (input, context) => {
|
|
279
|
+
const headers = {
|
|
280
|
+
"content-type": "application/x-amz-json-1.1",
|
|
281
|
+
"x-amz-target": "PhotonAdminProxyService.DescribeApplicationFleetAssociations",
|
|
282
|
+
};
|
|
283
|
+
let body;
|
|
284
|
+
body = JSON.stringify(serializeAws_json1_1DescribeApplicationFleetAssociationsRequest(input, context));
|
|
285
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
286
|
+
};
|
|
287
|
+
exports.serializeAws_json1_1DescribeApplicationFleetAssociationsCommand = serializeAws_json1_1DescribeApplicationFleetAssociationsCommand;
|
|
288
|
+
const serializeAws_json1_1DescribeApplicationsCommand = async (input, context) => {
|
|
289
|
+
const headers = {
|
|
290
|
+
"content-type": "application/x-amz-json-1.1",
|
|
291
|
+
"x-amz-target": "PhotonAdminProxyService.DescribeApplications",
|
|
292
|
+
};
|
|
293
|
+
let body;
|
|
294
|
+
body = JSON.stringify(serializeAws_json1_1DescribeApplicationsRequest(input, context));
|
|
295
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
296
|
+
};
|
|
297
|
+
exports.serializeAws_json1_1DescribeApplicationsCommand = serializeAws_json1_1DescribeApplicationsCommand;
|
|
217
298
|
const serializeAws_json1_1DescribeDirectoryConfigsCommand = async (input, context) => {
|
|
218
299
|
const headers = {
|
|
219
300
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -324,6 +405,16 @@ const serializeAws_json1_1DisableUserCommand = async (input, context) => {
|
|
|
324
405
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
325
406
|
};
|
|
326
407
|
exports.serializeAws_json1_1DisableUserCommand = serializeAws_json1_1DisableUserCommand;
|
|
408
|
+
const serializeAws_json1_1DisassociateApplicationFleetCommand = async (input, context) => {
|
|
409
|
+
const headers = {
|
|
410
|
+
"content-type": "application/x-amz-json-1.1",
|
|
411
|
+
"x-amz-target": "PhotonAdminProxyService.DisassociateApplicationFleet",
|
|
412
|
+
};
|
|
413
|
+
let body;
|
|
414
|
+
body = JSON.stringify(serializeAws_json1_1DisassociateApplicationFleetRequest(input, context));
|
|
415
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
416
|
+
};
|
|
417
|
+
exports.serializeAws_json1_1DisassociateApplicationFleetCommand = serializeAws_json1_1DisassociateApplicationFleetCommand;
|
|
327
418
|
const serializeAws_json1_1DisassociateFleetCommand = async (input, context) => {
|
|
328
419
|
const headers = {
|
|
329
420
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -444,6 +535,16 @@ const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
|
444
535
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
445
536
|
};
|
|
446
537
|
exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand;
|
|
538
|
+
const serializeAws_json1_1UpdateApplicationCommand = async (input, context) => {
|
|
539
|
+
const headers = {
|
|
540
|
+
"content-type": "application/x-amz-json-1.1",
|
|
541
|
+
"x-amz-target": "PhotonAdminProxyService.UpdateApplication",
|
|
542
|
+
};
|
|
543
|
+
let body;
|
|
544
|
+
body = JSON.stringify(serializeAws_json1_1UpdateApplicationRequest(input, context));
|
|
545
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
546
|
+
};
|
|
547
|
+
exports.serializeAws_json1_1UpdateApplicationCommand = serializeAws_json1_1UpdateApplicationCommand;
|
|
447
548
|
const serializeAws_json1_1UpdateDirectoryConfigCommand = async (input, context) => {
|
|
448
549
|
const headers = {
|
|
449
550
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -484,6 +585,85 @@ const serializeAws_json1_1UpdateStackCommand = async (input, context) => {
|
|
|
484
585
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
485
586
|
};
|
|
486
587
|
exports.serializeAws_json1_1UpdateStackCommand = serializeAws_json1_1UpdateStackCommand;
|
|
588
|
+
const deserializeAws_json1_1AssociateApplicationFleetCommand = async (output, context) => {
|
|
589
|
+
if (output.statusCode >= 300) {
|
|
590
|
+
return deserializeAws_json1_1AssociateApplicationFleetCommandError(output, context);
|
|
591
|
+
}
|
|
592
|
+
const data = await parseBody(output.body, context);
|
|
593
|
+
let contents = {};
|
|
594
|
+
contents = deserializeAws_json1_1AssociateApplicationFleetResult(data, context);
|
|
595
|
+
const response = {
|
|
596
|
+
$metadata: deserializeMetadata(output),
|
|
597
|
+
...contents,
|
|
598
|
+
};
|
|
599
|
+
return Promise.resolve(response);
|
|
600
|
+
};
|
|
601
|
+
exports.deserializeAws_json1_1AssociateApplicationFleetCommand = deserializeAws_json1_1AssociateApplicationFleetCommand;
|
|
602
|
+
const deserializeAws_json1_1AssociateApplicationFleetCommandError = async (output, context) => {
|
|
603
|
+
const parsedOutput = {
|
|
604
|
+
...output,
|
|
605
|
+
body: await parseBody(output.body, context),
|
|
606
|
+
};
|
|
607
|
+
let response;
|
|
608
|
+
let errorCode = "UnknownError";
|
|
609
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
|
+
switch (errorCode) {
|
|
611
|
+
case "ConcurrentModificationException":
|
|
612
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
613
|
+
response = {
|
|
614
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
615
|
+
name: errorCode,
|
|
616
|
+
$metadata: deserializeMetadata(output),
|
|
617
|
+
};
|
|
618
|
+
break;
|
|
619
|
+
case "InvalidParameterCombinationException":
|
|
620
|
+
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
621
|
+
response = {
|
|
622
|
+
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
623
|
+
name: errorCode,
|
|
624
|
+
$metadata: deserializeMetadata(output),
|
|
625
|
+
};
|
|
626
|
+
break;
|
|
627
|
+
case "LimitExceededException":
|
|
628
|
+
case "com.amazonaws.appstream#LimitExceededException":
|
|
629
|
+
response = {
|
|
630
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
631
|
+
name: errorCode,
|
|
632
|
+
$metadata: deserializeMetadata(output),
|
|
633
|
+
};
|
|
634
|
+
break;
|
|
635
|
+
case "OperationNotPermittedException":
|
|
636
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
637
|
+
response = {
|
|
638
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
639
|
+
name: errorCode,
|
|
640
|
+
$metadata: deserializeMetadata(output),
|
|
641
|
+
};
|
|
642
|
+
break;
|
|
643
|
+
case "ResourceNotFoundException":
|
|
644
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
645
|
+
response = {
|
|
646
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
647
|
+
name: errorCode,
|
|
648
|
+
$metadata: deserializeMetadata(output),
|
|
649
|
+
};
|
|
650
|
+
break;
|
|
651
|
+
default:
|
|
652
|
+
const parsedBody = parsedOutput.body;
|
|
653
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
654
|
+
response = {
|
|
655
|
+
...parsedBody,
|
|
656
|
+
name: `${errorCode}`,
|
|
657
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
658
|
+
$fault: "client",
|
|
659
|
+
$metadata: deserializeMetadata(output),
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
const message = response.message || response.Message || errorCode;
|
|
663
|
+
response.message = message;
|
|
664
|
+
delete response.Message;
|
|
665
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
666
|
+
};
|
|
487
667
|
const deserializeAws_json1_1AssociateFleetCommand = async (output, context) => {
|
|
488
668
|
if (output.statusCode >= 300) {
|
|
489
669
|
return deserializeAws_json1_1AssociateFleetCommandError(output, context);
|
|
@@ -768,21 +948,21 @@ const deserializeAws_json1_1CopyImageCommandError = async (output, context) => {
|
|
|
768
948
|
delete response.Message;
|
|
769
949
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
770
950
|
};
|
|
771
|
-
const
|
|
951
|
+
const deserializeAws_json1_1CreateAppBlockCommand = async (output, context) => {
|
|
772
952
|
if (output.statusCode >= 300) {
|
|
773
|
-
return
|
|
953
|
+
return deserializeAws_json1_1CreateAppBlockCommandError(output, context);
|
|
774
954
|
}
|
|
775
955
|
const data = await parseBody(output.body, context);
|
|
776
956
|
let contents = {};
|
|
777
|
-
contents =
|
|
957
|
+
contents = deserializeAws_json1_1CreateAppBlockResult(data, context);
|
|
778
958
|
const response = {
|
|
779
959
|
$metadata: deserializeMetadata(output),
|
|
780
960
|
...contents,
|
|
781
961
|
};
|
|
782
962
|
return Promise.resolve(response);
|
|
783
963
|
};
|
|
784
|
-
exports.
|
|
785
|
-
const
|
|
964
|
+
exports.deserializeAws_json1_1CreateAppBlockCommand = deserializeAws_json1_1CreateAppBlockCommand;
|
|
965
|
+
const deserializeAws_json1_1CreateAppBlockCommandError = async (output, context) => {
|
|
786
966
|
const parsedOutput = {
|
|
787
967
|
...output,
|
|
788
968
|
body: await parseBody(output.body, context),
|
|
@@ -791,18 +971,10 @@ const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, c
|
|
|
791
971
|
let errorCode = "UnknownError";
|
|
792
972
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
973
|
switch (errorCode) {
|
|
794
|
-
case "
|
|
795
|
-
case "com.amazonaws.appstream#
|
|
796
|
-
response = {
|
|
797
|
-
...(await deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)),
|
|
798
|
-
name: errorCode,
|
|
799
|
-
$metadata: deserializeMetadata(output),
|
|
800
|
-
};
|
|
801
|
-
break;
|
|
802
|
-
case "InvalidRoleException":
|
|
803
|
-
case "com.amazonaws.appstream#InvalidRoleException":
|
|
974
|
+
case "ConcurrentModificationException":
|
|
975
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
804
976
|
response = {
|
|
805
|
-
...(await
|
|
977
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
806
978
|
name: errorCode,
|
|
807
979
|
$metadata: deserializeMetadata(output),
|
|
808
980
|
};
|
|
@@ -831,14 +1003,6 @@ const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, c
|
|
|
831
1003
|
$metadata: deserializeMetadata(output),
|
|
832
1004
|
};
|
|
833
1005
|
break;
|
|
834
|
-
case "ResourceNotFoundException":
|
|
835
|
-
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
836
|
-
response = {
|
|
837
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
838
|
-
name: errorCode,
|
|
839
|
-
$metadata: deserializeMetadata(output),
|
|
840
|
-
};
|
|
841
|
-
break;
|
|
842
1006
|
default:
|
|
843
1007
|
const parsedBody = parsedOutput.body;
|
|
844
1008
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -855,21 +1019,21 @@ const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, c
|
|
|
855
1019
|
delete response.Message;
|
|
856
1020
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
857
1021
|
};
|
|
858
|
-
const
|
|
1022
|
+
const deserializeAws_json1_1CreateApplicationCommand = async (output, context) => {
|
|
859
1023
|
if (output.statusCode >= 300) {
|
|
860
|
-
return
|
|
1024
|
+
return deserializeAws_json1_1CreateApplicationCommandError(output, context);
|
|
861
1025
|
}
|
|
862
1026
|
const data = await parseBody(output.body, context);
|
|
863
1027
|
let contents = {};
|
|
864
|
-
contents =
|
|
1028
|
+
contents = deserializeAws_json1_1CreateApplicationResult(data, context);
|
|
865
1029
|
const response = {
|
|
866
1030
|
$metadata: deserializeMetadata(output),
|
|
867
1031
|
...contents,
|
|
868
1032
|
};
|
|
869
1033
|
return Promise.resolve(response);
|
|
870
1034
|
};
|
|
871
|
-
exports.
|
|
872
|
-
const
|
|
1035
|
+
exports.deserializeAws_json1_1CreateApplicationCommand = deserializeAws_json1_1CreateApplicationCommand;
|
|
1036
|
+
const deserializeAws_json1_1CreateApplicationCommandError = async (output, context) => {
|
|
873
1037
|
const parsedOutput = {
|
|
874
1038
|
...output,
|
|
875
1039
|
body: await parseBody(output.body, context),
|
|
@@ -886,38 +1050,6 @@ const deserializeAws_json1_1CreateFleetCommandError = async (output, context) =>
|
|
|
886
1050
|
$metadata: deserializeMetadata(output),
|
|
887
1051
|
};
|
|
888
1052
|
break;
|
|
889
|
-
case "IncompatibleImageException":
|
|
890
|
-
case "com.amazonaws.appstream#IncompatibleImageException":
|
|
891
|
-
response = {
|
|
892
|
-
...(await deserializeAws_json1_1IncompatibleImageExceptionResponse(parsedOutput, context)),
|
|
893
|
-
name: errorCode,
|
|
894
|
-
$metadata: deserializeMetadata(output),
|
|
895
|
-
};
|
|
896
|
-
break;
|
|
897
|
-
case "InvalidAccountStatusException":
|
|
898
|
-
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
899
|
-
response = {
|
|
900
|
-
...(await deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)),
|
|
901
|
-
name: errorCode,
|
|
902
|
-
$metadata: deserializeMetadata(output),
|
|
903
|
-
};
|
|
904
|
-
break;
|
|
905
|
-
case "InvalidParameterCombinationException":
|
|
906
|
-
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
907
|
-
response = {
|
|
908
|
-
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
909
|
-
name: errorCode,
|
|
910
|
-
$metadata: deserializeMetadata(output),
|
|
911
|
-
};
|
|
912
|
-
break;
|
|
913
|
-
case "InvalidRoleException":
|
|
914
|
-
case "com.amazonaws.appstream#InvalidRoleException":
|
|
915
|
-
response = {
|
|
916
|
-
...(await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context)),
|
|
917
|
-
name: errorCode,
|
|
918
|
-
$metadata: deserializeMetadata(output),
|
|
919
|
-
};
|
|
920
|
-
break;
|
|
921
1053
|
case "LimitExceededException":
|
|
922
1054
|
case "com.amazonaws.appstream#LimitExceededException":
|
|
923
1055
|
response = {
|
|
@@ -934,14 +1066,6 @@ const deserializeAws_json1_1CreateFleetCommandError = async (output, context) =>
|
|
|
934
1066
|
$metadata: deserializeMetadata(output),
|
|
935
1067
|
};
|
|
936
1068
|
break;
|
|
937
|
-
case "RequestLimitExceededException":
|
|
938
|
-
case "com.amazonaws.appstream#RequestLimitExceededException":
|
|
939
|
-
response = {
|
|
940
|
-
...(await deserializeAws_json1_1RequestLimitExceededExceptionResponse(parsedOutput, context)),
|
|
941
|
-
name: errorCode,
|
|
942
|
-
$metadata: deserializeMetadata(output),
|
|
943
|
-
};
|
|
944
|
-
break;
|
|
945
1069
|
case "ResourceAlreadyExistsException":
|
|
946
1070
|
case "com.amazonaws.appstream#ResourceAlreadyExistsException":
|
|
947
1071
|
response = {
|
|
@@ -950,14 +1074,6 @@ const deserializeAws_json1_1CreateFleetCommandError = async (output, context) =>
|
|
|
950
1074
|
$metadata: deserializeMetadata(output),
|
|
951
1075
|
};
|
|
952
1076
|
break;
|
|
953
|
-
case "ResourceNotAvailableException":
|
|
954
|
-
case "com.amazonaws.appstream#ResourceNotAvailableException":
|
|
955
|
-
response = {
|
|
956
|
-
...(await deserializeAws_json1_1ResourceNotAvailableExceptionResponse(parsedOutput, context)),
|
|
957
|
-
name: errorCode,
|
|
958
|
-
$metadata: deserializeMetadata(output),
|
|
959
|
-
};
|
|
960
|
-
break;
|
|
961
1077
|
case "ResourceNotFoundException":
|
|
962
1078
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
963
1079
|
response = {
|
|
@@ -982,21 +1098,21 @@ const deserializeAws_json1_1CreateFleetCommandError = async (output, context) =>
|
|
|
982
1098
|
delete response.Message;
|
|
983
1099
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
984
1100
|
};
|
|
985
|
-
const
|
|
1101
|
+
const deserializeAws_json1_1CreateDirectoryConfigCommand = async (output, context) => {
|
|
986
1102
|
if (output.statusCode >= 300) {
|
|
987
|
-
return
|
|
1103
|
+
return deserializeAws_json1_1CreateDirectoryConfigCommandError(output, context);
|
|
988
1104
|
}
|
|
989
1105
|
const data = await parseBody(output.body, context);
|
|
990
1106
|
let contents = {};
|
|
991
|
-
contents =
|
|
1107
|
+
contents = deserializeAws_json1_1CreateDirectoryConfigResult(data, context);
|
|
992
1108
|
const response = {
|
|
993
1109
|
$metadata: deserializeMetadata(output),
|
|
994
1110
|
...contents,
|
|
995
1111
|
};
|
|
996
1112
|
return Promise.resolve(response);
|
|
997
1113
|
};
|
|
998
|
-
exports.
|
|
999
|
-
const
|
|
1114
|
+
exports.deserializeAws_json1_1CreateDirectoryConfigCommand = deserializeAws_json1_1CreateDirectoryConfigCommand;
|
|
1115
|
+
const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, context) => {
|
|
1000
1116
|
const parsedOutput = {
|
|
1001
1117
|
...output,
|
|
1002
1118
|
body: await parseBody(output.body, context),
|
|
@@ -1005,22 +1121,6 @@ const deserializeAws_json1_1CreateImageBuilderCommandError = async (output, cont
|
|
|
1005
1121
|
let errorCode = "UnknownError";
|
|
1006
1122
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
1123
|
switch (errorCode) {
|
|
1008
|
-
case "ConcurrentModificationException":
|
|
1009
|
-
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
1010
|
-
response = {
|
|
1011
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1012
|
-
name: errorCode,
|
|
1013
|
-
$metadata: deserializeMetadata(output),
|
|
1014
|
-
};
|
|
1015
|
-
break;
|
|
1016
|
-
case "IncompatibleImageException":
|
|
1017
|
-
case "com.amazonaws.appstream#IncompatibleImageException":
|
|
1018
|
-
response = {
|
|
1019
|
-
...(await deserializeAws_json1_1IncompatibleImageExceptionResponse(parsedOutput, context)),
|
|
1020
|
-
name: errorCode,
|
|
1021
|
-
$metadata: deserializeMetadata(output),
|
|
1022
|
-
};
|
|
1023
|
-
break;
|
|
1024
1124
|
case "InvalidAccountStatusException":
|
|
1025
1125
|
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
1026
1126
|
response = {
|
|
@@ -1029,14 +1129,6 @@ const deserializeAws_json1_1CreateImageBuilderCommandError = async (output, cont
|
|
|
1029
1129
|
$metadata: deserializeMetadata(output),
|
|
1030
1130
|
};
|
|
1031
1131
|
break;
|
|
1032
|
-
case "InvalidParameterCombinationException":
|
|
1033
|
-
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
1034
|
-
response = {
|
|
1035
|
-
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
1036
|
-
name: errorCode,
|
|
1037
|
-
$metadata: deserializeMetadata(output),
|
|
1038
|
-
};
|
|
1039
|
-
break;
|
|
1040
1132
|
case "InvalidRoleException":
|
|
1041
1133
|
case "com.amazonaws.appstream#InvalidRoleException":
|
|
1042
1134
|
response = {
|
|
@@ -1061,14 +1153,252 @@ const deserializeAws_json1_1CreateImageBuilderCommandError = async (output, cont
|
|
|
1061
1153
|
$metadata: deserializeMetadata(output),
|
|
1062
1154
|
};
|
|
1063
1155
|
break;
|
|
1064
|
-
case "
|
|
1065
|
-
case "com.amazonaws.appstream#
|
|
1066
|
-
response = {
|
|
1067
|
-
...(await
|
|
1068
|
-
name: errorCode,
|
|
1069
|
-
$metadata: deserializeMetadata(output),
|
|
1070
|
-
};
|
|
1071
|
-
break;
|
|
1156
|
+
case "ResourceAlreadyExistsException":
|
|
1157
|
+
case "com.amazonaws.appstream#ResourceAlreadyExistsException":
|
|
1158
|
+
response = {
|
|
1159
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1160
|
+
name: errorCode,
|
|
1161
|
+
$metadata: deserializeMetadata(output),
|
|
1162
|
+
};
|
|
1163
|
+
break;
|
|
1164
|
+
case "ResourceNotFoundException":
|
|
1165
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
1166
|
+
response = {
|
|
1167
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1168
|
+
name: errorCode,
|
|
1169
|
+
$metadata: deserializeMetadata(output),
|
|
1170
|
+
};
|
|
1171
|
+
break;
|
|
1172
|
+
default:
|
|
1173
|
+
const parsedBody = parsedOutput.body;
|
|
1174
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1175
|
+
response = {
|
|
1176
|
+
...parsedBody,
|
|
1177
|
+
name: `${errorCode}`,
|
|
1178
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1179
|
+
$fault: "client",
|
|
1180
|
+
$metadata: deserializeMetadata(output),
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
const message = response.message || response.Message || errorCode;
|
|
1184
|
+
response.message = message;
|
|
1185
|
+
delete response.Message;
|
|
1186
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1187
|
+
};
|
|
1188
|
+
const deserializeAws_json1_1CreateFleetCommand = async (output, context) => {
|
|
1189
|
+
if (output.statusCode >= 300) {
|
|
1190
|
+
return deserializeAws_json1_1CreateFleetCommandError(output, context);
|
|
1191
|
+
}
|
|
1192
|
+
const data = await parseBody(output.body, context);
|
|
1193
|
+
let contents = {};
|
|
1194
|
+
contents = deserializeAws_json1_1CreateFleetResult(data, context);
|
|
1195
|
+
const response = {
|
|
1196
|
+
$metadata: deserializeMetadata(output),
|
|
1197
|
+
...contents,
|
|
1198
|
+
};
|
|
1199
|
+
return Promise.resolve(response);
|
|
1200
|
+
};
|
|
1201
|
+
exports.deserializeAws_json1_1CreateFleetCommand = deserializeAws_json1_1CreateFleetCommand;
|
|
1202
|
+
const deserializeAws_json1_1CreateFleetCommandError = async (output, context) => {
|
|
1203
|
+
const parsedOutput = {
|
|
1204
|
+
...output,
|
|
1205
|
+
body: await parseBody(output.body, context),
|
|
1206
|
+
};
|
|
1207
|
+
let response;
|
|
1208
|
+
let errorCode = "UnknownError";
|
|
1209
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1210
|
+
switch (errorCode) {
|
|
1211
|
+
case "ConcurrentModificationException":
|
|
1212
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
1213
|
+
response = {
|
|
1214
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1215
|
+
name: errorCode,
|
|
1216
|
+
$metadata: deserializeMetadata(output),
|
|
1217
|
+
};
|
|
1218
|
+
break;
|
|
1219
|
+
case "IncompatibleImageException":
|
|
1220
|
+
case "com.amazonaws.appstream#IncompatibleImageException":
|
|
1221
|
+
response = {
|
|
1222
|
+
...(await deserializeAws_json1_1IncompatibleImageExceptionResponse(parsedOutput, context)),
|
|
1223
|
+
name: errorCode,
|
|
1224
|
+
$metadata: deserializeMetadata(output),
|
|
1225
|
+
};
|
|
1226
|
+
break;
|
|
1227
|
+
case "InvalidAccountStatusException":
|
|
1228
|
+
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
1229
|
+
response = {
|
|
1230
|
+
...(await deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)),
|
|
1231
|
+
name: errorCode,
|
|
1232
|
+
$metadata: deserializeMetadata(output),
|
|
1233
|
+
};
|
|
1234
|
+
break;
|
|
1235
|
+
case "InvalidParameterCombinationException":
|
|
1236
|
+
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
1237
|
+
response = {
|
|
1238
|
+
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
1239
|
+
name: errorCode,
|
|
1240
|
+
$metadata: deserializeMetadata(output),
|
|
1241
|
+
};
|
|
1242
|
+
break;
|
|
1243
|
+
case "InvalidRoleException":
|
|
1244
|
+
case "com.amazonaws.appstream#InvalidRoleException":
|
|
1245
|
+
response = {
|
|
1246
|
+
...(await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context)),
|
|
1247
|
+
name: errorCode,
|
|
1248
|
+
$metadata: deserializeMetadata(output),
|
|
1249
|
+
};
|
|
1250
|
+
break;
|
|
1251
|
+
case "LimitExceededException":
|
|
1252
|
+
case "com.amazonaws.appstream#LimitExceededException":
|
|
1253
|
+
response = {
|
|
1254
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1255
|
+
name: errorCode,
|
|
1256
|
+
$metadata: deserializeMetadata(output),
|
|
1257
|
+
};
|
|
1258
|
+
break;
|
|
1259
|
+
case "OperationNotPermittedException":
|
|
1260
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1261
|
+
response = {
|
|
1262
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1263
|
+
name: errorCode,
|
|
1264
|
+
$metadata: deserializeMetadata(output),
|
|
1265
|
+
};
|
|
1266
|
+
break;
|
|
1267
|
+
case "RequestLimitExceededException":
|
|
1268
|
+
case "com.amazonaws.appstream#RequestLimitExceededException":
|
|
1269
|
+
response = {
|
|
1270
|
+
...(await deserializeAws_json1_1RequestLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1271
|
+
name: errorCode,
|
|
1272
|
+
$metadata: deserializeMetadata(output),
|
|
1273
|
+
};
|
|
1274
|
+
break;
|
|
1275
|
+
case "ResourceAlreadyExistsException":
|
|
1276
|
+
case "com.amazonaws.appstream#ResourceAlreadyExistsException":
|
|
1277
|
+
response = {
|
|
1278
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1279
|
+
name: errorCode,
|
|
1280
|
+
$metadata: deserializeMetadata(output),
|
|
1281
|
+
};
|
|
1282
|
+
break;
|
|
1283
|
+
case "ResourceNotAvailableException":
|
|
1284
|
+
case "com.amazonaws.appstream#ResourceNotAvailableException":
|
|
1285
|
+
response = {
|
|
1286
|
+
...(await deserializeAws_json1_1ResourceNotAvailableExceptionResponse(parsedOutput, context)),
|
|
1287
|
+
name: errorCode,
|
|
1288
|
+
$metadata: deserializeMetadata(output),
|
|
1289
|
+
};
|
|
1290
|
+
break;
|
|
1291
|
+
case "ResourceNotFoundException":
|
|
1292
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
1293
|
+
response = {
|
|
1294
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1295
|
+
name: errorCode,
|
|
1296
|
+
$metadata: deserializeMetadata(output),
|
|
1297
|
+
};
|
|
1298
|
+
break;
|
|
1299
|
+
default:
|
|
1300
|
+
const parsedBody = parsedOutput.body;
|
|
1301
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1302
|
+
response = {
|
|
1303
|
+
...parsedBody,
|
|
1304
|
+
name: `${errorCode}`,
|
|
1305
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1306
|
+
$fault: "client",
|
|
1307
|
+
$metadata: deserializeMetadata(output),
|
|
1308
|
+
};
|
|
1309
|
+
}
|
|
1310
|
+
const message = response.message || response.Message || errorCode;
|
|
1311
|
+
response.message = message;
|
|
1312
|
+
delete response.Message;
|
|
1313
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1314
|
+
};
|
|
1315
|
+
const deserializeAws_json1_1CreateImageBuilderCommand = async (output, context) => {
|
|
1316
|
+
if (output.statusCode >= 300) {
|
|
1317
|
+
return deserializeAws_json1_1CreateImageBuilderCommandError(output, context);
|
|
1318
|
+
}
|
|
1319
|
+
const data = await parseBody(output.body, context);
|
|
1320
|
+
let contents = {};
|
|
1321
|
+
contents = deserializeAws_json1_1CreateImageBuilderResult(data, context);
|
|
1322
|
+
const response = {
|
|
1323
|
+
$metadata: deserializeMetadata(output),
|
|
1324
|
+
...contents,
|
|
1325
|
+
};
|
|
1326
|
+
return Promise.resolve(response);
|
|
1327
|
+
};
|
|
1328
|
+
exports.deserializeAws_json1_1CreateImageBuilderCommand = deserializeAws_json1_1CreateImageBuilderCommand;
|
|
1329
|
+
const deserializeAws_json1_1CreateImageBuilderCommandError = async (output, context) => {
|
|
1330
|
+
const parsedOutput = {
|
|
1331
|
+
...output,
|
|
1332
|
+
body: await parseBody(output.body, context),
|
|
1333
|
+
};
|
|
1334
|
+
let response;
|
|
1335
|
+
let errorCode = "UnknownError";
|
|
1336
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1337
|
+
switch (errorCode) {
|
|
1338
|
+
case "ConcurrentModificationException":
|
|
1339
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
1340
|
+
response = {
|
|
1341
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1342
|
+
name: errorCode,
|
|
1343
|
+
$metadata: deserializeMetadata(output),
|
|
1344
|
+
};
|
|
1345
|
+
break;
|
|
1346
|
+
case "IncompatibleImageException":
|
|
1347
|
+
case "com.amazonaws.appstream#IncompatibleImageException":
|
|
1348
|
+
response = {
|
|
1349
|
+
...(await deserializeAws_json1_1IncompatibleImageExceptionResponse(parsedOutput, context)),
|
|
1350
|
+
name: errorCode,
|
|
1351
|
+
$metadata: deserializeMetadata(output),
|
|
1352
|
+
};
|
|
1353
|
+
break;
|
|
1354
|
+
case "InvalidAccountStatusException":
|
|
1355
|
+
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
1356
|
+
response = {
|
|
1357
|
+
...(await deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)),
|
|
1358
|
+
name: errorCode,
|
|
1359
|
+
$metadata: deserializeMetadata(output),
|
|
1360
|
+
};
|
|
1361
|
+
break;
|
|
1362
|
+
case "InvalidParameterCombinationException":
|
|
1363
|
+
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
1364
|
+
response = {
|
|
1365
|
+
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
1366
|
+
name: errorCode,
|
|
1367
|
+
$metadata: deserializeMetadata(output),
|
|
1368
|
+
};
|
|
1369
|
+
break;
|
|
1370
|
+
case "InvalidRoleException":
|
|
1371
|
+
case "com.amazonaws.appstream#InvalidRoleException":
|
|
1372
|
+
response = {
|
|
1373
|
+
...(await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context)),
|
|
1374
|
+
name: errorCode,
|
|
1375
|
+
$metadata: deserializeMetadata(output),
|
|
1376
|
+
};
|
|
1377
|
+
break;
|
|
1378
|
+
case "LimitExceededException":
|
|
1379
|
+
case "com.amazonaws.appstream#LimitExceededException":
|
|
1380
|
+
response = {
|
|
1381
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1382
|
+
name: errorCode,
|
|
1383
|
+
$metadata: deserializeMetadata(output),
|
|
1384
|
+
};
|
|
1385
|
+
break;
|
|
1386
|
+
case "OperationNotPermittedException":
|
|
1387
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1388
|
+
response = {
|
|
1389
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1390
|
+
name: errorCode,
|
|
1391
|
+
$metadata: deserializeMetadata(output),
|
|
1392
|
+
};
|
|
1393
|
+
break;
|
|
1394
|
+
case "RequestLimitExceededException":
|
|
1395
|
+
case "com.amazonaws.appstream#RequestLimitExceededException":
|
|
1396
|
+
response = {
|
|
1397
|
+
...(await deserializeAws_json1_1RequestLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1398
|
+
name: errorCode,
|
|
1399
|
+
$metadata: deserializeMetadata(output),
|
|
1400
|
+
};
|
|
1401
|
+
break;
|
|
1072
1402
|
case "ResourceAlreadyExistsException":
|
|
1073
1403
|
case "com.amazonaws.appstream#ResourceAlreadyExistsException":
|
|
1074
1404
|
response = {
|
|
@@ -1567,21 +1897,21 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
1567
1897
|
delete response.Message;
|
|
1568
1898
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1569
1899
|
};
|
|
1570
|
-
const
|
|
1900
|
+
const deserializeAws_json1_1DeleteAppBlockCommand = async (output, context) => {
|
|
1571
1901
|
if (output.statusCode >= 300) {
|
|
1572
|
-
return
|
|
1902
|
+
return deserializeAws_json1_1DeleteAppBlockCommandError(output, context);
|
|
1573
1903
|
}
|
|
1574
1904
|
const data = await parseBody(output.body, context);
|
|
1575
1905
|
let contents = {};
|
|
1576
|
-
contents =
|
|
1906
|
+
contents = deserializeAws_json1_1DeleteAppBlockResult(data, context);
|
|
1577
1907
|
const response = {
|
|
1578
1908
|
$metadata: deserializeMetadata(output),
|
|
1579
1909
|
...contents,
|
|
1580
1910
|
};
|
|
1581
1911
|
return Promise.resolve(response);
|
|
1582
1912
|
};
|
|
1583
|
-
exports.
|
|
1584
|
-
const
|
|
1913
|
+
exports.deserializeAws_json1_1DeleteAppBlockCommand = deserializeAws_json1_1DeleteAppBlockCommand;
|
|
1914
|
+
const deserializeAws_json1_1DeleteAppBlockCommandError = async (output, context) => {
|
|
1585
1915
|
const parsedOutput = {
|
|
1586
1916
|
...output,
|
|
1587
1917
|
body: await parseBody(output.body, context),
|
|
@@ -1590,10 +1920,144 @@ const deserializeAws_json1_1DeleteDirectoryConfigCommandError = async (output, c
|
|
|
1590
1920
|
let errorCode = "UnknownError";
|
|
1591
1921
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1592
1922
|
switch (errorCode) {
|
|
1593
|
-
case "
|
|
1594
|
-
case "com.amazonaws.appstream#
|
|
1923
|
+
case "ConcurrentModificationException":
|
|
1924
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
1595
1925
|
response = {
|
|
1596
|
-
...(await
|
|
1926
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1927
|
+
name: errorCode,
|
|
1928
|
+
$metadata: deserializeMetadata(output),
|
|
1929
|
+
};
|
|
1930
|
+
break;
|
|
1931
|
+
case "ResourceInUseException":
|
|
1932
|
+
case "com.amazonaws.appstream#ResourceInUseException":
|
|
1933
|
+
response = {
|
|
1934
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1935
|
+
name: errorCode,
|
|
1936
|
+
$metadata: deserializeMetadata(output),
|
|
1937
|
+
};
|
|
1938
|
+
break;
|
|
1939
|
+
case "ResourceNotFoundException":
|
|
1940
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
1941
|
+
response = {
|
|
1942
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1943
|
+
name: errorCode,
|
|
1944
|
+
$metadata: deserializeMetadata(output),
|
|
1945
|
+
};
|
|
1946
|
+
break;
|
|
1947
|
+
default:
|
|
1948
|
+
const parsedBody = parsedOutput.body;
|
|
1949
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1950
|
+
response = {
|
|
1951
|
+
...parsedBody,
|
|
1952
|
+
name: `${errorCode}`,
|
|
1953
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1954
|
+
$fault: "client",
|
|
1955
|
+
$metadata: deserializeMetadata(output),
|
|
1956
|
+
};
|
|
1957
|
+
}
|
|
1958
|
+
const message = response.message || response.Message || errorCode;
|
|
1959
|
+
response.message = message;
|
|
1960
|
+
delete response.Message;
|
|
1961
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1962
|
+
};
|
|
1963
|
+
const deserializeAws_json1_1DeleteApplicationCommand = async (output, context) => {
|
|
1964
|
+
if (output.statusCode >= 300) {
|
|
1965
|
+
return deserializeAws_json1_1DeleteApplicationCommandError(output, context);
|
|
1966
|
+
}
|
|
1967
|
+
const data = await parseBody(output.body, context);
|
|
1968
|
+
let contents = {};
|
|
1969
|
+
contents = deserializeAws_json1_1DeleteApplicationResult(data, context);
|
|
1970
|
+
const response = {
|
|
1971
|
+
$metadata: deserializeMetadata(output),
|
|
1972
|
+
...contents,
|
|
1973
|
+
};
|
|
1974
|
+
return Promise.resolve(response);
|
|
1975
|
+
};
|
|
1976
|
+
exports.deserializeAws_json1_1DeleteApplicationCommand = deserializeAws_json1_1DeleteApplicationCommand;
|
|
1977
|
+
const deserializeAws_json1_1DeleteApplicationCommandError = async (output, context) => {
|
|
1978
|
+
const parsedOutput = {
|
|
1979
|
+
...output,
|
|
1980
|
+
body: await parseBody(output.body, context),
|
|
1981
|
+
};
|
|
1982
|
+
let response;
|
|
1983
|
+
let errorCode = "UnknownError";
|
|
1984
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1985
|
+
switch (errorCode) {
|
|
1986
|
+
case "ConcurrentModificationException":
|
|
1987
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
1988
|
+
response = {
|
|
1989
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1990
|
+
name: errorCode,
|
|
1991
|
+
$metadata: deserializeMetadata(output),
|
|
1992
|
+
};
|
|
1993
|
+
break;
|
|
1994
|
+
case "OperationNotPermittedException":
|
|
1995
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1996
|
+
response = {
|
|
1997
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1998
|
+
name: errorCode,
|
|
1999
|
+
$metadata: deserializeMetadata(output),
|
|
2000
|
+
};
|
|
2001
|
+
break;
|
|
2002
|
+
case "ResourceInUseException":
|
|
2003
|
+
case "com.amazonaws.appstream#ResourceInUseException":
|
|
2004
|
+
response = {
|
|
2005
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2006
|
+
name: errorCode,
|
|
2007
|
+
$metadata: deserializeMetadata(output),
|
|
2008
|
+
};
|
|
2009
|
+
break;
|
|
2010
|
+
case "ResourceNotFoundException":
|
|
2011
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2012
|
+
response = {
|
|
2013
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2014
|
+
name: errorCode,
|
|
2015
|
+
$metadata: deserializeMetadata(output),
|
|
2016
|
+
};
|
|
2017
|
+
break;
|
|
2018
|
+
default:
|
|
2019
|
+
const parsedBody = parsedOutput.body;
|
|
2020
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2021
|
+
response = {
|
|
2022
|
+
...parsedBody,
|
|
2023
|
+
name: `${errorCode}`,
|
|
2024
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2025
|
+
$fault: "client",
|
|
2026
|
+
$metadata: deserializeMetadata(output),
|
|
2027
|
+
};
|
|
2028
|
+
}
|
|
2029
|
+
const message = response.message || response.Message || errorCode;
|
|
2030
|
+
response.message = message;
|
|
2031
|
+
delete response.Message;
|
|
2032
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2033
|
+
};
|
|
2034
|
+
const deserializeAws_json1_1DeleteDirectoryConfigCommand = async (output, context) => {
|
|
2035
|
+
if (output.statusCode >= 300) {
|
|
2036
|
+
return deserializeAws_json1_1DeleteDirectoryConfigCommandError(output, context);
|
|
2037
|
+
}
|
|
2038
|
+
const data = await parseBody(output.body, context);
|
|
2039
|
+
let contents = {};
|
|
2040
|
+
contents = deserializeAws_json1_1DeleteDirectoryConfigResult(data, context);
|
|
2041
|
+
const response = {
|
|
2042
|
+
$metadata: deserializeMetadata(output),
|
|
2043
|
+
...contents,
|
|
2044
|
+
};
|
|
2045
|
+
return Promise.resolve(response);
|
|
2046
|
+
};
|
|
2047
|
+
exports.deserializeAws_json1_1DeleteDirectoryConfigCommand = deserializeAws_json1_1DeleteDirectoryConfigCommand;
|
|
2048
|
+
const deserializeAws_json1_1DeleteDirectoryConfigCommandError = async (output, context) => {
|
|
2049
|
+
const parsedOutput = {
|
|
2050
|
+
...output,
|
|
2051
|
+
body: await parseBody(output.body, context),
|
|
2052
|
+
};
|
|
2053
|
+
let response;
|
|
2054
|
+
let errorCode = "UnknownError";
|
|
2055
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2056
|
+
switch (errorCode) {
|
|
2057
|
+
case "ResourceInUseException":
|
|
2058
|
+
case "com.amazonaws.appstream#ResourceInUseException":
|
|
2059
|
+
response = {
|
|
2060
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1597
2061
|
name: errorCode,
|
|
1598
2062
|
$metadata: deserializeMetadata(output),
|
|
1599
2063
|
};
|
|
@@ -1628,15 +2092,212 @@ const deserializeAws_json1_1DeleteFleetCommand = async (output, context) => {
|
|
|
1628
2092
|
}
|
|
1629
2093
|
const data = await parseBody(output.body, context);
|
|
1630
2094
|
let contents = {};
|
|
1631
|
-
contents = deserializeAws_json1_1DeleteFleetResult(data, context);
|
|
2095
|
+
contents = deserializeAws_json1_1DeleteFleetResult(data, context);
|
|
2096
|
+
const response = {
|
|
2097
|
+
$metadata: deserializeMetadata(output),
|
|
2098
|
+
...contents,
|
|
2099
|
+
};
|
|
2100
|
+
return Promise.resolve(response);
|
|
2101
|
+
};
|
|
2102
|
+
exports.deserializeAws_json1_1DeleteFleetCommand = deserializeAws_json1_1DeleteFleetCommand;
|
|
2103
|
+
const deserializeAws_json1_1DeleteFleetCommandError = async (output, context) => {
|
|
2104
|
+
const parsedOutput = {
|
|
2105
|
+
...output,
|
|
2106
|
+
body: await parseBody(output.body, context),
|
|
2107
|
+
};
|
|
2108
|
+
let response;
|
|
2109
|
+
let errorCode = "UnknownError";
|
|
2110
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2111
|
+
switch (errorCode) {
|
|
2112
|
+
case "ConcurrentModificationException":
|
|
2113
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
2114
|
+
response = {
|
|
2115
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2116
|
+
name: errorCode,
|
|
2117
|
+
$metadata: deserializeMetadata(output),
|
|
2118
|
+
};
|
|
2119
|
+
break;
|
|
2120
|
+
case "ResourceInUseException":
|
|
2121
|
+
case "com.amazonaws.appstream#ResourceInUseException":
|
|
2122
|
+
response = {
|
|
2123
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2124
|
+
name: errorCode,
|
|
2125
|
+
$metadata: deserializeMetadata(output),
|
|
2126
|
+
};
|
|
2127
|
+
break;
|
|
2128
|
+
case "ResourceNotFoundException":
|
|
2129
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2130
|
+
response = {
|
|
2131
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2132
|
+
name: errorCode,
|
|
2133
|
+
$metadata: deserializeMetadata(output),
|
|
2134
|
+
};
|
|
2135
|
+
break;
|
|
2136
|
+
default:
|
|
2137
|
+
const parsedBody = parsedOutput.body;
|
|
2138
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2139
|
+
response = {
|
|
2140
|
+
...parsedBody,
|
|
2141
|
+
name: `${errorCode}`,
|
|
2142
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2143
|
+
$fault: "client",
|
|
2144
|
+
$metadata: deserializeMetadata(output),
|
|
2145
|
+
};
|
|
2146
|
+
}
|
|
2147
|
+
const message = response.message || response.Message || errorCode;
|
|
2148
|
+
response.message = message;
|
|
2149
|
+
delete response.Message;
|
|
2150
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2151
|
+
};
|
|
2152
|
+
const deserializeAws_json1_1DeleteImageCommand = async (output, context) => {
|
|
2153
|
+
if (output.statusCode >= 300) {
|
|
2154
|
+
return deserializeAws_json1_1DeleteImageCommandError(output, context);
|
|
2155
|
+
}
|
|
2156
|
+
const data = await parseBody(output.body, context);
|
|
2157
|
+
let contents = {};
|
|
2158
|
+
contents = deserializeAws_json1_1DeleteImageResult(data, context);
|
|
2159
|
+
const response = {
|
|
2160
|
+
$metadata: deserializeMetadata(output),
|
|
2161
|
+
...contents,
|
|
2162
|
+
};
|
|
2163
|
+
return Promise.resolve(response);
|
|
2164
|
+
};
|
|
2165
|
+
exports.deserializeAws_json1_1DeleteImageCommand = deserializeAws_json1_1DeleteImageCommand;
|
|
2166
|
+
const deserializeAws_json1_1DeleteImageCommandError = async (output, context) => {
|
|
2167
|
+
const parsedOutput = {
|
|
2168
|
+
...output,
|
|
2169
|
+
body: await parseBody(output.body, context),
|
|
2170
|
+
};
|
|
2171
|
+
let response;
|
|
2172
|
+
let errorCode = "UnknownError";
|
|
2173
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2174
|
+
switch (errorCode) {
|
|
2175
|
+
case "ConcurrentModificationException":
|
|
2176
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
2177
|
+
response = {
|
|
2178
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2179
|
+
name: errorCode,
|
|
2180
|
+
$metadata: deserializeMetadata(output),
|
|
2181
|
+
};
|
|
2182
|
+
break;
|
|
2183
|
+
case "OperationNotPermittedException":
|
|
2184
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
2185
|
+
response = {
|
|
2186
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2187
|
+
name: errorCode,
|
|
2188
|
+
$metadata: deserializeMetadata(output),
|
|
2189
|
+
};
|
|
2190
|
+
break;
|
|
2191
|
+
case "ResourceInUseException":
|
|
2192
|
+
case "com.amazonaws.appstream#ResourceInUseException":
|
|
2193
|
+
response = {
|
|
2194
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
2195
|
+
name: errorCode,
|
|
2196
|
+
$metadata: deserializeMetadata(output),
|
|
2197
|
+
};
|
|
2198
|
+
break;
|
|
2199
|
+
case "ResourceNotFoundException":
|
|
2200
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2201
|
+
response = {
|
|
2202
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2203
|
+
name: errorCode,
|
|
2204
|
+
$metadata: deserializeMetadata(output),
|
|
2205
|
+
};
|
|
2206
|
+
break;
|
|
2207
|
+
default:
|
|
2208
|
+
const parsedBody = parsedOutput.body;
|
|
2209
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2210
|
+
response = {
|
|
2211
|
+
...parsedBody,
|
|
2212
|
+
name: `${errorCode}`,
|
|
2213
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2214
|
+
$fault: "client",
|
|
2215
|
+
$metadata: deserializeMetadata(output),
|
|
2216
|
+
};
|
|
2217
|
+
}
|
|
2218
|
+
const message = response.message || response.Message || errorCode;
|
|
2219
|
+
response.message = message;
|
|
2220
|
+
delete response.Message;
|
|
2221
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2222
|
+
};
|
|
2223
|
+
const deserializeAws_json1_1DeleteImageBuilderCommand = async (output, context) => {
|
|
2224
|
+
if (output.statusCode >= 300) {
|
|
2225
|
+
return deserializeAws_json1_1DeleteImageBuilderCommandError(output, context);
|
|
2226
|
+
}
|
|
2227
|
+
const data = await parseBody(output.body, context);
|
|
2228
|
+
let contents = {};
|
|
2229
|
+
contents = deserializeAws_json1_1DeleteImageBuilderResult(data, context);
|
|
2230
|
+
const response = {
|
|
2231
|
+
$metadata: deserializeMetadata(output),
|
|
2232
|
+
...contents,
|
|
2233
|
+
};
|
|
2234
|
+
return Promise.resolve(response);
|
|
2235
|
+
};
|
|
2236
|
+
exports.deserializeAws_json1_1DeleteImageBuilderCommand = deserializeAws_json1_1DeleteImageBuilderCommand;
|
|
2237
|
+
const deserializeAws_json1_1DeleteImageBuilderCommandError = async (output, context) => {
|
|
2238
|
+
const parsedOutput = {
|
|
2239
|
+
...output,
|
|
2240
|
+
body: await parseBody(output.body, context),
|
|
2241
|
+
};
|
|
2242
|
+
let response;
|
|
2243
|
+
let errorCode = "UnknownError";
|
|
2244
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2245
|
+
switch (errorCode) {
|
|
2246
|
+
case "ConcurrentModificationException":
|
|
2247
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
2248
|
+
response = {
|
|
2249
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2250
|
+
name: errorCode,
|
|
2251
|
+
$metadata: deserializeMetadata(output),
|
|
2252
|
+
};
|
|
2253
|
+
break;
|
|
2254
|
+
case "OperationNotPermittedException":
|
|
2255
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
2256
|
+
response = {
|
|
2257
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2258
|
+
name: errorCode,
|
|
2259
|
+
$metadata: deserializeMetadata(output),
|
|
2260
|
+
};
|
|
2261
|
+
break;
|
|
2262
|
+
case "ResourceNotFoundException":
|
|
2263
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2264
|
+
response = {
|
|
2265
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2266
|
+
name: errorCode,
|
|
2267
|
+
$metadata: deserializeMetadata(output),
|
|
2268
|
+
};
|
|
2269
|
+
break;
|
|
2270
|
+
default:
|
|
2271
|
+
const parsedBody = parsedOutput.body;
|
|
2272
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2273
|
+
response = {
|
|
2274
|
+
...parsedBody,
|
|
2275
|
+
name: `${errorCode}`,
|
|
2276
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2277
|
+
$fault: "client",
|
|
2278
|
+
$metadata: deserializeMetadata(output),
|
|
2279
|
+
};
|
|
2280
|
+
}
|
|
2281
|
+
const message = response.message || response.Message || errorCode;
|
|
2282
|
+
response.message = message;
|
|
2283
|
+
delete response.Message;
|
|
2284
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2285
|
+
};
|
|
2286
|
+
const deserializeAws_json1_1DeleteImagePermissionsCommand = async (output, context) => {
|
|
2287
|
+
if (output.statusCode >= 300) {
|
|
2288
|
+
return deserializeAws_json1_1DeleteImagePermissionsCommandError(output, context);
|
|
2289
|
+
}
|
|
2290
|
+
const data = await parseBody(output.body, context);
|
|
2291
|
+
let contents = {};
|
|
2292
|
+
contents = deserializeAws_json1_1DeleteImagePermissionsResult(data, context);
|
|
1632
2293
|
const response = {
|
|
1633
2294
|
$metadata: deserializeMetadata(output),
|
|
1634
2295
|
...contents,
|
|
1635
2296
|
};
|
|
1636
2297
|
return Promise.resolve(response);
|
|
1637
2298
|
};
|
|
1638
|
-
exports.
|
|
1639
|
-
const
|
|
2299
|
+
exports.deserializeAws_json1_1DeleteImagePermissionsCommand = deserializeAws_json1_1DeleteImagePermissionsCommand;
|
|
2300
|
+
const deserializeAws_json1_1DeleteImagePermissionsCommandError = async (output, context) => {
|
|
1640
2301
|
const parsedOutput = {
|
|
1641
2302
|
...output,
|
|
1642
2303
|
body: await parseBody(output.body, context),
|
|
@@ -1645,18 +2306,10 @@ const deserializeAws_json1_1DeleteFleetCommandError = async (output, context) =>
|
|
|
1645
2306
|
let errorCode = "UnknownError";
|
|
1646
2307
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1647
2308
|
switch (errorCode) {
|
|
1648
|
-
case "
|
|
1649
|
-
case "com.amazonaws.appstream#
|
|
1650
|
-
response = {
|
|
1651
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1652
|
-
name: errorCode,
|
|
1653
|
-
$metadata: deserializeMetadata(output),
|
|
1654
|
-
};
|
|
1655
|
-
break;
|
|
1656
|
-
case "ResourceInUseException":
|
|
1657
|
-
case "com.amazonaws.appstream#ResourceInUseException":
|
|
2309
|
+
case "ResourceNotAvailableException":
|
|
2310
|
+
case "com.amazonaws.appstream#ResourceNotAvailableException":
|
|
1658
2311
|
response = {
|
|
1659
|
-
...(await
|
|
2312
|
+
...(await deserializeAws_json1_1ResourceNotAvailableExceptionResponse(parsedOutput, context)),
|
|
1660
2313
|
name: errorCode,
|
|
1661
2314
|
$metadata: deserializeMetadata(output),
|
|
1662
2315
|
};
|
|
@@ -1685,21 +2338,21 @@ const deserializeAws_json1_1DeleteFleetCommandError = async (output, context) =>
|
|
|
1685
2338
|
delete response.Message;
|
|
1686
2339
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1687
2340
|
};
|
|
1688
|
-
const
|
|
2341
|
+
const deserializeAws_json1_1DeleteStackCommand = async (output, context) => {
|
|
1689
2342
|
if (output.statusCode >= 300) {
|
|
1690
|
-
return
|
|
2343
|
+
return deserializeAws_json1_1DeleteStackCommandError(output, context);
|
|
1691
2344
|
}
|
|
1692
2345
|
const data = await parseBody(output.body, context);
|
|
1693
2346
|
let contents = {};
|
|
1694
|
-
contents =
|
|
2347
|
+
contents = deserializeAws_json1_1DeleteStackResult(data, context);
|
|
1695
2348
|
const response = {
|
|
1696
2349
|
$metadata: deserializeMetadata(output),
|
|
1697
2350
|
...contents,
|
|
1698
2351
|
};
|
|
1699
2352
|
return Promise.resolve(response);
|
|
1700
2353
|
};
|
|
1701
|
-
exports.
|
|
1702
|
-
const
|
|
2354
|
+
exports.deserializeAws_json1_1DeleteStackCommand = deserializeAws_json1_1DeleteStackCommand;
|
|
2355
|
+
const deserializeAws_json1_1DeleteStackCommandError = async (output, context) => {
|
|
1703
2356
|
const parsedOutput = {
|
|
1704
2357
|
...output,
|
|
1705
2358
|
body: await parseBody(output.body, context),
|
|
@@ -1716,14 +2369,6 @@ const deserializeAws_json1_1DeleteImageCommandError = async (output, context) =>
|
|
|
1716
2369
|
$metadata: deserializeMetadata(output),
|
|
1717
2370
|
};
|
|
1718
2371
|
break;
|
|
1719
|
-
case "OperationNotPermittedException":
|
|
1720
|
-
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1721
|
-
response = {
|
|
1722
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1723
|
-
name: errorCode,
|
|
1724
|
-
$metadata: deserializeMetadata(output),
|
|
1725
|
-
};
|
|
1726
|
-
break;
|
|
1727
2372
|
case "ResourceInUseException":
|
|
1728
2373
|
case "com.amazonaws.appstream#ResourceInUseException":
|
|
1729
2374
|
response = {
|
|
@@ -1756,21 +2401,21 @@ const deserializeAws_json1_1DeleteImageCommandError = async (output, context) =>
|
|
|
1756
2401
|
delete response.Message;
|
|
1757
2402
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1758
2403
|
};
|
|
1759
|
-
const
|
|
2404
|
+
const deserializeAws_json1_1DeleteUsageReportSubscriptionCommand = async (output, context) => {
|
|
1760
2405
|
if (output.statusCode >= 300) {
|
|
1761
|
-
return
|
|
2406
|
+
return deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError(output, context);
|
|
1762
2407
|
}
|
|
1763
2408
|
const data = await parseBody(output.body, context);
|
|
1764
2409
|
let contents = {};
|
|
1765
|
-
contents =
|
|
2410
|
+
contents = deserializeAws_json1_1DeleteUsageReportSubscriptionResult(data, context);
|
|
1766
2411
|
const response = {
|
|
1767
2412
|
$metadata: deserializeMetadata(output),
|
|
1768
2413
|
...contents,
|
|
1769
2414
|
};
|
|
1770
2415
|
return Promise.resolve(response);
|
|
1771
2416
|
};
|
|
1772
|
-
exports.
|
|
1773
|
-
const
|
|
2417
|
+
exports.deserializeAws_json1_1DeleteUsageReportSubscriptionCommand = deserializeAws_json1_1DeleteUsageReportSubscriptionCommand;
|
|
2418
|
+
const deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = async (output, context) => {
|
|
1774
2419
|
const parsedOutput = {
|
|
1775
2420
|
...output,
|
|
1776
2421
|
body: await parseBody(output.body, context),
|
|
@@ -1779,18 +2424,10 @@ const deserializeAws_json1_1DeleteImageBuilderCommandError = async (output, cont
|
|
|
1779
2424
|
let errorCode = "UnknownError";
|
|
1780
2425
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
2426
|
switch (errorCode) {
|
|
1782
|
-
case "
|
|
1783
|
-
case "com.amazonaws.appstream#
|
|
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":
|
|
2427
|
+
case "InvalidAccountStatusException":
|
|
2428
|
+
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
1792
2429
|
response = {
|
|
1793
|
-
...(await
|
|
2430
|
+
...(await deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)),
|
|
1794
2431
|
name: errorCode,
|
|
1795
2432
|
$metadata: deserializeMetadata(output),
|
|
1796
2433
|
};
|
|
@@ -1819,21 +2456,21 @@ const deserializeAws_json1_1DeleteImageBuilderCommandError = async (output, cont
|
|
|
1819
2456
|
delete response.Message;
|
|
1820
2457
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1821
2458
|
};
|
|
1822
|
-
const
|
|
2459
|
+
const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
|
|
1823
2460
|
if (output.statusCode >= 300) {
|
|
1824
|
-
return
|
|
2461
|
+
return deserializeAws_json1_1DeleteUserCommandError(output, context);
|
|
1825
2462
|
}
|
|
1826
2463
|
const data = await parseBody(output.body, context);
|
|
1827
2464
|
let contents = {};
|
|
1828
|
-
contents =
|
|
2465
|
+
contents = deserializeAws_json1_1DeleteUserResult(data, context);
|
|
1829
2466
|
const response = {
|
|
1830
2467
|
$metadata: deserializeMetadata(output),
|
|
1831
2468
|
...contents,
|
|
1832
2469
|
};
|
|
1833
2470
|
return Promise.resolve(response);
|
|
1834
2471
|
};
|
|
1835
|
-
exports.
|
|
1836
|
-
const
|
|
2472
|
+
exports.deserializeAws_json1_1DeleteUserCommand = deserializeAws_json1_1DeleteUserCommand;
|
|
2473
|
+
const deserializeAws_json1_1DeleteUserCommandError = async (output, context) => {
|
|
1837
2474
|
const parsedOutput = {
|
|
1838
2475
|
...output,
|
|
1839
2476
|
body: await parseBody(output.body, context),
|
|
@@ -1842,14 +2479,6 @@ const deserializeAws_json1_1DeleteImagePermissionsCommandError = async (output,
|
|
|
1842
2479
|
let errorCode = "UnknownError";
|
|
1843
2480
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1844
2481
|
switch (errorCode) {
|
|
1845
|
-
case "ResourceNotAvailableException":
|
|
1846
|
-
case "com.amazonaws.appstream#ResourceNotAvailableException":
|
|
1847
|
-
response = {
|
|
1848
|
-
...(await deserializeAws_json1_1ResourceNotAvailableExceptionResponse(parsedOutput, context)),
|
|
1849
|
-
name: errorCode,
|
|
1850
|
-
$metadata: deserializeMetadata(output),
|
|
1851
|
-
};
|
|
1852
|
-
break;
|
|
1853
2482
|
case "ResourceNotFoundException":
|
|
1854
2483
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
1855
2484
|
response = {
|
|
@@ -1874,21 +2503,21 @@ const deserializeAws_json1_1DeleteImagePermissionsCommandError = async (output,
|
|
|
1874
2503
|
delete response.Message;
|
|
1875
2504
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1876
2505
|
};
|
|
1877
|
-
const
|
|
2506
|
+
const deserializeAws_json1_1DescribeAppBlocksCommand = async (output, context) => {
|
|
1878
2507
|
if (output.statusCode >= 300) {
|
|
1879
|
-
return
|
|
2508
|
+
return deserializeAws_json1_1DescribeAppBlocksCommandError(output, context);
|
|
1880
2509
|
}
|
|
1881
2510
|
const data = await parseBody(output.body, context);
|
|
1882
2511
|
let contents = {};
|
|
1883
|
-
contents =
|
|
2512
|
+
contents = deserializeAws_json1_1DescribeAppBlocksResult(data, context);
|
|
1884
2513
|
const response = {
|
|
1885
2514
|
$metadata: deserializeMetadata(output),
|
|
1886
2515
|
...contents,
|
|
1887
2516
|
};
|
|
1888
2517
|
return Promise.resolve(response);
|
|
1889
2518
|
};
|
|
1890
|
-
exports.
|
|
1891
|
-
const
|
|
2519
|
+
exports.deserializeAws_json1_1DescribeAppBlocksCommand = deserializeAws_json1_1DescribeAppBlocksCommand;
|
|
2520
|
+
const deserializeAws_json1_1DescribeAppBlocksCommandError = async (output, context) => {
|
|
1892
2521
|
const parsedOutput = {
|
|
1893
2522
|
...output,
|
|
1894
2523
|
body: await parseBody(output.body, context),
|
|
@@ -1897,18 +2526,10 @@ const deserializeAws_json1_1DeleteStackCommandError = async (output, context) =>
|
|
|
1897
2526
|
let errorCode = "UnknownError";
|
|
1898
2527
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1899
2528
|
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":
|
|
2529
|
+
case "OperationNotPermittedException":
|
|
2530
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1910
2531
|
response = {
|
|
1911
|
-
...(await
|
|
2532
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1912
2533
|
name: errorCode,
|
|
1913
2534
|
$metadata: deserializeMetadata(output),
|
|
1914
2535
|
};
|
|
@@ -1937,21 +2558,21 @@ const deserializeAws_json1_1DeleteStackCommandError = async (output, context) =>
|
|
|
1937
2558
|
delete response.Message;
|
|
1938
2559
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1939
2560
|
};
|
|
1940
|
-
const
|
|
2561
|
+
const deserializeAws_json1_1DescribeApplicationFleetAssociationsCommand = async (output, context) => {
|
|
1941
2562
|
if (output.statusCode >= 300) {
|
|
1942
|
-
return
|
|
2563
|
+
return deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError(output, context);
|
|
1943
2564
|
}
|
|
1944
2565
|
const data = await parseBody(output.body, context);
|
|
1945
2566
|
let contents = {};
|
|
1946
|
-
contents =
|
|
2567
|
+
contents = deserializeAws_json1_1DescribeApplicationFleetAssociationsResult(data, context);
|
|
1947
2568
|
const response = {
|
|
1948
2569
|
$metadata: deserializeMetadata(output),
|
|
1949
2570
|
...contents,
|
|
1950
2571
|
};
|
|
1951
2572
|
return Promise.resolve(response);
|
|
1952
2573
|
};
|
|
1953
|
-
exports.
|
|
1954
|
-
const
|
|
2574
|
+
exports.deserializeAws_json1_1DescribeApplicationFleetAssociationsCommand = deserializeAws_json1_1DescribeApplicationFleetAssociationsCommand;
|
|
2575
|
+
const deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError = async (output, context) => {
|
|
1955
2576
|
const parsedOutput = {
|
|
1956
2577
|
...output,
|
|
1957
2578
|
body: await parseBody(output.body, context),
|
|
@@ -1960,18 +2581,18 @@ const deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = async (o
|
|
|
1960
2581
|
let errorCode = "UnknownError";
|
|
1961
2582
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1962
2583
|
switch (errorCode) {
|
|
1963
|
-
case "
|
|
1964
|
-
case "com.amazonaws.appstream#
|
|
2584
|
+
case "InvalidParameterCombinationException":
|
|
2585
|
+
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
1965
2586
|
response = {
|
|
1966
|
-
...(await
|
|
2587
|
+
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
1967
2588
|
name: errorCode,
|
|
1968
2589
|
$metadata: deserializeMetadata(output),
|
|
1969
2590
|
};
|
|
1970
2591
|
break;
|
|
1971
|
-
case "
|
|
1972
|
-
case "com.amazonaws.appstream#
|
|
2592
|
+
case "OperationNotPermittedException":
|
|
2593
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
1973
2594
|
response = {
|
|
1974
|
-
...(await
|
|
2595
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1975
2596
|
name: errorCode,
|
|
1976
2597
|
$metadata: deserializeMetadata(output),
|
|
1977
2598
|
};
|
|
@@ -1992,21 +2613,21 @@ const deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = async (o
|
|
|
1992
2613
|
delete response.Message;
|
|
1993
2614
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1994
2615
|
};
|
|
1995
|
-
const
|
|
2616
|
+
const deserializeAws_json1_1DescribeApplicationsCommand = async (output, context) => {
|
|
1996
2617
|
if (output.statusCode >= 300) {
|
|
1997
|
-
return
|
|
2618
|
+
return deserializeAws_json1_1DescribeApplicationsCommandError(output, context);
|
|
1998
2619
|
}
|
|
1999
2620
|
const data = await parseBody(output.body, context);
|
|
2000
2621
|
let contents = {};
|
|
2001
|
-
contents =
|
|
2622
|
+
contents = deserializeAws_json1_1DescribeApplicationsResult(data, context);
|
|
2002
2623
|
const response = {
|
|
2003
2624
|
$metadata: deserializeMetadata(output),
|
|
2004
2625
|
...contents,
|
|
2005
2626
|
};
|
|
2006
2627
|
return Promise.resolve(response);
|
|
2007
2628
|
};
|
|
2008
|
-
exports.
|
|
2009
|
-
const
|
|
2629
|
+
exports.deserializeAws_json1_1DescribeApplicationsCommand = deserializeAws_json1_1DescribeApplicationsCommand;
|
|
2630
|
+
const deserializeAws_json1_1DescribeApplicationsCommandError = async (output, context) => {
|
|
2010
2631
|
const parsedOutput = {
|
|
2011
2632
|
...output,
|
|
2012
2633
|
body: await parseBody(output.body, context),
|
|
@@ -2015,6 +2636,14 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
2015
2636
|
let errorCode = "UnknownError";
|
|
2016
2637
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
2638
|
switch (errorCode) {
|
|
2639
|
+
case "OperationNotPermittedException":
|
|
2640
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
2641
|
+
response = {
|
|
2642
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2643
|
+
name: errorCode,
|
|
2644
|
+
$metadata: deserializeMetadata(output),
|
|
2645
|
+
};
|
|
2646
|
+
break;
|
|
2018
2647
|
case "ResourceNotFoundException":
|
|
2019
2648
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2020
2649
|
response = {
|
|
@@ -2462,6 +3091,14 @@ const deserializeAws_json1_1DescribeUsersCommandError = async (output, context)
|
|
|
2462
3091
|
$metadata: deserializeMetadata(output),
|
|
2463
3092
|
};
|
|
2464
3093
|
break;
|
|
3094
|
+
case "OperationNotPermittedException":
|
|
3095
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
3096
|
+
response = {
|
|
3097
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
3098
|
+
name: errorCode,
|
|
3099
|
+
$metadata: deserializeMetadata(output),
|
|
3100
|
+
};
|
|
3101
|
+
break;
|
|
2465
3102
|
case "ResourceNotFoundException":
|
|
2466
3103
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
2467
3104
|
response = {
|
|
@@ -2588,6 +3225,69 @@ const deserializeAws_json1_1DisableUserCommandError = async (output, context) =>
|
|
|
2588
3225
|
delete response.Message;
|
|
2589
3226
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2590
3227
|
};
|
|
3228
|
+
const deserializeAws_json1_1DisassociateApplicationFleetCommand = async (output, context) => {
|
|
3229
|
+
if (output.statusCode >= 300) {
|
|
3230
|
+
return deserializeAws_json1_1DisassociateApplicationFleetCommandError(output, context);
|
|
3231
|
+
}
|
|
3232
|
+
const data = await parseBody(output.body, context);
|
|
3233
|
+
let contents = {};
|
|
3234
|
+
contents = deserializeAws_json1_1DisassociateApplicationFleetResult(data, context);
|
|
3235
|
+
const response = {
|
|
3236
|
+
$metadata: deserializeMetadata(output),
|
|
3237
|
+
...contents,
|
|
3238
|
+
};
|
|
3239
|
+
return Promise.resolve(response);
|
|
3240
|
+
};
|
|
3241
|
+
exports.deserializeAws_json1_1DisassociateApplicationFleetCommand = deserializeAws_json1_1DisassociateApplicationFleetCommand;
|
|
3242
|
+
const deserializeAws_json1_1DisassociateApplicationFleetCommandError = async (output, context) => {
|
|
3243
|
+
const parsedOutput = {
|
|
3244
|
+
...output,
|
|
3245
|
+
body: await parseBody(output.body, context),
|
|
3246
|
+
};
|
|
3247
|
+
let response;
|
|
3248
|
+
let errorCode = "UnknownError";
|
|
3249
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3250
|
+
switch (errorCode) {
|
|
3251
|
+
case "ConcurrentModificationException":
|
|
3252
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
3253
|
+
response = {
|
|
3254
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
3255
|
+
name: errorCode,
|
|
3256
|
+
$metadata: deserializeMetadata(output),
|
|
3257
|
+
};
|
|
3258
|
+
break;
|
|
3259
|
+
case "InvalidParameterCombinationException":
|
|
3260
|
+
case "com.amazonaws.appstream#InvalidParameterCombinationException":
|
|
3261
|
+
response = {
|
|
3262
|
+
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
3263
|
+
name: errorCode,
|
|
3264
|
+
$metadata: deserializeMetadata(output),
|
|
3265
|
+
};
|
|
3266
|
+
break;
|
|
3267
|
+
case "OperationNotPermittedException":
|
|
3268
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
3269
|
+
response = {
|
|
3270
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
3271
|
+
name: errorCode,
|
|
3272
|
+
$metadata: deserializeMetadata(output),
|
|
3273
|
+
};
|
|
3274
|
+
break;
|
|
3275
|
+
default:
|
|
3276
|
+
const parsedBody = parsedOutput.body;
|
|
3277
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3278
|
+
response = {
|
|
3279
|
+
...parsedBody,
|
|
3280
|
+
name: `${errorCode}`,
|
|
3281
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3282
|
+
$fault: "client",
|
|
3283
|
+
$metadata: deserializeMetadata(output),
|
|
3284
|
+
};
|
|
3285
|
+
}
|
|
3286
|
+
const message = response.message || response.Message || errorCode;
|
|
3287
|
+
response.message = message;
|
|
3288
|
+
delete response.Message;
|
|
3289
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3290
|
+
};
|
|
2591
3291
|
const deserializeAws_json1_1DisassociateFleetCommand = async (output, context) => {
|
|
2592
3292
|
if (output.statusCode >= 300) {
|
|
2593
3293
|
return deserializeAws_json1_1DisassociateFleetCommandError(output, context);
|
|
@@ -3149,7 +3849,70 @@ const deserializeAws_json1_1StopImageBuilderCommandError = async (output, contex
|
|
|
3149
3849
|
case "OperationNotPermittedException":
|
|
3150
3850
|
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
3151
3851
|
response = {
|
|
3152
|
-
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
3852
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
3853
|
+
name: errorCode,
|
|
3854
|
+
$metadata: deserializeMetadata(output),
|
|
3855
|
+
};
|
|
3856
|
+
break;
|
|
3857
|
+
case "ResourceNotFoundException":
|
|
3858
|
+
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
3859
|
+
response = {
|
|
3860
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3861
|
+
name: errorCode,
|
|
3862
|
+
$metadata: deserializeMetadata(output),
|
|
3863
|
+
};
|
|
3864
|
+
break;
|
|
3865
|
+
default:
|
|
3866
|
+
const parsedBody = parsedOutput.body;
|
|
3867
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3868
|
+
response = {
|
|
3869
|
+
...parsedBody,
|
|
3870
|
+
name: `${errorCode}`,
|
|
3871
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3872
|
+
$fault: "client",
|
|
3873
|
+
$metadata: deserializeMetadata(output),
|
|
3874
|
+
};
|
|
3875
|
+
}
|
|
3876
|
+
const message = response.message || response.Message || errorCode;
|
|
3877
|
+
response.message = message;
|
|
3878
|
+
delete response.Message;
|
|
3879
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3880
|
+
};
|
|
3881
|
+
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
3882
|
+
if (output.statusCode >= 300) {
|
|
3883
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
3884
|
+
}
|
|
3885
|
+
const data = await parseBody(output.body, context);
|
|
3886
|
+
let contents = {};
|
|
3887
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
3888
|
+
const response = {
|
|
3889
|
+
$metadata: deserializeMetadata(output),
|
|
3890
|
+
...contents,
|
|
3891
|
+
};
|
|
3892
|
+
return Promise.resolve(response);
|
|
3893
|
+
};
|
|
3894
|
+
exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagResourceCommand;
|
|
3895
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
3896
|
+
const parsedOutput = {
|
|
3897
|
+
...output,
|
|
3898
|
+
body: await parseBody(output.body, context),
|
|
3899
|
+
};
|
|
3900
|
+
let response;
|
|
3901
|
+
let errorCode = "UnknownError";
|
|
3902
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3903
|
+
switch (errorCode) {
|
|
3904
|
+
case "InvalidAccountStatusException":
|
|
3905
|
+
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
3906
|
+
response = {
|
|
3907
|
+
...(await deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)),
|
|
3908
|
+
name: errorCode,
|
|
3909
|
+
$metadata: deserializeMetadata(output),
|
|
3910
|
+
};
|
|
3911
|
+
break;
|
|
3912
|
+
case "LimitExceededException":
|
|
3913
|
+
case "com.amazonaws.appstream#LimitExceededException":
|
|
3914
|
+
response = {
|
|
3915
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3153
3916
|
name: errorCode,
|
|
3154
3917
|
$metadata: deserializeMetadata(output),
|
|
3155
3918
|
};
|
|
@@ -3178,21 +3941,21 @@ const deserializeAws_json1_1StopImageBuilderCommandError = async (output, contex
|
|
|
3178
3941
|
delete response.Message;
|
|
3179
3942
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3180
3943
|
};
|
|
3181
|
-
const
|
|
3944
|
+
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
3182
3945
|
if (output.statusCode >= 300) {
|
|
3183
|
-
return
|
|
3946
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
3184
3947
|
}
|
|
3185
3948
|
const data = await parseBody(output.body, context);
|
|
3186
3949
|
let contents = {};
|
|
3187
|
-
contents =
|
|
3950
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
3188
3951
|
const response = {
|
|
3189
3952
|
$metadata: deserializeMetadata(output),
|
|
3190
3953
|
...contents,
|
|
3191
3954
|
};
|
|
3192
3955
|
return Promise.resolve(response);
|
|
3193
3956
|
};
|
|
3194
|
-
exports.
|
|
3195
|
-
const
|
|
3957
|
+
exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1UntagResourceCommand;
|
|
3958
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
3196
3959
|
const parsedOutput = {
|
|
3197
3960
|
...output,
|
|
3198
3961
|
body: await parseBody(output.body, context),
|
|
@@ -3201,22 +3964,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3201
3964
|
let errorCode = "UnknownError";
|
|
3202
3965
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3203
3966
|
switch (errorCode) {
|
|
3204
|
-
case "InvalidAccountStatusException":
|
|
3205
|
-
case "com.amazonaws.appstream#InvalidAccountStatusException":
|
|
3206
|
-
response = {
|
|
3207
|
-
...(await deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)),
|
|
3208
|
-
name: errorCode,
|
|
3209
|
-
$metadata: deserializeMetadata(output),
|
|
3210
|
-
};
|
|
3211
|
-
break;
|
|
3212
|
-
case "LimitExceededException":
|
|
3213
|
-
case "com.amazonaws.appstream#LimitExceededException":
|
|
3214
|
-
response = {
|
|
3215
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3216
|
-
name: errorCode,
|
|
3217
|
-
$metadata: deserializeMetadata(output),
|
|
3218
|
-
};
|
|
3219
|
-
break;
|
|
3220
3967
|
case "ResourceNotFoundException":
|
|
3221
3968
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
3222
3969
|
response = {
|
|
@@ -3241,21 +3988,21 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3241
3988
|
delete response.Message;
|
|
3242
3989
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3243
3990
|
};
|
|
3244
|
-
const
|
|
3991
|
+
const deserializeAws_json1_1UpdateApplicationCommand = async (output, context) => {
|
|
3245
3992
|
if (output.statusCode >= 300) {
|
|
3246
|
-
return
|
|
3993
|
+
return deserializeAws_json1_1UpdateApplicationCommandError(output, context);
|
|
3247
3994
|
}
|
|
3248
3995
|
const data = await parseBody(output.body, context);
|
|
3249
3996
|
let contents = {};
|
|
3250
|
-
contents =
|
|
3997
|
+
contents = deserializeAws_json1_1UpdateApplicationResult(data, context);
|
|
3251
3998
|
const response = {
|
|
3252
3999
|
$metadata: deserializeMetadata(output),
|
|
3253
4000
|
...contents,
|
|
3254
4001
|
};
|
|
3255
4002
|
return Promise.resolve(response);
|
|
3256
4003
|
};
|
|
3257
|
-
exports.
|
|
3258
|
-
const
|
|
4004
|
+
exports.deserializeAws_json1_1UpdateApplicationCommand = deserializeAws_json1_1UpdateApplicationCommand;
|
|
4005
|
+
const deserializeAws_json1_1UpdateApplicationCommandError = async (output, context) => {
|
|
3259
4006
|
const parsedOutput = {
|
|
3260
4007
|
...output,
|
|
3261
4008
|
body: await parseBody(output.body, context),
|
|
@@ -3264,6 +4011,22 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3264
4011
|
let errorCode = "UnknownError";
|
|
3265
4012
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3266
4013
|
switch (errorCode) {
|
|
4014
|
+
case "ConcurrentModificationException":
|
|
4015
|
+
case "com.amazonaws.appstream#ConcurrentModificationException":
|
|
4016
|
+
response = {
|
|
4017
|
+
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
4018
|
+
name: errorCode,
|
|
4019
|
+
$metadata: deserializeMetadata(output),
|
|
4020
|
+
};
|
|
4021
|
+
break;
|
|
4022
|
+
case "OperationNotPermittedException":
|
|
4023
|
+
case "com.amazonaws.appstream#OperationNotPermittedException":
|
|
4024
|
+
response = {
|
|
4025
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
4026
|
+
name: errorCode,
|
|
4027
|
+
$metadata: deserializeMetadata(output),
|
|
4028
|
+
};
|
|
4029
|
+
break;
|
|
3267
4030
|
case "ResourceNotFoundException":
|
|
3268
4031
|
case "com.amazonaws.appstream#ResourceNotFoundException":
|
|
3269
4032
|
response = {
|
|
@@ -3816,6 +4579,16 @@ const serializeAws_json1_1AccessEndpointList = (input, context) => {
|
|
|
3816
4579
|
return serializeAws_json1_1AccessEndpoint(entry, context);
|
|
3817
4580
|
});
|
|
3818
4581
|
};
|
|
4582
|
+
const serializeAws_json1_1ApplicationAttributes = (input, context) => {
|
|
4583
|
+
return input
|
|
4584
|
+
.filter((e) => e != null)
|
|
4585
|
+
.map((entry) => {
|
|
4586
|
+
if (entry === null) {
|
|
4587
|
+
return null;
|
|
4588
|
+
}
|
|
4589
|
+
return entry;
|
|
4590
|
+
});
|
|
4591
|
+
};
|
|
3819
4592
|
const serializeAws_json1_1ApplicationSettings = (input, context) => {
|
|
3820
4593
|
return {
|
|
3821
4594
|
...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
|
|
@@ -3832,6 +4605,13 @@ const serializeAws_json1_1ArnList = (input, context) => {
|
|
|
3832
4605
|
return entry;
|
|
3833
4606
|
});
|
|
3834
4607
|
};
|
|
4608
|
+
const serializeAws_json1_1AssociateApplicationFleetRequest = (input, context) => {
|
|
4609
|
+
return {
|
|
4610
|
+
...(input.ApplicationArn !== undefined &&
|
|
4611
|
+
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }),
|
|
4612
|
+
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
4613
|
+
};
|
|
4614
|
+
};
|
|
3835
4615
|
const serializeAws_json1_1AssociateFleetRequest = (input, context) => {
|
|
3836
4616
|
return {
|
|
3837
4617
|
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
@@ -3882,6 +4662,46 @@ const serializeAws_json1_1CopyImageRequest = (input, context) => {
|
|
|
3882
4662
|
input.SourceImageName !== null && { SourceImageName: input.SourceImageName }),
|
|
3883
4663
|
};
|
|
3884
4664
|
};
|
|
4665
|
+
const serializeAws_json1_1CreateAppBlockRequest = (input, context) => {
|
|
4666
|
+
return {
|
|
4667
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
4668
|
+
...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
|
|
4669
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4670
|
+
...(input.SetupScriptDetails !== undefined &&
|
|
4671
|
+
input.SetupScriptDetails !== null && {
|
|
4672
|
+
SetupScriptDetails: serializeAws_json1_1ScriptDetails(input.SetupScriptDetails, context),
|
|
4673
|
+
}),
|
|
4674
|
+
...(input.SourceS3Location !== undefined &&
|
|
4675
|
+
input.SourceS3Location !== null && {
|
|
4676
|
+
SourceS3Location: serializeAws_json1_1S3Location(input.SourceS3Location, context),
|
|
4677
|
+
}),
|
|
4678
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
4679
|
+
};
|
|
4680
|
+
};
|
|
4681
|
+
const serializeAws_json1_1CreateApplicationRequest = (input, context) => {
|
|
4682
|
+
return {
|
|
4683
|
+
...(input.AppBlockArn !== undefined && input.AppBlockArn !== null && { AppBlockArn: input.AppBlockArn }),
|
|
4684
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
4685
|
+
...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
|
|
4686
|
+
...(input.IconS3Location !== undefined &&
|
|
4687
|
+
input.IconS3Location !== null && {
|
|
4688
|
+
IconS3Location: serializeAws_json1_1S3Location(input.IconS3Location, context),
|
|
4689
|
+
}),
|
|
4690
|
+
...(input.InstanceFamilies !== undefined &&
|
|
4691
|
+
input.InstanceFamilies !== null && {
|
|
4692
|
+
InstanceFamilies: serializeAws_json1_1StringList(input.InstanceFamilies, context),
|
|
4693
|
+
}),
|
|
4694
|
+
...(input.LaunchParameters !== undefined &&
|
|
4695
|
+
input.LaunchParameters !== null && { LaunchParameters: input.LaunchParameters }),
|
|
4696
|
+
...(input.LaunchPath !== undefined && input.LaunchPath !== null && { LaunchPath: input.LaunchPath }),
|
|
4697
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4698
|
+
...(input.Platforms !== undefined &&
|
|
4699
|
+
input.Platforms !== null && { Platforms: serializeAws_json1_1Platforms(input.Platforms, context) }),
|
|
4700
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
4701
|
+
...(input.WorkingDirectory !== undefined &&
|
|
4702
|
+
input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }),
|
|
4703
|
+
};
|
|
4704
|
+
};
|
|
3885
4705
|
const serializeAws_json1_1CreateDirectoryConfigRequest = (input, context) => {
|
|
3886
4706
|
return {
|
|
3887
4707
|
...(input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }),
|
|
@@ -3920,11 +4740,18 @@ const serializeAws_json1_1CreateFleetRequest = (input, context) => {
|
|
|
3920
4740
|
...(input.ImageArn !== undefined && input.ImageArn !== null && { ImageArn: input.ImageArn }),
|
|
3921
4741
|
...(input.ImageName !== undefined && input.ImageName !== null && { ImageName: input.ImageName }),
|
|
3922
4742
|
...(input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType }),
|
|
4743
|
+
...(input.MaxConcurrentSessions !== undefined &&
|
|
4744
|
+
input.MaxConcurrentSessions !== null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
|
|
3923
4745
|
...(input.MaxUserDurationInSeconds !== undefined &&
|
|
3924
4746
|
input.MaxUserDurationInSeconds !== null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
|
|
3925
4747
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4748
|
+
...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
|
|
3926
4749
|
...(input.StreamView !== undefined && input.StreamView !== null && { StreamView: input.StreamView }),
|
|
3927
4750
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
4751
|
+
...(input.UsbDeviceFilterStrings !== undefined &&
|
|
4752
|
+
input.UsbDeviceFilterStrings !== null && {
|
|
4753
|
+
UsbDeviceFilterStrings: serializeAws_json1_1UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
|
|
4754
|
+
}),
|
|
3928
4755
|
...(input.VpcConfig !== undefined &&
|
|
3929
4756
|
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
3930
4757
|
};
|
|
@@ -4029,6 +4856,16 @@ const serializeAws_json1_1CreateUserRequest = (input, context) => {
|
|
|
4029
4856
|
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
4030
4857
|
};
|
|
4031
4858
|
};
|
|
4859
|
+
const serializeAws_json1_1DeleteAppBlockRequest = (input, context) => {
|
|
4860
|
+
return {
|
|
4861
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4862
|
+
};
|
|
4863
|
+
};
|
|
4864
|
+
const serializeAws_json1_1DeleteApplicationRequest = (input, context) => {
|
|
4865
|
+
return {
|
|
4866
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4867
|
+
};
|
|
4868
|
+
};
|
|
4032
4869
|
const serializeAws_json1_1DeleteDirectoryConfigRequest = (input, context) => {
|
|
4033
4870
|
return {
|
|
4034
4871
|
...(input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }),
|
|
@@ -4071,6 +4908,29 @@ const serializeAws_json1_1DeleteUserRequest = (input, context) => {
|
|
|
4071
4908
|
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
4072
4909
|
};
|
|
4073
4910
|
};
|
|
4911
|
+
const serializeAws_json1_1DescribeAppBlocksRequest = (input, context) => {
|
|
4912
|
+
return {
|
|
4913
|
+
...(input.Arns !== undefined && input.Arns !== null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
|
|
4914
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
4915
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4916
|
+
};
|
|
4917
|
+
};
|
|
4918
|
+
const serializeAws_json1_1DescribeApplicationFleetAssociationsRequest = (input, context) => {
|
|
4919
|
+
return {
|
|
4920
|
+
...(input.ApplicationArn !== undefined &&
|
|
4921
|
+
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }),
|
|
4922
|
+
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
4923
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
4924
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4925
|
+
};
|
|
4926
|
+
};
|
|
4927
|
+
const serializeAws_json1_1DescribeApplicationsRequest = (input, context) => {
|
|
4928
|
+
return {
|
|
4929
|
+
...(input.Arns !== undefined && input.Arns !== null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
|
|
4930
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
4931
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4932
|
+
};
|
|
4933
|
+
};
|
|
4074
4934
|
const serializeAws_json1_1DescribeDirectoryConfigsRequest = (input, context) => {
|
|
4075
4935
|
return {
|
|
4076
4936
|
...(input.DirectoryNames !== undefined &&
|
|
@@ -4176,6 +5036,13 @@ const serializeAws_json1_1DisableUserRequest = (input, context) => {
|
|
|
4176
5036
|
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
4177
5037
|
};
|
|
4178
5038
|
};
|
|
5039
|
+
const serializeAws_json1_1DisassociateApplicationFleetRequest = (input, context) => {
|
|
5040
|
+
return {
|
|
5041
|
+
...(input.ApplicationArn !== undefined &&
|
|
5042
|
+
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }),
|
|
5043
|
+
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
5044
|
+
};
|
|
5045
|
+
};
|
|
4179
5046
|
const serializeAws_json1_1DisassociateFleetRequest = (input, context) => {
|
|
4180
5047
|
return {
|
|
4181
5048
|
...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
|
|
@@ -4267,6 +5134,36 @@ const serializeAws_json1_1OrganizationalUnitDistinguishedNamesList = (input, con
|
|
|
4267
5134
|
return entry;
|
|
4268
5135
|
});
|
|
4269
5136
|
};
|
|
5137
|
+
const serializeAws_json1_1Platforms = (input, context) => {
|
|
5138
|
+
return input
|
|
5139
|
+
.filter((e) => e != null)
|
|
5140
|
+
.map((entry) => {
|
|
5141
|
+
if (entry === null) {
|
|
5142
|
+
return null;
|
|
5143
|
+
}
|
|
5144
|
+
return entry;
|
|
5145
|
+
});
|
|
5146
|
+
};
|
|
5147
|
+
const serializeAws_json1_1S3Location = (input, context) => {
|
|
5148
|
+
return {
|
|
5149
|
+
...(input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket }),
|
|
5150
|
+
...(input.S3Key !== undefined && input.S3Key !== null && { S3Key: input.S3Key }),
|
|
5151
|
+
};
|
|
5152
|
+
};
|
|
5153
|
+
const serializeAws_json1_1ScriptDetails = (input, context) => {
|
|
5154
|
+
return {
|
|
5155
|
+
...(input.ExecutableParameters !== undefined &&
|
|
5156
|
+
input.ExecutableParameters !== null && { ExecutableParameters: input.ExecutableParameters }),
|
|
5157
|
+
...(input.ExecutablePath !== undefined &&
|
|
5158
|
+
input.ExecutablePath !== null && { ExecutablePath: input.ExecutablePath }),
|
|
5159
|
+
...(input.ScriptS3Location !== undefined &&
|
|
5160
|
+
input.ScriptS3Location !== null && {
|
|
5161
|
+
ScriptS3Location: serializeAws_json1_1S3Location(input.ScriptS3Location, context),
|
|
5162
|
+
}),
|
|
5163
|
+
...(input.TimeoutInSeconds !== undefined &&
|
|
5164
|
+
input.TimeoutInSeconds !== null && { TimeoutInSeconds: input.TimeoutInSeconds }),
|
|
5165
|
+
};
|
|
5166
|
+
};
|
|
4270
5167
|
const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
|
|
4271
5168
|
return input
|
|
4272
5169
|
.filter((e) => e != null)
|
|
@@ -4389,6 +5286,27 @@ const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
|
4389
5286
|
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
4390
5287
|
};
|
|
4391
5288
|
};
|
|
5289
|
+
const serializeAws_json1_1UpdateApplicationRequest = (input, context) => {
|
|
5290
|
+
return {
|
|
5291
|
+
...(input.AppBlockArn !== undefined && input.AppBlockArn !== null && { AppBlockArn: input.AppBlockArn }),
|
|
5292
|
+
...(input.AttributesToDelete !== undefined &&
|
|
5293
|
+
input.AttributesToDelete !== null && {
|
|
5294
|
+
AttributesToDelete: serializeAws_json1_1ApplicationAttributes(input.AttributesToDelete, context),
|
|
5295
|
+
}),
|
|
5296
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
5297
|
+
...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
|
|
5298
|
+
...(input.IconS3Location !== undefined &&
|
|
5299
|
+
input.IconS3Location !== null && {
|
|
5300
|
+
IconS3Location: serializeAws_json1_1S3Location(input.IconS3Location, context),
|
|
5301
|
+
}),
|
|
5302
|
+
...(input.LaunchParameters !== undefined &&
|
|
5303
|
+
input.LaunchParameters !== null && { LaunchParameters: input.LaunchParameters }),
|
|
5304
|
+
...(input.LaunchPath !== undefined && input.LaunchPath !== null && { LaunchPath: input.LaunchPath }),
|
|
5305
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5306
|
+
...(input.WorkingDirectory !== undefined &&
|
|
5307
|
+
input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }),
|
|
5308
|
+
};
|
|
5309
|
+
};
|
|
4392
5310
|
const serializeAws_json1_1UpdateDirectoryConfigRequest = (input, context) => {
|
|
4393
5311
|
return {
|
|
4394
5312
|
...(input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }),
|
|
@@ -4432,10 +5350,17 @@ const serializeAws_json1_1UpdateFleetRequest = (input, context) => {
|
|
|
4432
5350
|
...(input.ImageArn !== undefined && input.ImageArn !== null && { ImageArn: input.ImageArn }),
|
|
4433
5351
|
...(input.ImageName !== undefined && input.ImageName !== null && { ImageName: input.ImageName }),
|
|
4434
5352
|
...(input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType }),
|
|
5353
|
+
...(input.MaxConcurrentSessions !== undefined &&
|
|
5354
|
+
input.MaxConcurrentSessions !== null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
|
|
4435
5355
|
...(input.MaxUserDurationInSeconds !== undefined &&
|
|
4436
5356
|
input.MaxUserDurationInSeconds !== null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
|
|
4437
5357
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5358
|
+
...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
|
|
4438
5359
|
...(input.StreamView !== undefined && input.StreamView !== null && { StreamView: input.StreamView }),
|
|
5360
|
+
...(input.UsbDeviceFilterStrings !== undefined &&
|
|
5361
|
+
input.UsbDeviceFilterStrings !== null && {
|
|
5362
|
+
UsbDeviceFilterStrings: serializeAws_json1_1UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
|
|
5363
|
+
}),
|
|
4439
5364
|
...(input.VpcConfig !== undefined &&
|
|
4440
5365
|
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4441
5366
|
};
|
|
@@ -4486,6 +5411,16 @@ const serializeAws_json1_1UpdateStackRequest = (input, context) => {
|
|
|
4486
5411
|
}),
|
|
4487
5412
|
};
|
|
4488
5413
|
};
|
|
5414
|
+
const serializeAws_json1_1UsbDeviceFilterStrings = (input, context) => {
|
|
5415
|
+
return input
|
|
5416
|
+
.filter((e) => e != null)
|
|
5417
|
+
.map((entry) => {
|
|
5418
|
+
if (entry === null) {
|
|
5419
|
+
return null;
|
|
5420
|
+
}
|
|
5421
|
+
return entry;
|
|
5422
|
+
});
|
|
5423
|
+
};
|
|
4489
5424
|
const serializeAws_json1_1UserSetting = (input, context) => {
|
|
4490
5425
|
return {
|
|
4491
5426
|
...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
|
|
@@ -4548,19 +5483,78 @@ const deserializeAws_json1_1AccessEndpointList = (output, context) => {
|
|
|
4548
5483
|
return deserializeAws_json1_1AccessEndpoint(entry, context);
|
|
4549
5484
|
});
|
|
4550
5485
|
};
|
|
5486
|
+
const deserializeAws_json1_1AppBlock = (output, context) => {
|
|
5487
|
+
return {
|
|
5488
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
5489
|
+
CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
|
|
5490
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTime)))
|
|
5491
|
+
: undefined,
|
|
5492
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
5493
|
+
DisplayName: smithy_client_1.expectString(output.DisplayName),
|
|
5494
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
5495
|
+
SetupScriptDetails: output.SetupScriptDetails !== undefined && output.SetupScriptDetails !== null
|
|
5496
|
+
? deserializeAws_json1_1ScriptDetails(output.SetupScriptDetails, context)
|
|
5497
|
+
: undefined,
|
|
5498
|
+
SourceS3Location: output.SourceS3Location !== undefined && output.SourceS3Location !== null
|
|
5499
|
+
? deserializeAws_json1_1S3Location(output.SourceS3Location, context)
|
|
5500
|
+
: undefined,
|
|
5501
|
+
};
|
|
5502
|
+
};
|
|
5503
|
+
const deserializeAws_json1_1AppBlocks = (output, context) => {
|
|
5504
|
+
return (output || [])
|
|
5505
|
+
.filter((e) => e != null)
|
|
5506
|
+
.map((entry) => {
|
|
5507
|
+
if (entry === null) {
|
|
5508
|
+
return null;
|
|
5509
|
+
}
|
|
5510
|
+
return deserializeAws_json1_1AppBlock(entry, context);
|
|
5511
|
+
});
|
|
5512
|
+
};
|
|
4551
5513
|
const deserializeAws_json1_1Application = (output, context) => {
|
|
4552
5514
|
return {
|
|
5515
|
+
AppBlockArn: smithy_client_1.expectString(output.AppBlockArn),
|
|
5516
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
5517
|
+
CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
|
|
5518
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTime)))
|
|
5519
|
+
: undefined,
|
|
5520
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
4553
5521
|
DisplayName: smithy_client_1.expectString(output.DisplayName),
|
|
4554
5522
|
Enabled: smithy_client_1.expectBoolean(output.Enabled),
|
|
5523
|
+
IconS3Location: output.IconS3Location !== undefined && output.IconS3Location !== null
|
|
5524
|
+
? deserializeAws_json1_1S3Location(output.IconS3Location, context)
|
|
5525
|
+
: undefined,
|
|
4555
5526
|
IconURL: smithy_client_1.expectString(output.IconURL),
|
|
5527
|
+
InstanceFamilies: output.InstanceFamilies !== undefined && output.InstanceFamilies !== null
|
|
5528
|
+
? deserializeAws_json1_1StringList(output.InstanceFamilies, context)
|
|
5529
|
+
: undefined,
|
|
4556
5530
|
LaunchParameters: smithy_client_1.expectString(output.LaunchParameters),
|
|
4557
5531
|
LaunchPath: smithy_client_1.expectString(output.LaunchPath),
|
|
4558
5532
|
Metadata: output.Metadata !== undefined && output.Metadata !== null
|
|
4559
5533
|
? deserializeAws_json1_1Metadata(output.Metadata, context)
|
|
4560
5534
|
: undefined,
|
|
4561
5535
|
Name: smithy_client_1.expectString(output.Name),
|
|
5536
|
+
Platforms: output.Platforms !== undefined && output.Platforms !== null
|
|
5537
|
+
? deserializeAws_json1_1Platforms(output.Platforms, context)
|
|
5538
|
+
: undefined,
|
|
5539
|
+
WorkingDirectory: smithy_client_1.expectString(output.WorkingDirectory),
|
|
5540
|
+
};
|
|
5541
|
+
};
|
|
5542
|
+
const deserializeAws_json1_1ApplicationFleetAssociation = (output, context) => {
|
|
5543
|
+
return {
|
|
5544
|
+
ApplicationArn: smithy_client_1.expectString(output.ApplicationArn),
|
|
5545
|
+
FleetName: smithy_client_1.expectString(output.FleetName),
|
|
4562
5546
|
};
|
|
4563
5547
|
};
|
|
5548
|
+
const deserializeAws_json1_1ApplicationFleetAssociationList = (output, context) => {
|
|
5549
|
+
return (output || [])
|
|
5550
|
+
.filter((e) => e != null)
|
|
5551
|
+
.map((entry) => {
|
|
5552
|
+
if (entry === null) {
|
|
5553
|
+
return null;
|
|
5554
|
+
}
|
|
5555
|
+
return deserializeAws_json1_1ApplicationFleetAssociation(entry, context);
|
|
5556
|
+
});
|
|
5557
|
+
};
|
|
4564
5558
|
const deserializeAws_json1_1Applications = (output, context) => {
|
|
4565
5559
|
return (output || [])
|
|
4566
5560
|
.filter((e) => e != null)
|
|
@@ -4578,6 +5572,13 @@ const deserializeAws_json1_1ApplicationSettingsResponse = (output, context) => {
|
|
|
4578
5572
|
SettingsGroup: smithy_client_1.expectString(output.SettingsGroup),
|
|
4579
5573
|
};
|
|
4580
5574
|
};
|
|
5575
|
+
const deserializeAws_json1_1AssociateApplicationFleetResult = (output, context) => {
|
|
5576
|
+
return {
|
|
5577
|
+
ApplicationFleetAssociation: output.ApplicationFleetAssociation !== undefined && output.ApplicationFleetAssociation !== null
|
|
5578
|
+
? deserializeAws_json1_1ApplicationFleetAssociation(output.ApplicationFleetAssociation, context)
|
|
5579
|
+
: undefined,
|
|
5580
|
+
};
|
|
5581
|
+
};
|
|
4581
5582
|
const deserializeAws_json1_1AssociateFleetResult = (output, context) => {
|
|
4582
5583
|
return {};
|
|
4583
5584
|
};
|
|
@@ -4613,6 +5614,20 @@ const deserializeAws_json1_1CopyImageResponse = (output, context) => {
|
|
|
4613
5614
|
DestinationImageName: smithy_client_1.expectString(output.DestinationImageName),
|
|
4614
5615
|
};
|
|
4615
5616
|
};
|
|
5617
|
+
const deserializeAws_json1_1CreateAppBlockResult = (output, context) => {
|
|
5618
|
+
return {
|
|
5619
|
+
AppBlock: output.AppBlock !== undefined && output.AppBlock !== null
|
|
5620
|
+
? deserializeAws_json1_1AppBlock(output.AppBlock, context)
|
|
5621
|
+
: undefined,
|
|
5622
|
+
};
|
|
5623
|
+
};
|
|
5624
|
+
const deserializeAws_json1_1CreateApplicationResult = (output, context) => {
|
|
5625
|
+
return {
|
|
5626
|
+
Application: output.Application !== undefined && output.Application !== null
|
|
5627
|
+
? deserializeAws_json1_1Application(output.Application, context)
|
|
5628
|
+
: undefined,
|
|
5629
|
+
};
|
|
5630
|
+
};
|
|
4616
5631
|
const deserializeAws_json1_1CreateDirectoryConfigResult = (output, context) => {
|
|
4617
5632
|
return {
|
|
4618
5633
|
DirectoryConfig: output.DirectoryConfig !== undefined && output.DirectoryConfig !== null
|
|
@@ -4674,6 +5689,12 @@ const deserializeAws_json1_1CreateUsageReportSubscriptionResult = (output, conte
|
|
|
4674
5689
|
const deserializeAws_json1_1CreateUserResult = (output, context) => {
|
|
4675
5690
|
return {};
|
|
4676
5691
|
};
|
|
5692
|
+
const deserializeAws_json1_1DeleteAppBlockResult = (output, context) => {
|
|
5693
|
+
return {};
|
|
5694
|
+
};
|
|
5695
|
+
const deserializeAws_json1_1DeleteApplicationResult = (output, context) => {
|
|
5696
|
+
return {};
|
|
5697
|
+
};
|
|
4677
5698
|
const deserializeAws_json1_1DeleteDirectoryConfigResult = (output, context) => {
|
|
4678
5699
|
return {};
|
|
4679
5700
|
};
|
|
@@ -4706,6 +5727,30 @@ const deserializeAws_json1_1DeleteUsageReportSubscriptionResult = (output, conte
|
|
|
4706
5727
|
const deserializeAws_json1_1DeleteUserResult = (output, context) => {
|
|
4707
5728
|
return {};
|
|
4708
5729
|
};
|
|
5730
|
+
const deserializeAws_json1_1DescribeAppBlocksResult = (output, context) => {
|
|
5731
|
+
return {
|
|
5732
|
+
AppBlocks: output.AppBlocks !== undefined && output.AppBlocks !== null
|
|
5733
|
+
? deserializeAws_json1_1AppBlocks(output.AppBlocks, context)
|
|
5734
|
+
: undefined,
|
|
5735
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
5736
|
+
};
|
|
5737
|
+
};
|
|
5738
|
+
const deserializeAws_json1_1DescribeApplicationFleetAssociationsResult = (output, context) => {
|
|
5739
|
+
return {
|
|
5740
|
+
ApplicationFleetAssociations: output.ApplicationFleetAssociations !== undefined && output.ApplicationFleetAssociations !== null
|
|
5741
|
+
? deserializeAws_json1_1ApplicationFleetAssociationList(output.ApplicationFleetAssociations, context)
|
|
5742
|
+
: undefined,
|
|
5743
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
5744
|
+
};
|
|
5745
|
+
};
|
|
5746
|
+
const deserializeAws_json1_1DescribeApplicationsResult = (output, context) => {
|
|
5747
|
+
return {
|
|
5748
|
+
Applications: output.Applications !== undefined && output.Applications !== null
|
|
5749
|
+
? deserializeAws_json1_1Applications(output.Applications, context)
|
|
5750
|
+
: undefined,
|
|
5751
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
5752
|
+
};
|
|
5753
|
+
};
|
|
4709
5754
|
const deserializeAws_json1_1DescribeDirectoryConfigsResult = (output, context) => {
|
|
4710
5755
|
return {
|
|
4711
5756
|
DirectoryConfigs: output.DirectoryConfigs !== undefined && output.DirectoryConfigs !== null
|
|
@@ -4814,6 +5859,9 @@ const deserializeAws_json1_1DirectoryConfigList = (output, context) => {
|
|
|
4814
5859
|
const deserializeAws_json1_1DisableUserResult = (output, context) => {
|
|
4815
5860
|
return {};
|
|
4816
5861
|
};
|
|
5862
|
+
const deserializeAws_json1_1DisassociateApplicationFleetResult = (output, context) => {
|
|
5863
|
+
return {};
|
|
5864
|
+
};
|
|
4817
5865
|
const deserializeAws_json1_1DisassociateFleetResult = (output, context) => {
|
|
4818
5866
|
return {};
|
|
4819
5867
|
};
|
|
@@ -4874,10 +5922,15 @@ const deserializeAws_json1_1Fleet = (output, context) => {
|
|
|
4874
5922
|
ImageArn: smithy_client_1.expectString(output.ImageArn),
|
|
4875
5923
|
ImageName: smithy_client_1.expectString(output.ImageName),
|
|
4876
5924
|
InstanceType: smithy_client_1.expectString(output.InstanceType),
|
|
5925
|
+
MaxConcurrentSessions: smithy_client_1.expectInt32(output.MaxConcurrentSessions),
|
|
4877
5926
|
MaxUserDurationInSeconds: smithy_client_1.expectInt32(output.MaxUserDurationInSeconds),
|
|
4878
5927
|
Name: smithy_client_1.expectString(output.Name),
|
|
5928
|
+
Platform: smithy_client_1.expectString(output.Platform),
|
|
4879
5929
|
State: smithy_client_1.expectString(output.State),
|
|
4880
5930
|
StreamView: smithy_client_1.expectString(output.StreamView),
|
|
5931
|
+
UsbDeviceFilterStrings: output.UsbDeviceFilterStrings !== undefined && output.UsbDeviceFilterStrings !== null
|
|
5932
|
+
? deserializeAws_json1_1UsbDeviceFilterStrings(output.UsbDeviceFilterStrings, context)
|
|
5933
|
+
: undefined,
|
|
4881
5934
|
VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
|
|
4882
5935
|
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
4883
5936
|
: undefined,
|
|
@@ -5110,6 +6163,16 @@ const deserializeAws_json1_1OrganizationalUnitDistinguishedNamesList = (output,
|
|
|
5110
6163
|
return smithy_client_1.expectString(entry);
|
|
5111
6164
|
});
|
|
5112
6165
|
};
|
|
6166
|
+
const deserializeAws_json1_1Platforms = (output, context) => {
|
|
6167
|
+
return (output || [])
|
|
6168
|
+
.filter((e) => e != null)
|
|
6169
|
+
.map((entry) => {
|
|
6170
|
+
if (entry === null) {
|
|
6171
|
+
return null;
|
|
6172
|
+
}
|
|
6173
|
+
return smithy_client_1.expectString(entry);
|
|
6174
|
+
});
|
|
6175
|
+
};
|
|
5113
6176
|
const deserializeAws_json1_1RequestLimitExceededException = (output, context) => {
|
|
5114
6177
|
return {
|
|
5115
6178
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -5154,6 +6217,22 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
5154
6217
|
Message: smithy_client_1.expectString(output.Message),
|
|
5155
6218
|
};
|
|
5156
6219
|
};
|
|
6220
|
+
const deserializeAws_json1_1S3Location = (output, context) => {
|
|
6221
|
+
return {
|
|
6222
|
+
S3Bucket: smithy_client_1.expectString(output.S3Bucket),
|
|
6223
|
+
S3Key: smithy_client_1.expectString(output.S3Key),
|
|
6224
|
+
};
|
|
6225
|
+
};
|
|
6226
|
+
const deserializeAws_json1_1ScriptDetails = (output, context) => {
|
|
6227
|
+
return {
|
|
6228
|
+
ExecutableParameters: smithy_client_1.expectString(output.ExecutableParameters),
|
|
6229
|
+
ExecutablePath: smithy_client_1.expectString(output.ExecutablePath),
|
|
6230
|
+
ScriptS3Location: output.ScriptS3Location !== undefined && output.ScriptS3Location !== null
|
|
6231
|
+
? deserializeAws_json1_1S3Location(output.ScriptS3Location, context)
|
|
6232
|
+
: undefined,
|
|
6233
|
+
TimeoutInSeconds: smithy_client_1.expectInt32(output.TimeoutInSeconds),
|
|
6234
|
+
};
|
|
6235
|
+
};
|
|
5157
6236
|
const deserializeAws_json1_1SecurityGroupIdList = (output, context) => {
|
|
5158
6237
|
return (output || [])
|
|
5159
6238
|
.filter((e) => e != null)
|
|
@@ -5351,6 +6430,13 @@ const deserializeAws_json1_1Tags = (output, context) => {
|
|
|
5351
6430
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
5352
6431
|
return {};
|
|
5353
6432
|
};
|
|
6433
|
+
const deserializeAws_json1_1UpdateApplicationResult = (output, context) => {
|
|
6434
|
+
return {
|
|
6435
|
+
Application: output.Application !== undefined && output.Application !== null
|
|
6436
|
+
? deserializeAws_json1_1Application(output.Application, context)
|
|
6437
|
+
: undefined,
|
|
6438
|
+
};
|
|
6439
|
+
};
|
|
5354
6440
|
const deserializeAws_json1_1UpdateDirectoryConfigResult = (output, context) => {
|
|
5355
6441
|
return {
|
|
5356
6442
|
DirectoryConfig: output.DirectoryConfig !== undefined && output.DirectoryConfig !== null
|
|
@@ -5397,6 +6483,16 @@ const deserializeAws_json1_1UsageReportSubscriptionList = (output, context) => {
|
|
|
5397
6483
|
return deserializeAws_json1_1UsageReportSubscription(entry, context);
|
|
5398
6484
|
});
|
|
5399
6485
|
};
|
|
6486
|
+
const deserializeAws_json1_1UsbDeviceFilterStrings = (output, context) => {
|
|
6487
|
+
return (output || [])
|
|
6488
|
+
.filter((e) => e != null)
|
|
6489
|
+
.map((entry) => {
|
|
6490
|
+
if (entry === null) {
|
|
6491
|
+
return null;
|
|
6492
|
+
}
|
|
6493
|
+
return smithy_client_1.expectString(entry);
|
|
6494
|
+
});
|
|
6495
|
+
};
|
|
5400
6496
|
const deserializeAws_json1_1User = (output, context) => {
|
|
5401
6497
|
return {
|
|
5402
6498
|
Arn: smithy_client_1.expectString(output.Arn),
|