@aws-sdk/client-rekognition 3.145.0 → 3.154.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +25 -0
  3. package/dist-cjs/Rekognition.js +60 -0
  4. package/dist-cjs/commands/CopyProjectVersionCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteProjectPolicyCommand.js +36 -0
  6. package/dist-cjs/commands/ListProjectPoliciesCommand.js +36 -0
  7. package/dist-cjs/commands/PutProjectPolicyCommand.js +36 -0
  8. package/dist-cjs/commands/index.js +4 -0
  9. package/dist-cjs/models/models_0.js +111 -40
  10. package/dist-cjs/pagination/ListProjectPoliciesPaginator.js +36 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_json1_1.js +381 -3
  13. package/dist-es/Rekognition.js +60 -0
  14. package/dist-es/commands/CopyProjectVersionCommand.js +39 -0
  15. package/dist-es/commands/DeleteProjectPolicyCommand.js +39 -0
  16. package/dist-es/commands/ListProjectPoliciesCommand.js +39 -0
  17. package/dist-es/commands/PutProjectPolicyCommand.js +39 -0
  18. package/dist-es/commands/index.js +4 -0
  19. package/dist-es/models/models_0.js +86 -44
  20. package/dist-es/pagination/ListProjectPoliciesPaginator.js +75 -0
  21. package/dist-es/pagination/index.js +1 -0
  22. package/dist-es/protocols/Aws_json1_1.js +460 -1
  23. package/dist-types/Rekognition.d.ts +97 -4
  24. package/dist-types/RekognitionClient.d.ts +31 -2
  25. package/dist-types/commands/CopyProjectVersionCommand.d.ts +56 -0
  26. package/dist-types/commands/DeleteProjectCommand.d.ts +5 -4
  27. package/dist-types/commands/DeleteProjectPolicyCommand.d.ts +36 -0
  28. package/dist-types/commands/ListProjectPoliciesCommand.d.ts +36 -0
  29. package/dist-types/commands/PutProjectPolicyCommand.d.ts +51 -0
  30. package/dist-types/commands/index.d.ts +4 -0
  31. package/dist-types/models/models_0.d.ts +329 -88
  32. package/dist-types/pagination/ListProjectPoliciesPaginator.d.ts +4 -0
  33. package/dist-types/pagination/index.d.ts +1 -0
  34. package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
  35. package/dist-types/ts3.4/Rekognition.d.ts +20 -0
  36. package/dist-types/ts3.4/RekognitionClient.d.ts +6 -2
  37. package/dist-types/ts3.4/commands/CopyProjectVersionCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/DeleteProjectPolicyCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/ListProjectPoliciesCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/PutProjectPolicyCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  42. package/dist-types/ts3.4/models/models_0.d.ts +169 -51
  43. package/dist-types/ts3.4/pagination/ListProjectPoliciesPaginator.d.ts +4 -0
  44. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  45. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  46. package/package.json +4 -4
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_json1_1StartProjectVersionCommand = exports.serializeAws_json1_1StartPersonTrackingCommand = exports.serializeAws_json1_1StartLabelDetectionCommand = exports.serializeAws_json1_1StartFaceSearchCommand = exports.serializeAws_json1_1StartFaceDetectionCommand = exports.serializeAws_json1_1StartContentModerationCommand = exports.serializeAws_json1_1StartCelebrityRecognitionCommand = exports.serializeAws_json1_1SearchFacesByImageCommand = exports.serializeAws_json1_1SearchFacesCommand = exports.serializeAws_json1_1RecognizeCelebritiesCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListStreamProcessorsCommand = exports.serializeAws_json1_1ListFacesCommand = exports.serializeAws_json1_1ListDatasetLabelsCommand = exports.serializeAws_json1_1ListDatasetEntriesCommand = exports.serializeAws_json1_1ListCollectionsCommand = exports.serializeAws_json1_1IndexFacesCommand = exports.serializeAws_json1_1GetTextDetectionCommand = exports.serializeAws_json1_1GetSegmentDetectionCommand = exports.serializeAws_json1_1GetPersonTrackingCommand = exports.serializeAws_json1_1GetLabelDetectionCommand = exports.serializeAws_json1_1GetFaceSearchCommand = exports.serializeAws_json1_1GetFaceDetectionCommand = exports.serializeAws_json1_1GetContentModerationCommand = exports.serializeAws_json1_1GetCelebrityRecognitionCommand = exports.serializeAws_json1_1GetCelebrityInfoCommand = exports.serializeAws_json1_1DistributeDatasetEntriesCommand = exports.serializeAws_json1_1DetectTextCommand = exports.serializeAws_json1_1DetectProtectiveEquipmentCommand = exports.serializeAws_json1_1DetectModerationLabelsCommand = exports.serializeAws_json1_1DetectLabelsCommand = exports.serializeAws_json1_1DetectFacesCommand = exports.serializeAws_json1_1DetectCustomLabelsCommand = exports.serializeAws_json1_1DescribeStreamProcessorCommand = exports.serializeAws_json1_1DescribeProjectVersionsCommand = exports.serializeAws_json1_1DescribeProjectsCommand = exports.serializeAws_json1_1DescribeDatasetCommand = exports.serializeAws_json1_1DescribeCollectionCommand = exports.serializeAws_json1_1DeleteStreamProcessorCommand = exports.serializeAws_json1_1DeleteProjectVersionCommand = exports.serializeAws_json1_1DeleteProjectCommand = exports.serializeAws_json1_1DeleteFacesCommand = exports.serializeAws_json1_1DeleteDatasetCommand = exports.serializeAws_json1_1DeleteCollectionCommand = exports.serializeAws_json1_1CreateStreamProcessorCommand = exports.serializeAws_json1_1CreateProjectVersionCommand = exports.serializeAws_json1_1CreateProjectCommand = exports.serializeAws_json1_1CreateDatasetCommand = exports.serializeAws_json1_1CreateCollectionCommand = exports.serializeAws_json1_1CompareFacesCommand = void 0;
4
- exports.deserializeAws_json1_1RecognizeCelebritiesCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListStreamProcessorsCommand = exports.deserializeAws_json1_1ListFacesCommand = exports.deserializeAws_json1_1ListDatasetLabelsCommand = exports.deserializeAws_json1_1ListDatasetEntriesCommand = exports.deserializeAws_json1_1ListCollectionsCommand = exports.deserializeAws_json1_1IndexFacesCommand = exports.deserializeAws_json1_1GetTextDetectionCommand = exports.deserializeAws_json1_1GetSegmentDetectionCommand = exports.deserializeAws_json1_1GetPersonTrackingCommand = exports.deserializeAws_json1_1GetLabelDetectionCommand = exports.deserializeAws_json1_1GetFaceSearchCommand = exports.deserializeAws_json1_1GetFaceDetectionCommand = exports.deserializeAws_json1_1GetContentModerationCommand = exports.deserializeAws_json1_1GetCelebrityRecognitionCommand = exports.deserializeAws_json1_1GetCelebrityInfoCommand = exports.deserializeAws_json1_1DistributeDatasetEntriesCommand = exports.deserializeAws_json1_1DetectTextCommand = exports.deserializeAws_json1_1DetectProtectiveEquipmentCommand = exports.deserializeAws_json1_1DetectModerationLabelsCommand = exports.deserializeAws_json1_1DetectLabelsCommand = exports.deserializeAws_json1_1DetectFacesCommand = exports.deserializeAws_json1_1DetectCustomLabelsCommand = exports.deserializeAws_json1_1DescribeStreamProcessorCommand = exports.deserializeAws_json1_1DescribeProjectVersionsCommand = exports.deserializeAws_json1_1DescribeProjectsCommand = exports.deserializeAws_json1_1DescribeDatasetCommand = exports.deserializeAws_json1_1DescribeCollectionCommand = exports.deserializeAws_json1_1DeleteStreamProcessorCommand = exports.deserializeAws_json1_1DeleteProjectVersionCommand = exports.deserializeAws_json1_1DeleteProjectCommand = exports.deserializeAws_json1_1DeleteFacesCommand = exports.deserializeAws_json1_1DeleteDatasetCommand = exports.deserializeAws_json1_1DeleteCollectionCommand = exports.deserializeAws_json1_1CreateStreamProcessorCommand = exports.deserializeAws_json1_1CreateProjectVersionCommand = exports.deserializeAws_json1_1CreateProjectCommand = exports.deserializeAws_json1_1CreateDatasetCommand = exports.deserializeAws_json1_1CreateCollectionCommand = exports.deserializeAws_json1_1CompareFacesCommand = exports.serializeAws_json1_1UpdateStreamProcessorCommand = exports.serializeAws_json1_1UpdateDatasetEntriesCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopStreamProcessorCommand = exports.serializeAws_json1_1StopProjectVersionCommand = exports.serializeAws_json1_1StartTextDetectionCommand = exports.serializeAws_json1_1StartStreamProcessorCommand = exports.serializeAws_json1_1StartSegmentDetectionCommand = void 0;
5
- exports.deserializeAws_json1_1UpdateStreamProcessorCommand = exports.deserializeAws_json1_1UpdateDatasetEntriesCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopStreamProcessorCommand = exports.deserializeAws_json1_1StopProjectVersionCommand = exports.deserializeAws_json1_1StartTextDetectionCommand = exports.deserializeAws_json1_1StartStreamProcessorCommand = exports.deserializeAws_json1_1StartSegmentDetectionCommand = exports.deserializeAws_json1_1StartProjectVersionCommand = exports.deserializeAws_json1_1StartPersonTrackingCommand = exports.deserializeAws_json1_1StartLabelDetectionCommand = exports.deserializeAws_json1_1StartFaceSearchCommand = exports.deserializeAws_json1_1StartFaceDetectionCommand = exports.deserializeAws_json1_1StartContentModerationCommand = exports.deserializeAws_json1_1StartCelebrityRecognitionCommand = exports.deserializeAws_json1_1SearchFacesByImageCommand = exports.deserializeAws_json1_1SearchFacesCommand = void 0;
3
+ exports.serializeAws_json1_1StartFaceDetectionCommand = exports.serializeAws_json1_1StartContentModerationCommand = exports.serializeAws_json1_1StartCelebrityRecognitionCommand = exports.serializeAws_json1_1SearchFacesByImageCommand = exports.serializeAws_json1_1SearchFacesCommand = exports.serializeAws_json1_1RecognizeCelebritiesCommand = exports.serializeAws_json1_1PutProjectPolicyCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListStreamProcessorsCommand = exports.serializeAws_json1_1ListProjectPoliciesCommand = exports.serializeAws_json1_1ListFacesCommand = exports.serializeAws_json1_1ListDatasetLabelsCommand = exports.serializeAws_json1_1ListDatasetEntriesCommand = exports.serializeAws_json1_1ListCollectionsCommand = exports.serializeAws_json1_1IndexFacesCommand = exports.serializeAws_json1_1GetTextDetectionCommand = exports.serializeAws_json1_1GetSegmentDetectionCommand = exports.serializeAws_json1_1GetPersonTrackingCommand = exports.serializeAws_json1_1GetLabelDetectionCommand = exports.serializeAws_json1_1GetFaceSearchCommand = exports.serializeAws_json1_1GetFaceDetectionCommand = exports.serializeAws_json1_1GetContentModerationCommand = exports.serializeAws_json1_1GetCelebrityRecognitionCommand = exports.serializeAws_json1_1GetCelebrityInfoCommand = exports.serializeAws_json1_1DistributeDatasetEntriesCommand = exports.serializeAws_json1_1DetectTextCommand = exports.serializeAws_json1_1DetectProtectiveEquipmentCommand = exports.serializeAws_json1_1DetectModerationLabelsCommand = exports.serializeAws_json1_1DetectLabelsCommand = exports.serializeAws_json1_1DetectFacesCommand = exports.serializeAws_json1_1DetectCustomLabelsCommand = exports.serializeAws_json1_1DescribeStreamProcessorCommand = exports.serializeAws_json1_1DescribeProjectVersionsCommand = exports.serializeAws_json1_1DescribeProjectsCommand = exports.serializeAws_json1_1DescribeDatasetCommand = exports.serializeAws_json1_1DescribeCollectionCommand = exports.serializeAws_json1_1DeleteStreamProcessorCommand = exports.serializeAws_json1_1DeleteProjectVersionCommand = exports.serializeAws_json1_1DeleteProjectPolicyCommand = exports.serializeAws_json1_1DeleteProjectCommand = exports.serializeAws_json1_1DeleteFacesCommand = exports.serializeAws_json1_1DeleteDatasetCommand = exports.serializeAws_json1_1DeleteCollectionCommand = exports.serializeAws_json1_1CreateStreamProcessorCommand = exports.serializeAws_json1_1CreateProjectVersionCommand = exports.serializeAws_json1_1CreateProjectCommand = exports.serializeAws_json1_1CreateDatasetCommand = exports.serializeAws_json1_1CreateCollectionCommand = exports.serializeAws_json1_1CopyProjectVersionCommand = exports.serializeAws_json1_1CompareFacesCommand = void 0;
4
+ exports.deserializeAws_json1_1ListCollectionsCommand = exports.deserializeAws_json1_1IndexFacesCommand = exports.deserializeAws_json1_1GetTextDetectionCommand = exports.deserializeAws_json1_1GetSegmentDetectionCommand = exports.deserializeAws_json1_1GetPersonTrackingCommand = exports.deserializeAws_json1_1GetLabelDetectionCommand = exports.deserializeAws_json1_1GetFaceSearchCommand = exports.deserializeAws_json1_1GetFaceDetectionCommand = exports.deserializeAws_json1_1GetContentModerationCommand = exports.deserializeAws_json1_1GetCelebrityRecognitionCommand = exports.deserializeAws_json1_1GetCelebrityInfoCommand = exports.deserializeAws_json1_1DistributeDatasetEntriesCommand = exports.deserializeAws_json1_1DetectTextCommand = exports.deserializeAws_json1_1DetectProtectiveEquipmentCommand = exports.deserializeAws_json1_1DetectModerationLabelsCommand = exports.deserializeAws_json1_1DetectLabelsCommand = exports.deserializeAws_json1_1DetectFacesCommand = exports.deserializeAws_json1_1DetectCustomLabelsCommand = exports.deserializeAws_json1_1DescribeStreamProcessorCommand = exports.deserializeAws_json1_1DescribeProjectVersionsCommand = exports.deserializeAws_json1_1DescribeProjectsCommand = exports.deserializeAws_json1_1DescribeDatasetCommand = exports.deserializeAws_json1_1DescribeCollectionCommand = exports.deserializeAws_json1_1DeleteStreamProcessorCommand = exports.deserializeAws_json1_1DeleteProjectVersionCommand = exports.deserializeAws_json1_1DeleteProjectPolicyCommand = exports.deserializeAws_json1_1DeleteProjectCommand = exports.deserializeAws_json1_1DeleteFacesCommand = exports.deserializeAws_json1_1DeleteDatasetCommand = exports.deserializeAws_json1_1DeleteCollectionCommand = exports.deserializeAws_json1_1CreateStreamProcessorCommand = exports.deserializeAws_json1_1CreateProjectVersionCommand = exports.deserializeAws_json1_1CreateProjectCommand = exports.deserializeAws_json1_1CreateDatasetCommand = exports.deserializeAws_json1_1CreateCollectionCommand = exports.deserializeAws_json1_1CopyProjectVersionCommand = exports.deserializeAws_json1_1CompareFacesCommand = exports.serializeAws_json1_1UpdateStreamProcessorCommand = exports.serializeAws_json1_1UpdateDatasetEntriesCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopStreamProcessorCommand = exports.serializeAws_json1_1StopProjectVersionCommand = exports.serializeAws_json1_1StartTextDetectionCommand = exports.serializeAws_json1_1StartStreamProcessorCommand = exports.serializeAws_json1_1StartSegmentDetectionCommand = exports.serializeAws_json1_1StartProjectVersionCommand = exports.serializeAws_json1_1StartPersonTrackingCommand = exports.serializeAws_json1_1StartLabelDetectionCommand = exports.serializeAws_json1_1StartFaceSearchCommand = void 0;
5
+ exports.deserializeAws_json1_1UpdateStreamProcessorCommand = exports.deserializeAws_json1_1UpdateDatasetEntriesCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopStreamProcessorCommand = exports.deserializeAws_json1_1StopProjectVersionCommand = exports.deserializeAws_json1_1StartTextDetectionCommand = exports.deserializeAws_json1_1StartStreamProcessorCommand = exports.deserializeAws_json1_1StartSegmentDetectionCommand = exports.deserializeAws_json1_1StartProjectVersionCommand = exports.deserializeAws_json1_1StartPersonTrackingCommand = exports.deserializeAws_json1_1StartLabelDetectionCommand = exports.deserializeAws_json1_1StartFaceSearchCommand = exports.deserializeAws_json1_1StartFaceDetectionCommand = exports.deserializeAws_json1_1StartContentModerationCommand = exports.deserializeAws_json1_1StartCelebrityRecognitionCommand = exports.deserializeAws_json1_1SearchFacesByImageCommand = exports.deserializeAws_json1_1SearchFacesCommand = exports.deserializeAws_json1_1RecognizeCelebritiesCommand = exports.deserializeAws_json1_1PutProjectPolicyCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListStreamProcessorsCommand = exports.deserializeAws_json1_1ListProjectPoliciesCommand = exports.deserializeAws_json1_1ListFacesCommand = exports.deserializeAws_json1_1ListDatasetLabelsCommand = exports.deserializeAws_json1_1ListDatasetEntriesCommand = void 0;
6
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const models_0_1 = require("../models/models_0");
@@ -17,6 +17,16 @@ const serializeAws_json1_1CompareFacesCommand = async (input, context) => {
17
17
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
18
  };
19
19
  exports.serializeAws_json1_1CompareFacesCommand = serializeAws_json1_1CompareFacesCommand;
20
+ const serializeAws_json1_1CopyProjectVersionCommand = async (input, context) => {
21
+ const headers = {
22
+ "content-type": "application/x-amz-json-1.1",
23
+ "x-amz-target": "RekognitionService.CopyProjectVersion",
24
+ };
25
+ let body;
26
+ body = JSON.stringify(serializeAws_json1_1CopyProjectVersionRequest(input, context));
27
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
+ };
29
+ exports.serializeAws_json1_1CopyProjectVersionCommand = serializeAws_json1_1CopyProjectVersionCommand;
20
30
  const serializeAws_json1_1CreateCollectionCommand = async (input, context) => {
21
31
  const headers = {
22
32
  "content-type": "application/x-amz-json-1.1",
@@ -107,6 +117,16 @@ const serializeAws_json1_1DeleteProjectCommand = async (input, context) => {
107
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
118
  };
109
119
  exports.serializeAws_json1_1DeleteProjectCommand = serializeAws_json1_1DeleteProjectCommand;
120
+ const serializeAws_json1_1DeleteProjectPolicyCommand = async (input, context) => {
121
+ const headers = {
122
+ "content-type": "application/x-amz-json-1.1",
123
+ "x-amz-target": "RekognitionService.DeleteProjectPolicy",
124
+ };
125
+ let body;
126
+ body = JSON.stringify(serializeAws_json1_1DeleteProjectPolicyRequest(input, context));
127
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
128
+ };
129
+ exports.serializeAws_json1_1DeleteProjectPolicyCommand = serializeAws_json1_1DeleteProjectPolicyCommand;
110
130
  const serializeAws_json1_1DeleteProjectVersionCommand = async (input, context) => {
111
131
  const headers = {
112
132
  "content-type": "application/x-amz-json-1.1",
@@ -387,6 +407,16 @@ const serializeAws_json1_1ListFacesCommand = async (input, context) => {
387
407
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
388
408
  };
389
409
  exports.serializeAws_json1_1ListFacesCommand = serializeAws_json1_1ListFacesCommand;
410
+ const serializeAws_json1_1ListProjectPoliciesCommand = async (input, context) => {
411
+ const headers = {
412
+ "content-type": "application/x-amz-json-1.1",
413
+ "x-amz-target": "RekognitionService.ListProjectPolicies",
414
+ };
415
+ let body;
416
+ body = JSON.stringify(serializeAws_json1_1ListProjectPoliciesRequest(input, context));
417
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
418
+ };
419
+ exports.serializeAws_json1_1ListProjectPoliciesCommand = serializeAws_json1_1ListProjectPoliciesCommand;
390
420
  const serializeAws_json1_1ListStreamProcessorsCommand = async (input, context) => {
391
421
  const headers = {
392
422
  "content-type": "application/x-amz-json-1.1",
@@ -407,6 +437,16 @@ const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) =>
407
437
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
408
438
  };
409
439
  exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand;
440
+ const serializeAws_json1_1PutProjectPolicyCommand = async (input, context) => {
441
+ const headers = {
442
+ "content-type": "application/x-amz-json-1.1",
443
+ "x-amz-target": "RekognitionService.PutProjectPolicy",
444
+ };
445
+ let body;
446
+ body = JSON.stringify(serializeAws_json1_1PutProjectPolicyRequest(input, context));
447
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
448
+ };
449
+ exports.serializeAws_json1_1PutProjectPolicyCommand = serializeAws_json1_1PutProjectPolicyCommand;
410
450
  const serializeAws_json1_1RecognizeCelebritiesCommand = async (input, context) => {
411
451
  const headers = {
412
452
  "content-type": "application/x-amz-json-1.1",
@@ -652,6 +692,64 @@ const deserializeAws_json1_1CompareFacesCommandError = async (output, context) =
652
692
  });
653
693
  }
654
694
  };
695
+ const deserializeAws_json1_1CopyProjectVersionCommand = async (output, context) => {
696
+ if (output.statusCode >= 300) {
697
+ return deserializeAws_json1_1CopyProjectVersionCommandError(output, context);
698
+ }
699
+ const data = await parseBody(output.body, context);
700
+ let contents = {};
701
+ contents = deserializeAws_json1_1CopyProjectVersionResponse(data, context);
702
+ const response = {
703
+ $metadata: deserializeMetadata(output),
704
+ ...contents,
705
+ };
706
+ return Promise.resolve(response);
707
+ };
708
+ exports.deserializeAws_json1_1CopyProjectVersionCommand = deserializeAws_json1_1CopyProjectVersionCommand;
709
+ const deserializeAws_json1_1CopyProjectVersionCommandError = async (output, context) => {
710
+ const parsedOutput = {
711
+ ...output,
712
+ body: await parseBody(output.body, context),
713
+ };
714
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
715
+ switch (errorCode) {
716
+ case "AccessDeniedException":
717
+ case "com.amazonaws.rekognition#AccessDeniedException":
718
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
719
+ case "InternalServerError":
720
+ case "com.amazonaws.rekognition#InternalServerError":
721
+ throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
722
+ case "InvalidParameterException":
723
+ case "com.amazonaws.rekognition#InvalidParameterException":
724
+ throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
725
+ case "LimitExceededException":
726
+ case "com.amazonaws.rekognition#LimitExceededException":
727
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
728
+ case "ProvisionedThroughputExceededException":
729
+ case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
730
+ throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
731
+ case "ResourceInUseException":
732
+ case "com.amazonaws.rekognition#ResourceInUseException":
733
+ throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
734
+ case "ResourceNotFoundException":
735
+ case "com.amazonaws.rekognition#ResourceNotFoundException":
736
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
737
+ case "ServiceQuotaExceededException":
738
+ case "com.amazonaws.rekognition#ServiceQuotaExceededException":
739
+ throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
740
+ case "ThrottlingException":
741
+ case "com.amazonaws.rekognition#ThrottlingException":
742
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
743
+ default:
744
+ const parsedBody = parsedOutput.body;
745
+ (0, smithy_client_1.throwDefaultError)({
746
+ output,
747
+ parsedBody,
748
+ exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
749
+ errorCode,
750
+ });
751
+ }
752
+ };
655
753
  const deserializeAws_json1_1CreateCollectionCommand = async (output, context) => {
656
754
  if (output.statusCode >= 300) {
657
755
  return deserializeAws_json1_1CreateCollectionCommandError(output, context);
@@ -1132,6 +1230,58 @@ const deserializeAws_json1_1DeleteProjectCommandError = async (output, context)
1132
1230
  });
1133
1231
  }
1134
1232
  };
1233
+ const deserializeAws_json1_1DeleteProjectPolicyCommand = async (output, context) => {
1234
+ if (output.statusCode >= 300) {
1235
+ return deserializeAws_json1_1DeleteProjectPolicyCommandError(output, context);
1236
+ }
1237
+ const data = await parseBody(output.body, context);
1238
+ let contents = {};
1239
+ contents = deserializeAws_json1_1DeleteProjectPolicyResponse(data, context);
1240
+ const response = {
1241
+ $metadata: deserializeMetadata(output),
1242
+ ...contents,
1243
+ };
1244
+ return Promise.resolve(response);
1245
+ };
1246
+ exports.deserializeAws_json1_1DeleteProjectPolicyCommand = deserializeAws_json1_1DeleteProjectPolicyCommand;
1247
+ const deserializeAws_json1_1DeleteProjectPolicyCommandError = async (output, context) => {
1248
+ const parsedOutput = {
1249
+ ...output,
1250
+ body: await parseBody(output.body, context),
1251
+ };
1252
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1253
+ switch (errorCode) {
1254
+ case "AccessDeniedException":
1255
+ case "com.amazonaws.rekognition#AccessDeniedException":
1256
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
1257
+ case "InternalServerError":
1258
+ case "com.amazonaws.rekognition#InternalServerError":
1259
+ throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
1260
+ case "InvalidParameterException":
1261
+ case "com.amazonaws.rekognition#InvalidParameterException":
1262
+ throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
1263
+ case "InvalidPolicyRevisionIdException":
1264
+ case "com.amazonaws.rekognition#InvalidPolicyRevisionIdException":
1265
+ throw await deserializeAws_json1_1InvalidPolicyRevisionIdExceptionResponse(parsedOutput, context);
1266
+ case "ProvisionedThroughputExceededException":
1267
+ case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
1268
+ throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
1269
+ case "ResourceNotFoundException":
1270
+ case "com.amazonaws.rekognition#ResourceNotFoundException":
1271
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1272
+ case "ThrottlingException":
1273
+ case "com.amazonaws.rekognition#ThrottlingException":
1274
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
1275
+ default:
1276
+ const parsedBody = parsedOutput.body;
1277
+ (0, smithy_client_1.throwDefaultError)({
1278
+ output,
1279
+ parsedBody,
1280
+ exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
1281
+ errorCode,
1282
+ });
1283
+ }
1284
+ };
1135
1285
  const deserializeAws_json1_1DeleteProjectVersionCommand = async (output, context) => {
1136
1286
  if (output.statusCode >= 300) {
1137
1287
  return deserializeAws_json1_1DeleteProjectVersionCommandError(output, context);
@@ -2624,6 +2774,58 @@ const deserializeAws_json1_1ListFacesCommandError = async (output, context) => {
2624
2774
  });
2625
2775
  }
2626
2776
  };
2777
+ const deserializeAws_json1_1ListProjectPoliciesCommand = async (output, context) => {
2778
+ if (output.statusCode >= 300) {
2779
+ return deserializeAws_json1_1ListProjectPoliciesCommandError(output, context);
2780
+ }
2781
+ const data = await parseBody(output.body, context);
2782
+ let contents = {};
2783
+ contents = deserializeAws_json1_1ListProjectPoliciesResponse(data, context);
2784
+ const response = {
2785
+ $metadata: deserializeMetadata(output),
2786
+ ...contents,
2787
+ };
2788
+ return Promise.resolve(response);
2789
+ };
2790
+ exports.deserializeAws_json1_1ListProjectPoliciesCommand = deserializeAws_json1_1ListProjectPoliciesCommand;
2791
+ const deserializeAws_json1_1ListProjectPoliciesCommandError = async (output, context) => {
2792
+ const parsedOutput = {
2793
+ ...output,
2794
+ body: await parseBody(output.body, context),
2795
+ };
2796
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2797
+ switch (errorCode) {
2798
+ case "AccessDeniedException":
2799
+ case "com.amazonaws.rekognition#AccessDeniedException":
2800
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
2801
+ case "InternalServerError":
2802
+ case "com.amazonaws.rekognition#InternalServerError":
2803
+ throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
2804
+ case "InvalidPaginationTokenException":
2805
+ case "com.amazonaws.rekognition#InvalidPaginationTokenException":
2806
+ throw await deserializeAws_json1_1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
2807
+ case "InvalidParameterException":
2808
+ case "com.amazonaws.rekognition#InvalidParameterException":
2809
+ throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
2810
+ case "ProvisionedThroughputExceededException":
2811
+ case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
2812
+ throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
2813
+ case "ResourceNotFoundException":
2814
+ case "com.amazonaws.rekognition#ResourceNotFoundException":
2815
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2816
+ case "ThrottlingException":
2817
+ case "com.amazonaws.rekognition#ThrottlingException":
2818
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
2819
+ default:
2820
+ const parsedBody = parsedOutput.body;
2821
+ (0, smithy_client_1.throwDefaultError)({
2822
+ output,
2823
+ parsedBody,
2824
+ exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
2825
+ errorCode,
2826
+ });
2827
+ }
2828
+ };
2627
2829
  const deserializeAws_json1_1ListStreamProcessorsCommand = async (output, context) => {
2628
2830
  if (output.statusCode >= 300) {
2629
2831
  return deserializeAws_json1_1ListStreamProcessorsCommandError(output, context);
@@ -2722,6 +2924,70 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
2722
2924
  });
2723
2925
  }
2724
2926
  };
2927
+ const deserializeAws_json1_1PutProjectPolicyCommand = async (output, context) => {
2928
+ if (output.statusCode >= 300) {
2929
+ return deserializeAws_json1_1PutProjectPolicyCommandError(output, context);
2930
+ }
2931
+ const data = await parseBody(output.body, context);
2932
+ let contents = {};
2933
+ contents = deserializeAws_json1_1PutProjectPolicyResponse(data, context);
2934
+ const response = {
2935
+ $metadata: deserializeMetadata(output),
2936
+ ...contents,
2937
+ };
2938
+ return Promise.resolve(response);
2939
+ };
2940
+ exports.deserializeAws_json1_1PutProjectPolicyCommand = deserializeAws_json1_1PutProjectPolicyCommand;
2941
+ const deserializeAws_json1_1PutProjectPolicyCommandError = async (output, context) => {
2942
+ const parsedOutput = {
2943
+ ...output,
2944
+ body: await parseBody(output.body, context),
2945
+ };
2946
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2947
+ switch (errorCode) {
2948
+ case "AccessDeniedException":
2949
+ case "com.amazonaws.rekognition#AccessDeniedException":
2950
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
2951
+ case "InternalServerError":
2952
+ case "com.amazonaws.rekognition#InternalServerError":
2953
+ throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
2954
+ case "InvalidParameterException":
2955
+ case "com.amazonaws.rekognition#InvalidParameterException":
2956
+ throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
2957
+ case "InvalidPolicyRevisionIdException":
2958
+ case "com.amazonaws.rekognition#InvalidPolicyRevisionIdException":
2959
+ throw await deserializeAws_json1_1InvalidPolicyRevisionIdExceptionResponse(parsedOutput, context);
2960
+ case "LimitExceededException":
2961
+ case "com.amazonaws.rekognition#LimitExceededException":
2962
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
2963
+ case "MalformedPolicyDocumentException":
2964
+ case "com.amazonaws.rekognition#MalformedPolicyDocumentException":
2965
+ throw await deserializeAws_json1_1MalformedPolicyDocumentExceptionResponse(parsedOutput, context);
2966
+ case "ProvisionedThroughputExceededException":
2967
+ case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
2968
+ throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
2969
+ case "ResourceAlreadyExistsException":
2970
+ case "com.amazonaws.rekognition#ResourceAlreadyExistsException":
2971
+ throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
2972
+ case "ResourceNotFoundException":
2973
+ case "com.amazonaws.rekognition#ResourceNotFoundException":
2974
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2975
+ case "ServiceQuotaExceededException":
2976
+ case "com.amazonaws.rekognition#ServiceQuotaExceededException":
2977
+ throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2978
+ case "ThrottlingException":
2979
+ case "com.amazonaws.rekognition#ThrottlingException":
2980
+ throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
2981
+ default:
2982
+ const parsedBody = parsedOutput.body;
2983
+ (0, smithy_client_1.throwDefaultError)({
2984
+ output,
2985
+ parsedBody,
2986
+ exceptionCtor: RekognitionServiceException_1.RekognitionServiceException,
2987
+ errorCode,
2988
+ });
2989
+ }
2990
+ };
2725
2991
  const deserializeAws_json1_1RecognizeCelebritiesCommand = async (output, context) => {
2726
2992
  if (output.statusCode >= 300) {
2727
2993
  return deserializeAws_json1_1RecognizeCelebritiesCommandError(output, context);
@@ -3839,6 +4105,15 @@ const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOut
3839
4105
  });
3840
4106
  return (0, smithy_client_1.decorateServiceException)(exception, body);
3841
4107
  };
4108
+ const deserializeAws_json1_1InvalidPolicyRevisionIdExceptionResponse = async (parsedOutput, context) => {
4109
+ const body = parsedOutput.body;
4110
+ const deserialized = deserializeAws_json1_1InvalidPolicyRevisionIdException(body, context);
4111
+ const exception = new models_0_1.InvalidPolicyRevisionIdException({
4112
+ $metadata: deserializeMetadata(parsedOutput),
4113
+ ...deserialized,
4114
+ });
4115
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
4116
+ };
3842
4117
  const deserializeAws_json1_1InvalidS3ObjectExceptionResponse = async (parsedOutput, context) => {
3843
4118
  const body = parsedOutput.body;
3844
4119
  const deserialized = deserializeAws_json1_1InvalidS3ObjectException(body, context);
@@ -3857,6 +4132,15 @@ const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput
3857
4132
  });
3858
4133
  return (0, smithy_client_1.decorateServiceException)(exception, body);
3859
4134
  };
4135
+ const deserializeAws_json1_1MalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => {
4136
+ const body = parsedOutput.body;
4137
+ const deserialized = deserializeAws_json1_1MalformedPolicyDocumentException(body, context);
4138
+ const exception = new models_0_1.MalformedPolicyDocumentException({
4139
+ $metadata: deserializeMetadata(parsedOutput),
4140
+ ...deserialized,
4141
+ });
4142
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
4143
+ };
3860
4144
  const deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = async (parsedOutput, context) => {
3861
4145
  const body = parsedOutput.body;
3862
4146
  const deserialized = deserializeAws_json1_1ProvisionedThroughputExceededException(body, context);
@@ -4000,6 +4284,17 @@ const serializeAws_json1_1ContentClassifiers = (input, context) => {
4000
4284
  return entry;
4001
4285
  });
4002
4286
  };
4287
+ const serializeAws_json1_1CopyProjectVersionRequest = (input, context) => {
4288
+ return {
4289
+ ...(input.DestinationProjectArn != null && { DestinationProjectArn: input.DestinationProjectArn }),
4290
+ ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
4291
+ ...(input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
4292
+ ...(input.SourceProjectArn != null && { SourceProjectArn: input.SourceProjectArn }),
4293
+ ...(input.SourceProjectVersionArn != null && { SourceProjectVersionArn: input.SourceProjectVersionArn }),
4294
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
4295
+ ...(input.VersionName != null && { VersionName: input.VersionName }),
4296
+ };
4297
+ };
4003
4298
  const serializeAws_json1_1CreateCollectionRequest = (input, context) => {
4004
4299
  return {
4005
4300
  ...(input.CollectionId != null && { CollectionId: input.CollectionId }),
@@ -4087,6 +4382,13 @@ const serializeAws_json1_1DeleteFacesRequest = (input, context) => {
4087
4382
  ...(input.FaceIds != null && { FaceIds: serializeAws_json1_1FaceIdList(input.FaceIds, context) }),
4088
4383
  };
4089
4384
  };
4385
+ const serializeAws_json1_1DeleteProjectPolicyRequest = (input, context) => {
4386
+ return {
4387
+ ...(input.PolicyName != null && { PolicyName: input.PolicyName }),
4388
+ ...(input.PolicyRevisionId != null && { PolicyRevisionId: input.PolicyRevisionId }),
4389
+ ...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
4390
+ };
4391
+ };
4090
4392
  const serializeAws_json1_1DeleteProjectRequest = (input, context) => {
4091
4393
  return {
4092
4394
  ...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
@@ -4377,6 +4679,13 @@ const serializeAws_json1_1ListFacesRequest = (input, context) => {
4377
4679
  ...(input.NextToken != null && { NextToken: input.NextToken }),
4378
4680
  };
4379
4681
  };
4682
+ const serializeAws_json1_1ListProjectPoliciesRequest = (input, context) => {
4683
+ return {
4684
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4685
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4686
+ ...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
4687
+ };
4688
+ };
4380
4689
  const serializeAws_json1_1ListStreamProcessorsRequest = (input, context) => {
4381
4690
  return {
4382
4691
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
@@ -4435,6 +4744,14 @@ const serializeAws_json1_1ProtectiveEquipmentTypes = (input, context) => {
4435
4744
  return entry;
4436
4745
  });
4437
4746
  };
4747
+ const serializeAws_json1_1PutProjectPolicyRequest = (input, context) => {
4748
+ return {
4749
+ ...(input.PolicyDocument != null && { PolicyDocument: input.PolicyDocument }),
4750
+ ...(input.PolicyName != null && { PolicyName: input.PolicyName }),
4751
+ ...(input.PolicyRevisionId != null && { PolicyRevisionId: input.PolicyRevisionId }),
4752
+ ...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
4753
+ };
4754
+ };
4438
4755
  const serializeAws_json1_1RecognizeCelebritiesRequest = (input, context) => {
4439
4756
  return {
4440
4757
  ...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
@@ -5012,6 +5329,11 @@ const deserializeAws_json1_1ContentModerationDetections = (output, context) => {
5012
5329
  });
5013
5330
  return retVal;
5014
5331
  };
5332
+ const deserializeAws_json1_1CopyProjectVersionResponse = (output, context) => {
5333
+ return {
5334
+ ProjectVersionArn: (0, smithy_client_1.expectString)(output.ProjectVersionArn),
5335
+ };
5336
+ };
5015
5337
  const deserializeAws_json1_1CoversBodyPart = (output, context) => {
5016
5338
  return {
5017
5339
  Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
@@ -5155,6 +5477,9 @@ const deserializeAws_json1_1DeleteFacesResponse = (output, context) => {
5155
5477
  DeletedFaces: output.DeletedFaces != null ? deserializeAws_json1_1FaceIdList(output.DeletedFaces, context) : undefined,
5156
5478
  };
5157
5479
  };
5480
+ const deserializeAws_json1_1DeleteProjectPolicyResponse = (output, context) => {
5481
+ return {};
5482
+ };
5158
5483
  const deserializeAws_json1_1DeleteProjectResponse = (output, context) => {
5159
5484
  return {
5160
5485
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -5672,6 +5997,13 @@ const deserializeAws_json1_1InvalidParameterException = (output, context) => {
5672
5997
  Message: (0, smithy_client_1.expectString)(output.Message),
5673
5998
  };
5674
5999
  };
6000
+ const deserializeAws_json1_1InvalidPolicyRevisionIdException = (output, context) => {
6001
+ return {
6002
+ Code: (0, smithy_client_1.expectString)(output.Code),
6003
+ Logref: (0, smithy_client_1.expectString)(output.Logref),
6004
+ Message: (0, smithy_client_1.expectString)(output.Message),
6005
+ };
6006
+ };
5675
6007
  const deserializeAws_json1_1InvalidS3ObjectException = (output, context) => {
5676
6008
  return {
5677
6009
  Code: (0, smithy_client_1.expectString)(output.Code),
@@ -5785,6 +6117,14 @@ const deserializeAws_json1_1ListFacesResponse = (output, context) => {
5785
6117
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5786
6118
  };
5787
6119
  };
6120
+ const deserializeAws_json1_1ListProjectPoliciesResponse = (output, context) => {
6121
+ return {
6122
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
6123
+ ProjectPolicies: output.ProjectPolicies != null
6124
+ ? deserializeAws_json1_1ProjectPolicies(output.ProjectPolicies, context)
6125
+ : undefined,
6126
+ };
6127
+ };
5788
6128
  const deserializeAws_json1_1ListStreamProcessorsResponse = (output, context) => {
5789
6129
  return {
5790
6130
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -5798,6 +6138,13 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
5798
6138
  Tags: output.Tags != null ? deserializeAws_json1_1TagMap(output.Tags, context) : undefined,
5799
6139
  };
5800
6140
  };
6141
+ const deserializeAws_json1_1MalformedPolicyDocumentException = (output, context) => {
6142
+ return {
6143
+ Code: (0, smithy_client_1.expectString)(output.Code),
6144
+ Logref: (0, smithy_client_1.expectString)(output.Logref),
6145
+ Message: (0, smithy_client_1.expectString)(output.Message),
6146
+ };
6147
+ };
5801
6148
  const deserializeAws_json1_1ModerationLabel = (output, context) => {
5802
6149
  return {
5803
6150
  Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
@@ -5937,6 +6284,31 @@ const deserializeAws_json1_1ProjectDescriptions = (output, context) => {
5937
6284
  });
5938
6285
  return retVal;
5939
6286
  };
6287
+ const deserializeAws_json1_1ProjectPolicies = (output, context) => {
6288
+ const retVal = (output || [])
6289
+ .filter((e) => e != null)
6290
+ .map((entry) => {
6291
+ if (entry === null) {
6292
+ return null;
6293
+ }
6294
+ return deserializeAws_json1_1ProjectPolicy(entry, context);
6295
+ });
6296
+ return retVal;
6297
+ };
6298
+ const deserializeAws_json1_1ProjectPolicy = (output, context) => {
6299
+ return {
6300
+ CreationTimestamp: output.CreationTimestamp != null
6301
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
6302
+ : undefined,
6303
+ LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
6304
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
6305
+ : undefined,
6306
+ PolicyDocument: (0, smithy_client_1.expectString)(output.PolicyDocument),
6307
+ PolicyName: (0, smithy_client_1.expectString)(output.PolicyName),
6308
+ PolicyRevisionId: (0, smithy_client_1.expectString)(output.PolicyRevisionId),
6309
+ ProjectArn: (0, smithy_client_1.expectString)(output.ProjectArn),
6310
+ };
6311
+ };
5940
6312
  const deserializeAws_json1_1ProjectVersionDescription = (output, context) => {
5941
6313
  return {
5942
6314
  BillableTrainingTimeInSeconds: (0, smithy_client_1.expectLong)(output.BillableTrainingTimeInSeconds),
@@ -5954,6 +6326,7 @@ const deserializeAws_json1_1ProjectVersionDescription = (output, context) => {
5954
6326
  MinInferenceUnits: (0, smithy_client_1.expectInt32)(output.MinInferenceUnits),
5955
6327
  OutputConfig: output.OutputConfig != null ? deserializeAws_json1_1OutputConfig(output.OutputConfig, context) : undefined,
5956
6328
  ProjectVersionArn: (0, smithy_client_1.expectString)(output.ProjectVersionArn),
6329
+ SourceProjectVersionArn: (0, smithy_client_1.expectString)(output.SourceProjectVersionArn),
5957
6330
  Status: (0, smithy_client_1.expectString)(output.Status),
5958
6331
  StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
5959
6332
  TestingDataResult: output.TestingDataResult != null
@@ -6037,6 +6410,11 @@ const deserializeAws_json1_1ProvisionedThroughputExceededException = (output, co
6037
6410
  Message: (0, smithy_client_1.expectString)(output.Message),
6038
6411
  };
6039
6412
  };
6413
+ const deserializeAws_json1_1PutProjectPolicyResponse = (output, context) => {
6414
+ return {
6415
+ PolicyRevisionId: (0, smithy_client_1.expectString)(output.PolicyRevisionId),
6416
+ };
6417
+ };
6040
6418
  const deserializeAws_json1_1Reasons = (output, context) => {
6041
6419
  const retVal = (output || [])
6042
6420
  .filter((e) => e != null)