@aws-sdk/client-rekognition 3.142.0 → 3.151.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 +27 -0
- package/README.md +25 -0
- package/dist-cjs/Rekognition.js +60 -0
- package/dist-cjs/commands/CopyProjectVersionCommand.js +36 -0
- package/dist-cjs/commands/DeleteProjectPolicyCommand.js +36 -0
- package/dist-cjs/commands/ListProjectPoliciesCommand.js +36 -0
- package/dist-cjs/commands/PutProjectPolicyCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +111 -40
- package/dist-cjs/pagination/ListProjectPoliciesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +381 -3
- package/dist-es/Rekognition.js +60 -0
- package/dist-es/commands/CopyProjectVersionCommand.js +39 -0
- package/dist-es/commands/DeleteProjectPolicyCommand.js +39 -0
- package/dist-es/commands/ListProjectPoliciesCommand.js +39 -0
- package/dist-es/commands/PutProjectPolicyCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +86 -44
- package/dist-es/pagination/ListProjectPoliciesPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +460 -1
- package/dist-types/Rekognition.d.ts +97 -4
- package/dist-types/RekognitionClient.d.ts +31 -2
- package/dist-types/commands/CopyProjectVersionCommand.d.ts +56 -0
- package/dist-types/commands/DeleteProjectCommand.d.ts +5 -4
- package/dist-types/commands/DeleteProjectPolicyCommand.d.ts +36 -0
- package/dist-types/commands/ListProjectPoliciesCommand.d.ts +36 -0
- package/dist-types/commands/PutProjectPolicyCommand.d.ts +51 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +329 -88
- package/dist-types/pagination/ListProjectPoliciesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/ts3.4/Rekognition.d.ts +20 -0
- package/dist-types/ts3.4/RekognitionClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/CopyProjectVersionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteProjectPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListProjectPoliciesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutProjectPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +169 -51
- package/dist-types/ts3.4/pagination/ListProjectPoliciesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +8 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, LazyJsonString as __LazyJsonString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { AccessDeniedException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, ImageTooLargeException, InternalServerError, InvalidImageFormatException, InvalidPaginationTokenException, InvalidParameterException, InvalidS3ObjectException, LimitExceededException, ProvisionedThroughputExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, ThrottlingException, VideoTooLargeException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, ImageTooLargeException, InternalServerError, InvalidImageFormatException, InvalidPaginationTokenException, InvalidParameterException, InvalidPolicyRevisionIdException, InvalidS3ObjectException, LimitExceededException, MalformedPolicyDocumentException, ProvisionedThroughputExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceQuotaExceededException, ThrottlingException, VideoTooLargeException, } from "../models/models_0";
|
|
5
5
|
import { RekognitionServiceException as __BaseException } from "../models/RekognitionServiceException";
|
|
6
6
|
export var serializeAws_json1_1CompareFacesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
7
|
var headers, body;
|
|
@@ -14,6 +14,17 @@ export var serializeAws_json1_1CompareFacesCommand = function (input, context) {
|
|
|
14
14
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
15
|
});
|
|
16
16
|
}); };
|
|
17
|
+
export var serializeAws_json1_1CopyProjectVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18
|
+
var headers, body;
|
|
19
|
+
return __generator(this, function (_a) {
|
|
20
|
+
headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.1",
|
|
22
|
+
"x-amz-target": "RekognitionService.CopyProjectVersion",
|
|
23
|
+
};
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_1CopyProjectVersionRequest(input, context));
|
|
25
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
26
|
+
});
|
|
27
|
+
}); };
|
|
17
28
|
export var serializeAws_json1_1CreateCollectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18
29
|
var headers, body;
|
|
19
30
|
return __generator(this, function (_a) {
|
|
@@ -113,6 +124,17 @@ export var serializeAws_json1_1DeleteProjectCommand = function (input, context)
|
|
|
113
124
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
125
|
});
|
|
115
126
|
}); };
|
|
127
|
+
export var serializeAws_json1_1DeleteProjectPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
+
var headers, body;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.1",
|
|
132
|
+
"x-amz-target": "RekognitionService.DeleteProjectPolicy",
|
|
133
|
+
};
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_1DeleteProjectPolicyRequest(input, context));
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
116
138
|
export var serializeAws_json1_1DeleteProjectVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
139
|
var headers, body;
|
|
118
140
|
return __generator(this, function (_a) {
|
|
@@ -421,6 +443,17 @@ export var serializeAws_json1_1ListFacesCommand = function (input, context) { re
|
|
|
421
443
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
422
444
|
});
|
|
423
445
|
}); };
|
|
446
|
+
export var serializeAws_json1_1ListProjectPoliciesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
447
|
+
var headers, body;
|
|
448
|
+
return __generator(this, function (_a) {
|
|
449
|
+
headers = {
|
|
450
|
+
"content-type": "application/x-amz-json-1.1",
|
|
451
|
+
"x-amz-target": "RekognitionService.ListProjectPolicies",
|
|
452
|
+
};
|
|
453
|
+
body = JSON.stringify(serializeAws_json1_1ListProjectPoliciesRequest(input, context));
|
|
454
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
455
|
+
});
|
|
456
|
+
}); };
|
|
424
457
|
export var serializeAws_json1_1ListStreamProcessorsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
425
458
|
var headers, body;
|
|
426
459
|
return __generator(this, function (_a) {
|
|
@@ -443,6 +476,17 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
443
476
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
444
477
|
});
|
|
445
478
|
}); };
|
|
479
|
+
export var serializeAws_json1_1PutProjectPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
480
|
+
var headers, body;
|
|
481
|
+
return __generator(this, function (_a) {
|
|
482
|
+
headers = {
|
|
483
|
+
"content-type": "application/x-amz-json-1.1",
|
|
484
|
+
"x-amz-target": "RekognitionService.PutProjectPolicy",
|
|
485
|
+
};
|
|
486
|
+
body = JSON.stringify(serializeAws_json1_1PutProjectPolicyRequest(input, context));
|
|
487
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
488
|
+
});
|
|
489
|
+
}); };
|
|
446
490
|
export var serializeAws_json1_1RecognizeCelebritiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
447
491
|
var headers, body;
|
|
448
492
|
return __generator(this, function (_a) {
|
|
@@ -731,6 +775,89 @@ var deserializeAws_json1_1CompareFacesCommandError = function (output, context)
|
|
|
731
775
|
}
|
|
732
776
|
});
|
|
733
777
|
}); };
|
|
778
|
+
export var deserializeAws_json1_1CopyProjectVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
779
|
+
var data, contents, response;
|
|
780
|
+
return __generator(this, function (_a) {
|
|
781
|
+
switch (_a.label) {
|
|
782
|
+
case 0:
|
|
783
|
+
if (output.statusCode >= 300) {
|
|
784
|
+
return [2, deserializeAws_json1_1CopyProjectVersionCommandError(output, context)];
|
|
785
|
+
}
|
|
786
|
+
return [4, parseBody(output.body, context)];
|
|
787
|
+
case 1:
|
|
788
|
+
data = _a.sent();
|
|
789
|
+
contents = {};
|
|
790
|
+
contents = deserializeAws_json1_1CopyProjectVersionResponse(data, context);
|
|
791
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
792
|
+
return [2, Promise.resolve(response)];
|
|
793
|
+
}
|
|
794
|
+
});
|
|
795
|
+
}); };
|
|
796
|
+
var deserializeAws_json1_1CopyProjectVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
797
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
798
|
+
var _c;
|
|
799
|
+
return __generator(this, function (_d) {
|
|
800
|
+
switch (_d.label) {
|
|
801
|
+
case 0:
|
|
802
|
+
_a = [__assign({}, output)];
|
|
803
|
+
_c = {};
|
|
804
|
+
return [4, parseBody(output.body, context)];
|
|
805
|
+
case 1:
|
|
806
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
807
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
|
+
_b = errorCode;
|
|
809
|
+
switch (_b) {
|
|
810
|
+
case "AccessDeniedException": return [3, 2];
|
|
811
|
+
case "com.amazonaws.rekognition#AccessDeniedException": return [3, 2];
|
|
812
|
+
case "InternalServerError": return [3, 4];
|
|
813
|
+
case "com.amazonaws.rekognition#InternalServerError": return [3, 4];
|
|
814
|
+
case "InvalidParameterException": return [3, 6];
|
|
815
|
+
case "com.amazonaws.rekognition#InvalidParameterException": return [3, 6];
|
|
816
|
+
case "LimitExceededException": return [3, 8];
|
|
817
|
+
case "com.amazonaws.rekognition#LimitExceededException": return [3, 8];
|
|
818
|
+
case "ProvisionedThroughputExceededException": return [3, 10];
|
|
819
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3, 10];
|
|
820
|
+
case "ResourceInUseException": return [3, 12];
|
|
821
|
+
case "com.amazonaws.rekognition#ResourceInUseException": return [3, 12];
|
|
822
|
+
case "ResourceNotFoundException": return [3, 14];
|
|
823
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException": return [3, 14];
|
|
824
|
+
case "ServiceQuotaExceededException": return [3, 16];
|
|
825
|
+
case "com.amazonaws.rekognition#ServiceQuotaExceededException": return [3, 16];
|
|
826
|
+
case "ThrottlingException": return [3, 18];
|
|
827
|
+
case "com.amazonaws.rekognition#ThrottlingException": return [3, 18];
|
|
828
|
+
}
|
|
829
|
+
return [3, 20];
|
|
830
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
831
|
+
case 3: throw _d.sent();
|
|
832
|
+
case 4: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
833
|
+
case 5: throw _d.sent();
|
|
834
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
835
|
+
case 7: throw _d.sent();
|
|
836
|
+
case 8: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
837
|
+
case 9: throw _d.sent();
|
|
838
|
+
case 10: return [4, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
|
|
839
|
+
case 11: throw _d.sent();
|
|
840
|
+
case 12: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
841
|
+
case 13: throw _d.sent();
|
|
842
|
+
case 14: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
843
|
+
case 15: throw _d.sent();
|
|
844
|
+
case 16: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
845
|
+
case 17: throw _d.sent();
|
|
846
|
+
case 18: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
847
|
+
case 19: throw _d.sent();
|
|
848
|
+
case 20:
|
|
849
|
+
parsedBody = parsedOutput.body;
|
|
850
|
+
throwDefaultError({
|
|
851
|
+
output: output,
|
|
852
|
+
parsedBody: parsedBody,
|
|
853
|
+
exceptionCtor: __BaseException,
|
|
854
|
+
errorCode: errorCode,
|
|
855
|
+
});
|
|
856
|
+
_d.label = 21;
|
|
857
|
+
case 21: return [2];
|
|
858
|
+
}
|
|
859
|
+
});
|
|
860
|
+
}); };
|
|
734
861
|
export var deserializeAws_json1_1CreateCollectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
735
862
|
var data, contents, response;
|
|
736
863
|
return __generator(this, function (_a) {
|
|
@@ -1422,6 +1549,81 @@ var deserializeAws_json1_1DeleteProjectCommandError = function (output, context)
|
|
|
1422
1549
|
}
|
|
1423
1550
|
});
|
|
1424
1551
|
}); };
|
|
1552
|
+
export var deserializeAws_json1_1DeleteProjectPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1553
|
+
var data, contents, response;
|
|
1554
|
+
return __generator(this, function (_a) {
|
|
1555
|
+
switch (_a.label) {
|
|
1556
|
+
case 0:
|
|
1557
|
+
if (output.statusCode >= 300) {
|
|
1558
|
+
return [2, deserializeAws_json1_1DeleteProjectPolicyCommandError(output, context)];
|
|
1559
|
+
}
|
|
1560
|
+
return [4, parseBody(output.body, context)];
|
|
1561
|
+
case 1:
|
|
1562
|
+
data = _a.sent();
|
|
1563
|
+
contents = {};
|
|
1564
|
+
contents = deserializeAws_json1_1DeleteProjectPolicyResponse(data, context);
|
|
1565
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1566
|
+
return [2, Promise.resolve(response)];
|
|
1567
|
+
}
|
|
1568
|
+
});
|
|
1569
|
+
}); };
|
|
1570
|
+
var deserializeAws_json1_1DeleteProjectPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1571
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1572
|
+
var _c;
|
|
1573
|
+
return __generator(this, function (_d) {
|
|
1574
|
+
switch (_d.label) {
|
|
1575
|
+
case 0:
|
|
1576
|
+
_a = [__assign({}, output)];
|
|
1577
|
+
_c = {};
|
|
1578
|
+
return [4, parseBody(output.body, context)];
|
|
1579
|
+
case 1:
|
|
1580
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1581
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
|
+
_b = errorCode;
|
|
1583
|
+
switch (_b) {
|
|
1584
|
+
case "AccessDeniedException": return [3, 2];
|
|
1585
|
+
case "com.amazonaws.rekognition#AccessDeniedException": return [3, 2];
|
|
1586
|
+
case "InternalServerError": return [3, 4];
|
|
1587
|
+
case "com.amazonaws.rekognition#InternalServerError": return [3, 4];
|
|
1588
|
+
case "InvalidParameterException": return [3, 6];
|
|
1589
|
+
case "com.amazonaws.rekognition#InvalidParameterException": return [3, 6];
|
|
1590
|
+
case "InvalidPolicyRevisionIdException": return [3, 8];
|
|
1591
|
+
case "com.amazonaws.rekognition#InvalidPolicyRevisionIdException": return [3, 8];
|
|
1592
|
+
case "ProvisionedThroughputExceededException": return [3, 10];
|
|
1593
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3, 10];
|
|
1594
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1595
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException": return [3, 12];
|
|
1596
|
+
case "ThrottlingException": return [3, 14];
|
|
1597
|
+
case "com.amazonaws.rekognition#ThrottlingException": return [3, 14];
|
|
1598
|
+
}
|
|
1599
|
+
return [3, 16];
|
|
1600
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1601
|
+
case 3: throw _d.sent();
|
|
1602
|
+
case 4: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1603
|
+
case 5: throw _d.sent();
|
|
1604
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1605
|
+
case 7: throw _d.sent();
|
|
1606
|
+
case 8: return [4, deserializeAws_json1_1InvalidPolicyRevisionIdExceptionResponse(parsedOutput, context)];
|
|
1607
|
+
case 9: throw _d.sent();
|
|
1608
|
+
case 10: return [4, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
|
|
1609
|
+
case 11: throw _d.sent();
|
|
1610
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1611
|
+
case 13: throw _d.sent();
|
|
1612
|
+
case 14: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1613
|
+
case 15: throw _d.sent();
|
|
1614
|
+
case 16:
|
|
1615
|
+
parsedBody = parsedOutput.body;
|
|
1616
|
+
throwDefaultError({
|
|
1617
|
+
output: output,
|
|
1618
|
+
parsedBody: parsedBody,
|
|
1619
|
+
exceptionCtor: __BaseException,
|
|
1620
|
+
errorCode: errorCode,
|
|
1621
|
+
});
|
|
1622
|
+
_d.label = 17;
|
|
1623
|
+
case 17: return [2];
|
|
1624
|
+
}
|
|
1625
|
+
});
|
|
1626
|
+
}); };
|
|
1425
1627
|
export var deserializeAws_json1_1DeleteProjectVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1426
1628
|
var data, contents, response;
|
|
1427
1629
|
return __generator(this, function (_a) {
|
|
@@ -3570,6 +3772,81 @@ var deserializeAws_json1_1ListFacesCommandError = function (output, context) { r
|
|
|
3570
3772
|
}
|
|
3571
3773
|
});
|
|
3572
3774
|
}); };
|
|
3775
|
+
export var deserializeAws_json1_1ListProjectPoliciesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3776
|
+
var data, contents, response;
|
|
3777
|
+
return __generator(this, function (_a) {
|
|
3778
|
+
switch (_a.label) {
|
|
3779
|
+
case 0:
|
|
3780
|
+
if (output.statusCode >= 300) {
|
|
3781
|
+
return [2, deserializeAws_json1_1ListProjectPoliciesCommandError(output, context)];
|
|
3782
|
+
}
|
|
3783
|
+
return [4, parseBody(output.body, context)];
|
|
3784
|
+
case 1:
|
|
3785
|
+
data = _a.sent();
|
|
3786
|
+
contents = {};
|
|
3787
|
+
contents = deserializeAws_json1_1ListProjectPoliciesResponse(data, context);
|
|
3788
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3789
|
+
return [2, Promise.resolve(response)];
|
|
3790
|
+
}
|
|
3791
|
+
});
|
|
3792
|
+
}); };
|
|
3793
|
+
var deserializeAws_json1_1ListProjectPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3794
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3795
|
+
var _c;
|
|
3796
|
+
return __generator(this, function (_d) {
|
|
3797
|
+
switch (_d.label) {
|
|
3798
|
+
case 0:
|
|
3799
|
+
_a = [__assign({}, output)];
|
|
3800
|
+
_c = {};
|
|
3801
|
+
return [4, parseBody(output.body, context)];
|
|
3802
|
+
case 1:
|
|
3803
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3804
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3805
|
+
_b = errorCode;
|
|
3806
|
+
switch (_b) {
|
|
3807
|
+
case "AccessDeniedException": return [3, 2];
|
|
3808
|
+
case "com.amazonaws.rekognition#AccessDeniedException": return [3, 2];
|
|
3809
|
+
case "InternalServerError": return [3, 4];
|
|
3810
|
+
case "com.amazonaws.rekognition#InternalServerError": return [3, 4];
|
|
3811
|
+
case "InvalidPaginationTokenException": return [3, 6];
|
|
3812
|
+
case "com.amazonaws.rekognition#InvalidPaginationTokenException": return [3, 6];
|
|
3813
|
+
case "InvalidParameterException": return [3, 8];
|
|
3814
|
+
case "com.amazonaws.rekognition#InvalidParameterException": return [3, 8];
|
|
3815
|
+
case "ProvisionedThroughputExceededException": return [3, 10];
|
|
3816
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3, 10];
|
|
3817
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
3818
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException": return [3, 12];
|
|
3819
|
+
case "ThrottlingException": return [3, 14];
|
|
3820
|
+
case "com.amazonaws.rekognition#ThrottlingException": return [3, 14];
|
|
3821
|
+
}
|
|
3822
|
+
return [3, 16];
|
|
3823
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3824
|
+
case 3: throw _d.sent();
|
|
3825
|
+
case 4: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
3826
|
+
case 5: throw _d.sent();
|
|
3827
|
+
case 6: return [4, deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context)];
|
|
3828
|
+
case 7: throw _d.sent();
|
|
3829
|
+
case 8: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3830
|
+
case 9: throw _d.sent();
|
|
3831
|
+
case 10: return [4, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
|
|
3832
|
+
case 11: throw _d.sent();
|
|
3833
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3834
|
+
case 13: throw _d.sent();
|
|
3835
|
+
case 14: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3836
|
+
case 15: throw _d.sent();
|
|
3837
|
+
case 16:
|
|
3838
|
+
parsedBody = parsedOutput.body;
|
|
3839
|
+
throwDefaultError({
|
|
3840
|
+
output: output,
|
|
3841
|
+
parsedBody: parsedBody,
|
|
3842
|
+
exceptionCtor: __BaseException,
|
|
3843
|
+
errorCode: errorCode,
|
|
3844
|
+
});
|
|
3845
|
+
_d.label = 17;
|
|
3846
|
+
case 17: return [2];
|
|
3847
|
+
}
|
|
3848
|
+
});
|
|
3849
|
+
}); };
|
|
3573
3850
|
export var deserializeAws_json1_1ListStreamProcessorsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3574
3851
|
var data, contents, response;
|
|
3575
3852
|
return __generator(this, function (_a) {
|
|
@@ -3712,6 +3989,97 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
3712
3989
|
}
|
|
3713
3990
|
});
|
|
3714
3991
|
}); };
|
|
3992
|
+
export var deserializeAws_json1_1PutProjectPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3993
|
+
var data, contents, response;
|
|
3994
|
+
return __generator(this, function (_a) {
|
|
3995
|
+
switch (_a.label) {
|
|
3996
|
+
case 0:
|
|
3997
|
+
if (output.statusCode >= 300) {
|
|
3998
|
+
return [2, deserializeAws_json1_1PutProjectPolicyCommandError(output, context)];
|
|
3999
|
+
}
|
|
4000
|
+
return [4, parseBody(output.body, context)];
|
|
4001
|
+
case 1:
|
|
4002
|
+
data = _a.sent();
|
|
4003
|
+
contents = {};
|
|
4004
|
+
contents = deserializeAws_json1_1PutProjectPolicyResponse(data, context);
|
|
4005
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4006
|
+
return [2, Promise.resolve(response)];
|
|
4007
|
+
}
|
|
4008
|
+
});
|
|
4009
|
+
}); };
|
|
4010
|
+
var deserializeAws_json1_1PutProjectPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4011
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4012
|
+
var _c;
|
|
4013
|
+
return __generator(this, function (_d) {
|
|
4014
|
+
switch (_d.label) {
|
|
4015
|
+
case 0:
|
|
4016
|
+
_a = [__assign({}, output)];
|
|
4017
|
+
_c = {};
|
|
4018
|
+
return [4, parseBody(output.body, context)];
|
|
4019
|
+
case 1:
|
|
4020
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4021
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4022
|
+
_b = errorCode;
|
|
4023
|
+
switch (_b) {
|
|
4024
|
+
case "AccessDeniedException": return [3, 2];
|
|
4025
|
+
case "com.amazonaws.rekognition#AccessDeniedException": return [3, 2];
|
|
4026
|
+
case "InternalServerError": return [3, 4];
|
|
4027
|
+
case "com.amazonaws.rekognition#InternalServerError": return [3, 4];
|
|
4028
|
+
case "InvalidParameterException": return [3, 6];
|
|
4029
|
+
case "com.amazonaws.rekognition#InvalidParameterException": return [3, 6];
|
|
4030
|
+
case "InvalidPolicyRevisionIdException": return [3, 8];
|
|
4031
|
+
case "com.amazonaws.rekognition#InvalidPolicyRevisionIdException": return [3, 8];
|
|
4032
|
+
case "LimitExceededException": return [3, 10];
|
|
4033
|
+
case "com.amazonaws.rekognition#LimitExceededException": return [3, 10];
|
|
4034
|
+
case "MalformedPolicyDocumentException": return [3, 12];
|
|
4035
|
+
case "com.amazonaws.rekognition#MalformedPolicyDocumentException": return [3, 12];
|
|
4036
|
+
case "ProvisionedThroughputExceededException": return [3, 14];
|
|
4037
|
+
case "com.amazonaws.rekognition#ProvisionedThroughputExceededException": return [3, 14];
|
|
4038
|
+
case "ResourceAlreadyExistsException": return [3, 16];
|
|
4039
|
+
case "com.amazonaws.rekognition#ResourceAlreadyExistsException": return [3, 16];
|
|
4040
|
+
case "ResourceNotFoundException": return [3, 18];
|
|
4041
|
+
case "com.amazonaws.rekognition#ResourceNotFoundException": return [3, 18];
|
|
4042
|
+
case "ServiceQuotaExceededException": return [3, 20];
|
|
4043
|
+
case "com.amazonaws.rekognition#ServiceQuotaExceededException": return [3, 20];
|
|
4044
|
+
case "ThrottlingException": return [3, 22];
|
|
4045
|
+
case "com.amazonaws.rekognition#ThrottlingException": return [3, 22];
|
|
4046
|
+
}
|
|
4047
|
+
return [3, 24];
|
|
4048
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4049
|
+
case 3: throw _d.sent();
|
|
4050
|
+
case 4: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
4051
|
+
case 5: throw _d.sent();
|
|
4052
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
4053
|
+
case 7: throw _d.sent();
|
|
4054
|
+
case 8: return [4, deserializeAws_json1_1InvalidPolicyRevisionIdExceptionResponse(parsedOutput, context)];
|
|
4055
|
+
case 9: throw _d.sent();
|
|
4056
|
+
case 10: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
4057
|
+
case 11: throw _d.sent();
|
|
4058
|
+
case 12: return [4, deserializeAws_json1_1MalformedPolicyDocumentExceptionResponse(parsedOutput, context)];
|
|
4059
|
+
case 13: throw _d.sent();
|
|
4060
|
+
case 14: return [4, deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context)];
|
|
4061
|
+
case 15: throw _d.sent();
|
|
4062
|
+
case 16: return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
4063
|
+
case 17: throw _d.sent();
|
|
4064
|
+
case 18: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4065
|
+
case 19: throw _d.sent();
|
|
4066
|
+
case 20: return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
4067
|
+
case 21: throw _d.sent();
|
|
4068
|
+
case 22: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4069
|
+
case 23: throw _d.sent();
|
|
4070
|
+
case 24:
|
|
4071
|
+
parsedBody = parsedOutput.body;
|
|
4072
|
+
throwDefaultError({
|
|
4073
|
+
output: output,
|
|
4074
|
+
parsedBody: parsedBody,
|
|
4075
|
+
exceptionCtor: __BaseException,
|
|
4076
|
+
errorCode: errorCode,
|
|
4077
|
+
});
|
|
4078
|
+
_d.label = 25;
|
|
4079
|
+
case 25: return [2];
|
|
4080
|
+
}
|
|
4081
|
+
});
|
|
4082
|
+
}); };
|
|
3715
4083
|
export var deserializeAws_json1_1RecognizeCelebritiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3716
4084
|
var data, contents, response;
|
|
3717
4085
|
return __generator(this, function (_a) {
|
|
@@ -5285,6 +5653,15 @@ var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOu
|
|
|
5285
5653
|
return [2, __decorateServiceException(exception, body)];
|
|
5286
5654
|
});
|
|
5287
5655
|
}); };
|
|
5656
|
+
var deserializeAws_json1_1InvalidPolicyRevisionIdExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5657
|
+
var body, deserialized, exception;
|
|
5658
|
+
return __generator(this, function (_a) {
|
|
5659
|
+
body = parsedOutput.body;
|
|
5660
|
+
deserialized = deserializeAws_json1_1InvalidPolicyRevisionIdException(body, context);
|
|
5661
|
+
exception = new InvalidPolicyRevisionIdException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
5662
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5663
|
+
});
|
|
5664
|
+
}); };
|
|
5288
5665
|
var deserializeAws_json1_1InvalidS3ObjectExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5289
5666
|
var body, deserialized, exception;
|
|
5290
5667
|
return __generator(this, function (_a) {
|
|
@@ -5303,6 +5680,15 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
5303
5680
|
return [2, __decorateServiceException(exception, body)];
|
|
5304
5681
|
});
|
|
5305
5682
|
}); };
|
|
5683
|
+
var deserializeAws_json1_1MalformedPolicyDocumentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5684
|
+
var body, deserialized, exception;
|
|
5685
|
+
return __generator(this, function (_a) {
|
|
5686
|
+
body = parsedOutput.body;
|
|
5687
|
+
deserialized = deserializeAws_json1_1MalformedPolicyDocumentException(body, context);
|
|
5688
|
+
exception = new MalformedPolicyDocumentException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
5689
|
+
return [2, __decorateServiceException(exception, body)];
|
|
5690
|
+
});
|
|
5691
|
+
}); };
|
|
5306
5692
|
var deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5307
5693
|
var body, deserialized, exception;
|
|
5308
5694
|
return __generator(this, function (_a) {
|
|
@@ -5425,6 +5811,9 @@ var serializeAws_json1_1ContentClassifiers = function (input, context) {
|
|
|
5425
5811
|
return entry;
|
|
5426
5812
|
});
|
|
5427
5813
|
};
|
|
5814
|
+
var serializeAws_json1_1CopyProjectVersionRequest = function (input, context) {
|
|
5815
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DestinationProjectArn != null && { DestinationProjectArn: input.DestinationProjectArn })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) })), (input.SourceProjectArn != null && { SourceProjectArn: input.SourceProjectArn })), (input.SourceProjectVersionArn != null && { SourceProjectVersionArn: input.SourceProjectVersionArn })), (input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) })), (input.VersionName != null && { VersionName: input.VersionName }));
|
|
5816
|
+
};
|
|
5428
5817
|
var serializeAws_json1_1CreateCollectionRequest = function (input, context) {
|
|
5429
5818
|
return __assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }));
|
|
5430
5819
|
};
|
|
@@ -5472,6 +5861,9 @@ var serializeAws_json1_1DeleteDatasetRequest = function (input, context) {
|
|
|
5472
5861
|
var serializeAws_json1_1DeleteFacesRequest = function (input, context) {
|
|
5473
5862
|
return __assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.FaceIds != null && { FaceIds: serializeAws_json1_1FaceIdList(input.FaceIds, context) }));
|
|
5474
5863
|
};
|
|
5864
|
+
var serializeAws_json1_1DeleteProjectPolicyRequest = function (input, context) {
|
|
5865
|
+
return __assign(__assign(__assign({}, (input.PolicyName != null && { PolicyName: input.PolicyName })), (input.PolicyRevisionId != null && { PolicyRevisionId: input.PolicyRevisionId })), (input.ProjectArn != null && { ProjectArn: input.ProjectArn }));
|
|
5866
|
+
};
|
|
5475
5867
|
var serializeAws_json1_1DeleteProjectRequest = function (input, context) {
|
|
5476
5868
|
return __assign({}, (input.ProjectArn != null && { ProjectArn: input.ProjectArn }));
|
|
5477
5869
|
};
|
|
@@ -5622,6 +6014,9 @@ var serializeAws_json1_1ListDatasetLabelsRequest = function (input, context) {
|
|
|
5622
6014
|
var serializeAws_json1_1ListFacesRequest = function (input, context) {
|
|
5623
6015
|
return __assign(__assign(__assign({}, (input.CollectionId != null && { CollectionId: input.CollectionId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5624
6016
|
};
|
|
6017
|
+
var serializeAws_json1_1ListProjectPoliciesRequest = function (input, context) {
|
|
6018
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ProjectArn != null && { ProjectArn: input.ProjectArn }));
|
|
6019
|
+
};
|
|
5625
6020
|
var serializeAws_json1_1ListStreamProcessorsRequest = function (input, context) {
|
|
5626
6021
|
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
5627
6022
|
};
|
|
@@ -5663,6 +6058,9 @@ var serializeAws_json1_1ProtectiveEquipmentTypes = function (input, context) {
|
|
|
5663
6058
|
return entry;
|
|
5664
6059
|
});
|
|
5665
6060
|
};
|
|
6061
|
+
var serializeAws_json1_1PutProjectPolicyRequest = function (input, context) {
|
|
6062
|
+
return __assign(__assign(__assign(__assign({}, (input.PolicyDocument != null && { PolicyDocument: input.PolicyDocument })), (input.PolicyName != null && { PolicyName: input.PolicyName })), (input.PolicyRevisionId != null && { PolicyRevisionId: input.PolicyRevisionId })), (input.ProjectArn != null && { ProjectArn: input.ProjectArn }));
|
|
6063
|
+
};
|
|
5666
6064
|
var serializeAws_json1_1RecognizeCelebritiesRequest = function (input, context) {
|
|
5667
6065
|
return __assign({}, (input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }));
|
|
5668
6066
|
};
|
|
@@ -6105,6 +6503,11 @@ var deserializeAws_json1_1ContentModerationDetections = function (output, contex
|
|
|
6105
6503
|
});
|
|
6106
6504
|
return retVal;
|
|
6107
6505
|
};
|
|
6506
|
+
var deserializeAws_json1_1CopyProjectVersionResponse = function (output, context) {
|
|
6507
|
+
return {
|
|
6508
|
+
ProjectVersionArn: __expectString(output.ProjectVersionArn),
|
|
6509
|
+
};
|
|
6510
|
+
};
|
|
6108
6511
|
var deserializeAws_json1_1CoversBodyPart = function (output, context) {
|
|
6109
6512
|
return {
|
|
6110
6513
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
@@ -6248,6 +6651,9 @@ var deserializeAws_json1_1DeleteFacesResponse = function (output, context) {
|
|
|
6248
6651
|
DeletedFaces: output.DeletedFaces != null ? deserializeAws_json1_1FaceIdList(output.DeletedFaces, context) : undefined,
|
|
6249
6652
|
};
|
|
6250
6653
|
};
|
|
6654
|
+
var deserializeAws_json1_1DeleteProjectPolicyResponse = function (output, context) {
|
|
6655
|
+
return {};
|
|
6656
|
+
};
|
|
6251
6657
|
var deserializeAws_json1_1DeleteProjectResponse = function (output, context) {
|
|
6252
6658
|
return {
|
|
6253
6659
|
Status: __expectString(output.Status),
|
|
@@ -6765,6 +7171,13 @@ var deserializeAws_json1_1InvalidParameterException = function (output, context)
|
|
|
6765
7171
|
Message: __expectString(output.Message),
|
|
6766
7172
|
};
|
|
6767
7173
|
};
|
|
7174
|
+
var deserializeAws_json1_1InvalidPolicyRevisionIdException = function (output, context) {
|
|
7175
|
+
return {
|
|
7176
|
+
Code: __expectString(output.Code),
|
|
7177
|
+
Logref: __expectString(output.Logref),
|
|
7178
|
+
Message: __expectString(output.Message),
|
|
7179
|
+
};
|
|
7180
|
+
};
|
|
6768
7181
|
var deserializeAws_json1_1InvalidS3ObjectException = function (output, context) {
|
|
6769
7182
|
return {
|
|
6770
7183
|
Code: __expectString(output.Code),
|
|
@@ -6878,6 +7291,14 @@ var deserializeAws_json1_1ListFacesResponse = function (output, context) {
|
|
|
6878
7291
|
NextToken: __expectString(output.NextToken),
|
|
6879
7292
|
};
|
|
6880
7293
|
};
|
|
7294
|
+
var deserializeAws_json1_1ListProjectPoliciesResponse = function (output, context) {
|
|
7295
|
+
return {
|
|
7296
|
+
NextToken: __expectString(output.NextToken),
|
|
7297
|
+
ProjectPolicies: output.ProjectPolicies != null
|
|
7298
|
+
? deserializeAws_json1_1ProjectPolicies(output.ProjectPolicies, context)
|
|
7299
|
+
: undefined,
|
|
7300
|
+
};
|
|
7301
|
+
};
|
|
6881
7302
|
var deserializeAws_json1_1ListStreamProcessorsResponse = function (output, context) {
|
|
6882
7303
|
return {
|
|
6883
7304
|
NextToken: __expectString(output.NextToken),
|
|
@@ -6891,6 +7312,13 @@ var deserializeAws_json1_1ListTagsForResourceResponse = function (output, contex
|
|
|
6891
7312
|
Tags: output.Tags != null ? deserializeAws_json1_1TagMap(output.Tags, context) : undefined,
|
|
6892
7313
|
};
|
|
6893
7314
|
};
|
|
7315
|
+
var deserializeAws_json1_1MalformedPolicyDocumentException = function (output, context) {
|
|
7316
|
+
return {
|
|
7317
|
+
Code: __expectString(output.Code),
|
|
7318
|
+
Logref: __expectString(output.Logref),
|
|
7319
|
+
Message: __expectString(output.Message),
|
|
7320
|
+
};
|
|
7321
|
+
};
|
|
6894
7322
|
var deserializeAws_json1_1ModerationLabel = function (output, context) {
|
|
6895
7323
|
return {
|
|
6896
7324
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
@@ -7030,6 +7458,31 @@ var deserializeAws_json1_1ProjectDescriptions = function (output, context) {
|
|
|
7030
7458
|
});
|
|
7031
7459
|
return retVal;
|
|
7032
7460
|
};
|
|
7461
|
+
var deserializeAws_json1_1ProjectPolicies = function (output, context) {
|
|
7462
|
+
var retVal = (output || [])
|
|
7463
|
+
.filter(function (e) { return e != null; })
|
|
7464
|
+
.map(function (entry) {
|
|
7465
|
+
if (entry === null) {
|
|
7466
|
+
return null;
|
|
7467
|
+
}
|
|
7468
|
+
return deserializeAws_json1_1ProjectPolicy(entry, context);
|
|
7469
|
+
});
|
|
7470
|
+
return retVal;
|
|
7471
|
+
};
|
|
7472
|
+
var deserializeAws_json1_1ProjectPolicy = function (output, context) {
|
|
7473
|
+
return {
|
|
7474
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
7475
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTimestamp)))
|
|
7476
|
+
: undefined,
|
|
7477
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
7478
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
7479
|
+
: undefined,
|
|
7480
|
+
PolicyDocument: __expectString(output.PolicyDocument),
|
|
7481
|
+
PolicyName: __expectString(output.PolicyName),
|
|
7482
|
+
PolicyRevisionId: __expectString(output.PolicyRevisionId),
|
|
7483
|
+
ProjectArn: __expectString(output.ProjectArn),
|
|
7484
|
+
};
|
|
7485
|
+
};
|
|
7033
7486
|
var deserializeAws_json1_1ProjectVersionDescription = function (output, context) {
|
|
7034
7487
|
return {
|
|
7035
7488
|
BillableTrainingTimeInSeconds: __expectLong(output.BillableTrainingTimeInSeconds),
|
|
@@ -7047,6 +7500,7 @@ var deserializeAws_json1_1ProjectVersionDescription = function (output, context)
|
|
|
7047
7500
|
MinInferenceUnits: __expectInt32(output.MinInferenceUnits),
|
|
7048
7501
|
OutputConfig: output.OutputConfig != null ? deserializeAws_json1_1OutputConfig(output.OutputConfig, context) : undefined,
|
|
7049
7502
|
ProjectVersionArn: __expectString(output.ProjectVersionArn),
|
|
7503
|
+
SourceProjectVersionArn: __expectString(output.SourceProjectVersionArn),
|
|
7050
7504
|
Status: __expectString(output.Status),
|
|
7051
7505
|
StatusMessage: __expectString(output.StatusMessage),
|
|
7052
7506
|
TestingDataResult: output.TestingDataResult != null
|
|
@@ -7130,6 +7584,11 @@ var deserializeAws_json1_1ProvisionedThroughputExceededException = function (out
|
|
|
7130
7584
|
Message: __expectString(output.Message),
|
|
7131
7585
|
};
|
|
7132
7586
|
};
|
|
7587
|
+
var deserializeAws_json1_1PutProjectPolicyResponse = function (output, context) {
|
|
7588
|
+
return {
|
|
7589
|
+
PolicyRevisionId: __expectString(output.PolicyRevisionId),
|
|
7590
|
+
};
|
|
7591
|
+
};
|
|
7133
7592
|
var deserializeAws_json1_1Reasons = function (output, context) {
|
|
7134
7593
|
var retVal = (output || [])
|
|
7135
7594
|
.filter(function (e) { return e != null; })
|