@aws-sdk/client-appstream 3.42.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/AppStream.js +150 -0
  4. package/dist-cjs/commands/AssociateApplicationFleetCommand.js +36 -0
  5. package/dist-cjs/commands/CreateAppBlockCommand.js +36 -0
  6. package/dist-cjs/commands/CreateApplicationCommand.js +36 -0
  7. package/dist-cjs/commands/DeleteAppBlockCommand.js +36 -0
  8. package/dist-cjs/commands/DeleteApplicationCommand.js +36 -0
  9. package/dist-cjs/commands/DescribeAppBlocksCommand.js +36 -0
  10. package/dist-cjs/commands/DescribeApplicationFleetAssociationsCommand.js +36 -0
  11. package/dist-cjs/commands/DescribeApplicationsCommand.js +36 -0
  12. package/dist-cjs/commands/DisassociateApplicationFleetCommand.js +36 -0
  13. package/dist-cjs/commands/UpdateApplicationCommand.js +36 -0
  14. package/dist-cjs/commands/index.js +10 -0
  15. package/dist-cjs/models/models_0.js +185 -34
  16. package/dist-cjs/protocols/Aws_json1_1.js +1329 -241
  17. package/dist-es/AppStream.js +150 -0
  18. package/dist-es/commands/AssociateApplicationFleetCommand.js +39 -0
  19. package/dist-es/commands/CreateAppBlockCommand.js +39 -0
  20. package/dist-es/commands/CreateApplicationCommand.js +39 -0
  21. package/dist-es/commands/DeleteAppBlockCommand.js +39 -0
  22. package/dist-es/commands/DeleteApplicationCommand.js +39 -0
  23. package/dist-es/commands/DescribeAppBlocksCommand.js +39 -0
  24. package/dist-es/commands/DescribeApplicationFleetAssociationsCommand.js +39 -0
  25. package/dist-es/commands/DescribeApplicationsCommand.js +39 -0
  26. package/dist-es/commands/DisassociateApplicationFleetCommand.js +39 -0
  27. package/dist-es/commands/UpdateApplicationCommand.js +39 -0
  28. package/dist-es/commands/index.js +10 -0
  29. package/dist-es/models/models_0.js +127 -24
  30. package/dist-es/protocols/Aws_json1_1.js +1154 -33
  31. package/dist-types/AppStream.d.ts +104 -4
  32. package/dist-types/AppStreamClient.d.ts +12 -2
  33. package/dist-types/commands/AssociateApplicationFleetCommand.d.ts +35 -0
  34. package/dist-types/commands/CreateAppBlockCommand.d.ts +41 -0
  35. package/dist-types/commands/CreateApplicationCommand.d.ts +41 -0
  36. package/dist-types/commands/CreateFleetCommand.d.ts +1 -1
  37. package/dist-types/commands/DeleteAppBlockCommand.d.ts +35 -0
  38. package/dist-types/commands/DeleteApplicationCommand.d.ts +35 -0
  39. package/dist-types/commands/DescribeAppBlocksCommand.d.ts +35 -0
  40. package/dist-types/commands/DescribeApplicationFleetAssociationsCommand.d.ts +35 -0
  41. package/dist-types/commands/DescribeApplicationsCommand.d.ts +35 -0
  42. package/dist-types/commands/DisassociateApplicationFleetCommand.d.ts +35 -0
  43. package/dist-types/commands/UpdateApplicationCommand.d.ts +35 -0
  44. package/dist-types/commands/UpdateFleetCommand.d.ts +21 -3
  45. package/dist-types/commands/index.d.ts +10 -0
  46. package/dist-types/models/models_0.d.ts +647 -63
  47. package/dist-types/protocols/Aws_json1_1.d.ts +30 -0
  48. package/dist-types/ts3.4/AppStream.d.ts +50 -0
  49. package/dist-types/ts3.4/AppStreamClient.d.ts +12 -2
  50. package/dist-types/ts3.4/commands/AssociateApplicationFleetCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/CreateAppBlockCommand.d.ts +17 -0
  52. package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/DeleteAppBlockCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
  55. package/dist-types/ts3.4/commands/DescribeAppBlocksCommand.d.ts +17 -0
  56. package/dist-types/ts3.4/commands/DescribeApplicationFleetAssociationsCommand.d.ts +17 -0
  57. package/dist-types/ts3.4/commands/DescribeApplicationsCommand.d.ts +17 -0
  58. package/dist-types/ts3.4/commands/DisassociateApplicationFleetCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  61. package/dist-types/ts3.4/models/models_0.d.ts +368 -42
  62. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +30 -0
  63. package/package.json +2 -2
@@ -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,6 +1047,174 @@ var deserializeAws_json1_1CopyImageCommandError = function (output, context) { r
849
1047
  }
850
1048
  });
851
1049
  }); };
1050
+ export var deserializeAws_json1_1CreateAppBlockCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1051
+ var data, contents, response;
1052
+ return __generator(this, function (_a) {
1053
+ switch (_a.label) {
1054
+ case 0:
1055
+ if (output.statusCode >= 300) {
1056
+ return [2, deserializeAws_json1_1CreateAppBlockCommandError(output, context)];
1057
+ }
1058
+ return [4, parseBody(output.body, context)];
1059
+ case 1:
1060
+ data = _a.sent();
1061
+ contents = {};
1062
+ contents = deserializeAws_json1_1CreateAppBlockResult(data, context);
1063
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1064
+ return [2, Promise.resolve(response)];
1065
+ }
1066
+ });
1067
+ }); };
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) {
1073
+ case 0:
1074
+ _a = [__assign({}, output)];
1075
+ _g = {};
1076
+ return [4, parseBody(output.body, context)];
1077
+ case 1:
1078
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1079
+ errorCode = "UnknownError";
1080
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1081
+ _b = errorCode;
1082
+ switch (_b) {
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];
1091
+ }
1092
+ return [3, 10];
1093
+ case 2:
1094
+ _c = [{}];
1095
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
1096
+ case 3:
1097
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1098
+ return [3, 11];
1099
+ case 4:
1100
+ _d = [{}];
1101
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
1102
+ case 5:
1103
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1104
+ return [3, 11];
1105
+ case 6:
1106
+ _e = [{}];
1107
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
1108
+ case 7:
1109
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1110
+ return [3, 11];
1111
+ case 8:
1112
+ _f = [{}];
1113
+ return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
1114
+ case 9:
1115
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1116
+ return [3, 11];
1117
+ case 10:
1118
+ parsedBody = parsedOutput.body;
1119
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1120
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1121
+ _h.label = 11;
1122
+ case 11:
1123
+ message = response.message || response.Message || errorCode;
1124
+ response.message = message;
1125
+ delete response.Message;
1126
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1127
+ }
1128
+ });
1129
+ }); };
1130
+ export var deserializeAws_json1_1CreateApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1131
+ var data, contents, response;
1132
+ return __generator(this, function (_a) {
1133
+ switch (_a.label) {
1134
+ case 0:
1135
+ if (output.statusCode >= 300) {
1136
+ return [2, deserializeAws_json1_1CreateApplicationCommandError(output, context)];
1137
+ }
1138
+ return [4, parseBody(output.body, context)];
1139
+ case 1:
1140
+ data = _a.sent();
1141
+ contents = {};
1142
+ contents = deserializeAws_json1_1CreateApplicationResult(data, context);
1143
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1144
+ return [2, Promise.resolve(response)];
1145
+ }
1146
+ });
1147
+ }); };
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) {
1153
+ case 0:
1154
+ _a = [__assign({}, output)];
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
+ }); };
852
1218
  export var deserializeAws_json1_1CreateDirectoryConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
853
1219
  var data, contents, response;
854
1220
  return __generator(this, function (_a) {
@@ -1694,34 +2060,186 @@ var deserializeAws_json1_1CreateUserCommandError = function (output, context) {
1694
2060
  return [3, 13];
1695
2061
  case 4:
1696
2062
  _d = [{}];
1697
- return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
2063
+ return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
2064
+ case 5:
2065
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2066
+ return [3, 13];
2067
+ case 6:
2068
+ _e = [{}];
2069
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
2070
+ case 7:
2071
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2072
+ return [3, 13];
2073
+ case 8:
2074
+ _f = [{}];
2075
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
2076
+ case 9:
2077
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2078
+ return [3, 13];
2079
+ case 10:
2080
+ _g = [{}];
2081
+ return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
2082
+ case 11:
2083
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2084
+ return [3, 13];
2085
+ case 12:
2086
+ parsedBody = parsedOutput.body;
2087
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2088
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2089
+ _j.label = 13;
2090
+ case 13:
2091
+ message = response.message || response.Message || errorCode;
2092
+ response.message = message;
2093
+ delete response.Message;
2094
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2095
+ }
2096
+ });
2097
+ }); };
2098
+ export var deserializeAws_json1_1DeleteAppBlockCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2099
+ var data, contents, response;
2100
+ return __generator(this, function (_a) {
2101
+ switch (_a.label) {
2102
+ case 0:
2103
+ if (output.statusCode >= 300) {
2104
+ return [2, deserializeAws_json1_1DeleteAppBlockCommandError(output, context)];
2105
+ }
2106
+ return [4, parseBody(output.body, context)];
2107
+ case 1:
2108
+ data = _a.sent();
2109
+ contents = {};
2110
+ contents = deserializeAws_json1_1DeleteAppBlockResult(data, context);
2111
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2112
+ return [2, Promise.resolve(response)];
2113
+ }
2114
+ });
2115
+ }); };
2116
+ var deserializeAws_json1_1DeleteAppBlockCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2117
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
2118
+ var _f;
2119
+ return __generator(this, function (_g) {
2120
+ switch (_g.label) {
2121
+ case 0:
2122
+ _a = [__assign({}, output)];
2123
+ _f = {};
2124
+ return [4, parseBody(output.body, context)];
2125
+ case 1:
2126
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2127
+ errorCode = "UnknownError";
2128
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2129
+ _b = errorCode;
2130
+ switch (_b) {
2131
+ case "ConcurrentModificationException": return [3, 2];
2132
+ case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
2133
+ case "ResourceInUseException": return [3, 4];
2134
+ case "com.amazonaws.appstream#ResourceInUseException": return [3, 4];
2135
+ case "ResourceNotFoundException": return [3, 6];
2136
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 6];
2137
+ }
2138
+ return [3, 8];
2139
+ case 2:
2140
+ _c = [{}];
2141
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
2142
+ case 3:
2143
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2144
+ return [3, 9];
2145
+ case 4:
2146
+ _d = [{}];
2147
+ return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
2148
+ case 5:
2149
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2150
+ return [3, 9];
2151
+ case 6:
2152
+ _e = [{}];
2153
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2154
+ case 7:
2155
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2156
+ return [3, 9];
2157
+ case 8:
2158
+ parsedBody = parsedOutput.body;
2159
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2160
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2161
+ _g.label = 9;
2162
+ case 9:
2163
+ message = response.message || response.Message || errorCode;
2164
+ response.message = message;
2165
+ delete response.Message;
2166
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2167
+ }
2168
+ });
2169
+ }); };
2170
+ export var deserializeAws_json1_1DeleteApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2171
+ var data, contents, response;
2172
+ return __generator(this, function (_a) {
2173
+ switch (_a.label) {
2174
+ case 0:
2175
+ if (output.statusCode >= 300) {
2176
+ return [2, deserializeAws_json1_1DeleteApplicationCommandError(output, context)];
2177
+ }
2178
+ return [4, parseBody(output.body, context)];
2179
+ case 1:
2180
+ data = _a.sent();
2181
+ contents = {};
2182
+ contents = deserializeAws_json1_1DeleteApplicationResult(data, context);
2183
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2184
+ return [2, Promise.resolve(response)];
2185
+ }
2186
+ });
2187
+ }); };
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)];
1698
2222
  case 5:
1699
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1700
- return [3, 13];
2223
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2224
+ return [3, 11];
1701
2225
  case 6:
1702
2226
  _e = [{}];
1703
- return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
2227
+ return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
1704
2228
  case 7:
1705
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1706
- return [3, 13];
2229
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2230
+ return [3, 11];
1707
2231
  case 8:
1708
2232
  _f = [{}];
1709
- return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
2233
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1710
2234
  case 9:
1711
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1712
- return [3, 13];
2235
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2236
+ return [3, 11];
1713
2237
  case 10:
1714
- _g = [{}];
1715
- return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
1716
- case 11:
1717
- response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1718
- return [3, 13];
1719
- case 12:
1720
2238
  parsedBody = parsedOutput.body;
1721
2239
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
1722
2240
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1723
- _j.label = 13;
1724
- case 13:
2241
+ _h.label = 11;
2242
+ case 11:
1725
2243
  message = response.message || response.Message || errorCode;
1726
2244
  response.message = message;
1727
2245
  delete response.Message;
@@ -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) {
@@ -2898,30 +3608,102 @@ var deserializeAws_json1_1DisableUserCommandError = function (output, context) {
2898
3608
  switch (_e.label) {
2899
3609
  case 0:
2900
3610
  _a = [__assign({}, output)];
2901
- _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 = {};
2902
3668
  return [4, parseBody(output.body, context)];
2903
3669
  case 1:
2904
- parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
3670
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2905
3671
  errorCode = "UnknownError";
2906
3672
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2907
3673
  _b = errorCode;
2908
3674
  switch (_b) {
2909
- case "ResourceNotFoundException": return [3, 2];
2910
- case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 2];
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];
2911
3681
  }
2912
- return [3, 4];
3682
+ return [3, 8];
2913
3683
  case 2:
2914
3684
  _c = [{}];
2915
- return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3685
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
2916
3686
  case 3:
2917
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2918
- return [3, 5];
3687
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3688
+ return [3, 9];
2919
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:
2920
3702
  parsedBody = parsedOutput.body;
2921
3703
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
2922
3704
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2923
- _e.label = 5;
2924
- case 5:
3705
+ _g.label = 9;
3706
+ case 9:
2925
3707
  message = response.message || response.Message || errorCode;
2926
3708
  response.message = message;
2927
3709
  delete response.Message;
@@ -3725,6 +4507,78 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
3725
4507
  }
3726
4508
  });
3727
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
+ }); };
3728
4582
  export var deserializeAws_json1_1UpdateDirectoryConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3729
4583
  var data, contents, response;
3730
4584
  return __generator(this, function (_a) {
@@ -4262,6 +5116,16 @@ var serializeAws_json1_1AccessEndpointList = function (input, context) {
4262
5116
  return serializeAws_json1_1AccessEndpoint(entry, context);
4263
5117
  });
4264
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
+ };
4265
5129
  var serializeAws_json1_1ApplicationSettings = function (input, context) {
4266
5130
  return __assign(__assign({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.SettingsGroup !== undefined && input.SettingsGroup !== null && { SettingsGroup: input.SettingsGroup }));
4267
5131
  };
@@ -4275,6 +5139,10 @@ var serializeAws_json1_1ArnList = function (input, context) {
4275
5139
  return entry;
4276
5140
  });
4277
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
+ };
4278
5146
  var serializeAws_json1_1AssociateFleetRequest = function (input, context) {
4279
5147
  return __assign(__assign({}, (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
4280
5148
  };
@@ -4311,6 +5179,27 @@ var serializeAws_json1_1CopyImageRequest = function (input, context) {
4311
5179
  input.DestinationRegion !== null && { DestinationRegion: input.DestinationRegion })), (input.SourceImageName !== undefined &&
4312
5180
  input.SourceImageName !== null && { SourceImageName: input.SourceImageName }));
4313
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
+ };
4314
5203
  var serializeAws_json1_1CreateDirectoryConfigRequest = function (input, context) {
4315
5204
  return __assign(__assign(__assign({}, (input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName })), (input.OrganizationalUnitDistinguishedNames !== undefined &&
4316
5205
  input.OrganizationalUnitDistinguishedNames !== null && {
@@ -4321,7 +5210,7 @@ var serializeAws_json1_1CreateDirectoryConfigRequest = function (input, context)
4321
5210
  }));
4322
5211
  };
4323
5212
  var serializeAws_json1_1CreateFleetRequest = function (input, context) {
4324
- 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 &&
4325
5214
  input.ComputeCapacity !== null && {
4326
5215
  ComputeCapacity: serializeAws_json1_1ComputeCapacity(input.ComputeCapacity, context),
4327
5216
  })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DisconnectTimeoutInSeconds !== undefined &&
@@ -4332,8 +5221,12 @@ var serializeAws_json1_1CreateFleetRequest = function (input, context) {
4332
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 &&
4333
5222
  input.IdleDisconnectTimeoutInSeconds !== null && {
4334
5223
  IdleDisconnectTimeoutInSeconds: input.IdleDisconnectTimeoutInSeconds,
4335
- })), (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.MaxUserDurationInSeconds !== undefined &&
4336
- input.MaxUserDurationInSeconds !== null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.StreamView !== undefined && input.StreamView !== null && { StreamView: input.StreamView })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VpcConfig !== undefined &&
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 &&
4337
5230
  input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
4338
5231
  };
4339
5232
  var serializeAws_json1_1CreateImageBuilderRequest = function (input, context) {
@@ -4387,6 +5280,12 @@ var serializeAws_json1_1CreateUserRequest = function (input, context) {
4387
5280
  return __assign(__assign(__assign(__assign(__assign({}, (input.AuthenticationType !== undefined &&
4388
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 }));
4389
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
+ };
4390
5289
  var serializeAws_json1_1DeleteDirectoryConfigRequest = function (input, context) {
4391
5290
  return __assign({}, (input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }));
4392
5291
  };
@@ -4413,6 +5312,16 @@ var serializeAws_json1_1DeleteUserRequest = function (input, context) {
4413
5312
  return __assign(__assign({}, (input.AuthenticationType !== undefined &&
4414
5313
  input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
4415
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
+ };
4416
5325
  var serializeAws_json1_1DescribeDirectoryConfigsRequest = function (input, context) {
4417
5326
  return __assign(__assign(__assign({}, (input.DirectoryNames !== undefined &&
4418
5327
  input.DirectoryNames !== null && {
@@ -4470,6 +5379,10 @@ var serializeAws_json1_1DisableUserRequest = function (input, context) {
4470
5379
  return __assign(__assign({}, (input.AuthenticationType !== undefined &&
4471
5380
  input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
4472
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
+ };
4473
5386
  var serializeAws_json1_1DisassociateFleetRequest = function (input, context) {
4474
5387
  return __assign(__assign({}, (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
4475
5388
  };
@@ -4539,6 +5452,28 @@ var serializeAws_json1_1OrganizationalUnitDistinguishedNamesList = function (inp
4539
5452
  return entry;
4540
5453
  });
4541
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
+ };
4542
5477
  var serializeAws_json1_1SecurityGroupIdList = function (input, context) {
4543
5478
  return input
4544
5479
  .filter(function (e) { return e != null; })
@@ -4638,6 +5573,17 @@ var serializeAws_json1_1UntagResourceRequest = function (input, context) {
4638
5573
  return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.TagKeys !== undefined &&
4639
5574
  input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
4640
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
+ };
4641
5587
  var serializeAws_json1_1UpdateDirectoryConfigRequest = function (input, context) {
4642
5588
  return __assign(__assign(__assign({}, (input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName })), (input.OrganizationalUnitDistinguishedNames !== undefined &&
4643
5589
  input.OrganizationalUnitDistinguishedNames !== null && {
@@ -4648,7 +5594,7 @@ var serializeAws_json1_1UpdateDirectoryConfigRequest = function (input, context)
4648
5594
  }));
4649
5595
  };
4650
5596
  var serializeAws_json1_1UpdateFleetRequest = function (input, context) {
4651
- 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 &&
4652
5598
  input.AttributesToDelete !== null && {
4653
5599
  AttributesToDelete: serializeAws_json1_1FleetAttributes(input.AttributesToDelete, context),
4654
5600
  })), (input.ComputeCapacity !== undefined &&
@@ -4663,8 +5609,12 @@ var serializeAws_json1_1UpdateFleetRequest = function (input, context) {
4663
5609
  input.EnableDefaultInternetAccess !== null && { EnableDefaultInternetAccess: input.EnableDefaultInternetAccess })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.IdleDisconnectTimeoutInSeconds !== undefined &&
4664
5610
  input.IdleDisconnectTimeoutInSeconds !== null && {
4665
5611
  IdleDisconnectTimeoutInSeconds: input.IdleDisconnectTimeoutInSeconds,
4666
- })), (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.MaxUserDurationInSeconds !== undefined &&
4667
- input.MaxUserDurationInSeconds !== null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.StreamView !== undefined && input.StreamView !== null && { StreamView: input.StreamView })), (input.VpcConfig !== undefined &&
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 &&
4668
5618
  input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
4669
5619
  };
4670
5620
  var serializeAws_json1_1UpdateImagePermissionsRequest = function (input, context) {
@@ -4696,6 +5646,16 @@ var serializeAws_json1_1UpdateStackRequest = function (input, context) {
4696
5646
  UserSettings: serializeAws_json1_1UserSettingList(input.UserSettings, context),
4697
5647
  }));
4698
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
+ };
4699
5659
  var serializeAws_json1_1UserSetting = function (input, context) {
4700
5660
  return __assign(__assign({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Permission !== undefined && input.Permission !== null && { Permission: input.Permission }));
4701
5661
  };
@@ -4747,19 +5707,78 @@ var deserializeAws_json1_1AccessEndpointList = function (output, context) {
4747
5707
  return deserializeAws_json1_1AccessEndpoint(entry, context);
4748
5708
  });
4749
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
+ };
4750
5737
  var deserializeAws_json1_1Application = function (output, context) {
4751
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),
4752
5745
  DisplayName: __expectString(output.DisplayName),
4753
5746
  Enabled: __expectBoolean(output.Enabled),
5747
+ IconS3Location: output.IconS3Location !== undefined && output.IconS3Location !== null
5748
+ ? deserializeAws_json1_1S3Location(output.IconS3Location, context)
5749
+ : undefined,
4754
5750
  IconURL: __expectString(output.IconURL),
5751
+ InstanceFamilies: output.InstanceFamilies !== undefined && output.InstanceFamilies !== null
5752
+ ? deserializeAws_json1_1StringList(output.InstanceFamilies, context)
5753
+ : undefined,
4755
5754
  LaunchParameters: __expectString(output.LaunchParameters),
4756
5755
  LaunchPath: __expectString(output.LaunchPath),
4757
5756
  Metadata: output.Metadata !== undefined && output.Metadata !== null
4758
5757
  ? deserializeAws_json1_1Metadata(output.Metadata, context)
4759
5758
  : undefined,
4760
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),
4761
5770
  };
4762
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
+ };
4763
5782
  var deserializeAws_json1_1Applications = function (output, context) {
4764
5783
  return (output || [])
4765
5784
  .filter(function (e) { return e != null; })
@@ -4777,6 +5796,13 @@ var deserializeAws_json1_1ApplicationSettingsResponse = function (output, contex
4777
5796
  SettingsGroup: __expectString(output.SettingsGroup),
4778
5797
  };
4779
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
+ };
4780
5806
  var deserializeAws_json1_1AssociateFleetResult = function (output, context) {
4781
5807
  return {};
4782
5808
  };
@@ -4812,6 +5838,20 @@ var deserializeAws_json1_1CopyImageResponse = function (output, context) {
4812
5838
  DestinationImageName: __expectString(output.DestinationImageName),
4813
5839
  };
4814
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
+ };
4815
5855
  var deserializeAws_json1_1CreateDirectoryConfigResult = function (output, context) {
4816
5856
  return {
4817
5857
  DirectoryConfig: output.DirectoryConfig !== undefined && output.DirectoryConfig !== null
@@ -4873,6 +5913,12 @@ var deserializeAws_json1_1CreateUsageReportSubscriptionResult = function (output
4873
5913
  var deserializeAws_json1_1CreateUserResult = function (output, context) {
4874
5914
  return {};
4875
5915
  };
5916
+ var deserializeAws_json1_1DeleteAppBlockResult = function (output, context) {
5917
+ return {};
5918
+ };
5919
+ var deserializeAws_json1_1DeleteApplicationResult = function (output, context) {
5920
+ return {};
5921
+ };
4876
5922
  var deserializeAws_json1_1DeleteDirectoryConfigResult = function (output, context) {
4877
5923
  return {};
4878
5924
  };
@@ -4905,6 +5951,30 @@ var deserializeAws_json1_1DeleteUsageReportSubscriptionResult = function (output
4905
5951
  var deserializeAws_json1_1DeleteUserResult = function (output, context) {
4906
5952
  return {};
4907
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
+ };
4908
5978
  var deserializeAws_json1_1DescribeDirectoryConfigsResult = function (output, context) {
4909
5979
  return {
4910
5980
  DirectoryConfigs: output.DirectoryConfigs !== undefined && output.DirectoryConfigs !== null
@@ -5013,6 +6083,9 @@ var deserializeAws_json1_1DirectoryConfigList = function (output, context) {
5013
6083
  var deserializeAws_json1_1DisableUserResult = function (output, context) {
5014
6084
  return {};
5015
6085
  };
6086
+ var deserializeAws_json1_1DisassociateApplicationFleetResult = function (output, context) {
6087
+ return {};
6088
+ };
5016
6089
  var deserializeAws_json1_1DisassociateFleetResult = function (output, context) {
5017
6090
  return {};
5018
6091
  };
@@ -5073,10 +6146,15 @@ var deserializeAws_json1_1Fleet = function (output, context) {
5073
6146
  ImageArn: __expectString(output.ImageArn),
5074
6147
  ImageName: __expectString(output.ImageName),
5075
6148
  InstanceType: __expectString(output.InstanceType),
6149
+ MaxConcurrentSessions: __expectInt32(output.MaxConcurrentSessions),
5076
6150
  MaxUserDurationInSeconds: __expectInt32(output.MaxUserDurationInSeconds),
5077
6151
  Name: __expectString(output.Name),
6152
+ Platform: __expectString(output.Platform),
5078
6153
  State: __expectString(output.State),
5079
6154
  StreamView: __expectString(output.StreamView),
6155
+ UsbDeviceFilterStrings: output.UsbDeviceFilterStrings !== undefined && output.UsbDeviceFilterStrings !== null
6156
+ ? deserializeAws_json1_1UsbDeviceFilterStrings(output.UsbDeviceFilterStrings, context)
6157
+ : undefined,
5080
6158
  VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
5081
6159
  ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
5082
6160
  : undefined,
@@ -5308,6 +6386,16 @@ var deserializeAws_json1_1OrganizationalUnitDistinguishedNamesList = function (o
5308
6386
  return __expectString(entry);
5309
6387
  });
5310
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
+ };
5311
6399
  var deserializeAws_json1_1RequestLimitExceededException = function (output, context) {
5312
6400
  return {
5313
6401
  Message: __expectString(output.Message),
@@ -5352,6 +6440,22 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
5352
6440
  Message: __expectString(output.Message),
5353
6441
  };
5354
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
+ };
5355
6459
  var deserializeAws_json1_1SecurityGroupIdList = function (output, context) {
5356
6460
  return (output || [])
5357
6461
  .filter(function (e) { return e != null; })
@@ -5548,6 +6652,13 @@ var deserializeAws_json1_1Tags = function (output, context) {
5548
6652
  var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
5549
6653
  return {};
5550
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
+ };
5551
6662
  var deserializeAws_json1_1UpdateDirectoryConfigResult = function (output, context) {
5552
6663
  return {
5553
6664
  DirectoryConfig: output.DirectoryConfig !== undefined && output.DirectoryConfig !== null
@@ -5594,6 +6705,16 @@ var deserializeAws_json1_1UsageReportSubscriptionList = function (output, contex
5594
6705
  return deserializeAws_json1_1UsageReportSubscription(entry, context);
5595
6706
  });
5596
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
+ };
5597
6718
  var deserializeAws_json1_1User = function (output, context) {
5598
6719
  return {
5599
6720
  Arn: __expectString(output.Arn),