@aws-sdk/client-appstream 3.42.0 → 3.47.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 (103) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/AppStream.js +255 -0
  4. package/dist-cjs/commands/AssociateApplicationFleetCommand.js +36 -0
  5. package/dist-cjs/commands/AssociateApplicationToEntitlementCommand.js +36 -0
  6. package/dist-cjs/commands/CreateAppBlockCommand.js +36 -0
  7. package/dist-cjs/commands/CreateApplicationCommand.js +36 -0
  8. package/dist-cjs/commands/CreateEntitlementCommand.js +36 -0
  9. package/dist-cjs/commands/DeleteAppBlockCommand.js +36 -0
  10. package/dist-cjs/commands/DeleteApplicationCommand.js +36 -0
  11. package/dist-cjs/commands/DeleteEntitlementCommand.js +36 -0
  12. package/dist-cjs/commands/DescribeAppBlocksCommand.js +36 -0
  13. package/dist-cjs/commands/DescribeApplicationFleetAssociationsCommand.js +36 -0
  14. package/dist-cjs/commands/DescribeApplicationsCommand.js +36 -0
  15. package/dist-cjs/commands/DescribeEntitlementsCommand.js +36 -0
  16. package/dist-cjs/commands/DisassociateApplicationFleetCommand.js +36 -0
  17. package/dist-cjs/commands/DisassociateApplicationFromEntitlementCommand.js +36 -0
  18. package/dist-cjs/commands/ListEntitledApplicationsCommand.js +36 -0
  19. package/dist-cjs/commands/UpdateApplicationCommand.js +36 -0
  20. package/dist-cjs/commands/UpdateEntitlementCommand.js +36 -0
  21. package/dist-cjs/commands/index.js +17 -0
  22. package/dist-cjs/endpoints.js +1 -12
  23. package/dist-cjs/models/models_0.js +254 -68
  24. package/dist-cjs/protocols/Aws_json1_1.js +1964 -115
  25. package/dist-cjs/runtimeConfig.browser.js +7 -2
  26. package/dist-cjs/runtimeConfig.js +9 -3
  27. package/dist-es/AppStream.js +255 -0
  28. package/dist-es/commands/AssociateApplicationFleetCommand.js +39 -0
  29. package/dist-es/commands/AssociateApplicationToEntitlementCommand.js +39 -0
  30. package/dist-es/commands/CreateAppBlockCommand.js +39 -0
  31. package/dist-es/commands/CreateApplicationCommand.js +39 -0
  32. package/dist-es/commands/CreateEntitlementCommand.js +39 -0
  33. package/dist-es/commands/DeleteAppBlockCommand.js +39 -0
  34. package/dist-es/commands/DeleteApplicationCommand.js +39 -0
  35. package/dist-es/commands/DeleteEntitlementCommand.js +39 -0
  36. package/dist-es/commands/DescribeAppBlocksCommand.js +39 -0
  37. package/dist-es/commands/DescribeApplicationFleetAssociationsCommand.js +39 -0
  38. package/dist-es/commands/DescribeApplicationsCommand.js +39 -0
  39. package/dist-es/commands/DescribeEntitlementsCommand.js +39 -0
  40. package/dist-es/commands/DisassociateApplicationFleetCommand.js +39 -0
  41. package/dist-es/commands/DisassociateApplicationFromEntitlementCommand.js +39 -0
  42. package/dist-es/commands/ListEntitledApplicationsCommand.js +39 -0
  43. package/dist-es/commands/UpdateApplicationCommand.js +39 -0
  44. package/dist-es/commands/UpdateEntitlementCommand.js +39 -0
  45. package/dist-es/commands/index.js +17 -0
  46. package/dist-es/endpoints.js +1 -12
  47. package/dist-es/models/models_0.js +176 -48
  48. package/dist-es/protocols/Aws_json1_1.js +2134 -222
  49. package/dist-es/runtimeConfig.browser.js +12 -3
  50. package/dist-es/runtimeConfig.js +13 -6
  51. package/dist-types/AppStream.d.ts +158 -4
  52. package/dist-types/AppStreamClient.d.ts +24 -3
  53. package/dist-types/commands/AssociateApplicationFleetCommand.d.ts +35 -0
  54. package/dist-types/commands/AssociateApplicationToEntitlementCommand.d.ts +35 -0
  55. package/dist-types/commands/CreateAppBlockCommand.d.ts +41 -0
  56. package/dist-types/commands/CreateApplicationCommand.d.ts +41 -0
  57. package/dist-types/commands/CreateEntitlementCommand.d.ts +40 -0
  58. package/dist-types/commands/CreateFleetCommand.d.ts +1 -1
  59. package/dist-types/commands/DeleteAppBlockCommand.d.ts +35 -0
  60. package/dist-types/commands/DeleteApplicationCommand.d.ts +35 -0
  61. package/dist-types/commands/DeleteEntitlementCommand.d.ts +35 -0
  62. package/dist-types/commands/DescribeAppBlocksCommand.d.ts +35 -0
  63. package/dist-types/commands/DescribeApplicationFleetAssociationsCommand.d.ts +35 -0
  64. package/dist-types/commands/DescribeApplicationsCommand.d.ts +35 -0
  65. package/dist-types/commands/DescribeEntitlementsCommand.d.ts +35 -0
  66. package/dist-types/commands/DisassociateApplicationFleetCommand.d.ts +35 -0
  67. package/dist-types/commands/DisassociateApplicationFromEntitlementCommand.d.ts +35 -0
  68. package/dist-types/commands/ListEntitledApplicationsCommand.d.ts +35 -0
  69. package/dist-types/commands/UpdateApplicationCommand.d.ts +35 -0
  70. package/dist-types/commands/UpdateEntitlementCommand.d.ts +35 -0
  71. package/dist-types/commands/UpdateFleetCommand.d.ts +21 -3
  72. package/dist-types/commands/index.d.ts +17 -0
  73. package/dist-types/models/models_0.d.ts +982 -95
  74. package/dist-types/protocols/Aws_json1_1.d.ts +51 -0
  75. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  76. package/dist-types/runtimeConfig.d.ts +4 -3
  77. package/dist-types/runtimeConfig.native.d.ts +1 -0
  78. package/dist-types/ts3.4/AppStream.d.ts +85 -0
  79. package/dist-types/ts3.4/AppStreamClient.d.ts +22 -3
  80. package/dist-types/ts3.4/commands/AssociateApplicationFleetCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/AssociateApplicationToEntitlementCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/CreateAppBlockCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
  84. package/dist-types/ts3.4/commands/CreateEntitlementCommand.d.ts +17 -0
  85. package/dist-types/ts3.4/commands/DeleteAppBlockCommand.d.ts +17 -0
  86. package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
  87. package/dist-types/ts3.4/commands/DeleteEntitlementCommand.d.ts +17 -0
  88. package/dist-types/ts3.4/commands/DescribeAppBlocksCommand.d.ts +17 -0
  89. package/dist-types/ts3.4/commands/DescribeApplicationFleetAssociationsCommand.d.ts +17 -0
  90. package/dist-types/ts3.4/commands/DescribeApplicationsCommand.d.ts +17 -0
  91. package/dist-types/ts3.4/commands/DescribeEntitlementsCommand.d.ts +17 -0
  92. package/dist-types/ts3.4/commands/DisassociateApplicationFleetCommand.d.ts +17 -0
  93. package/dist-types/ts3.4/commands/DisassociateApplicationFromEntitlementCommand.d.ts +17 -0
  94. package/dist-types/ts3.4/commands/ListEntitledApplicationsCommand.d.ts +17 -0
  95. package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +17 -0
  96. package/dist-types/ts3.4/commands/UpdateEntitlementCommand.d.ts +17 -0
  97. package/dist-types/ts3.4/commands/index.d.ts +17 -0
  98. package/dist-types/ts3.4/models/models_0.d.ts +549 -64
  99. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +51 -0
  100. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  101. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  102. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  103. package/package.json +39 -46
@@ -1,6 +1,28 @@
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
+ }); };
15
+ export var serializeAws_json1_1AssociateApplicationToEntitlementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
16
+ var headers, body;
17
+ return __generator(this, function (_a) {
18
+ headers = {
19
+ "content-type": "application/x-amz-json-1.1",
20
+ "x-amz-target": "PhotonAdminProxyService.AssociateApplicationToEntitlement",
21
+ };
22
+ body = JSON.stringify(serializeAws_json1_1AssociateApplicationToEntitlementRequest(input, context));
23
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
24
+ });
25
+ }); };
4
26
  export var serializeAws_json1_1AssociateFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
27
  var headers, body;
6
28
  return __generator(this, function (_a) {
@@ -45,6 +67,28 @@ export var serializeAws_json1_1CopyImageCommand = function (input, context) { re
45
67
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
46
68
  });
47
69
  }); };
70
+ export var serializeAws_json1_1CreateAppBlockCommand = 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.CreateAppBlock",
76
+ };
77
+ body = JSON.stringify(serializeAws_json1_1CreateAppBlockRequest(input, context));
78
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
79
+ });
80
+ }); };
81
+ export var serializeAws_json1_1CreateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
82
+ var headers, body;
83
+ return __generator(this, function (_a) {
84
+ headers = {
85
+ "content-type": "application/x-amz-json-1.1",
86
+ "x-amz-target": "PhotonAdminProxyService.CreateApplication",
87
+ };
88
+ body = JSON.stringify(serializeAws_json1_1CreateApplicationRequest(input, context));
89
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
90
+ });
91
+ }); };
48
92
  export var serializeAws_json1_1CreateDirectoryConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
49
93
  var headers, body;
50
94
  return __generator(this, function (_a) {
@@ -56,6 +100,17 @@ export var serializeAws_json1_1CreateDirectoryConfigCommand = function (input, c
56
100
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
57
101
  });
58
102
  }); };
103
+ export var serializeAws_json1_1CreateEntitlementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
104
+ var headers, body;
105
+ return __generator(this, function (_a) {
106
+ headers = {
107
+ "content-type": "application/x-amz-json-1.1",
108
+ "x-amz-target": "PhotonAdminProxyService.CreateEntitlement",
109
+ };
110
+ body = JSON.stringify(serializeAws_json1_1CreateEntitlementRequest(input, context));
111
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
112
+ });
113
+ }); };
59
114
  export var serializeAws_json1_1CreateFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
60
115
  var headers, body;
61
116
  return __generator(this, function (_a) {
@@ -144,6 +199,28 @@ export var serializeAws_json1_1CreateUserCommand = function (input, context) { r
144
199
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
145
200
  });
146
201
  }); };
202
+ export var serializeAws_json1_1DeleteAppBlockCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
203
+ var headers, body;
204
+ return __generator(this, function (_a) {
205
+ headers = {
206
+ "content-type": "application/x-amz-json-1.1",
207
+ "x-amz-target": "PhotonAdminProxyService.DeleteAppBlock",
208
+ };
209
+ body = JSON.stringify(serializeAws_json1_1DeleteAppBlockRequest(input, context));
210
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
211
+ });
212
+ }); };
213
+ export var serializeAws_json1_1DeleteApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
214
+ var headers, body;
215
+ return __generator(this, function (_a) {
216
+ headers = {
217
+ "content-type": "application/x-amz-json-1.1",
218
+ "x-amz-target": "PhotonAdminProxyService.DeleteApplication",
219
+ };
220
+ body = JSON.stringify(serializeAws_json1_1DeleteApplicationRequest(input, context));
221
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
222
+ });
223
+ }); };
147
224
  export var serializeAws_json1_1DeleteDirectoryConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
148
225
  var headers, body;
149
226
  return __generator(this, function (_a) {
@@ -155,6 +232,17 @@ export var serializeAws_json1_1DeleteDirectoryConfigCommand = function (input, c
155
232
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
156
233
  });
157
234
  }); };
235
+ export var serializeAws_json1_1DeleteEntitlementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
236
+ var headers, body;
237
+ return __generator(this, function (_a) {
238
+ headers = {
239
+ "content-type": "application/x-amz-json-1.1",
240
+ "x-amz-target": "PhotonAdminProxyService.DeleteEntitlement",
241
+ };
242
+ body = JSON.stringify(serializeAws_json1_1DeleteEntitlementRequest(input, context));
243
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
244
+ });
245
+ }); };
158
246
  export var serializeAws_json1_1DeleteFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
159
247
  var headers, body;
160
248
  return __generator(this, function (_a) {
@@ -232,6 +320,39 @@ export var serializeAws_json1_1DeleteUserCommand = function (input, context) { r
232
320
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
233
321
  });
234
322
  }); };
323
+ export var serializeAws_json1_1DescribeAppBlocksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
324
+ var headers, body;
325
+ return __generator(this, function (_a) {
326
+ headers = {
327
+ "content-type": "application/x-amz-json-1.1",
328
+ "x-amz-target": "PhotonAdminProxyService.DescribeAppBlocks",
329
+ };
330
+ body = JSON.stringify(serializeAws_json1_1DescribeAppBlocksRequest(input, context));
331
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
332
+ });
333
+ }); };
334
+ export var serializeAws_json1_1DescribeApplicationFleetAssociationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
335
+ var headers, body;
336
+ return __generator(this, function (_a) {
337
+ headers = {
338
+ "content-type": "application/x-amz-json-1.1",
339
+ "x-amz-target": "PhotonAdminProxyService.DescribeApplicationFleetAssociations",
340
+ };
341
+ body = JSON.stringify(serializeAws_json1_1DescribeApplicationFleetAssociationsRequest(input, context));
342
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
343
+ });
344
+ }); };
345
+ export var serializeAws_json1_1DescribeApplicationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
346
+ var headers, body;
347
+ return __generator(this, function (_a) {
348
+ headers = {
349
+ "content-type": "application/x-amz-json-1.1",
350
+ "x-amz-target": "PhotonAdminProxyService.DescribeApplications",
351
+ };
352
+ body = JSON.stringify(serializeAws_json1_1DescribeApplicationsRequest(input, context));
353
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
354
+ });
355
+ }); };
235
356
  export var serializeAws_json1_1DescribeDirectoryConfigsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
236
357
  var headers, body;
237
358
  return __generator(this, function (_a) {
@@ -243,6 +364,17 @@ export var serializeAws_json1_1DescribeDirectoryConfigsCommand = function (input
243
364
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
244
365
  });
245
366
  }); };
367
+ export var serializeAws_json1_1DescribeEntitlementsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
368
+ var headers, body;
369
+ return __generator(this, function (_a) {
370
+ headers = {
371
+ "content-type": "application/x-amz-json-1.1",
372
+ "x-amz-target": "PhotonAdminProxyService.DescribeEntitlements",
373
+ };
374
+ body = JSON.stringify(serializeAws_json1_1DescribeEntitlementsRequest(input, context));
375
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
376
+ });
377
+ }); };
246
378
  export var serializeAws_json1_1DescribeFleetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
247
379
  var headers, body;
248
380
  return __generator(this, function (_a) {
@@ -353,6 +485,28 @@ export var serializeAws_json1_1DisableUserCommand = function (input, context) {
353
485
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
354
486
  });
355
487
  }); };
488
+ export var serializeAws_json1_1DisassociateApplicationFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
489
+ var headers, body;
490
+ return __generator(this, function (_a) {
491
+ headers = {
492
+ "content-type": "application/x-amz-json-1.1",
493
+ "x-amz-target": "PhotonAdminProxyService.DisassociateApplicationFleet",
494
+ };
495
+ body = JSON.stringify(serializeAws_json1_1DisassociateApplicationFleetRequest(input, context));
496
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
497
+ });
498
+ }); };
499
+ export var serializeAws_json1_1DisassociateApplicationFromEntitlementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
500
+ var headers, body;
501
+ return __generator(this, function (_a) {
502
+ headers = {
503
+ "content-type": "application/x-amz-json-1.1",
504
+ "x-amz-target": "PhotonAdminProxyService.DisassociateApplicationFromEntitlement",
505
+ };
506
+ body = JSON.stringify(serializeAws_json1_1DisassociateApplicationFromEntitlementRequest(input, context));
507
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
508
+ });
509
+ }); };
356
510
  export var serializeAws_json1_1DisassociateFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
357
511
  var headers, body;
358
512
  return __generator(this, function (_a) {
@@ -408,6 +562,17 @@ export var serializeAws_json1_1ListAssociatedStacksCommand = function (input, co
408
562
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
409
563
  });
410
564
  }); };
565
+ export var serializeAws_json1_1ListEntitledApplicationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
566
+ var headers, body;
567
+ return __generator(this, function (_a) {
568
+ headers = {
569
+ "content-type": "application/x-amz-json-1.1",
570
+ "x-amz-target": "PhotonAdminProxyService.ListEntitledApplications",
571
+ };
572
+ body = JSON.stringify(serializeAws_json1_1ListEntitledApplicationsRequest(input, context));
573
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
574
+ });
575
+ }); };
411
576
  export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
412
577
  var headers, body;
413
578
  return __generator(this, function (_a) {
@@ -485,6 +650,17 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
485
650
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
486
651
  });
487
652
  }); };
653
+ export var serializeAws_json1_1UpdateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
654
+ var headers, body;
655
+ return __generator(this, function (_a) {
656
+ headers = {
657
+ "content-type": "application/x-amz-json-1.1",
658
+ "x-amz-target": "PhotonAdminProxyService.UpdateApplication",
659
+ };
660
+ body = JSON.stringify(serializeAws_json1_1UpdateApplicationRequest(input, context));
661
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
662
+ });
663
+ }); };
488
664
  export var serializeAws_json1_1UpdateDirectoryConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
489
665
  var headers, body;
490
666
  return __generator(this, function (_a) {
@@ -496,6 +672,17 @@ export var serializeAws_json1_1UpdateDirectoryConfigCommand = function (input, c
496
672
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
497
673
  });
498
674
  }); };
675
+ export var serializeAws_json1_1UpdateEntitlementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
676
+ var headers, body;
677
+ return __generator(this, function (_a) {
678
+ headers = {
679
+ "content-type": "application/x-amz-json-1.1",
680
+ "x-amz-target": "PhotonAdminProxyService.UpdateEntitlement",
681
+ };
682
+ body = JSON.stringify(serializeAws_json1_1UpdateEntitlementRequest(input, context));
683
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
684
+ });
685
+ }); };
499
686
  export var serializeAws_json1_1UpdateFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
500
687
  var headers, body;
501
688
  return __generator(this, function (_a) {
@@ -529,95 +716,87 @@ export var serializeAws_json1_1UpdateStackCommand = function (input, context) {
529
716
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
530
717
  });
531
718
  }); };
532
- export var deserializeAws_json1_1AssociateFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
719
+ export var deserializeAws_json1_1AssociateApplicationFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
533
720
  var data, contents, response;
534
721
  return __generator(this, function (_a) {
535
722
  switch (_a.label) {
536
723
  case 0:
537
724
  if (output.statusCode >= 300) {
538
- return [2, deserializeAws_json1_1AssociateFleetCommandError(output, context)];
725
+ return [2, deserializeAws_json1_1AssociateApplicationFleetCommandError(output, context)];
539
726
  }
540
727
  return [4, parseBody(output.body, context)];
541
728
  case 1:
542
729
  data = _a.sent();
543
730
  contents = {};
544
- contents = deserializeAws_json1_1AssociateFleetResult(data, context);
731
+ contents = deserializeAws_json1_1AssociateApplicationFleetResult(data, context);
545
732
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
546
733
  return [2, Promise.resolve(response)];
547
734
  }
548
735
  });
549
736
  }); };
550
- var deserializeAws_json1_1AssociateFleetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
551
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
552
- var _j;
553
- return __generator(this, function (_k) {
554
- switch (_k.label) {
737
+ var deserializeAws_json1_1AssociateApplicationFleetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
738
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
739
+ var _h;
740
+ return __generator(this, function (_j) {
741
+ switch (_j.label) {
555
742
  case 0:
556
743
  _a = [__assign({}, output)];
557
- _j = {};
744
+ _h = {};
558
745
  return [4, parseBody(output.body, context)];
559
746
  case 1:
560
- parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
747
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
561
748
  errorCode = "UnknownError";
562
749
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
563
750
  _b = errorCode;
564
751
  switch (_b) {
565
752
  case "ConcurrentModificationException": return [3, 2];
566
753
  case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
567
- case "IncompatibleImageException": return [3, 4];
568
- case "com.amazonaws.appstream#IncompatibleImageException": return [3, 4];
569
- case "InvalidAccountStatusException": return [3, 6];
570
- case "com.amazonaws.appstream#InvalidAccountStatusException": return [3, 6];
571
- case "LimitExceededException": return [3, 8];
572
- case "com.amazonaws.appstream#LimitExceededException": return [3, 8];
573
- case "OperationNotPermittedException": return [3, 10];
574
- case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 10];
575
- case "ResourceNotFoundException": return [3, 12];
576
- case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 12];
754
+ case "InvalidParameterCombinationException": return [3, 4];
755
+ case "com.amazonaws.appstream#InvalidParameterCombinationException": return [3, 4];
756
+ case "LimitExceededException": return [3, 6];
757
+ case "com.amazonaws.appstream#LimitExceededException": return [3, 6];
758
+ case "OperationNotPermittedException": return [3, 8];
759
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 8];
760
+ case "ResourceNotFoundException": return [3, 10];
761
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 10];
577
762
  }
578
- return [3, 14];
763
+ return [3, 12];
579
764
  case 2:
580
765
  _c = [{}];
581
766
  return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
582
767
  case 3:
583
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
584
- return [3, 15];
768
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
769
+ return [3, 13];
585
770
  case 4:
586
771
  _d = [{}];
587
- return [4, deserializeAws_json1_1IncompatibleImageExceptionResponse(parsedOutput, context)];
772
+ return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
588
773
  case 5:
589
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
590
- return [3, 15];
774
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
775
+ return [3, 13];
591
776
  case 6:
592
777
  _e = [{}];
593
- return [4, deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)];
778
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
594
779
  case 7:
595
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
596
- return [3, 15];
780
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
781
+ return [3, 13];
597
782
  case 8:
598
783
  _f = [{}];
599
- return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
784
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
600
785
  case 9:
601
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
602
- return [3, 15];
786
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
787
+ return [3, 13];
603
788
  case 10:
604
789
  _g = [{}];
605
- return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
790
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
606
791
  case 11:
607
- response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
608
- return [3, 15];
792
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
793
+ return [3, 13];
609
794
  case 12:
610
- _h = [{}];
611
- return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
612
- case 13:
613
- response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
614
- return [3, 15];
615
- case 14:
616
795
  parsedBody = parsedOutput.body;
617
796
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
618
797
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
619
- _k.label = 15;
620
- case 15:
798
+ _j.label = 13;
799
+ case 13:
621
800
  message = response.message || response.Message || errorCode;
622
801
  response.message = message;
623
802
  delete response.Message;
@@ -625,64 +804,240 @@ var deserializeAws_json1_1AssociateFleetCommandError = function (output, context
625
804
  }
626
805
  });
627
806
  }); };
628
- export var deserializeAws_json1_1BatchAssociateUserStackCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
807
+ export var deserializeAws_json1_1AssociateApplicationToEntitlementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
629
808
  var data, contents, response;
630
809
  return __generator(this, function (_a) {
631
810
  switch (_a.label) {
632
811
  case 0:
633
812
  if (output.statusCode >= 300) {
634
- return [2, deserializeAws_json1_1BatchAssociateUserStackCommandError(output, context)];
813
+ return [2, deserializeAws_json1_1AssociateApplicationToEntitlementCommandError(output, context)];
635
814
  }
636
815
  return [4, parseBody(output.body, context)];
637
816
  case 1:
638
817
  data = _a.sent();
639
818
  contents = {};
640
- contents = deserializeAws_json1_1BatchAssociateUserStackResult(data, context);
819
+ contents = deserializeAws_json1_1AssociateApplicationToEntitlementResult(data, context);
641
820
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
642
821
  return [2, Promise.resolve(response)];
643
822
  }
644
823
  });
645
824
  }); };
646
- var deserializeAws_json1_1BatchAssociateUserStackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
647
- var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
648
- var _e;
649
- return __generator(this, function (_f) {
650
- switch (_f.label) {
825
+ var deserializeAws_json1_1AssociateApplicationToEntitlementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
826
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
827
+ var _g;
828
+ return __generator(this, function (_h) {
829
+ switch (_h.label) {
651
830
  case 0:
652
831
  _a = [__assign({}, output)];
653
- _e = {};
832
+ _g = {};
654
833
  return [4, parseBody(output.body, context)];
655
834
  case 1:
656
- parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
835
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
657
836
  errorCode = "UnknownError";
658
837
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
659
838
  _b = errorCode;
660
839
  switch (_b) {
661
- case "InvalidParameterCombinationException": return [3, 2];
662
- case "com.amazonaws.appstream#InvalidParameterCombinationException": return [3, 2];
663
- case "OperationNotPermittedException": return [3, 4];
664
- case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
840
+ case "EntitlementNotFoundException": return [3, 2];
841
+ case "com.amazonaws.appstream#EntitlementNotFoundException": return [3, 2];
842
+ case "LimitExceededException": return [3, 4];
843
+ case "com.amazonaws.appstream#LimitExceededException": return [3, 4];
844
+ case "OperationNotPermittedException": return [3, 6];
845
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 6];
846
+ case "ResourceNotFoundException": return [3, 8];
847
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 8];
665
848
  }
666
- return [3, 6];
849
+ return [3, 10];
667
850
  case 2:
668
851
  _c = [{}];
669
- return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
852
+ return [4, deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)];
670
853
  case 3:
671
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
672
- return [3, 7];
854
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
855
+ return [3, 11];
673
856
  case 4:
674
857
  _d = [{}];
675
- return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
858
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
676
859
  case 5:
677
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
678
- return [3, 7];
860
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
861
+ return [3, 11];
679
862
  case 6:
680
- parsedBody = parsedOutput.body;
681
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
682
- response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
683
- _f.label = 7;
863
+ _e = [{}];
864
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
684
865
  case 7:
685
- message = response.message || response.Message || errorCode;
866
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
867
+ return [3, 11];
868
+ case 8:
869
+ _f = [{}];
870
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
871
+ case 9:
872
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
873
+ return [3, 11];
874
+ case 10:
875
+ parsedBody = parsedOutput.body;
876
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
877
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
878
+ _h.label = 11;
879
+ case 11:
880
+ message = response.message || response.Message || errorCode;
881
+ response.message = message;
882
+ delete response.Message;
883
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
884
+ }
885
+ });
886
+ }); };
887
+ export var deserializeAws_json1_1AssociateFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
888
+ var data, contents, response;
889
+ return __generator(this, function (_a) {
890
+ switch (_a.label) {
891
+ case 0:
892
+ if (output.statusCode >= 300) {
893
+ return [2, deserializeAws_json1_1AssociateFleetCommandError(output, context)];
894
+ }
895
+ return [4, parseBody(output.body, context)];
896
+ case 1:
897
+ data = _a.sent();
898
+ contents = {};
899
+ contents = deserializeAws_json1_1AssociateFleetResult(data, context);
900
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
901
+ return [2, Promise.resolve(response)];
902
+ }
903
+ });
904
+ }); };
905
+ var deserializeAws_json1_1AssociateFleetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
906
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
907
+ var _j;
908
+ return __generator(this, function (_k) {
909
+ switch (_k.label) {
910
+ case 0:
911
+ _a = [__assign({}, output)];
912
+ _j = {};
913
+ return [4, parseBody(output.body, context)];
914
+ case 1:
915
+ parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
916
+ errorCode = "UnknownError";
917
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
918
+ _b = errorCode;
919
+ switch (_b) {
920
+ case "ConcurrentModificationException": return [3, 2];
921
+ case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
922
+ case "IncompatibleImageException": return [3, 4];
923
+ case "com.amazonaws.appstream#IncompatibleImageException": return [3, 4];
924
+ case "InvalidAccountStatusException": return [3, 6];
925
+ case "com.amazonaws.appstream#InvalidAccountStatusException": return [3, 6];
926
+ case "LimitExceededException": return [3, 8];
927
+ case "com.amazonaws.appstream#LimitExceededException": return [3, 8];
928
+ case "OperationNotPermittedException": return [3, 10];
929
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 10];
930
+ case "ResourceNotFoundException": return [3, 12];
931
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 12];
932
+ }
933
+ return [3, 14];
934
+ case 2:
935
+ _c = [{}];
936
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
937
+ case 3:
938
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
939
+ return [3, 15];
940
+ case 4:
941
+ _d = [{}];
942
+ return [4, deserializeAws_json1_1IncompatibleImageExceptionResponse(parsedOutput, context)];
943
+ case 5:
944
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
945
+ return [3, 15];
946
+ case 6:
947
+ _e = [{}];
948
+ return [4, deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)];
949
+ case 7:
950
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
951
+ return [3, 15];
952
+ case 8:
953
+ _f = [{}];
954
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
955
+ case 9:
956
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
957
+ return [3, 15];
958
+ case 10:
959
+ _g = [{}];
960
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
961
+ case 11:
962
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
963
+ return [3, 15];
964
+ case 12:
965
+ _h = [{}];
966
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
967
+ case 13:
968
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
969
+ return [3, 15];
970
+ case 14:
971
+ parsedBody = parsedOutput.body;
972
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
973
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
974
+ _k.label = 15;
975
+ case 15:
976
+ message = response.message || response.Message || errorCode;
977
+ response.message = message;
978
+ delete response.Message;
979
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
980
+ }
981
+ });
982
+ }); };
983
+ export var deserializeAws_json1_1BatchAssociateUserStackCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
984
+ var data, contents, response;
985
+ return __generator(this, function (_a) {
986
+ switch (_a.label) {
987
+ case 0:
988
+ if (output.statusCode >= 300) {
989
+ return [2, deserializeAws_json1_1BatchAssociateUserStackCommandError(output, context)];
990
+ }
991
+ return [4, parseBody(output.body, context)];
992
+ case 1:
993
+ data = _a.sent();
994
+ contents = {};
995
+ contents = deserializeAws_json1_1BatchAssociateUserStackResult(data, context);
996
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
997
+ return [2, Promise.resolve(response)];
998
+ }
999
+ });
1000
+ }); };
1001
+ var deserializeAws_json1_1BatchAssociateUserStackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1002
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
1003
+ var _e;
1004
+ return __generator(this, function (_f) {
1005
+ switch (_f.label) {
1006
+ case 0:
1007
+ _a = [__assign({}, output)];
1008
+ _e = {};
1009
+ return [4, parseBody(output.body, context)];
1010
+ case 1:
1011
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1012
+ errorCode = "UnknownError";
1013
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1014
+ _b = errorCode;
1015
+ switch (_b) {
1016
+ case "InvalidParameterCombinationException": return [3, 2];
1017
+ case "com.amazonaws.appstream#InvalidParameterCombinationException": return [3, 2];
1018
+ case "OperationNotPermittedException": return [3, 4];
1019
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
1020
+ }
1021
+ return [3, 6];
1022
+ case 2:
1023
+ _c = [{}];
1024
+ return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
1025
+ case 3:
1026
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1027
+ return [3, 7];
1028
+ case 4:
1029
+ _d = [{}];
1030
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
1031
+ case 5:
1032
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1033
+ return [3, 7];
1034
+ case 6:
1035
+ parsedBody = parsedOutput.body;
1036
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1037
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1038
+ _f.label = 7;
1039
+ case 7:
1040
+ message = response.message || response.Message || errorCode;
686
1041
  response.message = message;
687
1042
  delete response.Message;
688
1043
  return [2, Promise.reject(Object.assign(new Error(message), response))];
@@ -849,95 +1204,79 @@ var deserializeAws_json1_1CopyImageCommandError = function (output, context) { r
849
1204
  }
850
1205
  });
851
1206
  }); };
852
- export var deserializeAws_json1_1CreateDirectoryConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1207
+ export var deserializeAws_json1_1CreateAppBlockCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
853
1208
  var data, contents, response;
854
1209
  return __generator(this, function (_a) {
855
1210
  switch (_a.label) {
856
1211
  case 0:
857
1212
  if (output.statusCode >= 300) {
858
- return [2, deserializeAws_json1_1CreateDirectoryConfigCommandError(output, context)];
1213
+ return [2, deserializeAws_json1_1CreateAppBlockCommandError(output, context)];
859
1214
  }
860
1215
  return [4, parseBody(output.body, context)];
861
1216
  case 1:
862
1217
  data = _a.sent();
863
1218
  contents = {};
864
- contents = deserializeAws_json1_1CreateDirectoryConfigResult(data, context);
1219
+ contents = deserializeAws_json1_1CreateAppBlockResult(data, context);
865
1220
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
866
1221
  return [2, Promise.resolve(response)];
867
1222
  }
868
1223
  });
869
1224
  }); };
870
- var deserializeAws_json1_1CreateDirectoryConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
871
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
872
- var _j;
873
- return __generator(this, function (_k) {
874
- switch (_k.label) {
1225
+ var deserializeAws_json1_1CreateAppBlockCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1226
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
1227
+ var _g;
1228
+ return __generator(this, function (_h) {
1229
+ switch (_h.label) {
875
1230
  case 0:
876
1231
  _a = [__assign({}, output)];
877
- _j = {};
1232
+ _g = {};
878
1233
  return [4, parseBody(output.body, context)];
879
1234
  case 1:
880
- parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
1235
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
881
1236
  errorCode = "UnknownError";
882
1237
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
883
1238
  _b = errorCode;
884
1239
  switch (_b) {
885
- case "InvalidAccountStatusException": return [3, 2];
886
- case "com.amazonaws.appstream#InvalidAccountStatusException": return [3, 2];
887
- case "InvalidRoleException": return [3, 4];
888
- case "com.amazonaws.appstream#InvalidRoleException": return [3, 4];
889
- case "LimitExceededException": return [3, 6];
890
- case "com.amazonaws.appstream#LimitExceededException": return [3, 6];
891
- case "OperationNotPermittedException": return [3, 8];
892
- case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 8];
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];
1240
+ case "ConcurrentModificationException": return [3, 2];
1241
+ case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
1242
+ case "LimitExceededException": return [3, 4];
1243
+ case "com.amazonaws.appstream#LimitExceededException": return [3, 4];
1244
+ case "OperationNotPermittedException": return [3, 6];
1245
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 6];
1246
+ case "ResourceAlreadyExistsException": return [3, 8];
1247
+ case "com.amazonaws.appstream#ResourceAlreadyExistsException": return [3, 8];
897
1248
  }
898
- return [3, 14];
1249
+ return [3, 10];
899
1250
  case 2:
900
1251
  _c = [{}];
901
- return [4, deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)];
1252
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
902
1253
  case 3:
903
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
904
- return [3, 15];
1254
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1255
+ return [3, 11];
905
1256
  case 4:
906
1257
  _d = [{}];
907
- return [4, deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context)];
1258
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
908
1259
  case 5:
909
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
910
- return [3, 15];
1260
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1261
+ return [3, 11];
911
1262
  case 6:
912
1263
  _e = [{}];
913
- return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
1264
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
914
1265
  case 7:
915
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
916
- return [3, 15];
1266
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1267
+ return [3, 11];
917
1268
  case 8:
918
1269
  _f = [{}];
919
- return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
1270
+ return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
920
1271
  case 9:
921
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
922
- return [3, 15];
1272
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1273
+ return [3, 11];
923
1274
  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
1275
  parsedBody = parsedOutput.body;
937
1276
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
938
1277
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
939
- _k.label = 15;
940
- case 15:
1278
+ _h.label = 11;
1279
+ case 11:
941
1280
  message = response.message || response.Message || errorCode;
942
1281
  response.message = message;
943
1282
  delete response.Message;
@@ -945,19 +1284,283 @@ var deserializeAws_json1_1CreateDirectoryConfigCommandError = function (output,
945
1284
  }
946
1285
  });
947
1286
  }); };
948
- export var deserializeAws_json1_1CreateFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1287
+ export var deserializeAws_json1_1CreateApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
949
1288
  var data, contents, response;
950
1289
  return __generator(this, function (_a) {
951
1290
  switch (_a.label) {
952
1291
  case 0:
953
1292
  if (output.statusCode >= 300) {
954
- return [2, deserializeAws_json1_1CreateFleetCommandError(output, context)];
1293
+ return [2, deserializeAws_json1_1CreateApplicationCommandError(output, context)];
955
1294
  }
956
1295
  return [4, parseBody(output.body, context)];
957
1296
  case 1:
958
1297
  data = _a.sent();
959
1298
  contents = {};
960
- contents = deserializeAws_json1_1CreateFleetResult(data, context);
1299
+ contents = deserializeAws_json1_1CreateApplicationResult(data, context);
1300
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1301
+ return [2, Promise.resolve(response)];
1302
+ }
1303
+ });
1304
+ }); };
1305
+ var deserializeAws_json1_1CreateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1306
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
1307
+ var _h;
1308
+ return __generator(this, function (_j) {
1309
+ switch (_j.label) {
1310
+ case 0:
1311
+ _a = [__assign({}, output)];
1312
+ _h = {};
1313
+ return [4, parseBody(output.body, context)];
1314
+ case 1:
1315
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1316
+ errorCode = "UnknownError";
1317
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1318
+ _b = errorCode;
1319
+ switch (_b) {
1320
+ case "ConcurrentModificationException": return [3, 2];
1321
+ case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
1322
+ case "LimitExceededException": return [3, 4];
1323
+ case "com.amazonaws.appstream#LimitExceededException": return [3, 4];
1324
+ case "OperationNotPermittedException": return [3, 6];
1325
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 6];
1326
+ case "ResourceAlreadyExistsException": return [3, 8];
1327
+ case "com.amazonaws.appstream#ResourceAlreadyExistsException": return [3, 8];
1328
+ case "ResourceNotFoundException": return [3, 10];
1329
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 10];
1330
+ }
1331
+ return [3, 12];
1332
+ case 2:
1333
+ _c = [{}];
1334
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
1335
+ case 3:
1336
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1337
+ return [3, 13];
1338
+ case 4:
1339
+ _d = [{}];
1340
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
1341
+ case 5:
1342
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1343
+ return [3, 13];
1344
+ case 6:
1345
+ _e = [{}];
1346
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
1347
+ case 7:
1348
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1349
+ return [3, 13];
1350
+ case 8:
1351
+ _f = [{}];
1352
+ return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
1353
+ case 9:
1354
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1355
+ return [3, 13];
1356
+ case 10:
1357
+ _g = [{}];
1358
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1359
+ case 11:
1360
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1361
+ return [3, 13];
1362
+ case 12:
1363
+ parsedBody = parsedOutput.body;
1364
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1365
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1366
+ _j.label = 13;
1367
+ case 13:
1368
+ message = response.message || response.Message || errorCode;
1369
+ response.message = message;
1370
+ delete response.Message;
1371
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1372
+ }
1373
+ });
1374
+ }); };
1375
+ export var deserializeAws_json1_1CreateDirectoryConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1376
+ var data, contents, response;
1377
+ return __generator(this, function (_a) {
1378
+ switch (_a.label) {
1379
+ case 0:
1380
+ if (output.statusCode >= 300) {
1381
+ return [2, deserializeAws_json1_1CreateDirectoryConfigCommandError(output, context)];
1382
+ }
1383
+ return [4, parseBody(output.body, context)];
1384
+ case 1:
1385
+ data = _a.sent();
1386
+ contents = {};
1387
+ contents = deserializeAws_json1_1CreateDirectoryConfigResult(data, context);
1388
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1389
+ return [2, Promise.resolve(response)];
1390
+ }
1391
+ });
1392
+ }); };
1393
+ var deserializeAws_json1_1CreateDirectoryConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1394
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
1395
+ var _j;
1396
+ return __generator(this, function (_k) {
1397
+ switch (_k.label) {
1398
+ case 0:
1399
+ _a = [__assign({}, output)];
1400
+ _j = {};
1401
+ return [4, parseBody(output.body, context)];
1402
+ case 1:
1403
+ parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
1404
+ errorCode = "UnknownError";
1405
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1406
+ _b = errorCode;
1407
+ switch (_b) {
1408
+ case "InvalidAccountStatusException": return [3, 2];
1409
+ case "com.amazonaws.appstream#InvalidAccountStatusException": return [3, 2];
1410
+ case "InvalidRoleException": return [3, 4];
1411
+ case "com.amazonaws.appstream#InvalidRoleException": return [3, 4];
1412
+ case "LimitExceededException": return [3, 6];
1413
+ case "com.amazonaws.appstream#LimitExceededException": return [3, 6];
1414
+ case "OperationNotPermittedException": return [3, 8];
1415
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 8];
1416
+ case "ResourceAlreadyExistsException": return [3, 10];
1417
+ case "com.amazonaws.appstream#ResourceAlreadyExistsException": return [3, 10];
1418
+ case "ResourceNotFoundException": return [3, 12];
1419
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 12];
1420
+ }
1421
+ return [3, 14];
1422
+ case 2:
1423
+ _c = [{}];
1424
+ return [4, deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)];
1425
+ case 3:
1426
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1427
+ return [3, 15];
1428
+ case 4:
1429
+ _d = [{}];
1430
+ return [4, deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context)];
1431
+ case 5:
1432
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1433
+ return [3, 15];
1434
+ case 6:
1435
+ _e = [{}];
1436
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
1437
+ case 7:
1438
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1439
+ return [3, 15];
1440
+ case 8:
1441
+ _f = [{}];
1442
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
1443
+ case 9:
1444
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1445
+ return [3, 15];
1446
+ case 10:
1447
+ _g = [{}];
1448
+ return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
1449
+ case 11:
1450
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1451
+ return [3, 15];
1452
+ case 12:
1453
+ _h = [{}];
1454
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1455
+ case 13:
1456
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1457
+ return [3, 15];
1458
+ case 14:
1459
+ parsedBody = parsedOutput.body;
1460
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1461
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1462
+ _k.label = 15;
1463
+ case 15:
1464
+ message = response.message || response.Message || errorCode;
1465
+ response.message = message;
1466
+ delete response.Message;
1467
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1468
+ }
1469
+ });
1470
+ }); };
1471
+ export var deserializeAws_json1_1CreateEntitlementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1472
+ var data, contents, response;
1473
+ return __generator(this, function (_a) {
1474
+ switch (_a.label) {
1475
+ case 0:
1476
+ if (output.statusCode >= 300) {
1477
+ return [2, deserializeAws_json1_1CreateEntitlementCommandError(output, context)];
1478
+ }
1479
+ return [4, parseBody(output.body, context)];
1480
+ case 1:
1481
+ data = _a.sent();
1482
+ contents = {};
1483
+ contents = deserializeAws_json1_1CreateEntitlementResult(data, context);
1484
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1485
+ return [2, Promise.resolve(response)];
1486
+ }
1487
+ });
1488
+ }); };
1489
+ var deserializeAws_json1_1CreateEntitlementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1490
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
1491
+ var _g;
1492
+ return __generator(this, function (_h) {
1493
+ switch (_h.label) {
1494
+ case 0:
1495
+ _a = [__assign({}, output)];
1496
+ _g = {};
1497
+ return [4, parseBody(output.body, context)];
1498
+ case 1:
1499
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1500
+ errorCode = "UnknownError";
1501
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1502
+ _b = errorCode;
1503
+ switch (_b) {
1504
+ case "EntitlementAlreadyExistsException": return [3, 2];
1505
+ case "com.amazonaws.appstream#EntitlementAlreadyExistsException": return [3, 2];
1506
+ case "LimitExceededException": return [3, 4];
1507
+ case "com.amazonaws.appstream#LimitExceededException": return [3, 4];
1508
+ case "OperationNotPermittedException": return [3, 6];
1509
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 6];
1510
+ case "ResourceNotFoundException": return [3, 8];
1511
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 8];
1512
+ }
1513
+ return [3, 10];
1514
+ case 2:
1515
+ _c = [{}];
1516
+ return [4, deserializeAws_json1_1EntitlementAlreadyExistsExceptionResponse(parsedOutput, context)];
1517
+ case 3:
1518
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1519
+ return [3, 11];
1520
+ case 4:
1521
+ _d = [{}];
1522
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
1523
+ case 5:
1524
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1525
+ return [3, 11];
1526
+ case 6:
1527
+ _e = [{}];
1528
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
1529
+ case 7:
1530
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1531
+ return [3, 11];
1532
+ case 8:
1533
+ _f = [{}];
1534
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1535
+ case 9:
1536
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1537
+ return [3, 11];
1538
+ case 10:
1539
+ parsedBody = parsedOutput.body;
1540
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1541
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1542
+ _h.label = 11;
1543
+ case 11:
1544
+ message = response.message || response.Message || errorCode;
1545
+ response.message = message;
1546
+ delete response.Message;
1547
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1548
+ }
1549
+ });
1550
+ }); };
1551
+ export var deserializeAws_json1_1CreateFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1552
+ var data, contents, response;
1553
+ return __generator(this, function (_a) {
1554
+ switch (_a.label) {
1555
+ case 0:
1556
+ if (output.statusCode >= 300) {
1557
+ return [2, deserializeAws_json1_1CreateFleetCommandError(output, context)];
1558
+ }
1559
+ return [4, parseBody(output.body, context)];
1560
+ case 1:
1561
+ data = _a.sent();
1562
+ contents = {};
1563
+ contents = deserializeAws_json1_1CreateFleetResult(data, context);
961
1564
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
962
1565
  return [2, Promise.resolve(response)];
963
1566
  }
@@ -1729,6 +2332,158 @@ var deserializeAws_json1_1CreateUserCommandError = function (output, context) {
1729
2332
  }
1730
2333
  });
1731
2334
  }); };
2335
+ export var deserializeAws_json1_1DeleteAppBlockCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2336
+ var data, contents, response;
2337
+ return __generator(this, function (_a) {
2338
+ switch (_a.label) {
2339
+ case 0:
2340
+ if (output.statusCode >= 300) {
2341
+ return [2, deserializeAws_json1_1DeleteAppBlockCommandError(output, context)];
2342
+ }
2343
+ return [4, parseBody(output.body, context)];
2344
+ case 1:
2345
+ data = _a.sent();
2346
+ contents = {};
2347
+ contents = deserializeAws_json1_1DeleteAppBlockResult(data, context);
2348
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2349
+ return [2, Promise.resolve(response)];
2350
+ }
2351
+ });
2352
+ }); };
2353
+ var deserializeAws_json1_1DeleteAppBlockCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2354
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
2355
+ var _f;
2356
+ return __generator(this, function (_g) {
2357
+ switch (_g.label) {
2358
+ case 0:
2359
+ _a = [__assign({}, output)];
2360
+ _f = {};
2361
+ return [4, parseBody(output.body, context)];
2362
+ case 1:
2363
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2364
+ errorCode = "UnknownError";
2365
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2366
+ _b = errorCode;
2367
+ switch (_b) {
2368
+ case "ConcurrentModificationException": return [3, 2];
2369
+ case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
2370
+ case "ResourceInUseException": return [3, 4];
2371
+ case "com.amazonaws.appstream#ResourceInUseException": return [3, 4];
2372
+ case "ResourceNotFoundException": return [3, 6];
2373
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 6];
2374
+ }
2375
+ return [3, 8];
2376
+ case 2:
2377
+ _c = [{}];
2378
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
2379
+ case 3:
2380
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2381
+ return [3, 9];
2382
+ case 4:
2383
+ _d = [{}];
2384
+ return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
2385
+ case 5:
2386
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2387
+ return [3, 9];
2388
+ case 6:
2389
+ _e = [{}];
2390
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2391
+ case 7:
2392
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2393
+ return [3, 9];
2394
+ case 8:
2395
+ parsedBody = parsedOutput.body;
2396
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2397
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2398
+ _g.label = 9;
2399
+ case 9:
2400
+ message = response.message || response.Message || errorCode;
2401
+ response.message = message;
2402
+ delete response.Message;
2403
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2404
+ }
2405
+ });
2406
+ }); };
2407
+ export var deserializeAws_json1_1DeleteApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2408
+ var data, contents, response;
2409
+ return __generator(this, function (_a) {
2410
+ switch (_a.label) {
2411
+ case 0:
2412
+ if (output.statusCode >= 300) {
2413
+ return [2, deserializeAws_json1_1DeleteApplicationCommandError(output, context)];
2414
+ }
2415
+ return [4, parseBody(output.body, context)];
2416
+ case 1:
2417
+ data = _a.sent();
2418
+ contents = {};
2419
+ contents = deserializeAws_json1_1DeleteApplicationResult(data, context);
2420
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2421
+ return [2, Promise.resolve(response)];
2422
+ }
2423
+ });
2424
+ }); };
2425
+ var deserializeAws_json1_1DeleteApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2426
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
2427
+ var _g;
2428
+ return __generator(this, function (_h) {
2429
+ switch (_h.label) {
2430
+ case 0:
2431
+ _a = [__assign({}, output)];
2432
+ _g = {};
2433
+ return [4, parseBody(output.body, context)];
2434
+ case 1:
2435
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2436
+ errorCode = "UnknownError";
2437
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2438
+ _b = errorCode;
2439
+ switch (_b) {
2440
+ case "ConcurrentModificationException": return [3, 2];
2441
+ case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
2442
+ case "OperationNotPermittedException": return [3, 4];
2443
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
2444
+ case "ResourceInUseException": return [3, 6];
2445
+ case "com.amazonaws.appstream#ResourceInUseException": return [3, 6];
2446
+ case "ResourceNotFoundException": return [3, 8];
2447
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 8];
2448
+ }
2449
+ return [3, 10];
2450
+ case 2:
2451
+ _c = [{}];
2452
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
2453
+ case 3:
2454
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2455
+ return [3, 11];
2456
+ case 4:
2457
+ _d = [{}];
2458
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
2459
+ case 5:
2460
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2461
+ return [3, 11];
2462
+ case 6:
2463
+ _e = [{}];
2464
+ return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
2465
+ case 7:
2466
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2467
+ return [3, 11];
2468
+ case 8:
2469
+ _f = [{}];
2470
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2471
+ case 9:
2472
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2473
+ return [3, 11];
2474
+ case 10:
2475
+ parsedBody = parsedOutput.body;
2476
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2477
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2478
+ _h.label = 11;
2479
+ case 11:
2480
+ message = response.message || response.Message || errorCode;
2481
+ response.message = message;
2482
+ delete response.Message;
2483
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2484
+ }
2485
+ });
2486
+ }); };
1732
2487
  export var deserializeAws_json1_1DeleteDirectoryConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1733
2488
  var data, contents, response;
1734
2489
  return __generator(this, function (_a) {
@@ -1793,6 +2548,86 @@ var deserializeAws_json1_1DeleteDirectoryConfigCommandError = function (output,
1793
2548
  }
1794
2549
  });
1795
2550
  }); };
2551
+ export var deserializeAws_json1_1DeleteEntitlementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2552
+ var data, contents, response;
2553
+ return __generator(this, function (_a) {
2554
+ switch (_a.label) {
2555
+ case 0:
2556
+ if (output.statusCode >= 300) {
2557
+ return [2, deserializeAws_json1_1DeleteEntitlementCommandError(output, context)];
2558
+ }
2559
+ return [4, parseBody(output.body, context)];
2560
+ case 1:
2561
+ data = _a.sent();
2562
+ contents = {};
2563
+ contents = deserializeAws_json1_1DeleteEntitlementResult(data, context);
2564
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2565
+ return [2, Promise.resolve(response)];
2566
+ }
2567
+ });
2568
+ }); };
2569
+ var deserializeAws_json1_1DeleteEntitlementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2570
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
2571
+ var _g;
2572
+ return __generator(this, function (_h) {
2573
+ switch (_h.label) {
2574
+ case 0:
2575
+ _a = [__assign({}, output)];
2576
+ _g = {};
2577
+ return [4, parseBody(output.body, context)];
2578
+ case 1:
2579
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2580
+ errorCode = "UnknownError";
2581
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2582
+ _b = errorCode;
2583
+ switch (_b) {
2584
+ case "ConcurrentModificationException": return [3, 2];
2585
+ case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
2586
+ case "EntitlementNotFoundException": return [3, 4];
2587
+ case "com.amazonaws.appstream#EntitlementNotFoundException": return [3, 4];
2588
+ case "OperationNotPermittedException": return [3, 6];
2589
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 6];
2590
+ case "ResourceNotFoundException": return [3, 8];
2591
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 8];
2592
+ }
2593
+ return [3, 10];
2594
+ case 2:
2595
+ _c = [{}];
2596
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
2597
+ case 3:
2598
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2599
+ return [3, 11];
2600
+ case 4:
2601
+ _d = [{}];
2602
+ return [4, deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)];
2603
+ case 5:
2604
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2605
+ return [3, 11];
2606
+ case 6:
2607
+ _e = [{}];
2608
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
2609
+ case 7:
2610
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2611
+ return [3, 11];
2612
+ case 8:
2613
+ _f = [{}];
2614
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2615
+ case 9:
2616
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2617
+ return [3, 11];
2618
+ case 10:
2619
+ parsedBody = parsedOutput.body;
2620
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2621
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2622
+ _h.label = 11;
2623
+ case 11:
2624
+ message = response.message || response.Message || errorCode;
2625
+ response.message = message;
2626
+ delete response.Message;
2627
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2628
+ }
2629
+ });
2630
+ }); };
1796
2631
  export var deserializeAws_json1_1DeleteFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1797
2632
  var data, contents, response;
1798
2633
  return __generator(this, function (_a) {
@@ -2001,15 +2836,279 @@ var deserializeAws_json1_1DeleteImageBuilderCommandError = function (output, con
2001
2836
  case 6:
2002
2837
  _e = [{}];
2003
2838
  return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2004
- case 7:
2005
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2006
- return [3, 9];
2007
- case 8:
2839
+ case 7:
2840
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2841
+ return [3, 9];
2842
+ case 8:
2843
+ parsedBody = parsedOutput.body;
2844
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2845
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2846
+ _g.label = 9;
2847
+ case 9:
2848
+ message = response.message || response.Message || errorCode;
2849
+ response.message = message;
2850
+ delete response.Message;
2851
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2852
+ }
2853
+ });
2854
+ }); };
2855
+ export var deserializeAws_json1_1DeleteImagePermissionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2856
+ var data, contents, response;
2857
+ return __generator(this, function (_a) {
2858
+ switch (_a.label) {
2859
+ case 0:
2860
+ if (output.statusCode >= 300) {
2861
+ return [2, deserializeAws_json1_1DeleteImagePermissionsCommandError(output, context)];
2862
+ }
2863
+ return [4, parseBody(output.body, context)];
2864
+ case 1:
2865
+ data = _a.sent();
2866
+ contents = {};
2867
+ contents = deserializeAws_json1_1DeleteImagePermissionsResult(data, context);
2868
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2869
+ return [2, Promise.resolve(response)];
2870
+ }
2871
+ });
2872
+ }); };
2873
+ var deserializeAws_json1_1DeleteImagePermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2874
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
2875
+ var _e;
2876
+ return __generator(this, function (_f) {
2877
+ switch (_f.label) {
2878
+ case 0:
2879
+ _a = [__assign({}, output)];
2880
+ _e = {};
2881
+ return [4, parseBody(output.body, context)];
2882
+ case 1:
2883
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
2884
+ errorCode = "UnknownError";
2885
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2886
+ _b = errorCode;
2887
+ switch (_b) {
2888
+ case "ResourceNotAvailableException": return [3, 2];
2889
+ case "com.amazonaws.appstream#ResourceNotAvailableException": return [3, 2];
2890
+ case "ResourceNotFoundException": return [3, 4];
2891
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 4];
2892
+ }
2893
+ return [3, 6];
2894
+ case 2:
2895
+ _c = [{}];
2896
+ return [4, deserializeAws_json1_1ResourceNotAvailableExceptionResponse(parsedOutput, context)];
2897
+ case 3:
2898
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2899
+ return [3, 7];
2900
+ case 4:
2901
+ _d = [{}];
2902
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2903
+ case 5:
2904
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2905
+ return [3, 7];
2906
+ case 6:
2907
+ parsedBody = parsedOutput.body;
2908
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2909
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2910
+ _f.label = 7;
2911
+ case 7:
2912
+ message = response.message || response.Message || errorCode;
2913
+ response.message = message;
2914
+ delete response.Message;
2915
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2916
+ }
2917
+ });
2918
+ }); };
2919
+ export var deserializeAws_json1_1DeleteStackCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2920
+ var data, contents, response;
2921
+ return __generator(this, function (_a) {
2922
+ switch (_a.label) {
2923
+ case 0:
2924
+ if (output.statusCode >= 300) {
2925
+ return [2, deserializeAws_json1_1DeleteStackCommandError(output, context)];
2926
+ }
2927
+ return [4, parseBody(output.body, context)];
2928
+ case 1:
2929
+ data = _a.sent();
2930
+ contents = {};
2931
+ contents = deserializeAws_json1_1DeleteStackResult(data, context);
2932
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2933
+ return [2, Promise.resolve(response)];
2934
+ }
2935
+ });
2936
+ }); };
2937
+ var deserializeAws_json1_1DeleteStackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2938
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
2939
+ var _g;
2940
+ return __generator(this, function (_h) {
2941
+ switch (_h.label) {
2942
+ case 0:
2943
+ _a = [__assign({}, output)];
2944
+ _g = {};
2945
+ return [4, parseBody(output.body, context)];
2946
+ case 1:
2947
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2948
+ errorCode = "UnknownError";
2949
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2950
+ _b = errorCode;
2951
+ switch (_b) {
2952
+ case "ConcurrentModificationException": return [3, 2];
2953
+ case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
2954
+ case "OperationNotPermittedException": return [3, 4];
2955
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
2956
+ case "ResourceInUseException": return [3, 6];
2957
+ case "com.amazonaws.appstream#ResourceInUseException": return [3, 6];
2958
+ case "ResourceNotFoundException": return [3, 8];
2959
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 8];
2960
+ }
2961
+ return [3, 10];
2962
+ case 2:
2963
+ _c = [{}];
2964
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
2965
+ case 3:
2966
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2967
+ return [3, 11];
2968
+ case 4:
2969
+ _d = [{}];
2970
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
2971
+ case 5:
2972
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2973
+ return [3, 11];
2974
+ case 6:
2975
+ _e = [{}];
2976
+ return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
2977
+ case 7:
2978
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2979
+ return [3, 11];
2980
+ case 8:
2981
+ _f = [{}];
2982
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2983
+ case 9:
2984
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2985
+ return [3, 11];
2986
+ case 10:
2987
+ parsedBody = parsedOutput.body;
2988
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2989
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2990
+ _h.label = 11;
2991
+ case 11:
2992
+ message = response.message || response.Message || errorCode;
2993
+ response.message = message;
2994
+ delete response.Message;
2995
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2996
+ }
2997
+ });
2998
+ }); };
2999
+ export var deserializeAws_json1_1DeleteUsageReportSubscriptionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3000
+ var data, contents, response;
3001
+ return __generator(this, function (_a) {
3002
+ switch (_a.label) {
3003
+ case 0:
3004
+ if (output.statusCode >= 300) {
3005
+ return [2, deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError(output, context)];
3006
+ }
3007
+ return [4, parseBody(output.body, context)];
3008
+ case 1:
3009
+ data = _a.sent();
3010
+ contents = {};
3011
+ contents = deserializeAws_json1_1DeleteUsageReportSubscriptionResult(data, context);
3012
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
3013
+ return [2, Promise.resolve(response)];
3014
+ }
3015
+ });
3016
+ }); };
3017
+ var deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3018
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
3019
+ var _e;
3020
+ return __generator(this, function (_f) {
3021
+ switch (_f.label) {
3022
+ case 0:
3023
+ _a = [__assign({}, output)];
3024
+ _e = {};
3025
+ return [4, parseBody(output.body, context)];
3026
+ case 1:
3027
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
3028
+ errorCode = "UnknownError";
3029
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3030
+ _b = errorCode;
3031
+ switch (_b) {
3032
+ case "InvalidAccountStatusException": return [3, 2];
3033
+ case "com.amazonaws.appstream#InvalidAccountStatusException": return [3, 2];
3034
+ case "ResourceNotFoundException": return [3, 4];
3035
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 4];
3036
+ }
3037
+ return [3, 6];
3038
+ case 2:
3039
+ _c = [{}];
3040
+ return [4, deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)];
3041
+ case 3:
3042
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3043
+ return [3, 7];
3044
+ case 4:
3045
+ _d = [{}];
3046
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3047
+ case 5:
3048
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3049
+ return [3, 7];
3050
+ case 6:
3051
+ parsedBody = parsedOutput.body;
3052
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3053
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3054
+ _f.label = 7;
3055
+ case 7:
3056
+ message = response.message || response.Message || errorCode;
3057
+ response.message = message;
3058
+ delete response.Message;
3059
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3060
+ }
3061
+ });
3062
+ }); };
3063
+ export var deserializeAws_json1_1DeleteUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3064
+ var data, contents, response;
3065
+ return __generator(this, function (_a) {
3066
+ switch (_a.label) {
3067
+ case 0:
3068
+ if (output.statusCode >= 300) {
3069
+ return [2, deserializeAws_json1_1DeleteUserCommandError(output, context)];
3070
+ }
3071
+ return [4, parseBody(output.body, context)];
3072
+ case 1:
3073
+ data = _a.sent();
3074
+ contents = {};
3075
+ contents = deserializeAws_json1_1DeleteUserResult(data, context);
3076
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
3077
+ return [2, Promise.resolve(response)];
3078
+ }
3079
+ });
3080
+ }); };
3081
+ var deserializeAws_json1_1DeleteUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3082
+ var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
3083
+ var _d;
3084
+ return __generator(this, function (_e) {
3085
+ switch (_e.label) {
3086
+ case 0:
3087
+ _a = [__assign({}, output)];
3088
+ _d = {};
3089
+ return [4, parseBody(output.body, context)];
3090
+ case 1:
3091
+ parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
3092
+ errorCode = "UnknownError";
3093
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3094
+ _b = errorCode;
3095
+ switch (_b) {
3096
+ case "ResourceNotFoundException": return [3, 2];
3097
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 2];
3098
+ }
3099
+ return [3, 4];
3100
+ case 2:
3101
+ _c = [{}];
3102
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3103
+ case 3:
3104
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3105
+ return [3, 5];
3106
+ case 4:
2008
3107
  parsedBody = parsedOutput.body;
2009
3108
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
2010
3109
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2011
- _g.label = 9;
2012
- case 9:
3110
+ _e.label = 5;
3111
+ case 5:
2013
3112
  message = response.message || response.Message || errorCode;
2014
3113
  response.message = message;
2015
3114
  delete response.Message;
@@ -2017,25 +3116,25 @@ var deserializeAws_json1_1DeleteImageBuilderCommandError = function (output, con
2017
3116
  }
2018
3117
  });
2019
3118
  }); };
2020
- export var deserializeAws_json1_1DeleteImagePermissionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3119
+ export var deserializeAws_json1_1DescribeAppBlocksCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2021
3120
  var data, contents, response;
2022
3121
  return __generator(this, function (_a) {
2023
3122
  switch (_a.label) {
2024
3123
  case 0:
2025
3124
  if (output.statusCode >= 300) {
2026
- return [2, deserializeAws_json1_1DeleteImagePermissionsCommandError(output, context)];
3125
+ return [2, deserializeAws_json1_1DescribeAppBlocksCommandError(output, context)];
2027
3126
  }
2028
3127
  return [4, parseBody(output.body, context)];
2029
3128
  case 1:
2030
3129
  data = _a.sent();
2031
3130
  contents = {};
2032
- contents = deserializeAws_json1_1DeleteImagePermissionsResult(data, context);
3131
+ contents = deserializeAws_json1_1DescribeAppBlocksResult(data, context);
2033
3132
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2034
3133
  return [2, Promise.resolve(response)];
2035
3134
  }
2036
3135
  });
2037
3136
  }); };
2038
- var deserializeAws_json1_1DeleteImagePermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3137
+ var deserializeAws_json1_1DescribeAppBlocksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2039
3138
  var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
2040
3139
  var _e;
2041
3140
  return __generator(this, function (_f) {
@@ -2050,15 +3149,15 @@ var deserializeAws_json1_1DeleteImagePermissionsCommandError = function (output,
2050
3149
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2051
3150
  _b = errorCode;
2052
3151
  switch (_b) {
2053
- case "ResourceNotAvailableException": return [3, 2];
2054
- case "com.amazonaws.appstream#ResourceNotAvailableException": return [3, 2];
3152
+ case "OperationNotPermittedException": return [3, 2];
3153
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 2];
2055
3154
  case "ResourceNotFoundException": return [3, 4];
2056
3155
  case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 4];
2057
3156
  }
2058
3157
  return [3, 6];
2059
3158
  case 2:
2060
3159
  _c = [{}];
2061
- return [4, deserializeAws_json1_1ResourceNotAvailableExceptionResponse(parsedOutput, context)];
3160
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
2062
3161
  case 3:
2063
3162
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2064
3163
  return [3, 7];
@@ -2081,71 +3180,63 @@ var deserializeAws_json1_1DeleteImagePermissionsCommandError = function (output,
2081
3180
  }
2082
3181
  });
2083
3182
  }); };
2084
- export var deserializeAws_json1_1DeleteStackCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3183
+ export var deserializeAws_json1_1DescribeApplicationFleetAssociationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2085
3184
  var data, contents, response;
2086
3185
  return __generator(this, function (_a) {
2087
3186
  switch (_a.label) {
2088
3187
  case 0:
2089
3188
  if (output.statusCode >= 300) {
2090
- return [2, deserializeAws_json1_1DeleteStackCommandError(output, context)];
3189
+ return [2, deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError(output, context)];
2091
3190
  }
2092
3191
  return [4, parseBody(output.body, context)];
2093
3192
  case 1:
2094
3193
  data = _a.sent();
2095
3194
  contents = {};
2096
- contents = deserializeAws_json1_1DeleteStackResult(data, context);
3195
+ contents = deserializeAws_json1_1DescribeApplicationFleetAssociationsResult(data, context);
2097
3196
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2098
3197
  return [2, Promise.resolve(response)];
2099
3198
  }
2100
3199
  });
2101
3200
  }); };
2102
- var deserializeAws_json1_1DeleteStackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2103
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
2104
- var _f;
2105
- return __generator(this, function (_g) {
2106
- switch (_g.label) {
3201
+ var deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3202
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
3203
+ var _e;
3204
+ return __generator(this, function (_f) {
3205
+ switch (_f.label) {
2107
3206
  case 0:
2108
3207
  _a = [__assign({}, output)];
2109
- _f = {};
3208
+ _e = {};
2110
3209
  return [4, parseBody(output.body, context)];
2111
3210
  case 1:
2112
- parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
3211
+ parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
2113
3212
  errorCode = "UnknownError";
2114
3213
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2115
3214
  _b = errorCode;
2116
3215
  switch (_b) {
2117
- case "ConcurrentModificationException": return [3, 2];
2118
- case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
2119
- case "ResourceInUseException": return [3, 4];
2120
- case "com.amazonaws.appstream#ResourceInUseException": return [3, 4];
2121
- case "ResourceNotFoundException": return [3, 6];
2122
- case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 6];
3216
+ case "InvalidParameterCombinationException": return [3, 2];
3217
+ case "com.amazonaws.appstream#InvalidParameterCombinationException": return [3, 2];
3218
+ case "OperationNotPermittedException": return [3, 4];
3219
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
2123
3220
  }
2124
- return [3, 8];
3221
+ return [3, 6];
2125
3222
  case 2:
2126
3223
  _c = [{}];
2127
- return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
3224
+ return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
2128
3225
  case 3:
2129
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2130
- return [3, 9];
3226
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3227
+ return [3, 7];
2131
3228
  case 4:
2132
3229
  _d = [{}];
2133
- return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
3230
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
2134
3231
  case 5:
2135
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2136
- return [3, 9];
3232
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3233
+ return [3, 7];
2137
3234
  case 6:
2138
- _e = [{}];
2139
- return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2140
- case 7:
2141
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2142
- return [3, 9];
2143
- case 8:
2144
3235
  parsedBody = parsedOutput.body;
2145
3236
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
2146
3237
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2147
- _g.label = 9;
2148
- case 9:
3238
+ _f.label = 7;
3239
+ case 7:
2149
3240
  message = response.message || response.Message || errorCode;
2150
3241
  response.message = message;
2151
3242
  delete response.Message;
@@ -2153,25 +3244,25 @@ var deserializeAws_json1_1DeleteStackCommandError = function (output, context) {
2153
3244
  }
2154
3245
  });
2155
3246
  }); };
2156
- export var deserializeAws_json1_1DeleteUsageReportSubscriptionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3247
+ export var deserializeAws_json1_1DescribeApplicationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2157
3248
  var data, contents, response;
2158
3249
  return __generator(this, function (_a) {
2159
3250
  switch (_a.label) {
2160
3251
  case 0:
2161
3252
  if (output.statusCode >= 300) {
2162
- return [2, deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError(output, context)];
3253
+ return [2, deserializeAws_json1_1DescribeApplicationsCommandError(output, context)];
2163
3254
  }
2164
3255
  return [4, parseBody(output.body, context)];
2165
3256
  case 1:
2166
3257
  data = _a.sent();
2167
3258
  contents = {};
2168
- contents = deserializeAws_json1_1DeleteUsageReportSubscriptionResult(data, context);
3259
+ contents = deserializeAws_json1_1DescribeApplicationsResult(data, context);
2169
3260
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2170
3261
  return [2, Promise.resolve(response)];
2171
3262
  }
2172
3263
  });
2173
3264
  }); };
2174
- var deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3265
+ var deserializeAws_json1_1DescribeApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2175
3266
  var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
2176
3267
  var _e;
2177
3268
  return __generator(this, function (_f) {
@@ -2186,15 +3277,15 @@ var deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = function (
2186
3277
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2187
3278
  _b = errorCode;
2188
3279
  switch (_b) {
2189
- case "InvalidAccountStatusException": return [3, 2];
2190
- case "com.amazonaws.appstream#InvalidAccountStatusException": return [3, 2];
3280
+ case "OperationNotPermittedException": return [3, 2];
3281
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 2];
2191
3282
  case "ResourceNotFoundException": return [3, 4];
2192
3283
  case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 4];
2193
3284
  }
2194
3285
  return [3, 6];
2195
3286
  case 2:
2196
3287
  _c = [{}];
2197
- return [4, deserializeAws_json1_1InvalidAccountStatusExceptionResponse(parsedOutput, context)];
3288
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
2198
3289
  case 3:
2199
3290
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2200
3291
  return [3, 7];
@@ -2217,25 +3308,25 @@ var deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = function (
2217
3308
  }
2218
3309
  });
2219
3310
  }); };
2220
- export var deserializeAws_json1_1DeleteUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3311
+ export var deserializeAws_json1_1DescribeDirectoryConfigsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2221
3312
  var data, contents, response;
2222
3313
  return __generator(this, function (_a) {
2223
3314
  switch (_a.label) {
2224
3315
  case 0:
2225
3316
  if (output.statusCode >= 300) {
2226
- return [2, deserializeAws_json1_1DeleteUserCommandError(output, context)];
3317
+ return [2, deserializeAws_json1_1DescribeDirectoryConfigsCommandError(output, context)];
2227
3318
  }
2228
3319
  return [4, parseBody(output.body, context)];
2229
3320
  case 1:
2230
3321
  data = _a.sent();
2231
3322
  contents = {};
2232
- contents = deserializeAws_json1_1DeleteUserResult(data, context);
3323
+ contents = deserializeAws_json1_1DescribeDirectoryConfigsResult(data, context);
2233
3324
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2234
3325
  return [2, Promise.resolve(response)];
2235
3326
  }
2236
3327
  });
2237
3328
  }); };
2238
- var deserializeAws_json1_1DeleteUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3329
+ var deserializeAws_json1_1DescribeDirectoryConfigsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2239
3330
  var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
2240
3331
  var _d;
2241
3332
  return __generator(this, function (_e) {
@@ -2273,55 +3364,71 @@ var deserializeAws_json1_1DeleteUserCommandError = function (output, context) {
2273
3364
  }
2274
3365
  });
2275
3366
  }); };
2276
- export var deserializeAws_json1_1DescribeDirectoryConfigsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3367
+ export var deserializeAws_json1_1DescribeEntitlementsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2277
3368
  var data, contents, response;
2278
3369
  return __generator(this, function (_a) {
2279
3370
  switch (_a.label) {
2280
3371
  case 0:
2281
3372
  if (output.statusCode >= 300) {
2282
- return [2, deserializeAws_json1_1DescribeDirectoryConfigsCommandError(output, context)];
3373
+ return [2, deserializeAws_json1_1DescribeEntitlementsCommandError(output, context)];
2283
3374
  }
2284
3375
  return [4, parseBody(output.body, context)];
2285
3376
  case 1:
2286
3377
  data = _a.sent();
2287
3378
  contents = {};
2288
- contents = deserializeAws_json1_1DescribeDirectoryConfigsResult(data, context);
3379
+ contents = deserializeAws_json1_1DescribeEntitlementsResult(data, context);
2289
3380
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2290
3381
  return [2, Promise.resolve(response)];
2291
3382
  }
2292
3383
  });
2293
3384
  }); };
2294
- var deserializeAws_json1_1DescribeDirectoryConfigsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2295
- var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
2296
- var _d;
2297
- return __generator(this, function (_e) {
2298
- switch (_e.label) {
3385
+ var deserializeAws_json1_1DescribeEntitlementsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3386
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
3387
+ var _f;
3388
+ return __generator(this, function (_g) {
3389
+ switch (_g.label) {
2299
3390
  case 0:
2300
3391
  _a = [__assign({}, output)];
2301
- _d = {};
3392
+ _f = {};
2302
3393
  return [4, parseBody(output.body, context)];
2303
3394
  case 1:
2304
- parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
3395
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2305
3396
  errorCode = "UnknownError";
2306
3397
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2307
3398
  _b = errorCode;
2308
3399
  switch (_b) {
2309
- case "ResourceNotFoundException": return [3, 2];
2310
- case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 2];
3400
+ case "EntitlementNotFoundException": return [3, 2];
3401
+ case "com.amazonaws.appstream#EntitlementNotFoundException": return [3, 2];
3402
+ case "OperationNotPermittedException": return [3, 4];
3403
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
3404
+ case "ResourceNotFoundException": return [3, 6];
3405
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 6];
2311
3406
  }
2312
- return [3, 4];
3407
+ return [3, 8];
2313
3408
  case 2:
2314
3409
  _c = [{}];
2315
- return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3410
+ return [4, deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)];
2316
3411
  case 3:
2317
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2318
- return [3, 5];
3412
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3413
+ return [3, 9];
2319
3414
  case 4:
3415
+ _d = [{}];
3416
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
3417
+ case 5:
3418
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3419
+ return [3, 9];
3420
+ case 6:
3421
+ _e = [{}];
3422
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3423
+ case 7:
3424
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3425
+ return [3, 9];
3426
+ case 8:
2320
3427
  parsedBody = parsedOutput.body;
2321
3428
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
2322
3429
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2323
- _e.label = 5;
2324
- case 5:
3430
+ _g.label = 9;
3431
+ case 9:
2325
3432
  message = response.message || response.Message || errorCode;
2326
3433
  response.message = message;
2327
3434
  delete response.Message;
@@ -2864,8 +3971,136 @@ var deserializeAws_json1_1DescribeUserStackAssociationsCommandError = function (
2864
3971
  parsedBody = parsedOutput.body;
2865
3972
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
2866
3973
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2867
- _f.label = 7;
2868
- case 7:
3974
+ _f.label = 7;
3975
+ case 7:
3976
+ message = response.message || response.Message || errorCode;
3977
+ response.message = message;
3978
+ delete response.Message;
3979
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3980
+ }
3981
+ });
3982
+ }); };
3983
+ export var deserializeAws_json1_1DisableUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3984
+ var data, contents, response;
3985
+ return __generator(this, function (_a) {
3986
+ switch (_a.label) {
3987
+ case 0:
3988
+ if (output.statusCode >= 300) {
3989
+ return [2, deserializeAws_json1_1DisableUserCommandError(output, context)];
3990
+ }
3991
+ return [4, parseBody(output.body, context)];
3992
+ case 1:
3993
+ data = _a.sent();
3994
+ contents = {};
3995
+ contents = deserializeAws_json1_1DisableUserResult(data, context);
3996
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
3997
+ return [2, Promise.resolve(response)];
3998
+ }
3999
+ });
4000
+ }); };
4001
+ var deserializeAws_json1_1DisableUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4002
+ var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
4003
+ var _d;
4004
+ return __generator(this, function (_e) {
4005
+ switch (_e.label) {
4006
+ case 0:
4007
+ _a = [__assign({}, output)];
4008
+ _d = {};
4009
+ return [4, parseBody(output.body, context)];
4010
+ case 1:
4011
+ parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
4012
+ errorCode = "UnknownError";
4013
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4014
+ _b = errorCode;
4015
+ switch (_b) {
4016
+ case "ResourceNotFoundException": return [3, 2];
4017
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 2];
4018
+ }
4019
+ return [3, 4];
4020
+ case 2:
4021
+ _c = [{}];
4022
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4023
+ case 3:
4024
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4025
+ return [3, 5];
4026
+ case 4:
4027
+ parsedBody = parsedOutput.body;
4028
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
4029
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4030
+ _e.label = 5;
4031
+ case 5:
4032
+ message = response.message || response.Message || errorCode;
4033
+ response.message = message;
4034
+ delete response.Message;
4035
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
4036
+ }
4037
+ });
4038
+ }); };
4039
+ export var deserializeAws_json1_1DisassociateApplicationFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4040
+ var data, contents, response;
4041
+ return __generator(this, function (_a) {
4042
+ switch (_a.label) {
4043
+ case 0:
4044
+ if (output.statusCode >= 300) {
4045
+ return [2, deserializeAws_json1_1DisassociateApplicationFleetCommandError(output, context)];
4046
+ }
4047
+ return [4, parseBody(output.body, context)];
4048
+ case 1:
4049
+ data = _a.sent();
4050
+ contents = {};
4051
+ contents = deserializeAws_json1_1DisassociateApplicationFleetResult(data, context);
4052
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
4053
+ return [2, Promise.resolve(response)];
4054
+ }
4055
+ });
4056
+ }); };
4057
+ var deserializeAws_json1_1DisassociateApplicationFleetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4058
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
4059
+ var _f;
4060
+ return __generator(this, function (_g) {
4061
+ switch (_g.label) {
4062
+ case 0:
4063
+ _a = [__assign({}, output)];
4064
+ _f = {};
4065
+ return [4, parseBody(output.body, context)];
4066
+ case 1:
4067
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
4068
+ errorCode = "UnknownError";
4069
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4070
+ _b = errorCode;
4071
+ switch (_b) {
4072
+ case "ConcurrentModificationException": return [3, 2];
4073
+ case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
4074
+ case "InvalidParameterCombinationException": return [3, 4];
4075
+ case "com.amazonaws.appstream#InvalidParameterCombinationException": return [3, 4];
4076
+ case "OperationNotPermittedException": return [3, 6];
4077
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 6];
4078
+ }
4079
+ return [3, 8];
4080
+ case 2:
4081
+ _c = [{}];
4082
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
4083
+ case 3:
4084
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4085
+ return [3, 9];
4086
+ case 4:
4087
+ _d = [{}];
4088
+ return [4, deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)];
4089
+ case 5:
4090
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4091
+ return [3, 9];
4092
+ case 6:
4093
+ _e = [{}];
4094
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
4095
+ case 7:
4096
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4097
+ return [3, 9];
4098
+ case 8:
4099
+ parsedBody = parsedOutput.body;
4100
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
4101
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4102
+ _g.label = 9;
4103
+ case 9:
2869
4104
  message = response.message || response.Message || errorCode;
2870
4105
  response.message = message;
2871
4106
  delete response.Message;
@@ -2873,55 +4108,71 @@ var deserializeAws_json1_1DescribeUserStackAssociationsCommandError = function (
2873
4108
  }
2874
4109
  });
2875
4110
  }); };
2876
- export var deserializeAws_json1_1DisableUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4111
+ export var deserializeAws_json1_1DisassociateApplicationFromEntitlementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2877
4112
  var data, contents, response;
2878
4113
  return __generator(this, function (_a) {
2879
4114
  switch (_a.label) {
2880
4115
  case 0:
2881
4116
  if (output.statusCode >= 300) {
2882
- return [2, deserializeAws_json1_1DisableUserCommandError(output, context)];
4117
+ return [2, deserializeAws_json1_1DisassociateApplicationFromEntitlementCommandError(output, context)];
2883
4118
  }
2884
4119
  return [4, parseBody(output.body, context)];
2885
4120
  case 1:
2886
4121
  data = _a.sent();
2887
4122
  contents = {};
2888
- contents = deserializeAws_json1_1DisableUserResult(data, context);
4123
+ contents = deserializeAws_json1_1DisassociateApplicationFromEntitlementResult(data, context);
2889
4124
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2890
4125
  return [2, Promise.resolve(response)];
2891
4126
  }
2892
4127
  });
2893
4128
  }); };
2894
- var deserializeAws_json1_1DisableUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2895
- var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
2896
- var _d;
2897
- return __generator(this, function (_e) {
2898
- switch (_e.label) {
4129
+ var deserializeAws_json1_1DisassociateApplicationFromEntitlementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4130
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
4131
+ var _f;
4132
+ return __generator(this, function (_g) {
4133
+ switch (_g.label) {
2899
4134
  case 0:
2900
4135
  _a = [__assign({}, output)];
2901
- _d = {};
4136
+ _f = {};
2902
4137
  return [4, parseBody(output.body, context)];
2903
4138
  case 1:
2904
- parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
4139
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2905
4140
  errorCode = "UnknownError";
2906
4141
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2907
4142
  _b = errorCode;
2908
4143
  switch (_b) {
2909
- case "ResourceNotFoundException": return [3, 2];
2910
- case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 2];
4144
+ case "EntitlementNotFoundException": return [3, 2];
4145
+ case "com.amazonaws.appstream#EntitlementNotFoundException": return [3, 2];
4146
+ case "OperationNotPermittedException": return [3, 4];
4147
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
4148
+ case "ResourceNotFoundException": return [3, 6];
4149
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 6];
2911
4150
  }
2912
- return [3, 4];
4151
+ return [3, 8];
2913
4152
  case 2:
2914
4153
  _c = [{}];
2915
- return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4154
+ return [4, deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)];
2916
4155
  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];
4156
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4157
+ return [3, 9];
2919
4158
  case 4:
4159
+ _d = [{}];
4160
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
4161
+ case 5:
4162
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4163
+ return [3, 9];
4164
+ case 6:
4165
+ _e = [{}];
4166
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4167
+ case 7:
4168
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4169
+ return [3, 9];
4170
+ case 8:
2920
4171
  parsedBody = parsedOutput.body;
2921
4172
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
2922
4173
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2923
- _e.label = 5;
2924
- case 5:
4174
+ _g.label = 9;
4175
+ case 9:
2925
4176
  message = response.message || response.Message || errorCode;
2926
4177
  response.message = message;
2927
4178
  delete response.Message;
@@ -3205,6 +4456,78 @@ var deserializeAws_json1_1ListAssociatedStacksCommandError = function (output, c
3205
4456
  }
3206
4457
  });
3207
4458
  }); };
4459
+ export var deserializeAws_json1_1ListEntitledApplicationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4460
+ var data, contents, response;
4461
+ return __generator(this, function (_a) {
4462
+ switch (_a.label) {
4463
+ case 0:
4464
+ if (output.statusCode >= 300) {
4465
+ return [2, deserializeAws_json1_1ListEntitledApplicationsCommandError(output, context)];
4466
+ }
4467
+ return [4, parseBody(output.body, context)];
4468
+ case 1:
4469
+ data = _a.sent();
4470
+ contents = {};
4471
+ contents = deserializeAws_json1_1ListEntitledApplicationsResult(data, context);
4472
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
4473
+ return [2, Promise.resolve(response)];
4474
+ }
4475
+ });
4476
+ }); };
4477
+ var deserializeAws_json1_1ListEntitledApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4478
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
4479
+ var _f;
4480
+ return __generator(this, function (_g) {
4481
+ switch (_g.label) {
4482
+ case 0:
4483
+ _a = [__assign({}, output)];
4484
+ _f = {};
4485
+ return [4, parseBody(output.body, context)];
4486
+ case 1:
4487
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
4488
+ errorCode = "UnknownError";
4489
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4490
+ _b = errorCode;
4491
+ switch (_b) {
4492
+ case "EntitlementNotFoundException": return [3, 2];
4493
+ case "com.amazonaws.appstream#EntitlementNotFoundException": return [3, 2];
4494
+ case "OperationNotPermittedException": return [3, 4];
4495
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
4496
+ case "ResourceNotFoundException": return [3, 6];
4497
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 6];
4498
+ }
4499
+ return [3, 8];
4500
+ case 2:
4501
+ _c = [{}];
4502
+ return [4, deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)];
4503
+ case 3:
4504
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4505
+ return [3, 9];
4506
+ case 4:
4507
+ _d = [{}];
4508
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
4509
+ case 5:
4510
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4511
+ return [3, 9];
4512
+ case 6:
4513
+ _e = [{}];
4514
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4515
+ case 7:
4516
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4517
+ return [3, 9];
4518
+ case 8:
4519
+ parsedBody = parsedOutput.body;
4520
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
4521
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4522
+ _g.label = 9;
4523
+ case 9:
4524
+ message = response.message || response.Message || errorCode;
4525
+ response.message = message;
4526
+ delete response.Message;
4527
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
4528
+ }
4529
+ });
4530
+ }); };
3208
4531
  export var deserializeAws_json1_1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3209
4532
  var data, contents, response;
3210
4533
  return __generator(this, function (_a) {
@@ -3725,6 +5048,78 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
3725
5048
  }
3726
5049
  });
3727
5050
  }); };
5051
+ export var deserializeAws_json1_1UpdateApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5052
+ var data, contents, response;
5053
+ return __generator(this, function (_a) {
5054
+ switch (_a.label) {
5055
+ case 0:
5056
+ if (output.statusCode >= 300) {
5057
+ return [2, deserializeAws_json1_1UpdateApplicationCommandError(output, context)];
5058
+ }
5059
+ return [4, parseBody(output.body, context)];
5060
+ case 1:
5061
+ data = _a.sent();
5062
+ contents = {};
5063
+ contents = deserializeAws_json1_1UpdateApplicationResult(data, context);
5064
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
5065
+ return [2, Promise.resolve(response)];
5066
+ }
5067
+ });
5068
+ }); };
5069
+ var deserializeAws_json1_1UpdateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5070
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
5071
+ var _f;
5072
+ return __generator(this, function (_g) {
5073
+ switch (_g.label) {
5074
+ case 0:
5075
+ _a = [__assign({}, output)];
5076
+ _f = {};
5077
+ return [4, parseBody(output.body, context)];
5078
+ case 1:
5079
+ parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
5080
+ errorCode = "UnknownError";
5081
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5082
+ _b = errorCode;
5083
+ switch (_b) {
5084
+ case "ConcurrentModificationException": return [3, 2];
5085
+ case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
5086
+ case "OperationNotPermittedException": return [3, 4];
5087
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 4];
5088
+ case "ResourceNotFoundException": return [3, 6];
5089
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 6];
5090
+ }
5091
+ return [3, 8];
5092
+ case 2:
5093
+ _c = [{}];
5094
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
5095
+ case 3:
5096
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5097
+ return [3, 9];
5098
+ case 4:
5099
+ _d = [{}];
5100
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
5101
+ case 5:
5102
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5103
+ return [3, 9];
5104
+ case 6:
5105
+ _e = [{}];
5106
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
5107
+ case 7:
5108
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5109
+ return [3, 9];
5110
+ case 8:
5111
+ parsedBody = parsedOutput.body;
5112
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
5113
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
5114
+ _g.label = 9;
5115
+ case 9:
5116
+ message = response.message || response.Message || errorCode;
5117
+ response.message = message;
5118
+ delete response.Message;
5119
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
5120
+ }
5121
+ });
5122
+ }); };
3728
5123
  export var deserializeAws_json1_1UpdateDirectoryConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3729
5124
  var data, contents, response;
3730
5125
  return __generator(this, function (_a) {
@@ -3804,8 +5199,88 @@ var deserializeAws_json1_1UpdateDirectoryConfigCommandError = function (output,
3804
5199
  parsedBody = parsedOutput.body;
3805
5200
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
3806
5201
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3807
- _j.label = 13;
3808
- case 13:
5202
+ _j.label = 13;
5203
+ case 13:
5204
+ message = response.message || response.Message || errorCode;
5205
+ response.message = message;
5206
+ delete response.Message;
5207
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
5208
+ }
5209
+ });
5210
+ }); };
5211
+ export var deserializeAws_json1_1UpdateEntitlementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5212
+ var data, contents, response;
5213
+ return __generator(this, function (_a) {
5214
+ switch (_a.label) {
5215
+ case 0:
5216
+ if (output.statusCode >= 300) {
5217
+ return [2, deserializeAws_json1_1UpdateEntitlementCommandError(output, context)];
5218
+ }
5219
+ return [4, parseBody(output.body, context)];
5220
+ case 1:
5221
+ data = _a.sent();
5222
+ contents = {};
5223
+ contents = deserializeAws_json1_1UpdateEntitlementResult(data, context);
5224
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
5225
+ return [2, Promise.resolve(response)];
5226
+ }
5227
+ });
5228
+ }); };
5229
+ var deserializeAws_json1_1UpdateEntitlementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5230
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
5231
+ var _g;
5232
+ return __generator(this, function (_h) {
5233
+ switch (_h.label) {
5234
+ case 0:
5235
+ _a = [__assign({}, output)];
5236
+ _g = {};
5237
+ return [4, parseBody(output.body, context)];
5238
+ case 1:
5239
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
5240
+ errorCode = "UnknownError";
5241
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5242
+ _b = errorCode;
5243
+ switch (_b) {
5244
+ case "ConcurrentModificationException": return [3, 2];
5245
+ case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
5246
+ case "EntitlementNotFoundException": return [3, 4];
5247
+ case "com.amazonaws.appstream#EntitlementNotFoundException": return [3, 4];
5248
+ case "OperationNotPermittedException": return [3, 6];
5249
+ case "com.amazonaws.appstream#OperationNotPermittedException": return [3, 6];
5250
+ case "ResourceNotFoundException": return [3, 8];
5251
+ case "com.amazonaws.appstream#ResourceNotFoundException": return [3, 8];
5252
+ }
5253
+ return [3, 10];
5254
+ case 2:
5255
+ _c = [{}];
5256
+ return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
5257
+ case 3:
5258
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5259
+ return [3, 11];
5260
+ case 4:
5261
+ _d = [{}];
5262
+ return [4, deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)];
5263
+ case 5:
5264
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5265
+ return [3, 11];
5266
+ case 6:
5267
+ _e = [{}];
5268
+ return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
5269
+ case 7:
5270
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5271
+ return [3, 11];
5272
+ case 8:
5273
+ _f = [{}];
5274
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
5275
+ case 9:
5276
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5277
+ return [3, 11];
5278
+ case 10:
5279
+ parsedBody = parsedOutput.body;
5280
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
5281
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
5282
+ _h.label = 11;
5283
+ case 11:
3809
5284
  message = response.message || response.Message || errorCode;
3810
5285
  response.message = message;
3811
5286
  delete response.Message;
@@ -4150,6 +5625,24 @@ var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (pa
4150
5625
  return [2, contents];
4151
5626
  });
4152
5627
  }); };
5628
+ var deserializeAws_json1_1EntitlementAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
5629
+ var body, deserialized, contents;
5630
+ return __generator(this, function (_a) {
5631
+ body = parsedOutput.body;
5632
+ deserialized = deserializeAws_json1_1EntitlementAlreadyExistsException(body, context);
5633
+ contents = __assign({ name: "EntitlementAlreadyExistsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5634
+ return [2, contents];
5635
+ });
5636
+ }); };
5637
+ var deserializeAws_json1_1EntitlementNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
5638
+ var body, deserialized, contents;
5639
+ return __generator(this, function (_a) {
5640
+ body = parsedOutput.body;
5641
+ deserialized = deserializeAws_json1_1EntitlementNotFoundException(body, context);
5642
+ contents = __assign({ name: "EntitlementNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
5643
+ return [2, contents];
5644
+ });
5645
+ }); };
4153
5646
  var deserializeAws_json1_1IncompatibleImageExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
4154
5647
  var body, deserialized, contents;
4155
5648
  return __generator(this, function (_a) {
@@ -4262,6 +5755,16 @@ var serializeAws_json1_1AccessEndpointList = function (input, context) {
4262
5755
  return serializeAws_json1_1AccessEndpoint(entry, context);
4263
5756
  });
4264
5757
  };
5758
+ var serializeAws_json1_1ApplicationAttributes = function (input, context) {
5759
+ return input
5760
+ .filter(function (e) { return e != null; })
5761
+ .map(function (entry) {
5762
+ if (entry === null) {
5763
+ return null;
5764
+ }
5765
+ return entry;
5766
+ });
5767
+ };
4265
5768
  var serializeAws_json1_1ApplicationSettings = function (input, context) {
4266
5769
  return __assign(__assign({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.SettingsGroup !== undefined && input.SettingsGroup !== null && { SettingsGroup: input.SettingsGroup }));
4267
5770
  };
@@ -4275,6 +5778,15 @@ var serializeAws_json1_1ArnList = function (input, context) {
4275
5778
  return entry;
4276
5779
  });
4277
5780
  };
5781
+ var serializeAws_json1_1AssociateApplicationFleetRequest = function (input, context) {
5782
+ return __assign(__assign({}, (input.ApplicationArn !== undefined &&
5783
+ input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn })), (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }));
5784
+ };
5785
+ var serializeAws_json1_1AssociateApplicationToEntitlementRequest = function (input, context) {
5786
+ return __assign(__assign(__assign({}, (input.ApplicationIdentifier !== undefined &&
5787
+ input.ApplicationIdentifier !== null && { ApplicationIdentifier: input.ApplicationIdentifier })), (input.EntitlementName !== undefined &&
5788
+ input.EntitlementName !== null && { EntitlementName: input.EntitlementName })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
5789
+ };
4278
5790
  var serializeAws_json1_1AssociateFleetRequest = function (input, context) {
4279
5791
  return __assign(__assign({}, (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
4280
5792
  };
@@ -4311,6 +5823,27 @@ var serializeAws_json1_1CopyImageRequest = function (input, context) {
4311
5823
  input.DestinationRegion !== null && { DestinationRegion: input.DestinationRegion })), (input.SourceImageName !== undefined &&
4312
5824
  input.SourceImageName !== null && { SourceImageName: input.SourceImageName }));
4313
5825
  };
5826
+ var serializeAws_json1_1CreateAppBlockRequest = function (input, context) {
5827
+ 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 &&
5828
+ input.SetupScriptDetails !== null && {
5829
+ SetupScriptDetails: serializeAws_json1_1ScriptDetails(input.SetupScriptDetails, context),
5830
+ })), (input.SourceS3Location !== undefined &&
5831
+ input.SourceS3Location !== null && {
5832
+ SourceS3Location: serializeAws_json1_1S3Location(input.SourceS3Location, context),
5833
+ })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
5834
+ };
5835
+ var serializeAws_json1_1CreateApplicationRequest = function (input, context) {
5836
+ 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 &&
5837
+ input.IconS3Location !== null && {
5838
+ IconS3Location: serializeAws_json1_1S3Location(input.IconS3Location, context),
5839
+ })), (input.InstanceFamilies !== undefined &&
5840
+ input.InstanceFamilies !== null && {
5841
+ InstanceFamilies: serializeAws_json1_1StringList(input.InstanceFamilies, context),
5842
+ })), (input.LaunchParameters !== undefined &&
5843
+ 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 &&
5844
+ 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 &&
5845
+ input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }));
5846
+ };
4314
5847
  var serializeAws_json1_1CreateDirectoryConfigRequest = function (input, context) {
4315
5848
  return __assign(__assign(__assign({}, (input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName })), (input.OrganizationalUnitDistinguishedNames !== undefined &&
4316
5849
  input.OrganizationalUnitDistinguishedNames !== null && {
@@ -4320,8 +5853,14 @@ var serializeAws_json1_1CreateDirectoryConfigRequest = function (input, context)
4320
5853
  ServiceAccountCredentials: serializeAws_json1_1ServiceAccountCredentials(input.ServiceAccountCredentials, context),
4321
5854
  }));
4322
5855
  };
5856
+ var serializeAws_json1_1CreateEntitlementRequest = function (input, context) {
5857
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AppVisibility !== undefined && input.AppVisibility !== null && { AppVisibility: input.AppVisibility })), (input.Attributes !== undefined &&
5858
+ input.Attributes !== null && {
5859
+ Attributes: serializeAws_json1_1EntitlementAttributeList(input.Attributes, context),
5860
+ })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
5861
+ };
4323
5862
  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 &&
5863
+ 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
5864
  input.ComputeCapacity !== null && {
4326
5865
  ComputeCapacity: serializeAws_json1_1ComputeCapacity(input.ComputeCapacity, context),
4327
5866
  })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DisconnectTimeoutInSeconds !== undefined &&
@@ -4332,8 +5871,12 @@ var serializeAws_json1_1CreateFleetRequest = function (input, context) {
4332
5871
  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
5872
  input.IdleDisconnectTimeoutInSeconds !== null && {
4334
5873
  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 &&
5874
+ })), (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 &&
5875
+ input.MaxConcurrentSessions !== null && { MaxConcurrentSessions: input.MaxConcurrentSessions })), (input.MaxUserDurationInSeconds !== undefined &&
5876
+ 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 &&
5877
+ input.UsbDeviceFilterStrings !== null && {
5878
+ UsbDeviceFilterStrings: serializeAws_json1_1UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
5879
+ })), (input.VpcConfig !== undefined &&
4337
5880
  input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
4338
5881
  };
4339
5882
  var serializeAws_json1_1CreateImageBuilderRequest = function (input, context) {
@@ -4387,9 +5930,18 @@ var serializeAws_json1_1CreateUserRequest = function (input, context) {
4387
5930
  return __assign(__assign(__assign(__assign(__assign({}, (input.AuthenticationType !== undefined &&
4388
5931
  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
5932
  };
5933
+ var serializeAws_json1_1DeleteAppBlockRequest = function (input, context) {
5934
+ return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
5935
+ };
5936
+ var serializeAws_json1_1DeleteApplicationRequest = function (input, context) {
5937
+ return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
5938
+ };
4390
5939
  var serializeAws_json1_1DeleteDirectoryConfigRequest = function (input, context) {
4391
5940
  return __assign({}, (input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }));
4392
5941
  };
5942
+ var serializeAws_json1_1DeleteEntitlementRequest = function (input, context) {
5943
+ return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
5944
+ };
4393
5945
  var serializeAws_json1_1DeleteFleetRequest = function (input, context) {
4394
5946
  return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
4395
5947
  };
@@ -4413,12 +5965,25 @@ var serializeAws_json1_1DeleteUserRequest = function (input, context) {
4413
5965
  return __assign(__assign({}, (input.AuthenticationType !== undefined &&
4414
5966
  input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
4415
5967
  };
5968
+ var serializeAws_json1_1DescribeAppBlocksRequest = function (input, context) {
5969
+ 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 }));
5970
+ };
5971
+ var serializeAws_json1_1DescribeApplicationFleetAssociationsRequest = function (input, context) {
5972
+ return __assign(__assign(__assign(__assign({}, (input.ApplicationArn !== undefined &&
5973
+ 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 }));
5974
+ };
5975
+ var serializeAws_json1_1DescribeApplicationsRequest = function (input, context) {
5976
+ 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 }));
5977
+ };
4416
5978
  var serializeAws_json1_1DescribeDirectoryConfigsRequest = function (input, context) {
4417
5979
  return __assign(__assign(__assign({}, (input.DirectoryNames !== undefined &&
4418
5980
  input.DirectoryNames !== null && {
4419
5981
  DirectoryNames: serializeAws_json1_1DirectoryNameList(input.DirectoryNames, context),
4420
5982
  })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
4421
5983
  };
5984
+ var serializeAws_json1_1DescribeEntitlementsRequest = function (input, context) {
5985
+ return __assign(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
5986
+ };
4422
5987
  var serializeAws_json1_1DescribeFleetsRequest = function (input, context) {
4423
5988
  return __assign(__assign({}, (input.Names !== undefined &&
4424
5989
  input.Names !== null && { Names: serializeAws_json1_1StringList(input.Names, context) })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
@@ -4470,6 +6035,15 @@ var serializeAws_json1_1DisableUserRequest = function (input, context) {
4470
6035
  return __assign(__assign({}, (input.AuthenticationType !== undefined &&
4471
6036
  input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
4472
6037
  };
6038
+ var serializeAws_json1_1DisassociateApplicationFleetRequest = function (input, context) {
6039
+ return __assign(__assign({}, (input.ApplicationArn !== undefined &&
6040
+ input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn })), (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }));
6041
+ };
6042
+ var serializeAws_json1_1DisassociateApplicationFromEntitlementRequest = function (input, context) {
6043
+ return __assign(__assign(__assign({}, (input.ApplicationIdentifier !== undefined &&
6044
+ input.ApplicationIdentifier !== null && { ApplicationIdentifier: input.ApplicationIdentifier })), (input.EntitlementName !== undefined &&
6045
+ input.EntitlementName !== null && { EntitlementName: input.EntitlementName })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
6046
+ };
4473
6047
  var serializeAws_json1_1DisassociateFleetRequest = function (input, context) {
4474
6048
  return __assign(__assign({}, (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
4475
6049
  };
@@ -4503,6 +6077,19 @@ var serializeAws_json1_1EnableUserRequest = function (input, context) {
4503
6077
  return __assign(__assign({}, (input.AuthenticationType !== undefined &&
4504
6078
  input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
4505
6079
  };
6080
+ var serializeAws_json1_1EntitlementAttribute = function (input, context) {
6081
+ return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
6082
+ };
6083
+ var serializeAws_json1_1EntitlementAttributeList = function (input, context) {
6084
+ return input
6085
+ .filter(function (e) { return e != null; })
6086
+ .map(function (entry) {
6087
+ if (entry === null) {
6088
+ return null;
6089
+ }
6090
+ return serializeAws_json1_1EntitlementAttribute(entry, context);
6091
+ });
6092
+ };
4506
6093
  var serializeAws_json1_1ExpireSessionRequest = function (input, context) {
4507
6094
  return __assign({}, (input.SessionId !== undefined && input.SessionId !== null && { SessionId: input.SessionId }));
4508
6095
  };
@@ -4526,6 +6113,10 @@ var serializeAws_json1_1ListAssociatedFleetsRequest = function (input, context)
4526
6113
  var serializeAws_json1_1ListAssociatedStacksRequest = function (input, context) {
4527
6114
  return __assign(__assign({}, (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
4528
6115
  };
6116
+ var serializeAws_json1_1ListEntitledApplicationsRequest = function (input, context) {
6117
+ return __assign(__assign(__assign(__assign({}, (input.EntitlementName !== undefined &&
6118
+ input.EntitlementName !== null && { EntitlementName: input.EntitlementName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
6119
+ };
4529
6120
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
4530
6121
  return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
4531
6122
  };
@@ -4539,6 +6130,28 @@ var serializeAws_json1_1OrganizationalUnitDistinguishedNamesList = function (inp
4539
6130
  return entry;
4540
6131
  });
4541
6132
  };
6133
+ var serializeAws_json1_1Platforms = function (input, context) {
6134
+ return input
6135
+ .filter(function (e) { return e != null; })
6136
+ .map(function (entry) {
6137
+ if (entry === null) {
6138
+ return null;
6139
+ }
6140
+ return entry;
6141
+ });
6142
+ };
6143
+ var serializeAws_json1_1S3Location = function (input, context) {
6144
+ return __assign(__assign({}, (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket })), (input.S3Key !== undefined && input.S3Key !== null && { S3Key: input.S3Key }));
6145
+ };
6146
+ var serializeAws_json1_1ScriptDetails = function (input, context) {
6147
+ return __assign(__assign(__assign(__assign({}, (input.ExecutableParameters !== undefined &&
6148
+ input.ExecutableParameters !== null && { ExecutableParameters: input.ExecutableParameters })), (input.ExecutablePath !== undefined &&
6149
+ input.ExecutablePath !== null && { ExecutablePath: input.ExecutablePath })), (input.ScriptS3Location !== undefined &&
6150
+ input.ScriptS3Location !== null && {
6151
+ ScriptS3Location: serializeAws_json1_1S3Location(input.ScriptS3Location, context),
6152
+ })), (input.TimeoutInSeconds !== undefined &&
6153
+ input.TimeoutInSeconds !== null && { TimeoutInSeconds: input.TimeoutInSeconds }));
6154
+ };
4542
6155
  var serializeAws_json1_1SecurityGroupIdList = function (input, context) {
4543
6156
  return input
4544
6157
  .filter(function (e) { return e != null; })
@@ -4638,6 +6251,17 @@ var serializeAws_json1_1UntagResourceRequest = function (input, context) {
4638
6251
  return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.TagKeys !== undefined &&
4639
6252
  input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
4640
6253
  };
6254
+ var serializeAws_json1_1UpdateApplicationRequest = function (input, context) {
6255
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppBlockArn !== undefined && input.AppBlockArn !== null && { AppBlockArn: input.AppBlockArn })), (input.AttributesToDelete !== undefined &&
6256
+ input.AttributesToDelete !== null && {
6257
+ AttributesToDelete: serializeAws_json1_1ApplicationAttributes(input.AttributesToDelete, context),
6258
+ })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName })), (input.IconS3Location !== undefined &&
6259
+ input.IconS3Location !== null && {
6260
+ IconS3Location: serializeAws_json1_1S3Location(input.IconS3Location, context),
6261
+ })), (input.LaunchParameters !== undefined &&
6262
+ 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 &&
6263
+ input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }));
6264
+ };
4641
6265
  var serializeAws_json1_1UpdateDirectoryConfigRequest = function (input, context) {
4642
6266
  return __assign(__assign(__assign({}, (input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName })), (input.OrganizationalUnitDistinguishedNames !== undefined &&
4643
6267
  input.OrganizationalUnitDistinguishedNames !== null && {
@@ -4647,8 +6271,14 @@ var serializeAws_json1_1UpdateDirectoryConfigRequest = function (input, context)
4647
6271
  ServiceAccountCredentials: serializeAws_json1_1ServiceAccountCredentials(input.ServiceAccountCredentials, context),
4648
6272
  }));
4649
6273
  };
6274
+ var serializeAws_json1_1UpdateEntitlementRequest = function (input, context) {
6275
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AppVisibility !== undefined && input.AppVisibility !== null && { AppVisibility: input.AppVisibility })), (input.Attributes !== undefined &&
6276
+ input.Attributes !== null && {
6277
+ Attributes: serializeAws_json1_1EntitlementAttributeList(input.Attributes, context),
6278
+ })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
6279
+ };
4650
6280
  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 &&
6281
+ 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
6282
  input.AttributesToDelete !== null && {
4653
6283
  AttributesToDelete: serializeAws_json1_1FleetAttributes(input.AttributesToDelete, context),
4654
6284
  })), (input.ComputeCapacity !== undefined &&
@@ -4663,8 +6293,12 @@ var serializeAws_json1_1UpdateFleetRequest = function (input, context) {
4663
6293
  input.EnableDefaultInternetAccess !== null && { EnableDefaultInternetAccess: input.EnableDefaultInternetAccess })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.IdleDisconnectTimeoutInSeconds !== undefined &&
4664
6294
  input.IdleDisconnectTimeoutInSeconds !== null && {
4665
6295
  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 &&
6296
+ })), (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 &&
6297
+ input.MaxConcurrentSessions !== null && { MaxConcurrentSessions: input.MaxConcurrentSessions })), (input.MaxUserDurationInSeconds !== undefined &&
6298
+ 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 &&
6299
+ input.UsbDeviceFilterStrings !== null && {
6300
+ UsbDeviceFilterStrings: serializeAws_json1_1UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
6301
+ })), (input.VpcConfig !== undefined &&
4668
6302
  input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }));
4669
6303
  };
4670
6304
  var serializeAws_json1_1UpdateImagePermissionsRequest = function (input, context) {
@@ -4696,6 +6330,16 @@ var serializeAws_json1_1UpdateStackRequest = function (input, context) {
4696
6330
  UserSettings: serializeAws_json1_1UserSettingList(input.UserSettings, context),
4697
6331
  }));
4698
6332
  };
6333
+ var serializeAws_json1_1UsbDeviceFilterStrings = function (input, context) {
6334
+ return input
6335
+ .filter(function (e) { return e != null; })
6336
+ .map(function (entry) {
6337
+ if (entry === null) {
6338
+ return null;
6339
+ }
6340
+ return entry;
6341
+ });
6342
+ };
4699
6343
  var serializeAws_json1_1UserSetting = function (input, context) {
4700
6344
  return __assign(__assign({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Permission !== undefined && input.Permission !== null && { Permission: input.Permission }));
4701
6345
  };
@@ -4747,19 +6391,78 @@ var deserializeAws_json1_1AccessEndpointList = function (output, context) {
4747
6391
  return deserializeAws_json1_1AccessEndpoint(entry, context);
4748
6392
  });
4749
6393
  };
6394
+ var deserializeAws_json1_1AppBlock = function (output, context) {
6395
+ return {
6396
+ Arn: __expectString(output.Arn),
6397
+ CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
6398
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
6399
+ : undefined,
6400
+ Description: __expectString(output.Description),
6401
+ DisplayName: __expectString(output.DisplayName),
6402
+ Name: __expectString(output.Name),
6403
+ SetupScriptDetails: output.SetupScriptDetails !== undefined && output.SetupScriptDetails !== null
6404
+ ? deserializeAws_json1_1ScriptDetails(output.SetupScriptDetails, context)
6405
+ : undefined,
6406
+ SourceS3Location: output.SourceS3Location !== undefined && output.SourceS3Location !== null
6407
+ ? deserializeAws_json1_1S3Location(output.SourceS3Location, context)
6408
+ : undefined,
6409
+ };
6410
+ };
6411
+ var deserializeAws_json1_1AppBlocks = function (output, context) {
6412
+ return (output || [])
6413
+ .filter(function (e) { return e != null; })
6414
+ .map(function (entry) {
6415
+ if (entry === null) {
6416
+ return null;
6417
+ }
6418
+ return deserializeAws_json1_1AppBlock(entry, context);
6419
+ });
6420
+ };
4750
6421
  var deserializeAws_json1_1Application = function (output, context) {
4751
6422
  return {
6423
+ AppBlockArn: __expectString(output.AppBlockArn),
6424
+ Arn: __expectString(output.Arn),
6425
+ CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
6426
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
6427
+ : undefined,
6428
+ Description: __expectString(output.Description),
4752
6429
  DisplayName: __expectString(output.DisplayName),
4753
6430
  Enabled: __expectBoolean(output.Enabled),
6431
+ IconS3Location: output.IconS3Location !== undefined && output.IconS3Location !== null
6432
+ ? deserializeAws_json1_1S3Location(output.IconS3Location, context)
6433
+ : undefined,
4754
6434
  IconURL: __expectString(output.IconURL),
6435
+ InstanceFamilies: output.InstanceFamilies !== undefined && output.InstanceFamilies !== null
6436
+ ? deserializeAws_json1_1StringList(output.InstanceFamilies, context)
6437
+ : undefined,
4755
6438
  LaunchParameters: __expectString(output.LaunchParameters),
4756
6439
  LaunchPath: __expectString(output.LaunchPath),
4757
6440
  Metadata: output.Metadata !== undefined && output.Metadata !== null
4758
6441
  ? deserializeAws_json1_1Metadata(output.Metadata, context)
4759
6442
  : undefined,
4760
6443
  Name: __expectString(output.Name),
6444
+ Platforms: output.Platforms !== undefined && output.Platforms !== null
6445
+ ? deserializeAws_json1_1Platforms(output.Platforms, context)
6446
+ : undefined,
6447
+ WorkingDirectory: __expectString(output.WorkingDirectory),
4761
6448
  };
4762
6449
  };
6450
+ var deserializeAws_json1_1ApplicationFleetAssociation = function (output, context) {
6451
+ return {
6452
+ ApplicationArn: __expectString(output.ApplicationArn),
6453
+ FleetName: __expectString(output.FleetName),
6454
+ };
6455
+ };
6456
+ var deserializeAws_json1_1ApplicationFleetAssociationList = function (output, context) {
6457
+ return (output || [])
6458
+ .filter(function (e) { return e != null; })
6459
+ .map(function (entry) {
6460
+ if (entry === null) {
6461
+ return null;
6462
+ }
6463
+ return deserializeAws_json1_1ApplicationFleetAssociation(entry, context);
6464
+ });
6465
+ };
4763
6466
  var deserializeAws_json1_1Applications = function (output, context) {
4764
6467
  return (output || [])
4765
6468
  .filter(function (e) { return e != null; })
@@ -4777,6 +6480,16 @@ var deserializeAws_json1_1ApplicationSettingsResponse = function (output, contex
4777
6480
  SettingsGroup: __expectString(output.SettingsGroup),
4778
6481
  };
4779
6482
  };
6483
+ var deserializeAws_json1_1AssociateApplicationFleetResult = function (output, context) {
6484
+ return {
6485
+ ApplicationFleetAssociation: output.ApplicationFleetAssociation !== undefined && output.ApplicationFleetAssociation !== null
6486
+ ? deserializeAws_json1_1ApplicationFleetAssociation(output.ApplicationFleetAssociation, context)
6487
+ : undefined,
6488
+ };
6489
+ };
6490
+ var deserializeAws_json1_1AssociateApplicationToEntitlementResult = function (output, context) {
6491
+ return {};
6492
+ };
4780
6493
  var deserializeAws_json1_1AssociateFleetResult = function (output, context) {
4781
6494
  return {};
4782
6495
  };
@@ -4812,6 +6525,20 @@ var deserializeAws_json1_1CopyImageResponse = function (output, context) {
4812
6525
  DestinationImageName: __expectString(output.DestinationImageName),
4813
6526
  };
4814
6527
  };
6528
+ var deserializeAws_json1_1CreateAppBlockResult = function (output, context) {
6529
+ return {
6530
+ AppBlock: output.AppBlock !== undefined && output.AppBlock !== null
6531
+ ? deserializeAws_json1_1AppBlock(output.AppBlock, context)
6532
+ : undefined,
6533
+ };
6534
+ };
6535
+ var deserializeAws_json1_1CreateApplicationResult = function (output, context) {
6536
+ return {
6537
+ Application: output.Application !== undefined && output.Application !== null
6538
+ ? deserializeAws_json1_1Application(output.Application, context)
6539
+ : undefined,
6540
+ };
6541
+ };
4815
6542
  var deserializeAws_json1_1CreateDirectoryConfigResult = function (output, context) {
4816
6543
  return {
4817
6544
  DirectoryConfig: output.DirectoryConfig !== undefined && output.DirectoryConfig !== null
@@ -4819,6 +6546,13 @@ var deserializeAws_json1_1CreateDirectoryConfigResult = function (output, contex
4819
6546
  : undefined,
4820
6547
  };
4821
6548
  };
6549
+ var deserializeAws_json1_1CreateEntitlementResult = function (output, context) {
6550
+ return {
6551
+ Entitlement: output.Entitlement !== undefined && output.Entitlement !== null
6552
+ ? deserializeAws_json1_1Entitlement(output.Entitlement, context)
6553
+ : undefined,
6554
+ };
6555
+ };
4822
6556
  var deserializeAws_json1_1CreateFleetResult = function (output, context) {
4823
6557
  return {
4824
6558
  Fleet: output.Fleet !== undefined && output.Fleet !== null
@@ -4873,9 +6607,18 @@ var deserializeAws_json1_1CreateUsageReportSubscriptionResult = function (output
4873
6607
  var deserializeAws_json1_1CreateUserResult = function (output, context) {
4874
6608
  return {};
4875
6609
  };
6610
+ var deserializeAws_json1_1DeleteAppBlockResult = function (output, context) {
6611
+ return {};
6612
+ };
6613
+ var deserializeAws_json1_1DeleteApplicationResult = function (output, context) {
6614
+ return {};
6615
+ };
4876
6616
  var deserializeAws_json1_1DeleteDirectoryConfigResult = function (output, context) {
4877
6617
  return {};
4878
6618
  };
6619
+ var deserializeAws_json1_1DeleteEntitlementResult = function (output, context) {
6620
+ return {};
6621
+ };
4879
6622
  var deserializeAws_json1_1DeleteFleetResult = function (output, context) {
4880
6623
  return {};
4881
6624
  };
@@ -4905,6 +6648,30 @@ var deserializeAws_json1_1DeleteUsageReportSubscriptionResult = function (output
4905
6648
  var deserializeAws_json1_1DeleteUserResult = function (output, context) {
4906
6649
  return {};
4907
6650
  };
6651
+ var deserializeAws_json1_1DescribeAppBlocksResult = function (output, context) {
6652
+ return {
6653
+ AppBlocks: output.AppBlocks !== undefined && output.AppBlocks !== null
6654
+ ? deserializeAws_json1_1AppBlocks(output.AppBlocks, context)
6655
+ : undefined,
6656
+ NextToken: __expectString(output.NextToken),
6657
+ };
6658
+ };
6659
+ var deserializeAws_json1_1DescribeApplicationFleetAssociationsResult = function (output, context) {
6660
+ return {
6661
+ ApplicationFleetAssociations: output.ApplicationFleetAssociations !== undefined && output.ApplicationFleetAssociations !== null
6662
+ ? deserializeAws_json1_1ApplicationFleetAssociationList(output.ApplicationFleetAssociations, context)
6663
+ : undefined,
6664
+ NextToken: __expectString(output.NextToken),
6665
+ };
6666
+ };
6667
+ var deserializeAws_json1_1DescribeApplicationsResult = function (output, context) {
6668
+ return {
6669
+ Applications: output.Applications !== undefined && output.Applications !== null
6670
+ ? deserializeAws_json1_1Applications(output.Applications, context)
6671
+ : undefined,
6672
+ NextToken: __expectString(output.NextToken),
6673
+ };
6674
+ };
4908
6675
  var deserializeAws_json1_1DescribeDirectoryConfigsResult = function (output, context) {
4909
6676
  return {
4910
6677
  DirectoryConfigs: output.DirectoryConfigs !== undefined && output.DirectoryConfigs !== null
@@ -4913,6 +6680,14 @@ var deserializeAws_json1_1DescribeDirectoryConfigsResult = function (output, con
4913
6680
  NextToken: __expectString(output.NextToken),
4914
6681
  };
4915
6682
  };
6683
+ var deserializeAws_json1_1DescribeEntitlementsResult = function (output, context) {
6684
+ return {
6685
+ Entitlements: output.Entitlements !== undefined && output.Entitlements !== null
6686
+ ? deserializeAws_json1_1EntitlementList(output.Entitlements, context)
6687
+ : undefined,
6688
+ NextToken: __expectString(output.NextToken),
6689
+ };
6690
+ };
4916
6691
  var deserializeAws_json1_1DescribeFleetsResult = function (output, context) {
4917
6692
  return {
4918
6693
  Fleets: output.Fleets !== undefined && output.Fleets !== null
@@ -5013,6 +6788,12 @@ var deserializeAws_json1_1DirectoryConfigList = function (output, context) {
5013
6788
  var deserializeAws_json1_1DisableUserResult = function (output, context) {
5014
6789
  return {};
5015
6790
  };
6791
+ var deserializeAws_json1_1DisassociateApplicationFleetResult = function (output, context) {
6792
+ return {};
6793
+ };
6794
+ var deserializeAws_json1_1DisassociateApplicationFromEntitlementResult = function (output, context) {
6795
+ return {};
6796
+ };
5016
6797
  var deserializeAws_json1_1DisassociateFleetResult = function (output, context) {
5017
6798
  return {};
5018
6799
  };
@@ -5045,6 +6826,74 @@ var deserializeAws_json1_1EmbedHostDomains = function (output, context) {
5045
6826
  var deserializeAws_json1_1EnableUserResult = function (output, context) {
5046
6827
  return {};
5047
6828
  };
6829
+ var deserializeAws_json1_1EntitledApplication = function (output, context) {
6830
+ return {
6831
+ ApplicationIdentifier: __expectString(output.ApplicationIdentifier),
6832
+ };
6833
+ };
6834
+ var deserializeAws_json1_1EntitledApplicationList = function (output, context) {
6835
+ return (output || [])
6836
+ .filter(function (e) { return e != null; })
6837
+ .map(function (entry) {
6838
+ if (entry === null) {
6839
+ return null;
6840
+ }
6841
+ return deserializeAws_json1_1EntitledApplication(entry, context);
6842
+ });
6843
+ };
6844
+ var deserializeAws_json1_1Entitlement = function (output, context) {
6845
+ return {
6846
+ AppVisibility: __expectString(output.AppVisibility),
6847
+ Attributes: output.Attributes !== undefined && output.Attributes !== null
6848
+ ? deserializeAws_json1_1EntitlementAttributeList(output.Attributes, context)
6849
+ : undefined,
6850
+ CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
6851
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
6852
+ : undefined,
6853
+ Description: __expectString(output.Description),
6854
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
6855
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
6856
+ : undefined,
6857
+ Name: __expectString(output.Name),
6858
+ StackName: __expectString(output.StackName),
6859
+ };
6860
+ };
6861
+ var deserializeAws_json1_1EntitlementAlreadyExistsException = function (output, context) {
6862
+ return {
6863
+ Message: __expectString(output.Message),
6864
+ };
6865
+ };
6866
+ var deserializeAws_json1_1EntitlementAttribute = function (output, context) {
6867
+ return {
6868
+ Name: __expectString(output.Name),
6869
+ Value: __expectString(output.Value),
6870
+ };
6871
+ };
6872
+ var deserializeAws_json1_1EntitlementAttributeList = function (output, context) {
6873
+ return (output || [])
6874
+ .filter(function (e) { return e != null; })
6875
+ .map(function (entry) {
6876
+ if (entry === null) {
6877
+ return null;
6878
+ }
6879
+ return deserializeAws_json1_1EntitlementAttribute(entry, context);
6880
+ });
6881
+ };
6882
+ var deserializeAws_json1_1EntitlementList = function (output, context) {
6883
+ return (output || [])
6884
+ .filter(function (e) { return e != null; })
6885
+ .map(function (entry) {
6886
+ if (entry === null) {
6887
+ return null;
6888
+ }
6889
+ return deserializeAws_json1_1Entitlement(entry, context);
6890
+ });
6891
+ };
6892
+ var deserializeAws_json1_1EntitlementNotFoundException = function (output, context) {
6893
+ return {
6894
+ Message: __expectString(output.Message),
6895
+ };
6896
+ };
5048
6897
  var deserializeAws_json1_1ExpireSessionResult = function (output, context) {
5049
6898
  return {};
5050
6899
  };
@@ -5073,10 +6922,15 @@ var deserializeAws_json1_1Fleet = function (output, context) {
5073
6922
  ImageArn: __expectString(output.ImageArn),
5074
6923
  ImageName: __expectString(output.ImageName),
5075
6924
  InstanceType: __expectString(output.InstanceType),
6925
+ MaxConcurrentSessions: __expectInt32(output.MaxConcurrentSessions),
5076
6926
  MaxUserDurationInSeconds: __expectInt32(output.MaxUserDurationInSeconds),
5077
6927
  Name: __expectString(output.Name),
6928
+ Platform: __expectString(output.Platform),
5078
6929
  State: __expectString(output.State),
5079
6930
  StreamView: __expectString(output.StreamView),
6931
+ UsbDeviceFilterStrings: output.UsbDeviceFilterStrings !== undefined && output.UsbDeviceFilterStrings !== null
6932
+ ? deserializeAws_json1_1UsbDeviceFilterStrings(output.UsbDeviceFilterStrings, context)
6933
+ : undefined,
5080
6934
  VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
5081
6935
  ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
5082
6936
  : undefined,
@@ -5272,6 +7126,14 @@ var deserializeAws_json1_1ListAssociatedStacksResult = function (output, context
5272
7126
  NextToken: __expectString(output.NextToken),
5273
7127
  };
5274
7128
  };
7129
+ var deserializeAws_json1_1ListEntitledApplicationsResult = function (output, context) {
7130
+ return {
7131
+ EntitledApplications: output.EntitledApplications !== undefined && output.EntitledApplications !== null
7132
+ ? deserializeAws_json1_1EntitledApplicationList(output.EntitledApplications, context)
7133
+ : undefined,
7134
+ NextToken: __expectString(output.NextToken),
7135
+ };
7136
+ };
5275
7137
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
5276
7138
  return {
5277
7139
  Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
@@ -5308,6 +7170,16 @@ var deserializeAws_json1_1OrganizationalUnitDistinguishedNamesList = function (o
5308
7170
  return __expectString(entry);
5309
7171
  });
5310
7172
  };
7173
+ var deserializeAws_json1_1Platforms = function (output, context) {
7174
+ return (output || [])
7175
+ .filter(function (e) { return e != null; })
7176
+ .map(function (entry) {
7177
+ if (entry === null) {
7178
+ return null;
7179
+ }
7180
+ return __expectString(entry);
7181
+ });
7182
+ };
5311
7183
  var deserializeAws_json1_1RequestLimitExceededException = function (output, context) {
5312
7184
  return {
5313
7185
  Message: __expectString(output.Message),
@@ -5352,6 +7224,22 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
5352
7224
  Message: __expectString(output.Message),
5353
7225
  };
5354
7226
  };
7227
+ var deserializeAws_json1_1S3Location = function (output, context) {
7228
+ return {
7229
+ S3Bucket: __expectString(output.S3Bucket),
7230
+ S3Key: __expectString(output.S3Key),
7231
+ };
7232
+ };
7233
+ var deserializeAws_json1_1ScriptDetails = function (output, context) {
7234
+ return {
7235
+ ExecutableParameters: __expectString(output.ExecutableParameters),
7236
+ ExecutablePath: __expectString(output.ExecutablePath),
7237
+ ScriptS3Location: output.ScriptS3Location !== undefined && output.ScriptS3Location !== null
7238
+ ? deserializeAws_json1_1S3Location(output.ScriptS3Location, context)
7239
+ : undefined,
7240
+ TimeoutInSeconds: __expectInt32(output.TimeoutInSeconds),
7241
+ };
7242
+ };
5355
7243
  var deserializeAws_json1_1SecurityGroupIdList = function (output, context) {
5356
7244
  return (output || [])
5357
7245
  .filter(function (e) { return e != null; })
@@ -5548,6 +7436,13 @@ var deserializeAws_json1_1Tags = function (output, context) {
5548
7436
  var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
5549
7437
  return {};
5550
7438
  };
7439
+ var deserializeAws_json1_1UpdateApplicationResult = function (output, context) {
7440
+ return {
7441
+ Application: output.Application !== undefined && output.Application !== null
7442
+ ? deserializeAws_json1_1Application(output.Application, context)
7443
+ : undefined,
7444
+ };
7445
+ };
5551
7446
  var deserializeAws_json1_1UpdateDirectoryConfigResult = function (output, context) {
5552
7447
  return {
5553
7448
  DirectoryConfig: output.DirectoryConfig !== undefined && output.DirectoryConfig !== null
@@ -5555,6 +7450,13 @@ var deserializeAws_json1_1UpdateDirectoryConfigResult = function (output, contex
5555
7450
  : undefined,
5556
7451
  };
5557
7452
  };
7453
+ var deserializeAws_json1_1UpdateEntitlementResult = function (output, context) {
7454
+ return {
7455
+ Entitlement: output.Entitlement !== undefined && output.Entitlement !== null
7456
+ ? deserializeAws_json1_1Entitlement(output.Entitlement, context)
7457
+ : undefined,
7458
+ };
7459
+ };
5558
7460
  var deserializeAws_json1_1UpdateFleetResult = function (output, context) {
5559
7461
  return {
5560
7462
  Fleet: output.Fleet !== undefined && output.Fleet !== null
@@ -5594,6 +7496,16 @@ var deserializeAws_json1_1UsageReportSubscriptionList = function (output, contex
5594
7496
  return deserializeAws_json1_1UsageReportSubscription(entry, context);
5595
7497
  });
5596
7498
  };
7499
+ var deserializeAws_json1_1UsbDeviceFilterStrings = function (output, context) {
7500
+ return (output || [])
7501
+ .filter(function (e) { return e != null; })
7502
+ .map(function (entry) {
7503
+ if (entry === null) {
7504
+ return null;
7505
+ }
7506
+ return __expectString(entry);
7507
+ });
7508
+ };
5597
7509
  var deserializeAws_json1_1User = function (output, context) {
5598
7510
  return {
5599
7511
  Arn: __expectString(output.Arn),