@aws-sdk/client-appstream 3.45.0 → 3.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist-cjs/AppStream.js +105 -0
- package/dist-cjs/commands/AssociateApplicationToEntitlementCommand.js +36 -0
- package/dist-cjs/commands/CreateEntitlementCommand.js +36 -0
- package/dist-cjs/commands/DeleteEntitlementCommand.js +36 -0
- package/dist-cjs/commands/DescribeEntitlementsCommand.js +36 -0
- package/dist-cjs/commands/DisassociateApplicationFromEntitlementCommand.js +36 -0
- package/dist-cjs/commands/ListEntitledApplicationsCommand.js +36 -0
- package/dist-cjs/commands/UpdateEntitlementCommand.js +36 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +124 -4
- package/dist-cjs/protocols/Aws_json1_1.js +779 -18
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/AppStream.js +105 -0
- package/dist-es/commands/AssociateApplicationToEntitlementCommand.js +39 -0
- package/dist-es/commands/CreateEntitlementCommand.js +39 -0
- package/dist-es/commands/DeleteEntitlementCommand.js +39 -0
- package/dist-es/commands/DescribeEntitlementsCommand.js +39 -0
- package/dist-es/commands/DisassociateApplicationFromEntitlementCommand.js +39 -0
- package/dist-es/commands/ListEntitledApplicationsCommand.js +39 -0
- package/dist-es/commands/UpdateEntitlementCommand.js +39 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +81 -0
- package/dist-es/protocols/Aws_json1_1.js +822 -31
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/AppStream.d.ts +54 -0
- package/dist-types/AppStreamClient.d.ts +9 -2
- package/dist-types/commands/AssociateApplicationToEntitlementCommand.d.ts +35 -0
- package/dist-types/commands/CreateEntitlementCommand.d.ts +40 -0
- package/dist-types/commands/DeleteEntitlementCommand.d.ts +35 -0
- package/dist-types/commands/DescribeEntitlementsCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateApplicationFromEntitlementCommand.d.ts +35 -0
- package/dist-types/commands/ListEntitledApplicationsCommand.d.ts +35 -0
- package/dist-types/commands/UpdateEntitlementCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +387 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +21 -0
- package/dist-types/ts3.4/AppStream.d.ts +35 -0
- package/dist-types/ts3.4/AppStreamClient.d.ts +9 -2
- package/dist-types/ts3.4/commands/AssociateApplicationToEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeEntitlementsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateApplicationFromEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEntitledApplicationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEntitlementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +215 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +21 -0
- package/package.json +37 -44
|
@@ -12,6 +12,17 @@ export var serializeAws_json1_1AssociateApplicationFleetCommand = function (inpu
|
|
|
12
12
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
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
|
+
}); };
|
|
15
26
|
export var serializeAws_json1_1AssociateFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
16
27
|
var headers, body;
|
|
17
28
|
return __generator(this, function (_a) {
|
|
@@ -89,6 +100,17 @@ export var serializeAws_json1_1CreateDirectoryConfigCommand = function (input, c
|
|
|
89
100
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
101
|
});
|
|
91
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
|
+
}); };
|
|
92
114
|
export var serializeAws_json1_1CreateFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
93
115
|
var headers, body;
|
|
94
116
|
return __generator(this, function (_a) {
|
|
@@ -210,6 +232,17 @@ export var serializeAws_json1_1DeleteDirectoryConfigCommand = function (input, c
|
|
|
210
232
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
233
|
});
|
|
212
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
|
+
}); };
|
|
213
246
|
export var serializeAws_json1_1DeleteFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
214
247
|
var headers, body;
|
|
215
248
|
return __generator(this, function (_a) {
|
|
@@ -331,6 +364,17 @@ export var serializeAws_json1_1DescribeDirectoryConfigsCommand = function (input
|
|
|
331
364
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
332
365
|
});
|
|
333
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
|
+
}); };
|
|
334
378
|
export var serializeAws_json1_1DescribeFleetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
335
379
|
var headers, body;
|
|
336
380
|
return __generator(this, function (_a) {
|
|
@@ -452,6 +496,17 @@ export var serializeAws_json1_1DisassociateApplicationFleetCommand = function (i
|
|
|
452
496
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
453
497
|
});
|
|
454
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
|
+
}); };
|
|
455
510
|
export var serializeAws_json1_1DisassociateFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
456
511
|
var headers, body;
|
|
457
512
|
return __generator(this, function (_a) {
|
|
@@ -507,6 +562,17 @@ export var serializeAws_json1_1ListAssociatedStacksCommand = function (input, co
|
|
|
507
562
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
508
563
|
});
|
|
509
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
|
+
}); };
|
|
510
576
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
511
577
|
var headers, body;
|
|
512
578
|
return __generator(this, function (_a) {
|
|
@@ -606,6 +672,17 @@ export var serializeAws_json1_1UpdateDirectoryConfigCommand = function (input, c
|
|
|
606
672
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
607
673
|
});
|
|
608
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
|
+
}); };
|
|
609
686
|
export var serializeAws_json1_1UpdateFleetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
610
687
|
var headers, body;
|
|
611
688
|
return __generator(this, function (_a) {
|
|
@@ -727,6 +804,86 @@ var deserializeAws_json1_1AssociateApplicationFleetCommandError = function (outp
|
|
|
727
804
|
}
|
|
728
805
|
});
|
|
729
806
|
}); };
|
|
807
|
+
export var deserializeAws_json1_1AssociateApplicationToEntitlementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
808
|
+
var data, contents, response;
|
|
809
|
+
return __generator(this, function (_a) {
|
|
810
|
+
switch (_a.label) {
|
|
811
|
+
case 0:
|
|
812
|
+
if (output.statusCode >= 300) {
|
|
813
|
+
return [2, deserializeAws_json1_1AssociateApplicationToEntitlementCommandError(output, context)];
|
|
814
|
+
}
|
|
815
|
+
return [4, parseBody(output.body, context)];
|
|
816
|
+
case 1:
|
|
817
|
+
data = _a.sent();
|
|
818
|
+
contents = {};
|
|
819
|
+
contents = deserializeAws_json1_1AssociateApplicationToEntitlementResult(data, context);
|
|
820
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
821
|
+
return [2, Promise.resolve(response)];
|
|
822
|
+
}
|
|
823
|
+
});
|
|
824
|
+
}); };
|
|
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) {
|
|
830
|
+
case 0:
|
|
831
|
+
_a = [__assign({}, output)];
|
|
832
|
+
_g = {};
|
|
833
|
+
return [4, parseBody(output.body, context)];
|
|
834
|
+
case 1:
|
|
835
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
836
|
+
errorCode = "UnknownError";
|
|
837
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
|
+
_b = errorCode;
|
|
839
|
+
switch (_b) {
|
|
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];
|
|
848
|
+
}
|
|
849
|
+
return [3, 10];
|
|
850
|
+
case 2:
|
|
851
|
+
_c = [{}];
|
|
852
|
+
return [4, deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)];
|
|
853
|
+
case 3:
|
|
854
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
855
|
+
return [3, 11];
|
|
856
|
+
case 4:
|
|
857
|
+
_d = [{}];
|
|
858
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
859
|
+
case 5:
|
|
860
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
861
|
+
return [3, 11];
|
|
862
|
+
case 6:
|
|
863
|
+
_e = [{}];
|
|
864
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
865
|
+
case 7:
|
|
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
|
+
}); };
|
|
730
887
|
export var deserializeAws_json1_1AssociateFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
731
888
|
var data, contents, response;
|
|
732
889
|
return __generator(this, function (_a) {
|
|
@@ -1311,6 +1468,86 @@ var deserializeAws_json1_1CreateDirectoryConfigCommandError = function (output,
|
|
|
1311
1468
|
}
|
|
1312
1469
|
});
|
|
1313
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
|
+
}); };
|
|
1314
1551
|
export var deserializeAws_json1_1CreateFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1315
1552
|
var data, contents, response;
|
|
1316
1553
|
return __generator(this, function (_a) {
|
|
@@ -2311,6 +2548,86 @@ var deserializeAws_json1_1DeleteDirectoryConfigCommandError = function (output,
|
|
|
2311
2548
|
}
|
|
2312
2549
|
});
|
|
2313
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
|
+
}); };
|
|
2314
2631
|
export var deserializeAws_json1_1DeleteFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2315
2632
|
var data, contents, response;
|
|
2316
2633
|
return __generator(this, function (_a) {
|
|
@@ -2618,52 +2935,60 @@ export var deserializeAws_json1_1DeleteStackCommand = function (output, context)
|
|
|
2618
2935
|
});
|
|
2619
2936
|
}); };
|
|
2620
2937
|
var deserializeAws_json1_1DeleteStackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2621
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
2622
|
-
var
|
|
2623
|
-
return __generator(this, function (
|
|
2624
|
-
switch (
|
|
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) {
|
|
2625
2942
|
case 0:
|
|
2626
2943
|
_a = [__assign({}, output)];
|
|
2627
|
-
|
|
2944
|
+
_g = {};
|
|
2628
2945
|
return [4, parseBody(output.body, context)];
|
|
2629
2946
|
case 1:
|
|
2630
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2947
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2631
2948
|
errorCode = "UnknownError";
|
|
2632
2949
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2633
2950
|
_b = errorCode;
|
|
2634
2951
|
switch (_b) {
|
|
2635
2952
|
case "ConcurrentModificationException": return [3, 2];
|
|
2636
2953
|
case "com.amazonaws.appstream#ConcurrentModificationException": return [3, 2];
|
|
2637
|
-
case "
|
|
2638
|
-
case "com.amazonaws.appstream#
|
|
2639
|
-
case "
|
|
2640
|
-
case "com.amazonaws.appstream#
|
|
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];
|
|
2641
2960
|
}
|
|
2642
|
-
return [3,
|
|
2961
|
+
return [3, 10];
|
|
2643
2962
|
case 2:
|
|
2644
2963
|
_c = [{}];
|
|
2645
2964
|
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2646
2965
|
case 3:
|
|
2647
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2648
|
-
return [3,
|
|
2966
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2967
|
+
return [3, 11];
|
|
2649
2968
|
case 4:
|
|
2650
2969
|
_d = [{}];
|
|
2651
|
-
return [4,
|
|
2970
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
2652
2971
|
case 5:
|
|
2653
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2654
|
-
return [3,
|
|
2972
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2973
|
+
return [3, 11];
|
|
2655
2974
|
case 6:
|
|
2656
2975
|
_e = [{}];
|
|
2657
|
-
return [4,
|
|
2976
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2658
2977
|
case 7:
|
|
2659
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
2660
|
-
return [3,
|
|
2978
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2979
|
+
return [3, 11];
|
|
2661
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:
|
|
2662
2987
|
parsedBody = parsedOutput.body;
|
|
2663
2988
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2664
2989
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2665
|
-
|
|
2666
|
-
case
|
|
2990
|
+
_h.label = 11;
|
|
2991
|
+
case 11:
|
|
2667
2992
|
message = response.message || response.Message || errorCode;
|
|
2668
2993
|
response.message = message;
|
|
2669
2994
|
delete response.Message;
|
|
@@ -3039,6 +3364,78 @@ var deserializeAws_json1_1DescribeDirectoryConfigsCommandError = function (outpu
|
|
|
3039
3364
|
}
|
|
3040
3365
|
});
|
|
3041
3366
|
}); };
|
|
3367
|
+
export var deserializeAws_json1_1DescribeEntitlementsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3368
|
+
var data, contents, response;
|
|
3369
|
+
return __generator(this, function (_a) {
|
|
3370
|
+
switch (_a.label) {
|
|
3371
|
+
case 0:
|
|
3372
|
+
if (output.statusCode >= 300) {
|
|
3373
|
+
return [2, deserializeAws_json1_1DescribeEntitlementsCommandError(output, context)];
|
|
3374
|
+
}
|
|
3375
|
+
return [4, parseBody(output.body, context)];
|
|
3376
|
+
case 1:
|
|
3377
|
+
data = _a.sent();
|
|
3378
|
+
contents = {};
|
|
3379
|
+
contents = deserializeAws_json1_1DescribeEntitlementsResult(data, context);
|
|
3380
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3381
|
+
return [2, Promise.resolve(response)];
|
|
3382
|
+
}
|
|
3383
|
+
});
|
|
3384
|
+
}); };
|
|
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) {
|
|
3390
|
+
case 0:
|
|
3391
|
+
_a = [__assign({}, output)];
|
|
3392
|
+
_f = {};
|
|
3393
|
+
return [4, parseBody(output.body, context)];
|
|
3394
|
+
case 1:
|
|
3395
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3396
|
+
errorCode = "UnknownError";
|
|
3397
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3398
|
+
_b = errorCode;
|
|
3399
|
+
switch (_b) {
|
|
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];
|
|
3406
|
+
}
|
|
3407
|
+
return [3, 8];
|
|
3408
|
+
case 2:
|
|
3409
|
+
_c = [{}];
|
|
3410
|
+
return [4, deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)];
|
|
3411
|
+
case 3:
|
|
3412
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3413
|
+
return [3, 9];
|
|
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:
|
|
3427
|
+
parsedBody = parsedOutput.body;
|
|
3428
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3429
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3430
|
+
_g.label = 9;
|
|
3431
|
+
case 9:
|
|
3432
|
+
message = response.message || response.Message || errorCode;
|
|
3433
|
+
response.message = message;
|
|
3434
|
+
delete response.Message;
|
|
3435
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3436
|
+
}
|
|
3437
|
+
});
|
|
3438
|
+
}); };
|
|
3042
3439
|
export var deserializeAws_json1_1DescribeFleetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3043
3440
|
var data, contents, response;
|
|
3044
3441
|
return __generator(this, function (_a) {
|
|
@@ -3657,7 +4054,79 @@ export var deserializeAws_json1_1DisassociateApplicationFleetCommand = function
|
|
|
3657
4054
|
}
|
|
3658
4055
|
});
|
|
3659
4056
|
}); };
|
|
3660
|
-
var deserializeAws_json1_1DisassociateApplicationFleetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
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:
|
|
4104
|
+
message = response.message || response.Message || errorCode;
|
|
4105
|
+
response.message = message;
|
|
4106
|
+
delete response.Message;
|
|
4107
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4108
|
+
}
|
|
4109
|
+
});
|
|
4110
|
+
}); };
|
|
4111
|
+
export var deserializeAws_json1_1DisassociateApplicationFromEntitlementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4112
|
+
var data, contents, response;
|
|
4113
|
+
return __generator(this, function (_a) {
|
|
4114
|
+
switch (_a.label) {
|
|
4115
|
+
case 0:
|
|
4116
|
+
if (output.statusCode >= 300) {
|
|
4117
|
+
return [2, deserializeAws_json1_1DisassociateApplicationFromEntitlementCommandError(output, context)];
|
|
4118
|
+
}
|
|
4119
|
+
return [4, parseBody(output.body, context)];
|
|
4120
|
+
case 1:
|
|
4121
|
+
data = _a.sent();
|
|
4122
|
+
contents = {};
|
|
4123
|
+
contents = deserializeAws_json1_1DisassociateApplicationFromEntitlementResult(data, context);
|
|
4124
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4125
|
+
return [2, Promise.resolve(response)];
|
|
4126
|
+
}
|
|
4127
|
+
});
|
|
4128
|
+
}); };
|
|
4129
|
+
var deserializeAws_json1_1DisassociateApplicationFromEntitlementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3661
4130
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
3662
4131
|
var _f;
|
|
3663
4132
|
return __generator(this, function (_g) {
|
|
@@ -3672,29 +4141,29 @@ var deserializeAws_json1_1DisassociateApplicationFleetCommandError = function (o
|
|
|
3672
4141
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3673
4142
|
_b = errorCode;
|
|
3674
4143
|
switch (_b) {
|
|
3675
|
-
case "
|
|
3676
|
-
case "com.amazonaws.appstream#
|
|
3677
|
-
case "
|
|
3678
|
-
case "com.amazonaws.appstream#
|
|
3679
|
-
case "
|
|
3680
|
-
case "com.amazonaws.appstream#
|
|
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];
|
|
3681
4150
|
}
|
|
3682
4151
|
return [3, 8];
|
|
3683
4152
|
case 2:
|
|
3684
4153
|
_c = [{}];
|
|
3685
|
-
return [4,
|
|
4154
|
+
return [4, deserializeAws_json1_1EntitlementNotFoundExceptionResponse(parsedOutput, context)];
|
|
3686
4155
|
case 3:
|
|
3687
4156
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3688
4157
|
return [3, 9];
|
|
3689
4158
|
case 4:
|
|
3690
4159
|
_d = [{}];
|
|
3691
|
-
return [4,
|
|
4160
|
+
return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
3692
4161
|
case 5:
|
|
3693
4162
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3694
4163
|
return [3, 9];
|
|
3695
4164
|
case 6:
|
|
3696
4165
|
_e = [{}];
|
|
3697
|
-
return [4,
|
|
4166
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3698
4167
|
case 7:
|
|
3699
4168
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3700
4169
|
return [3, 9];
|
|
@@ -3987,6 +4456,78 @@ var deserializeAws_json1_1ListAssociatedStacksCommandError = function (output, c
|
|
|
3987
4456
|
}
|
|
3988
4457
|
});
|
|
3989
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
|
+
}); };
|
|
3990
4531
|
export var deserializeAws_json1_1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3991
4532
|
var data, contents, response;
|
|
3992
4533
|
return __generator(this, function (_a) {
|
|
@@ -4667,6 +5208,86 @@ var deserializeAws_json1_1UpdateDirectoryConfigCommandError = function (output,
|
|
|
4667
5208
|
}
|
|
4668
5209
|
});
|
|
4669
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:
|
|
5284
|
+
message = response.message || response.Message || errorCode;
|
|
5285
|
+
response.message = message;
|
|
5286
|
+
delete response.Message;
|
|
5287
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5288
|
+
}
|
|
5289
|
+
});
|
|
5290
|
+
}); };
|
|
4670
5291
|
export var deserializeAws_json1_1UpdateFleetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4671
5292
|
var data, contents, response;
|
|
4672
5293
|
return __generator(this, function (_a) {
|
|
@@ -5004,6 +5625,24 @@ var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (pa
|
|
|
5004
5625
|
return [2, contents];
|
|
5005
5626
|
});
|
|
5006
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
|
+
}); };
|
|
5007
5646
|
var deserializeAws_json1_1IncompatibleImageExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5008
5647
|
var body, deserialized, contents;
|
|
5009
5648
|
return __generator(this, function (_a) {
|
|
@@ -5143,6 +5782,11 @@ var serializeAws_json1_1AssociateApplicationFleetRequest = function (input, cont
|
|
|
5143
5782
|
return __assign(__assign({}, (input.ApplicationArn !== undefined &&
|
|
5144
5783
|
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn })), (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }));
|
|
5145
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
|
+
};
|
|
5146
5790
|
var serializeAws_json1_1AssociateFleetRequest = function (input, context) {
|
|
5147
5791
|
return __assign(__assign({}, (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
|
|
5148
5792
|
};
|
|
@@ -5209,6 +5853,12 @@ var serializeAws_json1_1CreateDirectoryConfigRequest = function (input, context)
|
|
|
5209
5853
|
ServiceAccountCredentials: serializeAws_json1_1ServiceAccountCredentials(input.ServiceAccountCredentials, context),
|
|
5210
5854
|
}));
|
|
5211
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
|
+
};
|
|
5212
5862
|
var serializeAws_json1_1CreateFleetRequest = function (input, context) {
|
|
5213
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 &&
|
|
5214
5864
|
input.ComputeCapacity !== null && {
|
|
@@ -5289,6 +5939,9 @@ var serializeAws_json1_1DeleteApplicationRequest = function (input, context) {
|
|
|
5289
5939
|
var serializeAws_json1_1DeleteDirectoryConfigRequest = function (input, context) {
|
|
5290
5940
|
return __assign({}, (input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }));
|
|
5291
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
|
+
};
|
|
5292
5945
|
var serializeAws_json1_1DeleteFleetRequest = function (input, context) {
|
|
5293
5946
|
return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
5294
5947
|
};
|
|
@@ -5328,6 +5981,9 @@ var serializeAws_json1_1DescribeDirectoryConfigsRequest = function (input, conte
|
|
|
5328
5981
|
DirectoryNames: serializeAws_json1_1DirectoryNameList(input.DirectoryNames, context),
|
|
5329
5982
|
})), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5330
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
|
+
};
|
|
5331
5987
|
var serializeAws_json1_1DescribeFleetsRequest = function (input, context) {
|
|
5332
5988
|
return __assign(__assign({}, (input.Names !== undefined &&
|
|
5333
5989
|
input.Names !== null && { Names: serializeAws_json1_1StringList(input.Names, context) })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
@@ -5383,6 +6039,11 @@ var serializeAws_json1_1DisassociateApplicationFleetRequest = function (input, c
|
|
|
5383
6039
|
return __assign(__assign({}, (input.ApplicationArn !== undefined &&
|
|
5384
6040
|
input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn })), (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }));
|
|
5385
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
|
+
};
|
|
5386
6047
|
var serializeAws_json1_1DisassociateFleetRequest = function (input, context) {
|
|
5387
6048
|
return __assign(__assign({}, (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName })), (input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }));
|
|
5388
6049
|
};
|
|
@@ -5416,6 +6077,19 @@ var serializeAws_json1_1EnableUserRequest = function (input, context) {
|
|
|
5416
6077
|
return __assign(__assign({}, (input.AuthenticationType !== undefined &&
|
|
5417
6078
|
input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
|
|
5418
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
|
+
};
|
|
5419
6093
|
var serializeAws_json1_1ExpireSessionRequest = function (input, context) {
|
|
5420
6094
|
return __assign({}, (input.SessionId !== undefined && input.SessionId !== null && { SessionId: input.SessionId }));
|
|
5421
6095
|
};
|
|
@@ -5439,6 +6113,10 @@ var serializeAws_json1_1ListAssociatedFleetsRequest = function (input, context)
|
|
|
5439
6113
|
var serializeAws_json1_1ListAssociatedStacksRequest = function (input, context) {
|
|
5440
6114
|
return __assign(__assign({}, (input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
5441
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
|
+
};
|
|
5442
6120
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
5443
6121
|
return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
5444
6122
|
};
|
|
@@ -5593,6 +6271,12 @@ var serializeAws_json1_1UpdateDirectoryConfigRequest = function (input, context)
|
|
|
5593
6271
|
ServiceAccountCredentials: serializeAws_json1_1ServiceAccountCredentials(input.ServiceAccountCredentials, context),
|
|
5594
6272
|
}));
|
|
5595
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
|
+
};
|
|
5596
6280
|
var serializeAws_json1_1UpdateFleetRequest = function (input, context) {
|
|
5597
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 &&
|
|
5598
6282
|
input.AttributesToDelete !== null && {
|
|
@@ -5803,6 +6487,9 @@ var deserializeAws_json1_1AssociateApplicationFleetResult = function (output, co
|
|
|
5803
6487
|
: undefined,
|
|
5804
6488
|
};
|
|
5805
6489
|
};
|
|
6490
|
+
var deserializeAws_json1_1AssociateApplicationToEntitlementResult = function (output, context) {
|
|
6491
|
+
return {};
|
|
6492
|
+
};
|
|
5806
6493
|
var deserializeAws_json1_1AssociateFleetResult = function (output, context) {
|
|
5807
6494
|
return {};
|
|
5808
6495
|
};
|
|
@@ -5859,6 +6546,13 @@ var deserializeAws_json1_1CreateDirectoryConfigResult = function (output, contex
|
|
|
5859
6546
|
: undefined,
|
|
5860
6547
|
};
|
|
5861
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
|
+
};
|
|
5862
6556
|
var deserializeAws_json1_1CreateFleetResult = function (output, context) {
|
|
5863
6557
|
return {
|
|
5864
6558
|
Fleet: output.Fleet !== undefined && output.Fleet !== null
|
|
@@ -5922,6 +6616,9 @@ var deserializeAws_json1_1DeleteApplicationResult = function (output, context) {
|
|
|
5922
6616
|
var deserializeAws_json1_1DeleteDirectoryConfigResult = function (output, context) {
|
|
5923
6617
|
return {};
|
|
5924
6618
|
};
|
|
6619
|
+
var deserializeAws_json1_1DeleteEntitlementResult = function (output, context) {
|
|
6620
|
+
return {};
|
|
6621
|
+
};
|
|
5925
6622
|
var deserializeAws_json1_1DeleteFleetResult = function (output, context) {
|
|
5926
6623
|
return {};
|
|
5927
6624
|
};
|
|
@@ -5983,6 +6680,14 @@ var deserializeAws_json1_1DescribeDirectoryConfigsResult = function (output, con
|
|
|
5983
6680
|
NextToken: __expectString(output.NextToken),
|
|
5984
6681
|
};
|
|
5985
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
|
+
};
|
|
5986
6691
|
var deserializeAws_json1_1DescribeFleetsResult = function (output, context) {
|
|
5987
6692
|
return {
|
|
5988
6693
|
Fleets: output.Fleets !== undefined && output.Fleets !== null
|
|
@@ -6086,6 +6791,9 @@ var deserializeAws_json1_1DisableUserResult = function (output, context) {
|
|
|
6086
6791
|
var deserializeAws_json1_1DisassociateApplicationFleetResult = function (output, context) {
|
|
6087
6792
|
return {};
|
|
6088
6793
|
};
|
|
6794
|
+
var deserializeAws_json1_1DisassociateApplicationFromEntitlementResult = function (output, context) {
|
|
6795
|
+
return {};
|
|
6796
|
+
};
|
|
6089
6797
|
var deserializeAws_json1_1DisassociateFleetResult = function (output, context) {
|
|
6090
6798
|
return {};
|
|
6091
6799
|
};
|
|
@@ -6118,6 +6826,74 @@ var deserializeAws_json1_1EmbedHostDomains = function (output, context) {
|
|
|
6118
6826
|
var deserializeAws_json1_1EnableUserResult = function (output, context) {
|
|
6119
6827
|
return {};
|
|
6120
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
|
+
};
|
|
6121
6897
|
var deserializeAws_json1_1ExpireSessionResult = function (output, context) {
|
|
6122
6898
|
return {};
|
|
6123
6899
|
};
|
|
@@ -6350,6 +7126,14 @@ var deserializeAws_json1_1ListAssociatedStacksResult = function (output, context
|
|
|
6350
7126
|
NextToken: __expectString(output.NextToken),
|
|
6351
7127
|
};
|
|
6352
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
|
+
};
|
|
6353
7137
|
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
6354
7138
|
return {
|
|
6355
7139
|
Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
@@ -6666,6 +7450,13 @@ var deserializeAws_json1_1UpdateDirectoryConfigResult = function (output, contex
|
|
|
6666
7450
|
: undefined,
|
|
6667
7451
|
};
|
|
6668
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
|
+
};
|
|
6669
7460
|
var deserializeAws_json1_1UpdateFleetResult = function (output, context) {
|
|
6670
7461
|
return {
|
|
6671
7462
|
Fleet: output.Fleet !== undefined && output.Fleet !== null
|