@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,6 +1,17 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
3
|
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
export var serializeAws_json1_1AssociateApplicationFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
|
+
var headers, body;
|
|
6
|
+
return __generator(this, function (_a) {
|
|
7
|
+
headers = {
|
|
8
|
+
"content-type": "application/x-amz-json-1.1",
|
|
9
|
+
"x-amz-target": "PhotonAdminProxyService.AssociateApplicationFleet",
|
|
10
|
+
};
|
|
11
|
+
body = JSON.stringify(serializeAws_json1_1AssociateApplicationFleetRequest(input, context));
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
|
+
});
|
|
14
|
+
}); };
|
|
4
15
|
export var serializeAws_json1_1AssociateFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
16
|
var headers, body;
|
|
6
17
|
return __generator(this, function (_a) {
|
|
@@ -45,6 +56,28 @@ export var serializeAws_json1_1CopyImageCommand = function (input, context) { re
|
|
|
45
56
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
57
|
});
|
|
47
58
|
}); };
|
|
59
|
+
export var serializeAws_json1_1CreateAppBlockCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
|
+
var headers, body;
|
|
61
|
+
return __generator(this, function (_a) {
|
|
62
|
+
headers = {
|
|
63
|
+
"content-type": "application/x-amz-json-1.1",
|
|
64
|
+
"x-amz-target": "PhotonAdminProxyService.CreateAppBlock",
|
|
65
|
+
};
|
|
66
|
+
body = JSON.stringify(serializeAws_json1_1CreateAppBlockRequest(input, context));
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
|
+
});
|
|
69
|
+
}); };
|
|
70
|
+
export var serializeAws_json1_1CreateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
71
|
+
var headers, body;
|
|
72
|
+
return __generator(this, function (_a) {
|
|
73
|
+
headers = {
|
|
74
|
+
"content-type": "application/x-amz-json-1.1",
|
|
75
|
+
"x-amz-target": "PhotonAdminProxyService.CreateApplication",
|
|
76
|
+
};
|
|
77
|
+
body = JSON.stringify(serializeAws_json1_1CreateApplicationRequest(input, context));
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
|
+
});
|
|
80
|
+
}); };
|
|
48
81
|
export var serializeAws_json1_1CreateDirectoryConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
82
|
var headers, body;
|
|
50
83
|
return __generator(this, function (_a) {
|
|
@@ -144,6 +177,28 @@ export var serializeAws_json1_1CreateUserCommand = function (input, context) { r
|
|
|
144
177
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
178
|
});
|
|
146
179
|
}); };
|
|
180
|
+
export var serializeAws_json1_1DeleteAppBlockCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
181
|
+
var headers, body;
|
|
182
|
+
return __generator(this, function (_a) {
|
|
183
|
+
headers = {
|
|
184
|
+
"content-type": "application/x-amz-json-1.1",
|
|
185
|
+
"x-amz-target": "PhotonAdminProxyService.DeleteAppBlock",
|
|
186
|
+
};
|
|
187
|
+
body = JSON.stringify(serializeAws_json1_1DeleteAppBlockRequest(input, context));
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
|
+
});
|
|
190
|
+
}); };
|
|
191
|
+
export var serializeAws_json1_1DeleteApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
192
|
+
var headers, body;
|
|
193
|
+
return __generator(this, function (_a) {
|
|
194
|
+
headers = {
|
|
195
|
+
"content-type": "application/x-amz-json-1.1",
|
|
196
|
+
"x-amz-target": "PhotonAdminProxyService.DeleteApplication",
|
|
197
|
+
};
|
|
198
|
+
body = JSON.stringify(serializeAws_json1_1DeleteApplicationRequest(input, context));
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
|
+
});
|
|
201
|
+
}); };
|
|
147
202
|
export var serializeAws_json1_1DeleteDirectoryConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
148
203
|
var headers, body;
|
|
149
204
|
return __generator(this, function (_a) {
|
|
@@ -232,6 +287,39 @@ export var serializeAws_json1_1DeleteUserCommand = function (input, context) { r
|
|
|
232
287
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
288
|
});
|
|
234
289
|
}); };
|
|
290
|
+
export var serializeAws_json1_1DescribeAppBlocksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
291
|
+
var headers, body;
|
|
292
|
+
return __generator(this, function (_a) {
|
|
293
|
+
headers = {
|
|
294
|
+
"content-type": "application/x-amz-json-1.1",
|
|
295
|
+
"x-amz-target": "PhotonAdminProxyService.DescribeAppBlocks",
|
|
296
|
+
};
|
|
297
|
+
body = JSON.stringify(serializeAws_json1_1DescribeAppBlocksRequest(input, context));
|
|
298
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
299
|
+
});
|
|
300
|
+
}); };
|
|
301
|
+
export var serializeAws_json1_1DescribeApplicationFleetAssociationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
302
|
+
var headers, body;
|
|
303
|
+
return __generator(this, function (_a) {
|
|
304
|
+
headers = {
|
|
305
|
+
"content-type": "application/x-amz-json-1.1",
|
|
306
|
+
"x-amz-target": "PhotonAdminProxyService.DescribeApplicationFleetAssociations",
|
|
307
|
+
};
|
|
308
|
+
body = JSON.stringify(serializeAws_json1_1DescribeApplicationFleetAssociationsRequest(input, context));
|
|
309
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
310
|
+
});
|
|
311
|
+
}); };
|
|
312
|
+
export var serializeAws_json1_1DescribeApplicationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
313
|
+
var headers, body;
|
|
314
|
+
return __generator(this, function (_a) {
|
|
315
|
+
headers = {
|
|
316
|
+
"content-type": "application/x-amz-json-1.1",
|
|
317
|
+
"x-amz-target": "PhotonAdminProxyService.DescribeApplications",
|
|
318
|
+
};
|
|
319
|
+
body = JSON.stringify(serializeAws_json1_1DescribeApplicationsRequest(input, context));
|
|
320
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
321
|
+
});
|
|
322
|
+
}); };
|
|
235
323
|
export var serializeAws_json1_1DescribeDirectoryConfigsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
236
324
|
var headers, body;
|
|
237
325
|
return __generator(this, function (_a) {
|
|
@@ -353,6 +441,17 @@ export var serializeAws_json1_1DisableUserCommand = function (input, context) {
|
|
|
353
441
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
354
442
|
});
|
|
355
443
|
}); };
|
|
444
|
+
export var serializeAws_json1_1DisassociateApplicationFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
445
|
+
var headers, body;
|
|
446
|
+
return __generator(this, function (_a) {
|
|
447
|
+
headers = {
|
|
448
|
+
"content-type": "application/x-amz-json-1.1",
|
|
449
|
+
"x-amz-target": "PhotonAdminProxyService.DisassociateApplicationFleet",
|
|
450
|
+
};
|
|
451
|
+
body = JSON.stringify(serializeAws_json1_1DisassociateApplicationFleetRequest(input, context));
|
|
452
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
453
|
+
});
|
|
454
|
+
}); };
|
|
356
455
|
export var serializeAws_json1_1DisassociateFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
357
456
|
var headers, body;
|
|
358
457
|
return __generator(this, function (_a) {
|
|
@@ -485,6 +584,17 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
485
584
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
486
585
|
});
|
|
487
586
|
}); };
|
|
587
|
+
export var serializeAws_json1_1UpdateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
588
|
+
var headers, body;
|
|
589
|
+
return __generator(this, function (_a) {
|
|
590
|
+
headers = {
|
|
591
|
+
"content-type": "application/x-amz-json-1.1",
|
|
592
|
+
"x-amz-target": "PhotonAdminProxyService.UpdateApplication",
|
|
593
|
+
};
|
|
594
|
+
body = JSON.stringify(serializeAws_json1_1UpdateApplicationRequest(input, context));
|
|
595
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
596
|
+
});
|
|
597
|
+
}); };
|
|
488
598
|
export var serializeAws_json1_1UpdateDirectoryConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
489
599
|
var headers, body;
|
|
490
600
|
return __generator(this, function (_a) {
|
|
@@ -529,6 +639,94 @@ export var serializeAws_json1_1UpdateStackCommand = function (input, context) {
|
|
|
529
639
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
530
640
|
});
|
|
531
641
|
}); };
|
|
642
|
+
export var deserializeAws_json1_1AssociateApplicationFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
643
|
+
var data, contents, response;
|
|
644
|
+
return __generator(this, function (_a) {
|
|
645
|
+
switch (_a.label) {
|
|
646
|
+
case 0:
|
|
647
|
+
if (output.statusCode >= 300) {
|
|
648
|
+
return [2, deserializeAws_json1_1AssociateApplicationFleetCommandError(output, context)];
|
|
649
|
+
}
|
|
650
|
+
return [4, parseBody(output.body, context)];
|
|
651
|
+
case 1:
|
|
652
|
+
data = _a.sent();
|
|
653
|
+
contents = {};
|
|
654
|
+
contents = deserializeAws_json1_1AssociateApplicationFleetResult(data, context);
|
|
655
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
656
|
+
return [2, Promise.resolve(response)];
|
|
657
|
+
}
|
|
658
|
+
});
|
|
659
|
+
}); };
|
|
660
|
+
var deserializeAws_json1_1AssociateApplicationFleetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
661
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
662
|
+
var _h;
|
|
663
|
+
return __generator(this, function (_j) {
|
|
664
|
+
switch (_j.label) {
|
|
665
|
+
case 0:
|
|
666
|
+
_a = [__assign({}, output)];
|
|
667
|
+
_h = {};
|
|
668
|
+
return [4, parseBody(output.body, context)];
|
|
669
|
+
case 1:
|
|
670
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
671
|
+
errorCode = "UnknownError";
|
|
672
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
|
+
_b = errorCode;
|
|
674
|
+
switch (_b) {
|
|
675
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
676
|
+
case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
|
|
677
|
+
case "InvalidParameterCombinationException": return [3, 4];
|
|
678
|
+
case "com.amazonaws.appstream#InvalidParameterCombinationException": return [3, 4];
|
|
679
|
+
case "LimitExceededException": return [3, 6];
|
|
680
|
+
case "com.amazonaws.appstream#LimitExceededException": return [3, 6];
|
|
681
|
+
case "OperationNotPermittedException": return [3, 8];
|
|
682
|
+
case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 8];
|
|
683
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
684
|
+
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 10];
|
|
685
|
+
}
|
|
686
|
+
return [3, 12];
|
|
687
|
+
case 2:
|
|
688
|
+
_c = [{}];
|
|
689
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
690
|
+
case 3:
|
|
691
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
692
|
+
return [3, 13];
|
|
693
|
+
case 4:
|
|
694
|
+
_d = [{}];
|
|
695
|
+
return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
|
|
696
|
+
case 5:
|
|
697
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
698
|
+
return [3, 13];
|
|
699
|
+
case 6:
|
|
700
|
+
_e = [{}];
|
|
701
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
702
|
+
case 7:
|
|
703
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
704
|
+
return [3, 13];
|
|
705
|
+
case 8:
|
|
706
|
+
_f = [{}];
|
|
707
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
708
|
+
case 9:
|
|
709
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
710
|
+
return [3, 13];
|
|
711
|
+
case 10:
|
|
712
|
+
_g = [{}];
|
|
713
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
714
|
+
case 11:
|
|
715
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
716
|
+
return [3, 13];
|
|
717
|
+
case 12:
|
|
718
|
+
parsedBody = parsedOutput.body;
|
|
719
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
720
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
721
|
+
_j.label = 13;
|
|
722
|
+
case 13:
|
|
723
|
+
message = response.message || response.Message || errorCode;
|
|
724
|
+
response.message = message;
|
|
725
|
+
delete response.Message;
|
|
726
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
727
|
+
}
|
|
728
|
+
});
|
|
729
|
+
}); };
|
|
532
730
|
export var deserializeAws_json1_1AssociateFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
533
731
|
var data, contents, response;
|
|
534
732
|
return __generator(this, function (_a) {
|
|
@@ -849,95 +1047,79 @@ var deserializeAws_json1_1CopyImageCommandError = function (output, context) { r
|
|
|
849
1047
|
}
|
|
850
1048
|
});
|
|
851
1049
|
}); };
|
|
852
|
-
export var
|
|
1050
|
+
export var deserializeAws_json1_1CreateAppBlockCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
853
1051
|
var data, contents, response;
|
|
854
1052
|
return __generator(this, function (_a) {
|
|
855
1053
|
switch (_a.label) {
|
|
856
1054
|
case 0:
|
|
857
1055
|
if (output.statusCode >= 300) {
|
|
858
|
-
return [2,
|
|
1056
|
+
return [2, deserializeAws_json1_1CreateAppBlockCommandError(output, context)];
|
|
859
1057
|
}
|
|
860
1058
|
return [4, parseBody(output.body, context)];
|
|
861
1059
|
case 1:
|
|
862
1060
|
data = _a.sent();
|
|
863
1061
|
contents = {};
|
|
864
|
-
contents =
|
|
1062
|
+
contents = deserializeAws_json1_1CreateAppBlockResult(data, context);
|
|
865
1063
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
866
1064
|
return [2, Promise.resolve(response)];
|
|
867
1065
|
}
|
|
868
1066
|
});
|
|
869
1067
|
}); };
|
|
870
|
-
var
|
|
871
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f,
|
|
872
|
-
var
|
|
873
|
-
return __generator(this, function (
|
|
874
|
-
switch (
|
|
1068
|
+
var deserializeAws_json1_1CreateAppBlockCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1069
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1070
|
+
var _g;
|
|
1071
|
+
return __generator(this, function (_h) {
|
|
1072
|
+
switch (_h.label) {
|
|
875
1073
|
case 0:
|
|
876
1074
|
_a = [__assign({}, output)];
|
|
877
|
-
|
|
1075
|
+
_g = {};
|
|
878
1076
|
return [4, parseBody(output.body, context)];
|
|
879
1077
|
case 1:
|
|
880
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1078
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
881
1079
|
errorCode = "UnknownError";
|
|
882
1080
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
883
1081
|
_b = errorCode;
|
|
884
1082
|
switch (_b) {
|
|
885
|
-
case "
|
|
886
|
-
case "com.amazonaws.appstream#
|
|
887
|
-
case "
|
|
888
|
-
case "com.amazonaws.appstream#
|
|
889
|
-
case "
|
|
890
|
-
case "com.amazonaws.appstream#
|
|
891
|
-
case "
|
|
892
|
-
case "com.amazonaws.appstream#
|
|
893
|
-
case "ResourceAlreadyExistsException": return [3, 10];
|
|
894
|
-
case "com.amazonaws.appstream#ResourceAlreadyExistsException": return [3, 10];
|
|
895
|
-
case "ResourceNotFoundException": return [3, 12];
|
|
896
|
-
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 12];
|
|
1083
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1084
|
+
case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
|
|
1085
|
+
case "LimitExceededException": return [3, 4];
|
|
1086
|
+
case "com.amazonaws.appstream#LimitExceededException": return [3, 4];
|
|
1087
|
+
case "OperationNotPermittedException": return [3, 6];
|
|
1088
|
+
case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 6];
|
|
1089
|
+
case "ResourceAlreadyExistsException": return [3, 8];
|
|
1090
|
+
case "com.amazonaws.appstream#ResourceAlreadyExistsException": return [3, 8];
|
|
897
1091
|
}
|
|
898
|
-
return [3,
|
|
1092
|
+
return [3, 10];
|
|
899
1093
|
case 2:
|
|
900
1094
|
_c = [{}];
|
|
901
|
-
return [4,
|
|
1095
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
902
1096
|
case 3:
|
|
903
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
904
|
-
return [3,
|
|
1097
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1098
|
+
return [3, 11];
|
|
905
1099
|
case 4:
|
|
906
1100
|
_d = [{}];
|
|
907
|
-
return [4,
|
|
1101
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
908
1102
|
case 5:
|
|
909
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
910
|
-
return [3,
|
|
1103
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1104
|
+
return [3, 11];
|
|
911
1105
|
case 6:
|
|
912
1106
|
_e = [{}];
|
|
913
|
-
return [4,
|
|
1107
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
914
1108
|
case 7:
|
|
915
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
916
|
-
return [3,
|
|
1109
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1110
|
+
return [3, 11];
|
|
917
1111
|
case 8:
|
|
918
1112
|
_f = [{}];
|
|
919
|
-
return [4,
|
|
1113
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
920
1114
|
case 9:
|
|
921
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
922
|
-
return [3,
|
|
1115
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1116
|
+
return [3, 11];
|
|
923
1117
|
case 10:
|
|
924
|
-
_g = [{}];
|
|
925
|
-
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
926
|
-
case 11:
|
|
927
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
928
|
-
return [3, 15];
|
|
929
|
-
case 12:
|
|
930
|
-
_h = [{}];
|
|
931
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
932
|
-
case 13:
|
|
933
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
934
|
-
return [3, 15];
|
|
935
|
-
case 14:
|
|
936
1118
|
parsedBody = parsedOutput.body;
|
|
937
1119
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
938
1120
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
939
|
-
|
|
940
|
-
case
|
|
1121
|
+
_h.label = 11;
|
|
1122
|
+
case 11:
|
|
941
1123
|
message = response.message || response.Message || errorCode;
|
|
942
1124
|
response.message = message;
|
|
943
1125
|
delete response.Message;
|
|
@@ -945,32 +1127,216 @@ var deserializeAws_json1_1CreateDirectoryConfigCommandError = function (output,
|
|
|
945
1127
|
}
|
|
946
1128
|
});
|
|
947
1129
|
}); };
|
|
948
|
-
export var
|
|
1130
|
+
export var deserializeAws_json1_1CreateApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
949
1131
|
var data, contents, response;
|
|
950
1132
|
return __generator(this, function (_a) {
|
|
951
1133
|
switch (_a.label) {
|
|
952
1134
|
case 0:
|
|
953
1135
|
if (output.statusCode >= 300) {
|
|
954
|
-
return [2,
|
|
1136
|
+
return [2, deserializeAws_json1_1CreateApplicationCommandError(output, context)];
|
|
955
1137
|
}
|
|
956
1138
|
return [4, parseBody(output.body, context)];
|
|
957
1139
|
case 1:
|
|
958
1140
|
data = _a.sent();
|
|
959
1141
|
contents = {};
|
|
960
|
-
contents =
|
|
1142
|
+
contents = deserializeAws_json1_1CreateApplicationResult(data, context);
|
|
961
1143
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
962
1144
|
return [2, Promise.resolve(response)];
|
|
963
1145
|
}
|
|
964
1146
|
});
|
|
965
1147
|
}); };
|
|
966
|
-
var
|
|
967
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g,
|
|
968
|
-
var
|
|
969
|
-
return __generator(this, function (
|
|
970
|
-
switch (
|
|
1148
|
+
var deserializeAws_json1_1CreateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1149
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
1150
|
+
var _h;
|
|
1151
|
+
return __generator(this, function (_j) {
|
|
1152
|
+
switch (_j.label) {
|
|
971
1153
|
case 0:
|
|
972
1154
|
_a = [__assign({}, output)];
|
|
973
|
-
|
|
1155
|
+
_h = {};
|
|
1156
|
+
return [4, parseBody(output.body, context)];
|
|
1157
|
+
case 1:
|
|
1158
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1159
|
+
errorCode = "UnknownError";
|
|
1160
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
+
_b = errorCode;
|
|
1162
|
+
switch (_b) {
|
|
1163
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1164
|
+
case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
|
|
1165
|
+
case "LimitExceededException": return [3, 4];
|
|
1166
|
+
case "com.amazonaws.appstream#LimitExceededException": return [3, 4];
|
|
1167
|
+
case "OperationNotPermittedException": return [3, 6];
|
|
1168
|
+
case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 6];
|
|
1169
|
+
case "ResourceAlreadyExistsException": return [3, 8];
|
|
1170
|
+
case "com.amazonaws.appstream#ResourceAlreadyExistsException": return [3, 8];
|
|
1171
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1172
|
+
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 10];
|
|
1173
|
+
}
|
|
1174
|
+
return [3, 12];
|
|
1175
|
+
case 2:
|
|
1176
|
+
_c = [{}];
|
|
1177
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1178
|
+
case 3:
|
|
1179
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1180
|
+
return [3, 13];
|
|
1181
|
+
case 4:
|
|
1182
|
+
_d = [{}];
|
|
1183
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1184
|
+
case 5:
|
|
1185
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1186
|
+
return [3, 13];
|
|
1187
|
+
case 6:
|
|
1188
|
+
_e = [{}];
|
|
1189
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1190
|
+
case 7:
|
|
1191
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1192
|
+
return [3, 13];
|
|
1193
|
+
case 8:
|
|
1194
|
+
_f = [{}];
|
|
1195
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1196
|
+
case 9:
|
|
1197
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1198
|
+
return [3, 13];
|
|
1199
|
+
case 10:
|
|
1200
|
+
_g = [{}];
|
|
1201
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1202
|
+
case 11:
|
|
1203
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1204
|
+
return [3, 13];
|
|
1205
|
+
case 12:
|
|
1206
|
+
parsedBody = parsedOutput.body;
|
|
1207
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1208
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1209
|
+
_j.label = 13;
|
|
1210
|
+
case 13:
|
|
1211
|
+
message = response.message || response.Message || errorCode;
|
|
1212
|
+
response.message = message;
|
|
1213
|
+
delete response.Message;
|
|
1214
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1215
|
+
}
|
|
1216
|
+
});
|
|
1217
|
+
}); };
|
|
1218
|
+
export var deserializeAws_json1_1CreateDirectoryConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1219
|
+
var data, contents, response;
|
|
1220
|
+
return __generator(this, function (_a) {
|
|
1221
|
+
switch (_a.label) {
|
|
1222
|
+
case 0:
|
|
1223
|
+
if (output.statusCode >= 300) {
|
|
1224
|
+
return [2, deserializeAws_json1_1CreateDirectoryConfigCommandError(output, context)];
|
|
1225
|
+
}
|
|
1226
|
+
return [4, parseBody(output.body, context)];
|
|
1227
|
+
case 1:
|
|
1228
|
+
data = _a.sent();
|
|
1229
|
+
contents = {};
|
|
1230
|
+
contents = deserializeAws_json1_1CreateDirectoryConfigResult(data, context);
|
|
1231
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1232
|
+
return [2, Promise.resolve(response)];
|
|
1233
|
+
}
|
|
1234
|
+
});
|
|
1235
|
+
}); };
|
|
1236
|
+
var deserializeAws_json1_1CreateDirectoryConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1237
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1238
|
+
var _j;
|
|
1239
|
+
return __generator(this, function (_k) {
|
|
1240
|
+
switch (_k.label) {
|
|
1241
|
+
case 0:
|
|
1242
|
+
_a = [__assign({}, output)];
|
|
1243
|
+
_j = {};
|
|
1244
|
+
return [4, parseBody(output.body, context)];
|
|
1245
|
+
case 1:
|
|
1246
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1247
|
+
errorCode = "UnknownError";
|
|
1248
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
+
_b = errorCode;
|
|
1250
|
+
switch (_b) {
|
|
1251
|
+
case "InvalidAccountStatusException": return [3, 2];
|
|
1252
|
+
case "com.amazonaws.appstream#InvalidAccountStatusException": return [3, 2];
|
|
1253
|
+
case "InvalidRoleException": return [3, 4];
|
|
1254
|
+
case "com.amazonaws.appstream#InvalidRoleException": return [3, 4];
|
|
1255
|
+
case "LimitExceededException": return [3, 6];
|
|
1256
|
+
case "com.amazonaws.appstream#LimitExceededException": return [3, 6];
|
|
1257
|
+
case "OperationNotPermittedException": return [3, 8];
|
|
1258
|
+
case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 8];
|
|
1259
|
+
case "ResourceAlreadyExistsException": return [3, 10];
|
|
1260
|
+
case "com.amazonaws.appstream#ResourceAlreadyExistsException": return [3, 10];
|
|
1261
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1262
|
+
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 12];
|
|
1263
|
+
}
|
|
1264
|
+
return [3, 14];
|
|
1265
|
+
case 2:
|
|
1266
|
+
_c = [{}];
|
|
1267
|
+
return [4, deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)];
|
|
1268
|
+
case 3:
|
|
1269
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1270
|
+
return [3, 15];
|
|
1271
|
+
case 4:
|
|
1272
|
+
_d = [{}];
|
|
1273
|
+
return [4, deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context)];
|
|
1274
|
+
case 5:
|
|
1275
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1276
|
+
return [3, 15];
|
|
1277
|
+
case 6:
|
|
1278
|
+
_e = [{}];
|
|
1279
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1280
|
+
case 7:
|
|
1281
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1282
|
+
return [3, 15];
|
|
1283
|
+
case 8:
|
|
1284
|
+
_f = [{}];
|
|
1285
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1286
|
+
case 9:
|
|
1287
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1288
|
+
return [3, 15];
|
|
1289
|
+
case 10:
|
|
1290
|
+
_g = [{}];
|
|
1291
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1292
|
+
case 11:
|
|
1293
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1294
|
+
return [3, 15];
|
|
1295
|
+
case 12:
|
|
1296
|
+
_h = [{}];
|
|
1297
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1298
|
+
case 13:
|
|
1299
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1300
|
+
return [3, 15];
|
|
1301
|
+
case 14:
|
|
1302
|
+
parsedBody = parsedOutput.body;
|
|
1303
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1304
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1305
|
+
_k.label = 15;
|
|
1306
|
+
case 15:
|
|
1307
|
+
message = response.message || response.Message || errorCode;
|
|
1308
|
+
response.message = message;
|
|
1309
|
+
delete response.Message;
|
|
1310
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1311
|
+
}
|
|
1312
|
+
});
|
|
1313
|
+
}); };
|
|
1314
|
+
export var deserializeAws_json1_1CreateFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1315
|
+
var data, contents, response;
|
|
1316
|
+
return __generator(this, function (_a) {
|
|
1317
|
+
switch (_a.label) {
|
|
1318
|
+
case 0:
|
|
1319
|
+
if (output.statusCode >= 300) {
|
|
1320
|
+
return [2, deserializeAws_json1_1CreateFleetCommandError(output, context)];
|
|
1321
|
+
}
|
|
1322
|
+
return [4, parseBody(output.body, context)];
|
|
1323
|
+
case 1:
|
|
1324
|
+
data = _a.sent();
|
|
1325
|
+
contents = {};
|
|
1326
|
+
contents = deserializeAws_json1_1CreateFleetResult(data, context);
|
|
1327
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1328
|
+
return [2, Promise.resolve(response)];
|
|
1329
|
+
}
|
|
1330
|
+
});
|
|
1331
|
+
}); };
|
|
1332
|
+
var deserializeAws_json1_1CreateFleetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1333
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, parsedBody, message;
|
|
1334
|
+
var _p;
|
|
1335
|
+
return __generator(this, function (_q) {
|
|
1336
|
+
switch (_q.label) {
|
|
1337
|
+
case 0:
|
|
1338
|
+
_a = [__assign({}, output)];
|
|
1339
|
+
_p = {};
|
|
974
1340
|
return [4, parseBody(output.body, context)];
|
|
975
1341
|
case 1:
|
|
976
1342
|
parsedOutput = __assign.apply(void 0, _a.concat([(_p.body = _q.sent(), _p)]));
|
|
@@ -1729,89 +2095,25 @@ var deserializeAws_json1_1CreateUserCommandError = function (output, context) {
|
|
|
1729
2095
|
}
|
|
1730
2096
|
});
|
|
1731
2097
|
}); };
|
|
1732
|
-
export var
|
|
1733
|
-
var data, contents, response;
|
|
1734
|
-
return __generator(this, function (_a) {
|
|
1735
|
-
switch (_a.label) {
|
|
1736
|
-
case 0:
|
|
1737
|
-
if (output.statusCode >= 300) {
|
|
1738
|
-
return [2, deserializeAws_json1_1DeleteDirectoryConfigCommandError(output, context)];
|
|
1739
|
-
}
|
|
1740
|
-
return [4, parseBody(output.body, context)];
|
|
1741
|
-
case 1:
|
|
1742
|
-
data = _a.sent();
|
|
1743
|
-
contents = {};
|
|
1744
|
-
contents = deserializeAws_json1_1DeleteDirectoryConfigResult(data, context);
|
|
1745
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1746
|
-
return [2, Promise.resolve(response)];
|
|
1747
|
-
}
|
|
1748
|
-
});
|
|
1749
|
-
}); };
|
|
1750
|
-
var deserializeAws_json1_1DeleteDirectoryConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1751
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
1752
|
-
var _e;
|
|
1753
|
-
return __generator(this, function (_f) {
|
|
1754
|
-
switch (_f.label) {
|
|
1755
|
-
case 0:
|
|
1756
|
-
_a = [__assign({}, output)];
|
|
1757
|
-
_e = {};
|
|
1758
|
-
return [4, parseBody(output.body, context)];
|
|
1759
|
-
case 1:
|
|
1760
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1761
|
-
errorCode = "UnknownError";
|
|
1762
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1763
|
-
_b = errorCode;
|
|
1764
|
-
switch (_b) {
|
|
1765
|
-
case "ResourceInUseException": return [3, 2];
|
|
1766
|
-
case "com.amazonaws.appstream#ResourceInUseException": return [3, 2];
|
|
1767
|
-
case "ResourceNotFoundException": return [3, 4];
|
|
1768
|
-
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 4];
|
|
1769
|
-
}
|
|
1770
|
-
return [3, 6];
|
|
1771
|
-
case 2:
|
|
1772
|
-
_c = [{}];
|
|
1773
|
-
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
1774
|
-
case 3:
|
|
1775
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1776
|
-
return [3, 7];
|
|
1777
|
-
case 4:
|
|
1778
|
-
_d = [{}];
|
|
1779
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1780
|
-
case 5:
|
|
1781
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1782
|
-
return [3, 7];
|
|
1783
|
-
case 6:
|
|
1784
|
-
parsedBody = parsedOutput.body;
|
|
1785
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1786
|
-
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1787
|
-
_f.label = 7;
|
|
1788
|
-
case 7:
|
|
1789
|
-
message = response.message || response.Message || errorCode;
|
|
1790
|
-
response.message = message;
|
|
1791
|
-
delete response.Message;
|
|
1792
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1793
|
-
}
|
|
1794
|
-
});
|
|
1795
|
-
}); };
|
|
1796
|
-
export var deserializeAws_json1_1DeleteFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2098
|
+
export var deserializeAws_json1_1DeleteAppBlockCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1797
2099
|
var data, contents, response;
|
|
1798
2100
|
return __generator(this, function (_a) {
|
|
1799
2101
|
switch (_a.label) {
|
|
1800
2102
|
case 0:
|
|
1801
2103
|
if (output.statusCode >= 300) {
|
|
1802
|
-
return [2,
|
|
2104
|
+
return [2, deserializeAws_json1_1DeleteAppBlockCommandError(output, context)];
|
|
1803
2105
|
}
|
|
1804
2106
|
return [4, parseBody(output.body, context)];
|
|
1805
2107
|
case 1:
|
|
1806
2108
|
data = _a.sent();
|
|
1807
2109
|
contents = {};
|
|
1808
|
-
contents =
|
|
2110
|
+
contents = deserializeAws_json1_1DeleteAppBlockResult(data, context);
|
|
1809
2111
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1810
2112
|
return [2, Promise.resolve(response)];
|
|
1811
2113
|
}
|
|
1812
2114
|
});
|
|
1813
2115
|
}); };
|
|
1814
|
-
var
|
|
2116
|
+
var deserializeAws_json1_1DeleteAppBlockCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1815
2117
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1816
2118
|
var _f;
|
|
1817
2119
|
return __generator(this, function (_g) {
|
|
@@ -1865,25 +2167,241 @@ var deserializeAws_json1_1DeleteFleetCommandError = function (output, context) {
|
|
|
1865
2167
|
}
|
|
1866
2168
|
});
|
|
1867
2169
|
}); };
|
|
1868
|
-
export var
|
|
2170
|
+
export var deserializeAws_json1_1DeleteApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1869
2171
|
var data, contents, response;
|
|
1870
2172
|
return __generator(this, function (_a) {
|
|
1871
2173
|
switch (_a.label) {
|
|
1872
2174
|
case 0:
|
|
1873
2175
|
if (output.statusCode >= 300) {
|
|
1874
|
-
return [2,
|
|
2176
|
+
return [2, deserializeAws_json1_1DeleteApplicationCommandError(output, context)];
|
|
1875
2177
|
}
|
|
1876
2178
|
return [4, parseBody(output.body, context)];
|
|
1877
2179
|
case 1:
|
|
1878
2180
|
data = _a.sent();
|
|
1879
2181
|
contents = {};
|
|
1880
|
-
contents =
|
|
2182
|
+
contents = deserializeAws_json1_1DeleteApplicationResult(data, context);
|
|
1881
2183
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1882
2184
|
return [2, Promise.resolve(response)];
|
|
1883
2185
|
}
|
|
1884
2186
|
});
|
|
1885
2187
|
}); };
|
|
1886
|
-
var
|
|
2188
|
+
var deserializeAws_json1_1DeleteApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2189
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2190
|
+
var _g;
|
|
2191
|
+
return __generator(this, function (_h) {
|
|
2192
|
+
switch (_h.label) {
|
|
2193
|
+
case 0:
|
|
2194
|
+
_a = [__assign({}, output)];
|
|
2195
|
+
_g = {};
|
|
2196
|
+
return [4, parseBody(output.body, context)];
|
|
2197
|
+
case 1:
|
|
2198
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2199
|
+
errorCode = "UnknownError";
|
|
2200
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2201
|
+
_b = errorCode;
|
|
2202
|
+
switch (_b) {
|
|
2203
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
2204
|
+
case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
|
|
2205
|
+
case "OperationNotPermittedException": return [3, 4];
|
|
2206
|
+
case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
|
|
2207
|
+
case "ResourceInUseException": return [3, 6];
|
|
2208
|
+
case "com.amazonaws.appstream#ResourceInUseException": return [3, 6];
|
|
2209
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2210
|
+
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 8];
|
|
2211
|
+
}
|
|
2212
|
+
return [3, 10];
|
|
2213
|
+
case 2:
|
|
2214
|
+
_c = [{}];
|
|
2215
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2216
|
+
case 3:
|
|
2217
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2218
|
+
return [3, 11];
|
|
2219
|
+
case 4:
|
|
2220
|
+
_d = [{}];
|
|
2221
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
2222
|
+
case 5:
|
|
2223
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2224
|
+
return [3, 11];
|
|
2225
|
+
case 6:
|
|
2226
|
+
_e = [{}];
|
|
2227
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2228
|
+
case 7:
|
|
2229
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2230
|
+
return [3, 11];
|
|
2231
|
+
case 8:
|
|
2232
|
+
_f = [{}];
|
|
2233
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2234
|
+
case 9:
|
|
2235
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2236
|
+
return [3, 11];
|
|
2237
|
+
case 10:
|
|
2238
|
+
parsedBody = parsedOutput.body;
|
|
2239
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2240
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2241
|
+
_h.label = 11;
|
|
2242
|
+
case 11:
|
|
2243
|
+
message = response.message || response.Message || errorCode;
|
|
2244
|
+
response.message = message;
|
|
2245
|
+
delete response.Message;
|
|
2246
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2247
|
+
}
|
|
2248
|
+
});
|
|
2249
|
+
}); };
|
|
2250
|
+
export var deserializeAws_json1_1DeleteDirectoryConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2251
|
+
var data, contents, response;
|
|
2252
|
+
return __generator(this, function (_a) {
|
|
2253
|
+
switch (_a.label) {
|
|
2254
|
+
case 0:
|
|
2255
|
+
if (output.statusCode >= 300) {
|
|
2256
|
+
return [2, deserializeAws_json1_1DeleteDirectoryConfigCommandError(output, context)];
|
|
2257
|
+
}
|
|
2258
|
+
return [4, parseBody(output.body, context)];
|
|
2259
|
+
case 1:
|
|
2260
|
+
data = _a.sent();
|
|
2261
|
+
contents = {};
|
|
2262
|
+
contents = deserializeAws_json1_1DeleteDirectoryConfigResult(data, context);
|
|
2263
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2264
|
+
return [2, Promise.resolve(response)];
|
|
2265
|
+
}
|
|
2266
|
+
});
|
|
2267
|
+
}); };
|
|
2268
|
+
var deserializeAws_json1_1DeleteDirectoryConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2269
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2270
|
+
var _e;
|
|
2271
|
+
return __generator(this, function (_f) {
|
|
2272
|
+
switch (_f.label) {
|
|
2273
|
+
case 0:
|
|
2274
|
+
_a = [__assign({}, output)];
|
|
2275
|
+
_e = {};
|
|
2276
|
+
return [4, parseBody(output.body, context)];
|
|
2277
|
+
case 1:
|
|
2278
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2279
|
+
errorCode = "UnknownError";
|
|
2280
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2281
|
+
_b = errorCode;
|
|
2282
|
+
switch (_b) {
|
|
2283
|
+
case "ResourceInUseException": return [3, 2];
|
|
2284
|
+
case "com.amazonaws.appstream#ResourceInUseException": return [3, 2];
|
|
2285
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2286
|
+
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 4];
|
|
2287
|
+
}
|
|
2288
|
+
return [3, 6];
|
|
2289
|
+
case 2:
|
|
2290
|
+
_c = [{}];
|
|
2291
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2292
|
+
case 3:
|
|
2293
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2294
|
+
return [3, 7];
|
|
2295
|
+
case 4:
|
|
2296
|
+
_d = [{}];
|
|
2297
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2298
|
+
case 5:
|
|
2299
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2300
|
+
return [3, 7];
|
|
2301
|
+
case 6:
|
|
2302
|
+
parsedBody = parsedOutput.body;
|
|
2303
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2304
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2305
|
+
_f.label = 7;
|
|
2306
|
+
case 7:
|
|
2307
|
+
message = response.message || response.Message || errorCode;
|
|
2308
|
+
response.message = message;
|
|
2309
|
+
delete response.Message;
|
|
2310
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2311
|
+
}
|
|
2312
|
+
});
|
|
2313
|
+
}); };
|
|
2314
|
+
export var deserializeAws_json1_1DeleteFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2315
|
+
var data, contents, response;
|
|
2316
|
+
return __generator(this, function (_a) {
|
|
2317
|
+
switch (_a.label) {
|
|
2318
|
+
case 0:
|
|
2319
|
+
if (output.statusCode >= 300) {
|
|
2320
|
+
return [2, deserializeAws_json1_1DeleteFleetCommandError(output, context)];
|
|
2321
|
+
}
|
|
2322
|
+
return [4, parseBody(output.body, context)];
|
|
2323
|
+
case 1:
|
|
2324
|
+
data = _a.sent();
|
|
2325
|
+
contents = {};
|
|
2326
|
+
contents = deserializeAws_json1_1DeleteFleetResult(data, context);
|
|
2327
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2328
|
+
return [2, Promise.resolve(response)];
|
|
2329
|
+
}
|
|
2330
|
+
});
|
|
2331
|
+
}); };
|
|
2332
|
+
var deserializeAws_json1_1DeleteFleetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2333
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
2334
|
+
var _f;
|
|
2335
|
+
return __generator(this, function (_g) {
|
|
2336
|
+
switch (_g.label) {
|
|
2337
|
+
case 0:
|
|
2338
|
+
_a = [__assign({}, output)];
|
|
2339
|
+
_f = {};
|
|
2340
|
+
return [4, parseBody(output.body, context)];
|
|
2341
|
+
case 1:
|
|
2342
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2343
|
+
errorCode = "UnknownError";
|
|
2344
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2345
|
+
_b = errorCode;
|
|
2346
|
+
switch (_b) {
|
|
2347
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
2348
|
+
case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
|
|
2349
|
+
case "ResourceInUseException": return [3, 4];
|
|
2350
|
+
case "com.amazonaws.appstream#ResourceInUseException": return [3, 4];
|
|
2351
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2352
|
+
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 6];
|
|
2353
|
+
}
|
|
2354
|
+
return [3, 8];
|
|
2355
|
+
case 2:
|
|
2356
|
+
_c = [{}];
|
|
2357
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2358
|
+
case 3:
|
|
2359
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2360
|
+
return [3, 9];
|
|
2361
|
+
case 4:
|
|
2362
|
+
_d = [{}];
|
|
2363
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2364
|
+
case 5:
|
|
2365
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2366
|
+
return [3, 9];
|
|
2367
|
+
case 6:
|
|
2368
|
+
_e = [{}];
|
|
2369
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2370
|
+
case 7:
|
|
2371
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2372
|
+
return [3, 9];
|
|
2373
|
+
case 8:
|
|
2374
|
+
parsedBody = parsedOutput.body;
|
|
2375
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2376
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2377
|
+
_g.label = 9;
|
|
2378
|
+
case 9:
|
|
2379
|
+
message = response.message || response.Message || errorCode;
|
|
2380
|
+
response.message = message;
|
|
2381
|
+
delete response.Message;
|
|
2382
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2383
|
+
}
|
|
2384
|
+
});
|
|
2385
|
+
}); };
|
|
2386
|
+
export var deserializeAws_json1_1DeleteImageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2387
|
+
var data, contents, response;
|
|
2388
|
+
return __generator(this, function (_a) {
|
|
2389
|
+
switch (_a.label) {
|
|
2390
|
+
case 0:
|
|
2391
|
+
if (output.statusCode >= 300) {
|
|
2392
|
+
return [2, deserializeAws_json1_1DeleteImageCommandError(output, context)];
|
|
2393
|
+
}
|
|
2394
|
+
return [4, parseBody(output.body, context)];
|
|
2395
|
+
case 1:
|
|
2396
|
+
data = _a.sent();
|
|
2397
|
+
contents = {};
|
|
2398
|
+
contents = deserializeAws_json1_1DeleteImageResult(data, context);
|
|
2399
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2400
|
+
return [2, Promise.resolve(response)];
|
|
2401
|
+
}
|
|
2402
|
+
});
|
|
2403
|
+
}); };
|
|
2404
|
+
var deserializeAws_json1_1DeleteImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1887
2405
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1888
2406
|
var _g;
|
|
1889
2407
|
return __generator(this, function (_h) {
|
|
@@ -2273,6 +2791,198 @@ var deserializeAws_json1_1DeleteUserCommandError = function (output, context) {
|
|
|
2273
2791
|
}
|
|
2274
2792
|
});
|
|
2275
2793
|
}); };
|
|
2794
|
+
export var deserializeAws_json1_1DescribeAppBlocksCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2795
|
+
var data, contents, response;
|
|
2796
|
+
return __generator(this, function (_a) {
|
|
2797
|
+
switch (_a.label) {
|
|
2798
|
+
case 0:
|
|
2799
|
+
if (output.statusCode >= 300) {
|
|
2800
|
+
return [2, deserializeAws_json1_1DescribeAppBlocksCommandError(output, context)];
|
|
2801
|
+
}
|
|
2802
|
+
return [4, parseBody(output.body, context)];
|
|
2803
|
+
case 1:
|
|
2804
|
+
data = _a.sent();
|
|
2805
|
+
contents = {};
|
|
2806
|
+
contents = deserializeAws_json1_1DescribeAppBlocksResult(data, context);
|
|
2807
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2808
|
+
return [2, Promise.resolve(response)];
|
|
2809
|
+
}
|
|
2810
|
+
});
|
|
2811
|
+
}); };
|
|
2812
|
+
var deserializeAws_json1_1DescribeAppBlocksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2813
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2814
|
+
var _e;
|
|
2815
|
+
return __generator(this, function (_f) {
|
|
2816
|
+
switch (_f.label) {
|
|
2817
|
+
case 0:
|
|
2818
|
+
_a = [__assign({}, output)];
|
|
2819
|
+
_e = {};
|
|
2820
|
+
return [4, parseBody(output.body, context)];
|
|
2821
|
+
case 1:
|
|
2822
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2823
|
+
errorCode = "UnknownError";
|
|
2824
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2825
|
+
_b = errorCode;
|
|
2826
|
+
switch (_b) {
|
|
2827
|
+
case "OperationNotPermittedException": return [3, 2];
|
|
2828
|
+
case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 2];
|
|
2829
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2830
|
+
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 4];
|
|
2831
|
+
}
|
|
2832
|
+
return [3, 6];
|
|
2833
|
+
case 2:
|
|
2834
|
+
_c = [{}];
|
|
2835
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
2836
|
+
case 3:
|
|
2837
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2838
|
+
return [3, 7];
|
|
2839
|
+
case 4:
|
|
2840
|
+
_d = [{}];
|
|
2841
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2842
|
+
case 5:
|
|
2843
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2844
|
+
return [3, 7];
|
|
2845
|
+
case 6:
|
|
2846
|
+
parsedBody = parsedOutput.body;
|
|
2847
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2848
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2849
|
+
_f.label = 7;
|
|
2850
|
+
case 7:
|
|
2851
|
+
message = response.message || response.Message || errorCode;
|
|
2852
|
+
response.message = message;
|
|
2853
|
+
delete response.Message;
|
|
2854
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2855
|
+
}
|
|
2856
|
+
});
|
|
2857
|
+
}); };
|
|
2858
|
+
export var deserializeAws_json1_1DescribeApplicationFleetAssociationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2859
|
+
var data, contents, response;
|
|
2860
|
+
return __generator(this, function (_a) {
|
|
2861
|
+
switch (_a.label) {
|
|
2862
|
+
case 0:
|
|
2863
|
+
if (output.statusCode >= 300) {
|
|
2864
|
+
return [2, deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError(output, context)];
|
|
2865
|
+
}
|
|
2866
|
+
return [4, parseBody(output.body, context)];
|
|
2867
|
+
case 1:
|
|
2868
|
+
data = _a.sent();
|
|
2869
|
+
contents = {};
|
|
2870
|
+
contents = deserializeAws_json1_1DescribeApplicationFleetAssociationsResult(data, context);
|
|
2871
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2872
|
+
return [2, Promise.resolve(response)];
|
|
2873
|
+
}
|
|
2874
|
+
});
|
|
2875
|
+
}); };
|
|
2876
|
+
var deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2877
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2878
|
+
var _e;
|
|
2879
|
+
return __generator(this, function (_f) {
|
|
2880
|
+
switch (_f.label) {
|
|
2881
|
+
case 0:
|
|
2882
|
+
_a = [__assign({}, output)];
|
|
2883
|
+
_e = {};
|
|
2884
|
+
return [4, parseBody(output.body, context)];
|
|
2885
|
+
case 1:
|
|
2886
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2887
|
+
errorCode = "UnknownError";
|
|
2888
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2889
|
+
_b = errorCode;
|
|
2890
|
+
switch (_b) {
|
|
2891
|
+
case "InvalidParameterCombinationException": return [3, 2];
|
|
2892
|
+
case "com.amazonaws.appstream#InvalidParameterCombinationException": return [3, 2];
|
|
2893
|
+
case "OperationNotPermittedException": return [3, 4];
|
|
2894
|
+
case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
|
|
2895
|
+
}
|
|
2896
|
+
return [3, 6];
|
|
2897
|
+
case 2:
|
|
2898
|
+
_c = [{}];
|
|
2899
|
+
return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
|
|
2900
|
+
case 3:
|
|
2901
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2902
|
+
return [3, 7];
|
|
2903
|
+
case 4:
|
|
2904
|
+
_d = [{}];
|
|
2905
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
2906
|
+
case 5:
|
|
2907
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2908
|
+
return [3, 7];
|
|
2909
|
+
case 6:
|
|
2910
|
+
parsedBody = parsedOutput.body;
|
|
2911
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2912
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2913
|
+
_f.label = 7;
|
|
2914
|
+
case 7:
|
|
2915
|
+
message = response.message || response.Message || errorCode;
|
|
2916
|
+
response.message = message;
|
|
2917
|
+
delete response.Message;
|
|
2918
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2919
|
+
}
|
|
2920
|
+
});
|
|
2921
|
+
}); };
|
|
2922
|
+
export var deserializeAws_json1_1DescribeApplicationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2923
|
+
var data, contents, response;
|
|
2924
|
+
return __generator(this, function (_a) {
|
|
2925
|
+
switch (_a.label) {
|
|
2926
|
+
case 0:
|
|
2927
|
+
if (output.statusCode >= 300) {
|
|
2928
|
+
return [2, deserializeAws_json1_1DescribeApplicationsCommandError(output, context)];
|
|
2929
|
+
}
|
|
2930
|
+
return [4, parseBody(output.body, context)];
|
|
2931
|
+
case 1:
|
|
2932
|
+
data = _a.sent();
|
|
2933
|
+
contents = {};
|
|
2934
|
+
contents = deserializeAws_json1_1DescribeApplicationsResult(data, context);
|
|
2935
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2936
|
+
return [2, Promise.resolve(response)];
|
|
2937
|
+
}
|
|
2938
|
+
});
|
|
2939
|
+
}); };
|
|
2940
|
+
var deserializeAws_json1_1DescribeApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2941
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2942
|
+
var _e;
|
|
2943
|
+
return __generator(this, function (_f) {
|
|
2944
|
+
switch (_f.label) {
|
|
2945
|
+
case 0:
|
|
2946
|
+
_a = [__assign({}, output)];
|
|
2947
|
+
_e = {};
|
|
2948
|
+
return [4, parseBody(output.body, context)];
|
|
2949
|
+
case 1:
|
|
2950
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2951
|
+
errorCode = "UnknownError";
|
|
2952
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2953
|
+
_b = errorCode;
|
|
2954
|
+
switch (_b) {
|
|
2955
|
+
case "OperationNotPermittedException": return [3, 2];
|
|
2956
|
+
case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 2];
|
|
2957
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2958
|
+
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 4];
|
|
2959
|
+
}
|
|
2960
|
+
return [3, 6];
|
|
2961
|
+
case 2:
|
|
2962
|
+
_c = [{}];
|
|
2963
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
2964
|
+
case 3:
|
|
2965
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2966
|
+
return [3, 7];
|
|
2967
|
+
case 4:
|
|
2968
|
+
_d = [{}];
|
|
2969
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2970
|
+
case 5:
|
|
2971
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2972
|
+
return [3, 7];
|
|
2973
|
+
case 6:
|
|
2974
|
+
parsedBody = parsedOutput.body;
|
|
2975
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2976
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2977
|
+
_f.label = 7;
|
|
2978
|
+
case 7:
|
|
2979
|
+
message = response.message || response.Message || errorCode;
|
|
2980
|
+
response.message = message;
|
|
2981
|
+
delete response.Message;
|
|
2982
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2983
|
+
}
|
|
2984
|
+
});
|
|
2985
|
+
}); };
|
|
2276
2986
|
export var deserializeAws_json1_1DescribeDirectoryConfigsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2277
2987
|
var data, contents, response;
|
|
2278
2988
|
return __generator(this, function (_a) {
|
|
@@ -2756,44 +3466,52 @@ export var deserializeAws_json1_1DescribeUsersCommand = function (output, contex
|
|
|
2756
3466
|
});
|
|
2757
3467
|
}); };
|
|
2758
3468
|
var deserializeAws_json1_1DescribeUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2759
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2760
|
-
var
|
|
2761
|
-
return __generator(this, function (
|
|
2762
|
-
switch (
|
|
3469
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
3470
|
+
var _f;
|
|
3471
|
+
return __generator(this, function (_g) {
|
|
3472
|
+
switch (_g.label) {
|
|
2763
3473
|
case 0:
|
|
2764
3474
|
_a = [__assign({}, output)];
|
|
2765
|
-
|
|
3475
|
+
_f = {};
|
|
2766
3476
|
return [4, parseBody(output.body, context)];
|
|
2767
3477
|
case 1:
|
|
2768
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3478
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2769
3479
|
errorCode = "UnknownError";
|
|
2770
3480
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2771
3481
|
_b = errorCode;
|
|
2772
3482
|
switch (_b) {
|
|
2773
3483
|
case "InvalidParameterCombinationException": return [3, 2];
|
|
2774
3484
|
case "com.amazonaws.appstream#InvalidParameterCombinationException": return [3, 2];
|
|
2775
|
-
case "
|
|
2776
|
-
case "com.amazonaws.appstream#
|
|
3485
|
+
case "OperationNotPermittedException": return [3, 4];
|
|
3486
|
+
case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
|
|
3487
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3488
|
+
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 6];
|
|
2777
3489
|
}
|
|
2778
|
-
return [3,
|
|
3490
|
+
return [3, 8];
|
|
2779
3491
|
case 2:
|
|
2780
3492
|
_c = [{}];
|
|
2781
3493
|
return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
|
|
2782
3494
|
case 3:
|
|
2783
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2784
|
-
return [3,
|
|
3495
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3496
|
+
return [3, 9];
|
|
2785
3497
|
case 4:
|
|
2786
3498
|
_d = [{}];
|
|
2787
|
-
return [4,
|
|
3499
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
2788
3500
|
case 5:
|
|
2789
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2790
|
-
return [3,
|
|
3501
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3502
|
+
return [3, 9];
|
|
2791
3503
|
case 6:
|
|
3504
|
+
_e = [{}];
|
|
3505
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3506
|
+
case 7:
|
|
3507
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3508
|
+
return [3, 9];
|
|
3509
|
+
case 8:
|
|
2792
3510
|
parsedBody = parsedOutput.body;
|
|
2793
3511
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2794
3512
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2795
|
-
|
|
2796
|
-
case
|
|
3513
|
+
_g.label = 9;
|
|
3514
|
+
case 9:
|
|
2797
3515
|
message = response.message || response.Message || errorCode;
|
|
2798
3516
|
response.message = message;
|
|
2799
3517
|
delete response.Message;
|
|
@@ -2890,30 +3608,102 @@ var deserializeAws_json1_1DisableUserCommandError = function (output, context) {
|
|
|
2890
3608
|
switch (_e.label) {
|
|
2891
3609
|
case 0:
|
|
2892
3610
|
_a = [__assign({}, output)];
|
|
2893
|
-
_d = {};
|
|
3611
|
+
_d = {};
|
|
3612
|
+
return [4, parseBody(output.body, context)];
|
|
3613
|
+
case 1:
|
|
3614
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
3615
|
+
errorCode = "UnknownError";
|
|
3616
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3617
|
+
_b = errorCode;
|
|
3618
|
+
switch (_b) {
|
|
3619
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
3620
|
+
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 2];
|
|
3621
|
+
}
|
|
3622
|
+
return [3, 4];
|
|
3623
|
+
case 2:
|
|
3624
|
+
_c = [{}];
|
|
3625
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3626
|
+
case 3:
|
|
3627
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3628
|
+
return [3, 5];
|
|
3629
|
+
case 4:
|
|
3630
|
+
parsedBody = parsedOutput.body;
|
|
3631
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3632
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3633
|
+
_e.label = 5;
|
|
3634
|
+
case 5:
|
|
3635
|
+
message = response.message || response.Message || errorCode;
|
|
3636
|
+
response.message = message;
|
|
3637
|
+
delete response.Message;
|
|
3638
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3639
|
+
}
|
|
3640
|
+
});
|
|
3641
|
+
}); };
|
|
3642
|
+
export var deserializeAws_json1_1DisassociateApplicationFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3643
|
+
var data, contents, response;
|
|
3644
|
+
return __generator(this, function (_a) {
|
|
3645
|
+
switch (_a.label) {
|
|
3646
|
+
case 0:
|
|
3647
|
+
if (output.statusCode >= 300) {
|
|
3648
|
+
return [2, deserializeAws_json1_1DisassociateApplicationFleetCommandError(output, context)];
|
|
3649
|
+
}
|
|
3650
|
+
return [4, parseBody(output.body, context)];
|
|
3651
|
+
case 1:
|
|
3652
|
+
data = _a.sent();
|
|
3653
|
+
contents = {};
|
|
3654
|
+
contents = deserializeAws_json1_1DisassociateApplicationFleetResult(data, context);
|
|
3655
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3656
|
+
return [2, Promise.resolve(response)];
|
|
3657
|
+
}
|
|
3658
|
+
});
|
|
3659
|
+
}); };
|
|
3660
|
+
var deserializeAws_json1_1DisassociateApplicationFleetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3661
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
3662
|
+
var _f;
|
|
3663
|
+
return __generator(this, function (_g) {
|
|
3664
|
+
switch (_g.label) {
|
|
3665
|
+
case 0:
|
|
3666
|
+
_a = [__assign({}, output)];
|
|
3667
|
+
_f = {};
|
|
2894
3668
|
return [4, parseBody(output.body, context)];
|
|
2895
3669
|
case 1:
|
|
2896
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3670
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2897
3671
|
errorCode = "UnknownError";
|
|
2898
3672
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2899
3673
|
_b = errorCode;
|
|
2900
3674
|
switch (_b) {
|
|
2901
|
-
case "
|
|
2902
|
-
case "com.amazonaws.appstream#
|
|
3675
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
3676
|
+
case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
|
|
3677
|
+
case "InvalidParameterCombinationException": return [3, 4];
|
|
3678
|
+
case "com.amazonaws.appstream#InvalidParameterCombinationException": return [3, 4];
|
|
3679
|
+
case "OperationNotPermittedException": return [3, 6];
|
|
3680
|
+
case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 6];
|
|
2903
3681
|
}
|
|
2904
|
-
return [3,
|
|
3682
|
+
return [3, 8];
|
|
2905
3683
|
case 2:
|
|
2906
3684
|
_c = [{}];
|
|
2907
|
-
return [4,
|
|
3685
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2908
3686
|
case 3:
|
|
2909
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2910
|
-
return [3,
|
|
3687
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3688
|
+
return [3, 9];
|
|
2911
3689
|
case 4:
|
|
3690
|
+
_d = [{}];
|
|
3691
|
+
return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
|
|
3692
|
+
case 5:
|
|
3693
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3694
|
+
return [3, 9];
|
|
3695
|
+
case 6:
|
|
3696
|
+
_e = [{}];
|
|
3697
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
3698
|
+
case 7:
|
|
3699
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3700
|
+
return [3, 9];
|
|
3701
|
+
case 8:
|
|
2912
3702
|
parsedBody = parsedOutput.body;
|
|
2913
3703
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2914
3704
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2915
|
-
|
|
2916
|
-
case
|
|
3705
|
+
_g.label = 9;
|
|
3706
|
+
case 9:
|
|
2917
3707
|
message = response.message || response.Message || errorCode;
|
|
2918
3708
|
response.message = message;
|
|
2919
3709
|
delete response.Message;
|
|
@@ -3717,6 +4507,78 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
3717
4507
|
}
|
|
3718
4508
|
});
|
|
3719
4509
|
}); };
|
|
4510
|
+
export var deserializeAws_json1_1UpdateApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4511
|
+
var data, contents, response;
|
|
4512
|
+
return __generator(this, function (_a) {
|
|
4513
|
+
switch (_a.label) {
|
|
4514
|
+
case 0:
|
|
4515
|
+
if (output.statusCode >= 300) {
|
|
4516
|
+
return [2, deserializeAws_json1_1UpdateApplicationCommandError(output, context)];
|
|
4517
|
+
}
|
|
4518
|
+
return [4, parseBody(output.body, context)];
|
|
4519
|
+
case 1:
|
|
4520
|
+
data = _a.sent();
|
|
4521
|
+
contents = {};
|
|
4522
|
+
contents = deserializeAws_json1_1UpdateApplicationResult(data, context);
|
|
4523
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4524
|
+
return [2, Promise.resolve(response)];
|
|
4525
|
+
}
|
|
4526
|
+
});
|
|
4527
|
+
}); };
|
|
4528
|
+
var deserializeAws_json1_1UpdateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4529
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
4530
|
+
var _f;
|
|
4531
|
+
return __generator(this, function (_g) {
|
|
4532
|
+
switch (_g.label) {
|
|
4533
|
+
case 0:
|
|
4534
|
+
_a = [__assign({}, output)];
|
|
4535
|
+
_f = {};
|
|
4536
|
+
return [4, parseBody(output.body, context)];
|
|
4537
|
+
case 1:
|
|
4538
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4539
|
+
errorCode = "UnknownError";
|
|
4540
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4541
|
+
_b = errorCode;
|
|
4542
|
+
switch (_b) {
|
|
4543
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
4544
|
+
case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
|
|
4545
|
+
case "OperationNotPermittedException": return [3, 4];
|
|
4546
|
+
case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
|
|
4547
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
4548
|
+
case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 6];
|
|
4549
|
+
}
|
|
4550
|
+
return [3, 8];
|
|
4551
|
+
case 2:
|
|
4552
|
+
_c = [{}];
|
|
4553
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
4554
|
+
case 3:
|
|
4555
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4556
|
+
return [3, 9];
|
|
4557
|
+
case 4:
|
|
4558
|
+
_d = [{}];
|
|
4559
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
4560
|
+
case 5:
|
|
4561
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4562
|
+
return [3, 9];
|
|
4563
|
+
case 6:
|
|
4564
|
+
_e = [{}];
|
|
4565
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4566
|
+
case 7:
|
|
4567
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4568
|
+
return [3, 9];
|
|
4569
|
+
case 8:
|
|
4570
|
+
parsedBody = parsedOutput.body;
|
|
4571
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4572
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
4573
|
+
_g.label = 9;
|
|
4574
|
+
case 9:
|
|
4575
|
+
message = response.message || response.Message || errorCode;
|
|
4576
|
+
response.message = message;
|
|
4577
|
+
delete response.Message;
|
|
4578
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4579
|
+
}
|
|
4580
|
+
});
|
|
4581
|
+
}); };
|
|
3720
4582
|
export var deserializeAws_json1_1UpdateDirectoryConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3721
4583
|
var data, contents, response;
|
|
3722
4584
|
return __generator(this, function (_a) {
|
|
@@ -4254,6 +5116,16 @@ var serializeAws_json1_1AccessEndpointList = function (input, context) {
|
|
|
4254
5116
|
return serializeAws_json1_1AccessEndpoint(entry, context);
|
|
4255
5117
|
});
|
|
4256
5118
|
};
|
|
5119
|
+
var serializeAws_json1_1ApplicationAttributes = function (input, context) {
|
|
5120
|
+
return input
|
|
5121
|
+
.filter(function (e) { return e != null; })
|
|
5122
|
+
.map(function (entry) {
|
|
5123
|
+
if (entry === null) {
|
|
5124
|
+
return null;
|
|
5125
|
+
}
|
|
5126
|
+
return entry;
|
|
5127
|
+
});
|
|
5128
|
+
};
|
|
4257
5129
|
var serializeAws_json1_1ApplicationSettings = function (input, context) {
|
|
4258
5130
|
return __assign(__assign({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.SettingsGroup !== undefined && input.SettingsGroup !== null && { SettingsGroup: input.SettingsGroup }));
|
|
4259
5131
|
};
|
|
@@ -4267,6 +5139,10 @@ var serializeAws_json1_1ArnList = function (input, context) {
|
|
|
4267
5139
|
return entry;
|
|
4268
5140
|
});
|
|
4269
5141
|
};
|
|
5142
|
+
var serializeAws_json1_1AssociateApplicationFleetRequest = function (input, context) {
|
|
5143
|
+
return __assign(__assign({}, (input.ApplicationArn !== undefined &&
|
|
5144
|
+
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn })), (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }));
|
|
5145
|
+
};
|
|
4270
5146
|
var serializeAws_json1_1AssociateFleetRequest = function (input, context) {
|
|
4271
5147
|
return __assign(__assign({}, (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
|
|
4272
5148
|
};
|
|
@@ -4303,6 +5179,27 @@ var serializeAws_json1_1CopyImageRequest = function (input, context) {
|
|
|
4303
5179
|
input.DestinationRegion !== null && { DestinationRegion: input.DestinationRegion })), (input.SourceImageName !== undefined &&
|
|
4304
5180
|
input.SourceImageName !== null && { SourceImageName: input.SourceImageName }));
|
|
4305
5181
|
};
|
|
5182
|
+
var serializeAws_json1_1CreateAppBlockRequest = function (input, context) {
|
|
5183
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SetupScriptDetails !== undefined &&
|
|
5184
|
+
input.SetupScriptDetails !== null && {
|
|
5185
|
+
SetupScriptDetails: serializeAws_json1_1ScriptDetails(input.SetupScriptDetails, context),
|
|
5186
|
+
})), (input.SourceS3Location !== undefined &&
|
|
5187
|
+
input.SourceS3Location !== null && {
|
|
5188
|
+
SourceS3Location: serializeAws_json1_1S3Location(input.SourceS3Location, context),
|
|
5189
|
+
})), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
5190
|
+
};
|
|
5191
|
+
var serializeAws_json1_1CreateApplicationRequest = function (input, context) {
|
|
5192
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppBlockArn !== undefined && input.AppBlockArn !== null && { AppBlockArn: input.AppBlockArn })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName })), (input.IconS3Location !== undefined &&
|
|
5193
|
+
input.IconS3Location !== null && {
|
|
5194
|
+
IconS3Location: serializeAws_json1_1S3Location(input.IconS3Location, context),
|
|
5195
|
+
})), (input.InstanceFamilies !== undefined &&
|
|
5196
|
+
input.InstanceFamilies !== null && {
|
|
5197
|
+
InstanceFamilies: serializeAws_json1_1StringList(input.InstanceFamilies, context),
|
|
5198
|
+
})), (input.LaunchParameters !== undefined &&
|
|
5199
|
+
input.LaunchParameters !== null && { LaunchParameters: input.LaunchParameters })), (input.LaunchPath !== undefined && input.LaunchPath !== null && { LaunchPath: input.LaunchPath })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Platforms !== undefined &&
|
|
5200
|
+
input.Platforms !== null && { Platforms: serializeAws_json1_1Platforms(input.Platforms, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.WorkingDirectory !== undefined &&
|
|
5201
|
+
input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }));
|
|
5202
|
+
};
|
|
4306
5203
|
var serializeAws_json1_1CreateDirectoryConfigRequest = function (input, context) {
|
|
4307
5204
|
return __assign(__assign(__assign({}, (input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName })), (input.OrganizationalUnitDistinguishedNames !== undefined &&
|
|
4308
5205
|
input.OrganizationalUnitDistinguishedNames !== null && {
|
|
@@ -4313,7 +5210,7 @@ var serializeAws_json1_1CreateDirectoryConfigRequest = function (input, context)
|
|
|
4313
5210
|
}));
|
|
4314
5211
|
};
|
|
4315
5212
|
var serializeAws_json1_1CreateFleetRequest = function (input, context) {
|
|
4316
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ComputeCapacity !== undefined &&
|
|
5213
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ComputeCapacity !== undefined &&
|
|
4317
5214
|
input.ComputeCapacity !== null && {
|
|
4318
5215
|
ComputeCapacity: serializeAws_json1_1ComputeCapacity(input.ComputeCapacity, context),
|
|
4319
5216
|
})), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DisconnectTimeoutInSeconds !== undefined &&
|
|
@@ -4324,8 +5221,12 @@ var serializeAws_json1_1CreateFleetRequest = function (input, context) {
|
|
|
4324
5221
|
input.EnableDefaultInternetAccess !== null && { EnableDefaultInternetAccess: input.EnableDefaultInternetAccess })), (input.FleetType !== undefined && input.FleetType !== null && { FleetType: input.FleetType })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.IdleDisconnectTimeoutInSeconds !== undefined &&
|
|
4325
5222
|
input.IdleDisconnectTimeoutInSeconds !== null && {
|
|
4326
5223
|
IdleDisconnectTimeoutInSeconds: input.IdleDisconnectTimeoutInSeconds,
|
|
4327
|
-
})), (input.ImageArn !== undefined && input.ImageArn !== null && { ImageArn: input.ImageArn })), (input.ImageName !== undefined && input.ImageName !== null && { ImageName: input.ImageName })), (input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType })), (input.
|
|
4328
|
-
input.
|
|
5224
|
+
})), (input.ImageArn !== undefined && input.ImageArn !== null && { ImageArn: input.ImageArn })), (input.ImageName !== undefined && input.ImageName !== null && { ImageName: input.ImageName })), (input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType })), (input.MaxConcurrentSessions !== undefined &&
|
|
5225
|
+
input.MaxConcurrentSessions !== null && { MaxConcurrentSessions: input.MaxConcurrentSessions })), (input.MaxUserDurationInSeconds !== undefined &&
|
|
5226
|
+
input.MaxUserDurationInSeconds !== null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform })), (input.StreamView !== undefined && input.StreamView !== null && { StreamView: input.StreamView })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.UsbDeviceFilterStrings !== undefined &&
|
|
5227
|
+
input.UsbDeviceFilterStrings !== null && {
|
|
5228
|
+
UsbDeviceFilterStrings: serializeAws_json1_1UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
|
|
5229
|
+
})), (input.VpcConfig !== undefined &&
|
|
4329
5230
|
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
4330
5231
|
};
|
|
4331
5232
|
var serializeAws_json1_1CreateImageBuilderRequest = function (input, context) {
|
|
@@ -4379,6 +5280,12 @@ var serializeAws_json1_1CreateUserRequest = function (input, context) {
|
|
|
4379
5280
|
return __assign(__assign(__assign(__assign(__assign({}, (input.AuthenticationType !== undefined &&
|
|
4380
5281
|
input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.FirstName !== undefined && input.FirstName !== null && { FirstName: input.FirstName })), (input.LastName !== undefined && input.LastName !== null && { LastName: input.LastName })), (input.MessageAction !== undefined && input.MessageAction !== null && { MessageAction: input.MessageAction })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
|
|
4381
5282
|
};
|
|
5283
|
+
var serializeAws_json1_1DeleteAppBlockRequest = function (input, context) {
|
|
5284
|
+
return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
5285
|
+
};
|
|
5286
|
+
var serializeAws_json1_1DeleteApplicationRequest = function (input, context) {
|
|
5287
|
+
return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
5288
|
+
};
|
|
4382
5289
|
var serializeAws_json1_1DeleteDirectoryConfigRequest = function (input, context) {
|
|
4383
5290
|
return __assign({}, (input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }));
|
|
4384
5291
|
};
|
|
@@ -4405,6 +5312,16 @@ var serializeAws_json1_1DeleteUserRequest = function (input, context) {
|
|
|
4405
5312
|
return __assign(__assign({}, (input.AuthenticationType !== undefined &&
|
|
4406
5313
|
input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
|
|
4407
5314
|
};
|
|
5315
|
+
var serializeAws_json1_1DescribeAppBlocksRequest = function (input, context) {
|
|
5316
|
+
return __assign(__assign(__assign({}, (input.Arns !== undefined && input.Arns !== null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5317
|
+
};
|
|
5318
|
+
var serializeAws_json1_1DescribeApplicationFleetAssociationsRequest = function (input, context) {
|
|
5319
|
+
return __assign(__assign(__assign(__assign({}, (input.ApplicationArn !== undefined &&
|
|
5320
|
+
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn })), (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5321
|
+
};
|
|
5322
|
+
var serializeAws_json1_1DescribeApplicationsRequest = function (input, context) {
|
|
5323
|
+
return __assign(__assign(__assign({}, (input.Arns !== undefined && input.Arns !== null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5324
|
+
};
|
|
4408
5325
|
var serializeAws_json1_1DescribeDirectoryConfigsRequest = function (input, context) {
|
|
4409
5326
|
return __assign(__assign(__assign({}, (input.DirectoryNames !== undefined &&
|
|
4410
5327
|
input.DirectoryNames !== null && {
|
|
@@ -4462,6 +5379,10 @@ var serializeAws_json1_1DisableUserRequest = function (input, context) {
|
|
|
4462
5379
|
return __assign(__assign({}, (input.AuthenticationType !== undefined &&
|
|
4463
5380
|
input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
|
|
4464
5381
|
};
|
|
5382
|
+
var serializeAws_json1_1DisassociateApplicationFleetRequest = function (input, context) {
|
|
5383
|
+
return __assign(__assign({}, (input.ApplicationArn !== undefined &&
|
|
5384
|
+
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn })), (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }));
|
|
5385
|
+
};
|
|
4465
5386
|
var serializeAws_json1_1DisassociateFleetRequest = function (input, context) {
|
|
4466
5387
|
return __assign(__assign({}, (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
|
|
4467
5388
|
};
|
|
@@ -4531,6 +5452,28 @@ var serializeAws_json1_1OrganizationalUnitDistinguishedNamesList = function (inp
|
|
|
4531
5452
|
return entry;
|
|
4532
5453
|
});
|
|
4533
5454
|
};
|
|
5455
|
+
var serializeAws_json1_1Platforms = function (input, context) {
|
|
5456
|
+
return input
|
|
5457
|
+
.filter(function (e) { return e != null; })
|
|
5458
|
+
.map(function (entry) {
|
|
5459
|
+
if (entry === null) {
|
|
5460
|
+
return null;
|
|
5461
|
+
}
|
|
5462
|
+
return entry;
|
|
5463
|
+
});
|
|
5464
|
+
};
|
|
5465
|
+
var serializeAws_json1_1S3Location = function (input, context) {
|
|
5466
|
+
return __assign(__assign({}, (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket })), (input.S3Key !== undefined && input.S3Key !== null && { S3Key: input.S3Key }));
|
|
5467
|
+
};
|
|
5468
|
+
var serializeAws_json1_1ScriptDetails = function (input, context) {
|
|
5469
|
+
return __assign(__assign(__assign(__assign({}, (input.ExecutableParameters !== undefined &&
|
|
5470
|
+
input.ExecutableParameters !== null && { ExecutableParameters: input.ExecutableParameters })), (input.ExecutablePath !== undefined &&
|
|
5471
|
+
input.ExecutablePath !== null && { ExecutablePath: input.ExecutablePath })), (input.ScriptS3Location !== undefined &&
|
|
5472
|
+
input.ScriptS3Location !== null && {
|
|
5473
|
+
ScriptS3Location: serializeAws_json1_1S3Location(input.ScriptS3Location, context),
|
|
5474
|
+
})), (input.TimeoutInSeconds !== undefined &&
|
|
5475
|
+
input.TimeoutInSeconds !== null && { TimeoutInSeconds: input.TimeoutInSeconds }));
|
|
5476
|
+
};
|
|
4534
5477
|
var serializeAws_json1_1SecurityGroupIdList = function (input, context) {
|
|
4535
5478
|
return input
|
|
4536
5479
|
.filter(function (e) { return e != null; })
|
|
@@ -4630,6 +5573,17 @@ var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
|
4630
5573
|
return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.TagKeys !== undefined &&
|
|
4631
5574
|
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
4632
5575
|
};
|
|
5576
|
+
var serializeAws_json1_1UpdateApplicationRequest = function (input, context) {
|
|
5577
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppBlockArn !== undefined && input.AppBlockArn !== null && { AppBlockArn: input.AppBlockArn })), (input.AttributesToDelete !== undefined &&
|
|
5578
|
+
input.AttributesToDelete !== null && {
|
|
5579
|
+
AttributesToDelete: serializeAws_json1_1ApplicationAttributes(input.AttributesToDelete, context),
|
|
5580
|
+
})), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName })), (input.IconS3Location !== undefined &&
|
|
5581
|
+
input.IconS3Location !== null && {
|
|
5582
|
+
IconS3Location: serializeAws_json1_1S3Location(input.IconS3Location, context),
|
|
5583
|
+
})), (input.LaunchParameters !== undefined &&
|
|
5584
|
+
input.LaunchParameters !== null && { LaunchParameters: input.LaunchParameters })), (input.LaunchPath !== undefined && input.LaunchPath !== null && { LaunchPath: input.LaunchPath })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.WorkingDirectory !== undefined &&
|
|
5585
|
+
input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }));
|
|
5586
|
+
};
|
|
4633
5587
|
var serializeAws_json1_1UpdateDirectoryConfigRequest = function (input, context) {
|
|
4634
5588
|
return __assign(__assign(__assign({}, (input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName })), (input.OrganizationalUnitDistinguishedNames !== undefined &&
|
|
4635
5589
|
input.OrganizationalUnitDistinguishedNames !== null && {
|
|
@@ -4640,7 +5594,7 @@ var serializeAws_json1_1UpdateDirectoryConfigRequest = function (input, context)
|
|
|
4640
5594
|
}));
|
|
4641
5595
|
};
|
|
4642
5596
|
var serializeAws_json1_1UpdateFleetRequest = function (input, context) {
|
|
4643
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributesToDelete !== undefined &&
|
|
5597
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributesToDelete !== undefined &&
|
|
4644
5598
|
input.AttributesToDelete !== null && {
|
|
4645
5599
|
AttributesToDelete: serializeAws_json1_1FleetAttributes(input.AttributesToDelete, context),
|
|
4646
5600
|
})), (input.ComputeCapacity !== undefined &&
|
|
@@ -4655,8 +5609,12 @@ var serializeAws_json1_1UpdateFleetRequest = function (input, context) {
|
|
|
4655
5609
|
input.EnableDefaultInternetAccess !== null && { EnableDefaultInternetAccess: input.EnableDefaultInternetAccess })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.IdleDisconnectTimeoutInSeconds !== undefined &&
|
|
4656
5610
|
input.IdleDisconnectTimeoutInSeconds !== null && {
|
|
4657
5611
|
IdleDisconnectTimeoutInSeconds: input.IdleDisconnectTimeoutInSeconds,
|
|
4658
|
-
})), (input.ImageArn !== undefined && input.ImageArn !== null && { ImageArn: input.ImageArn })), (input.ImageName !== undefined && input.ImageName !== null && { ImageName: input.ImageName })), (input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType })), (input.
|
|
4659
|
-
input.
|
|
5612
|
+
})), (input.ImageArn !== undefined && input.ImageArn !== null && { ImageArn: input.ImageArn })), (input.ImageName !== undefined && input.ImageName !== null && { ImageName: input.ImageName })), (input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType })), (input.MaxConcurrentSessions !== undefined &&
|
|
5613
|
+
input.MaxConcurrentSessions !== null && { MaxConcurrentSessions: input.MaxConcurrentSessions })), (input.MaxUserDurationInSeconds !== undefined &&
|
|
5614
|
+
input.MaxUserDurationInSeconds !== null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform })), (input.StreamView !== undefined && input.StreamView !== null && { StreamView: input.StreamView })), (input.UsbDeviceFilterStrings !== undefined &&
|
|
5615
|
+
input.UsbDeviceFilterStrings !== null && {
|
|
5616
|
+
UsbDeviceFilterStrings: serializeAws_json1_1UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
|
|
5617
|
+
})), (input.VpcConfig !== undefined &&
|
|
4660
5618
|
input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
|
|
4661
5619
|
};
|
|
4662
5620
|
var serializeAws_json1_1UpdateImagePermissionsRequest = function (input, context) {
|
|
@@ -4688,6 +5646,16 @@ var serializeAws_json1_1UpdateStackRequest = function (input, context) {
|
|
|
4688
5646
|
UserSettings: serializeAws_json1_1UserSettingList(input.UserSettings, context),
|
|
4689
5647
|
}));
|
|
4690
5648
|
};
|
|
5649
|
+
var serializeAws_json1_1UsbDeviceFilterStrings = function (input, context) {
|
|
5650
|
+
return input
|
|
5651
|
+
.filter(function (e) { return e != null; })
|
|
5652
|
+
.map(function (entry) {
|
|
5653
|
+
if (entry === null) {
|
|
5654
|
+
return null;
|
|
5655
|
+
}
|
|
5656
|
+
return entry;
|
|
5657
|
+
});
|
|
5658
|
+
};
|
|
4691
5659
|
var serializeAws_json1_1UserSetting = function (input, context) {
|
|
4692
5660
|
return __assign(__assign({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Permission !== undefined && input.Permission !== null && { Permission: input.Permission }));
|
|
4693
5661
|
};
|
|
@@ -4739,19 +5707,78 @@ var deserializeAws_json1_1AccessEndpointList = function (output, context) {
|
|
|
4739
5707
|
return deserializeAws_json1_1AccessEndpoint(entry, context);
|
|
4740
5708
|
});
|
|
4741
5709
|
};
|
|
5710
|
+
var deserializeAws_json1_1AppBlock = function (output, context) {
|
|
5711
|
+
return {
|
|
5712
|
+
Arn: __expectString(output.Arn),
|
|
5713
|
+
CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
|
|
5714
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
|
|
5715
|
+
: undefined,
|
|
5716
|
+
Description: __expectString(output.Description),
|
|
5717
|
+
DisplayName: __expectString(output.DisplayName),
|
|
5718
|
+
Name: __expectString(output.Name),
|
|
5719
|
+
SetupScriptDetails: output.SetupScriptDetails !== undefined && output.SetupScriptDetails !== null
|
|
5720
|
+
? deserializeAws_json1_1ScriptDetails(output.SetupScriptDetails, context)
|
|
5721
|
+
: undefined,
|
|
5722
|
+
SourceS3Location: output.SourceS3Location !== undefined && output.SourceS3Location !== null
|
|
5723
|
+
? deserializeAws_json1_1S3Location(output.SourceS3Location, context)
|
|
5724
|
+
: undefined,
|
|
5725
|
+
};
|
|
5726
|
+
};
|
|
5727
|
+
var deserializeAws_json1_1AppBlocks = function (output, context) {
|
|
5728
|
+
return (output || [])
|
|
5729
|
+
.filter(function (e) { return e != null; })
|
|
5730
|
+
.map(function (entry) {
|
|
5731
|
+
if (entry === null) {
|
|
5732
|
+
return null;
|
|
5733
|
+
}
|
|
5734
|
+
return deserializeAws_json1_1AppBlock(entry, context);
|
|
5735
|
+
});
|
|
5736
|
+
};
|
|
4742
5737
|
var deserializeAws_json1_1Application = function (output, context) {
|
|
4743
5738
|
return {
|
|
5739
|
+
AppBlockArn: __expectString(output.AppBlockArn),
|
|
5740
|
+
Arn: __expectString(output.Arn),
|
|
5741
|
+
CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
|
|
5742
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
|
|
5743
|
+
: undefined,
|
|
5744
|
+
Description: __expectString(output.Description),
|
|
4744
5745
|
DisplayName: __expectString(output.DisplayName),
|
|
4745
5746
|
Enabled: __expectBoolean(output.Enabled),
|
|
5747
|
+
IconS3Location: output.IconS3Location !== undefined && output.IconS3Location !== null
|
|
5748
|
+
? deserializeAws_json1_1S3Location(output.IconS3Location, context)
|
|
5749
|
+
: undefined,
|
|
4746
5750
|
IconURL: __expectString(output.IconURL),
|
|
5751
|
+
InstanceFamilies: output.InstanceFamilies !== undefined && output.InstanceFamilies !== null
|
|
5752
|
+
? deserializeAws_json1_1StringList(output.InstanceFamilies, context)
|
|
5753
|
+
: undefined,
|
|
4747
5754
|
LaunchParameters: __expectString(output.LaunchParameters),
|
|
4748
5755
|
LaunchPath: __expectString(output.LaunchPath),
|
|
4749
5756
|
Metadata: output.Metadata !== undefined && output.Metadata !== null
|
|
4750
5757
|
? deserializeAws_json1_1Metadata(output.Metadata, context)
|
|
4751
5758
|
: undefined,
|
|
4752
5759
|
Name: __expectString(output.Name),
|
|
5760
|
+
Platforms: output.Platforms !== undefined && output.Platforms !== null
|
|
5761
|
+
? deserializeAws_json1_1Platforms(output.Platforms, context)
|
|
5762
|
+
: undefined,
|
|
5763
|
+
WorkingDirectory: __expectString(output.WorkingDirectory),
|
|
5764
|
+
};
|
|
5765
|
+
};
|
|
5766
|
+
var deserializeAws_json1_1ApplicationFleetAssociation = function (output, context) {
|
|
5767
|
+
return {
|
|
5768
|
+
ApplicationArn: __expectString(output.ApplicationArn),
|
|
5769
|
+
FleetName: __expectString(output.FleetName),
|
|
4753
5770
|
};
|
|
4754
5771
|
};
|
|
5772
|
+
var deserializeAws_json1_1ApplicationFleetAssociationList = function (output, context) {
|
|
5773
|
+
return (output || [])
|
|
5774
|
+
.filter(function (e) { return e != null; })
|
|
5775
|
+
.map(function (entry) {
|
|
5776
|
+
if (entry === null) {
|
|
5777
|
+
return null;
|
|
5778
|
+
}
|
|
5779
|
+
return deserializeAws_json1_1ApplicationFleetAssociation(entry, context);
|
|
5780
|
+
});
|
|
5781
|
+
};
|
|
4755
5782
|
var deserializeAws_json1_1Applications = function (output, context) {
|
|
4756
5783
|
return (output || [])
|
|
4757
5784
|
.filter(function (e) { return e != null; })
|
|
@@ -4769,6 +5796,13 @@ var deserializeAws_json1_1ApplicationSettingsResponse = function (output, contex
|
|
|
4769
5796
|
SettingsGroup: __expectString(output.SettingsGroup),
|
|
4770
5797
|
};
|
|
4771
5798
|
};
|
|
5799
|
+
var deserializeAws_json1_1AssociateApplicationFleetResult = function (output, context) {
|
|
5800
|
+
return {
|
|
5801
|
+
ApplicationFleetAssociation: output.ApplicationFleetAssociation !== undefined && output.ApplicationFleetAssociation !== null
|
|
5802
|
+
? deserializeAws_json1_1ApplicationFleetAssociation(output.ApplicationFleetAssociation, context)
|
|
5803
|
+
: undefined,
|
|
5804
|
+
};
|
|
5805
|
+
};
|
|
4772
5806
|
var deserializeAws_json1_1AssociateFleetResult = function (output, context) {
|
|
4773
5807
|
return {};
|
|
4774
5808
|
};
|
|
@@ -4804,6 +5838,20 @@ var deserializeAws_json1_1CopyImageResponse = function (output, context) {
|
|
|
4804
5838
|
DestinationImageName: __expectString(output.DestinationImageName),
|
|
4805
5839
|
};
|
|
4806
5840
|
};
|
|
5841
|
+
var deserializeAws_json1_1CreateAppBlockResult = function (output, context) {
|
|
5842
|
+
return {
|
|
5843
|
+
AppBlock: output.AppBlock !== undefined && output.AppBlock !== null
|
|
5844
|
+
? deserializeAws_json1_1AppBlock(output.AppBlock, context)
|
|
5845
|
+
: undefined,
|
|
5846
|
+
};
|
|
5847
|
+
};
|
|
5848
|
+
var deserializeAws_json1_1CreateApplicationResult = function (output, context) {
|
|
5849
|
+
return {
|
|
5850
|
+
Application: output.Application !== undefined && output.Application !== null
|
|
5851
|
+
? deserializeAws_json1_1Application(output.Application, context)
|
|
5852
|
+
: undefined,
|
|
5853
|
+
};
|
|
5854
|
+
};
|
|
4807
5855
|
var deserializeAws_json1_1CreateDirectoryConfigResult = function (output, context) {
|
|
4808
5856
|
return {
|
|
4809
5857
|
DirectoryConfig: output.DirectoryConfig !== undefined && output.DirectoryConfig !== null
|
|
@@ -4865,6 +5913,12 @@ var deserializeAws_json1_1CreateUsageReportSubscriptionResult = function (output
|
|
|
4865
5913
|
var deserializeAws_json1_1CreateUserResult = function (output, context) {
|
|
4866
5914
|
return {};
|
|
4867
5915
|
};
|
|
5916
|
+
var deserializeAws_json1_1DeleteAppBlockResult = function (output, context) {
|
|
5917
|
+
return {};
|
|
5918
|
+
};
|
|
5919
|
+
var deserializeAws_json1_1DeleteApplicationResult = function (output, context) {
|
|
5920
|
+
return {};
|
|
5921
|
+
};
|
|
4868
5922
|
var deserializeAws_json1_1DeleteDirectoryConfigResult = function (output, context) {
|
|
4869
5923
|
return {};
|
|
4870
5924
|
};
|
|
@@ -4897,6 +5951,30 @@ var deserializeAws_json1_1DeleteUsageReportSubscriptionResult = function (output
|
|
|
4897
5951
|
var deserializeAws_json1_1DeleteUserResult = function (output, context) {
|
|
4898
5952
|
return {};
|
|
4899
5953
|
};
|
|
5954
|
+
var deserializeAws_json1_1DescribeAppBlocksResult = function (output, context) {
|
|
5955
|
+
return {
|
|
5956
|
+
AppBlocks: output.AppBlocks !== undefined && output.AppBlocks !== null
|
|
5957
|
+
? deserializeAws_json1_1AppBlocks(output.AppBlocks, context)
|
|
5958
|
+
: undefined,
|
|
5959
|
+
NextToken: __expectString(output.NextToken),
|
|
5960
|
+
};
|
|
5961
|
+
};
|
|
5962
|
+
var deserializeAws_json1_1DescribeApplicationFleetAssociationsResult = function (output, context) {
|
|
5963
|
+
return {
|
|
5964
|
+
ApplicationFleetAssociations: output.ApplicationFleetAssociations !== undefined && output.ApplicationFleetAssociations !== null
|
|
5965
|
+
? deserializeAws_json1_1ApplicationFleetAssociationList(output.ApplicationFleetAssociations, context)
|
|
5966
|
+
: undefined,
|
|
5967
|
+
NextToken: __expectString(output.NextToken),
|
|
5968
|
+
};
|
|
5969
|
+
};
|
|
5970
|
+
var deserializeAws_json1_1DescribeApplicationsResult = function (output, context) {
|
|
5971
|
+
return {
|
|
5972
|
+
Applications: output.Applications !== undefined && output.Applications !== null
|
|
5973
|
+
? deserializeAws_json1_1Applications(output.Applications, context)
|
|
5974
|
+
: undefined,
|
|
5975
|
+
NextToken: __expectString(output.NextToken),
|
|
5976
|
+
};
|
|
5977
|
+
};
|
|
4900
5978
|
var deserializeAws_json1_1DescribeDirectoryConfigsResult = function (output, context) {
|
|
4901
5979
|
return {
|
|
4902
5980
|
DirectoryConfigs: output.DirectoryConfigs !== undefined && output.DirectoryConfigs !== null
|
|
@@ -5005,6 +6083,9 @@ var deserializeAws_json1_1DirectoryConfigList = function (output, context) {
|
|
|
5005
6083
|
var deserializeAws_json1_1DisableUserResult = function (output, context) {
|
|
5006
6084
|
return {};
|
|
5007
6085
|
};
|
|
6086
|
+
var deserializeAws_json1_1DisassociateApplicationFleetResult = function (output, context) {
|
|
6087
|
+
return {};
|
|
6088
|
+
};
|
|
5008
6089
|
var deserializeAws_json1_1DisassociateFleetResult = function (output, context) {
|
|
5009
6090
|
return {};
|
|
5010
6091
|
};
|
|
@@ -5065,10 +6146,15 @@ var deserializeAws_json1_1Fleet = function (output, context) {
|
|
|
5065
6146
|
ImageArn: __expectString(output.ImageArn),
|
|
5066
6147
|
ImageName: __expectString(output.ImageName),
|
|
5067
6148
|
InstanceType: __expectString(output.InstanceType),
|
|
6149
|
+
MaxConcurrentSessions: __expectInt32(output.MaxConcurrentSessions),
|
|
5068
6150
|
MaxUserDurationInSeconds: __expectInt32(output.MaxUserDurationInSeconds),
|
|
5069
6151
|
Name: __expectString(output.Name),
|
|
6152
|
+
Platform: __expectString(output.Platform),
|
|
5070
6153
|
State: __expectString(output.State),
|
|
5071
6154
|
StreamView: __expectString(output.StreamView),
|
|
6155
|
+
UsbDeviceFilterStrings: output.UsbDeviceFilterStrings !== undefined && output.UsbDeviceFilterStrings !== null
|
|
6156
|
+
? deserializeAws_json1_1UsbDeviceFilterStrings(output.UsbDeviceFilterStrings, context)
|
|
6157
|
+
: undefined,
|
|
5072
6158
|
VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
|
|
5073
6159
|
? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
|
|
5074
6160
|
: undefined,
|
|
@@ -5300,6 +6386,16 @@ var deserializeAws_json1_1OrganizationalUnitDistinguishedNamesList = function (o
|
|
|
5300
6386
|
return __expectString(entry);
|
|
5301
6387
|
});
|
|
5302
6388
|
};
|
|
6389
|
+
var deserializeAws_json1_1Platforms = function (output, context) {
|
|
6390
|
+
return (output || [])
|
|
6391
|
+
.filter(function (e) { return e != null; })
|
|
6392
|
+
.map(function (entry) {
|
|
6393
|
+
if (entry === null) {
|
|
6394
|
+
return null;
|
|
6395
|
+
}
|
|
6396
|
+
return __expectString(entry);
|
|
6397
|
+
});
|
|
6398
|
+
};
|
|
5303
6399
|
var deserializeAws_json1_1RequestLimitExceededException = function (output, context) {
|
|
5304
6400
|
return {
|
|
5305
6401
|
Message: __expectString(output.Message),
|
|
@@ -5344,6 +6440,22 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
|
|
|
5344
6440
|
Message: __expectString(output.Message),
|
|
5345
6441
|
};
|
|
5346
6442
|
};
|
|
6443
|
+
var deserializeAws_json1_1S3Location = function (output, context) {
|
|
6444
|
+
return {
|
|
6445
|
+
S3Bucket: __expectString(output.S3Bucket),
|
|
6446
|
+
S3Key: __expectString(output.S3Key),
|
|
6447
|
+
};
|
|
6448
|
+
};
|
|
6449
|
+
var deserializeAws_json1_1ScriptDetails = function (output, context) {
|
|
6450
|
+
return {
|
|
6451
|
+
ExecutableParameters: __expectString(output.ExecutableParameters),
|
|
6452
|
+
ExecutablePath: __expectString(output.ExecutablePath),
|
|
6453
|
+
ScriptS3Location: output.ScriptS3Location !== undefined && output.ScriptS3Location !== null
|
|
6454
|
+
? deserializeAws_json1_1S3Location(output.ScriptS3Location, context)
|
|
6455
|
+
: undefined,
|
|
6456
|
+
TimeoutInSeconds: __expectInt32(output.TimeoutInSeconds),
|
|
6457
|
+
};
|
|
6458
|
+
};
|
|
5347
6459
|
var deserializeAws_json1_1SecurityGroupIdList = function (output, context) {
|
|
5348
6460
|
return (output || [])
|
|
5349
6461
|
.filter(function (e) { return e != null; })
|
|
@@ -5540,6 +6652,13 @@ var deserializeAws_json1_1Tags = function (output, context) {
|
|
|
5540
6652
|
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
5541
6653
|
return {};
|
|
5542
6654
|
};
|
|
6655
|
+
var deserializeAws_json1_1UpdateApplicationResult = function (output, context) {
|
|
6656
|
+
return {
|
|
6657
|
+
Application: output.Application !== undefined && output.Application !== null
|
|
6658
|
+
? deserializeAws_json1_1Application(output.Application, context)
|
|
6659
|
+
: undefined,
|
|
6660
|
+
};
|
|
6661
|
+
};
|
|
5543
6662
|
var deserializeAws_json1_1UpdateDirectoryConfigResult = function (output, context) {
|
|
5544
6663
|
return {
|
|
5545
6664
|
DirectoryConfig: output.DirectoryConfig !== undefined && output.DirectoryConfig !== null
|
|
@@ -5586,6 +6705,16 @@ var deserializeAws_json1_1UsageReportSubscriptionList = function (output, contex
|
|
|
5586
6705
|
return deserializeAws_json1_1UsageReportSubscription(entry, context);
|
|
5587
6706
|
});
|
|
5588
6707
|
};
|
|
6708
|
+
var deserializeAws_json1_1UsbDeviceFilterStrings = function (output, context) {
|
|
6709
|
+
return (output || [])
|
|
6710
|
+
.filter(function (e) { return e != null; })
|
|
6711
|
+
.map(function (entry) {
|
|
6712
|
+
if (entry === null) {
|
|
6713
|
+
return null;
|
|
6714
|
+
}
|
|
6715
|
+
return __expectString(entry);
|
|
6716
|
+
});
|
|
6717
|
+
};
|
|
5589
6718
|
var deserializeAws_json1_1User = function (output, context) {
|
|
5590
6719
|
return {
|
|
5591
6720
|
Arn: __expectString(output.Arn),
|