@aws-sdk/client-rekognition 3.431.0 → 3.434.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 (56) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/Rekognition.js +6 -0
  3. package/dist-cjs/commands/GetMediaAnalysisJobCommand.js +51 -0
  4. package/dist-cjs/commands/ListMediaAnalysisJobsCommand.js +51 -0
  5. package/dist-cjs/commands/StartMediaAnalysisJobCommand.js +51 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/endpoint/ruleset.js +3 -3
  8. package/dist-cjs/models/models_0.js +35 -1
  9. package/dist-cjs/pagination/ListMediaAnalysisJobsPaginator.js +29 -0
  10. package/dist-cjs/pagination/index.js +1 -0
  11. package/dist-cjs/protocols/Aws_json1_1.js +270 -3
  12. package/dist-es/Rekognition.js +6 -0
  13. package/dist-es/commands/GetMediaAnalysisJobCommand.js +47 -0
  14. package/dist-es/commands/ListMediaAnalysisJobsCommand.js +47 -0
  15. package/dist-es/commands/StartMediaAnalysisJobCommand.js +47 -0
  16. package/dist-es/commands/index.js +3 -0
  17. package/dist-es/endpoint/ruleset.js +3 -3
  18. package/dist-es/models/models_0.js +33 -0
  19. package/dist-es/pagination/ListMediaAnalysisJobsPaginator.js +25 -0
  20. package/dist-es/pagination/index.js +1 -0
  21. package/dist-es/protocols/Aws_json1_1.js +262 -1
  22. package/dist-types/Rekognition.d.ts +21 -0
  23. package/dist-types/RekognitionClient.d.ts +5 -2
  24. package/dist-types/commands/GetMediaAnalysisJobCommand.d.ts +134 -0
  25. package/dist-types/commands/ListMediaAnalysisJobsCommand.d.ts +139 -0
  26. package/dist-types/commands/PutProjectPolicyCommand.d.ts +1 -1
  27. package/dist-types/commands/RecognizeCelebritiesCommand.d.ts +1 -1
  28. package/dist-types/commands/SearchFacesByImageCommand.d.ts +1 -1
  29. package/dist-types/commands/SearchFacesCommand.d.ts +1 -1
  30. package/dist-types/commands/SearchUsersByImageCommand.d.ts +1 -2
  31. package/dist-types/commands/SearchUsersCommand.d.ts +1 -1
  32. package/dist-types/commands/StartMediaAnalysisJobCommand.d.ts +135 -0
  33. package/dist-types/commands/index.d.ts +3 -0
  34. package/dist-types/models/models_0.d.ts +336 -406
  35. package/dist-types/models/models_1.d.ts +457 -1
  36. package/dist-types/pagination/ListMediaAnalysisJobsPaginator.d.ts +7 -0
  37. package/dist-types/pagination/index.d.ts +1 -0
  38. package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
  39. package/dist-types/ts3.4/Rekognition.d.ts +51 -0
  40. package/dist-types/ts3.4/RekognitionClient.d.ts +18 -0
  41. package/dist-types/ts3.4/commands/GetMediaAnalysisJobCommand.d.ts +39 -0
  42. package/dist-types/ts3.4/commands/ListMediaAnalysisJobsCommand.d.ts +42 -0
  43. package/dist-types/ts3.4/commands/PutProjectPolicyCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/RecognizeCelebritiesCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/SearchFacesByImageCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/SearchFacesCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/SearchUsersByImageCommand.d.ts +4 -2
  48. package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/StartMediaAnalysisJobCommand.d.ts +42 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +95 -74
  52. package/dist-types/ts3.4/models/models_1.d.ts +96 -2
  53. package/dist-types/ts3.4/pagination/ListMediaAnalysisJobsPaginator.d.ts +11 -0
  54. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  55. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  56. package/package.json +32 -32
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_ListUsersCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStreamProcessorsCommand = exports.se_ListProjectPoliciesCommand = exports.se_ListFacesCommand = exports.se_ListDatasetLabelsCommand = exports.se_ListDatasetEntriesCommand = exports.se_ListCollectionsCommand = exports.se_IndexFacesCommand = exports.se_GetTextDetectionCommand = exports.se_GetSegmentDetectionCommand = exports.se_GetPersonTrackingCommand = exports.se_GetLabelDetectionCommand = exports.se_GetFaceSearchCommand = exports.se_GetFaceLivenessSessionResultsCommand = exports.se_GetFaceDetectionCommand = exports.se_GetContentModerationCommand = exports.se_GetCelebrityRecognitionCommand = exports.se_GetCelebrityInfoCommand = exports.se_DistributeDatasetEntriesCommand = exports.se_DisassociateFacesCommand = exports.se_DetectTextCommand = exports.se_DetectProtectiveEquipmentCommand = exports.se_DetectModerationLabelsCommand = exports.se_DetectLabelsCommand = exports.se_DetectFacesCommand = exports.se_DetectCustomLabelsCommand = exports.se_DescribeStreamProcessorCommand = exports.se_DescribeProjectVersionsCommand = exports.se_DescribeProjectsCommand = exports.se_DescribeDatasetCommand = exports.se_DescribeCollectionCommand = exports.se_DeleteUserCommand = exports.se_DeleteStreamProcessorCommand = exports.se_DeleteProjectVersionCommand = exports.se_DeleteProjectPolicyCommand = exports.se_DeleteProjectCommand = exports.se_DeleteFacesCommand = exports.se_DeleteDatasetCommand = exports.se_DeleteCollectionCommand = exports.se_CreateUserCommand = exports.se_CreateStreamProcessorCommand = exports.se_CreateProjectVersionCommand = exports.se_CreateProjectCommand = exports.se_CreateFaceLivenessSessionCommand = exports.se_CreateDatasetCommand = exports.se_CreateCollectionCommand = exports.se_CopyProjectVersionCommand = exports.se_CompareFacesCommand = exports.se_AssociateFacesCommand = void 0;
4
- exports.de_DetectProtectiveEquipmentCommand = exports.de_DetectModerationLabelsCommand = exports.de_DetectLabelsCommand = exports.de_DetectFacesCommand = exports.de_DetectCustomLabelsCommand = exports.de_DescribeStreamProcessorCommand = exports.de_DescribeProjectVersionsCommand = exports.de_DescribeProjectsCommand = exports.de_DescribeDatasetCommand = exports.de_DescribeCollectionCommand = exports.de_DeleteUserCommand = exports.de_DeleteStreamProcessorCommand = exports.de_DeleteProjectVersionCommand = exports.de_DeleteProjectPolicyCommand = exports.de_DeleteProjectCommand = exports.de_DeleteFacesCommand = exports.de_DeleteDatasetCommand = exports.de_DeleteCollectionCommand = exports.de_CreateUserCommand = exports.de_CreateStreamProcessorCommand = exports.de_CreateProjectVersionCommand = exports.de_CreateProjectCommand = exports.de_CreateFaceLivenessSessionCommand = exports.de_CreateDatasetCommand = exports.de_CreateCollectionCommand = exports.de_CopyProjectVersionCommand = exports.de_CompareFacesCommand = exports.de_AssociateFacesCommand = exports.se_UpdateStreamProcessorCommand = exports.se_UpdateDatasetEntriesCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopStreamProcessorCommand = exports.se_StopProjectVersionCommand = exports.se_StartTextDetectionCommand = exports.se_StartStreamProcessorCommand = exports.se_StartSegmentDetectionCommand = exports.se_StartProjectVersionCommand = exports.se_StartPersonTrackingCommand = exports.se_StartLabelDetectionCommand = exports.se_StartFaceSearchCommand = exports.se_StartFaceDetectionCommand = exports.se_StartContentModerationCommand = exports.se_StartCelebrityRecognitionCommand = exports.se_SearchUsersByImageCommand = exports.se_SearchUsersCommand = exports.se_SearchFacesByImageCommand = exports.se_SearchFacesCommand = exports.se_RecognizeCelebritiesCommand = exports.se_PutProjectPolicyCommand = void 0;
5
- exports.de_UpdateStreamProcessorCommand = exports.de_UpdateDatasetEntriesCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopStreamProcessorCommand = exports.de_StopProjectVersionCommand = exports.de_StartTextDetectionCommand = exports.de_StartStreamProcessorCommand = exports.de_StartSegmentDetectionCommand = exports.de_StartProjectVersionCommand = exports.de_StartPersonTrackingCommand = exports.de_StartLabelDetectionCommand = exports.de_StartFaceSearchCommand = exports.de_StartFaceDetectionCommand = exports.de_StartContentModerationCommand = exports.de_StartCelebrityRecognitionCommand = exports.de_SearchUsersByImageCommand = exports.de_SearchUsersCommand = exports.de_SearchFacesByImageCommand = exports.de_SearchFacesCommand = exports.de_RecognizeCelebritiesCommand = exports.de_PutProjectPolicyCommand = exports.de_ListUsersCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStreamProcessorsCommand = exports.de_ListProjectPoliciesCommand = exports.de_ListFacesCommand = exports.de_ListDatasetLabelsCommand = exports.de_ListDatasetEntriesCommand = exports.de_ListCollectionsCommand = exports.de_IndexFacesCommand = exports.de_GetTextDetectionCommand = exports.de_GetSegmentDetectionCommand = exports.de_GetPersonTrackingCommand = exports.de_GetLabelDetectionCommand = exports.de_GetFaceSearchCommand = exports.de_GetFaceLivenessSessionResultsCommand = exports.de_GetFaceDetectionCommand = exports.de_GetContentModerationCommand = exports.de_GetCelebrityRecognitionCommand = exports.de_GetCelebrityInfoCommand = exports.de_DistributeDatasetEntriesCommand = exports.de_DisassociateFacesCommand = exports.de_DetectTextCommand = void 0;
3
+ exports.se_ListStreamProcessorsCommand = exports.se_ListProjectPoliciesCommand = exports.se_ListMediaAnalysisJobsCommand = exports.se_ListFacesCommand = exports.se_ListDatasetLabelsCommand = exports.se_ListDatasetEntriesCommand = exports.se_ListCollectionsCommand = exports.se_IndexFacesCommand = exports.se_GetTextDetectionCommand = exports.se_GetSegmentDetectionCommand = exports.se_GetPersonTrackingCommand = exports.se_GetMediaAnalysisJobCommand = exports.se_GetLabelDetectionCommand = exports.se_GetFaceSearchCommand = exports.se_GetFaceLivenessSessionResultsCommand = exports.se_GetFaceDetectionCommand = exports.se_GetContentModerationCommand = exports.se_GetCelebrityRecognitionCommand = exports.se_GetCelebrityInfoCommand = exports.se_DistributeDatasetEntriesCommand = exports.se_DisassociateFacesCommand = exports.se_DetectTextCommand = exports.se_DetectProtectiveEquipmentCommand = exports.se_DetectModerationLabelsCommand = exports.se_DetectLabelsCommand = exports.se_DetectFacesCommand = exports.se_DetectCustomLabelsCommand = exports.se_DescribeStreamProcessorCommand = exports.se_DescribeProjectVersionsCommand = exports.se_DescribeProjectsCommand = exports.se_DescribeDatasetCommand = exports.se_DescribeCollectionCommand = exports.se_DeleteUserCommand = exports.se_DeleteStreamProcessorCommand = exports.se_DeleteProjectVersionCommand = exports.se_DeleteProjectPolicyCommand = exports.se_DeleteProjectCommand = exports.se_DeleteFacesCommand = exports.se_DeleteDatasetCommand = exports.se_DeleteCollectionCommand = exports.se_CreateUserCommand = exports.se_CreateStreamProcessorCommand = exports.se_CreateProjectVersionCommand = exports.se_CreateProjectCommand = exports.se_CreateFaceLivenessSessionCommand = exports.se_CreateDatasetCommand = exports.se_CreateCollectionCommand = exports.se_CopyProjectVersionCommand = exports.se_CompareFacesCommand = exports.se_AssociateFacesCommand = void 0;
4
+ exports.de_DetectFacesCommand = exports.de_DetectCustomLabelsCommand = exports.de_DescribeStreamProcessorCommand = exports.de_DescribeProjectVersionsCommand = exports.de_DescribeProjectsCommand = exports.de_DescribeDatasetCommand = exports.de_DescribeCollectionCommand = exports.de_DeleteUserCommand = exports.de_DeleteStreamProcessorCommand = exports.de_DeleteProjectVersionCommand = exports.de_DeleteProjectPolicyCommand = exports.de_DeleteProjectCommand = exports.de_DeleteFacesCommand = exports.de_DeleteDatasetCommand = exports.de_DeleteCollectionCommand = exports.de_CreateUserCommand = exports.de_CreateStreamProcessorCommand = exports.de_CreateProjectVersionCommand = exports.de_CreateProjectCommand = exports.de_CreateFaceLivenessSessionCommand = exports.de_CreateDatasetCommand = exports.de_CreateCollectionCommand = exports.de_CopyProjectVersionCommand = exports.de_CompareFacesCommand = exports.de_AssociateFacesCommand = exports.se_UpdateStreamProcessorCommand = exports.se_UpdateDatasetEntriesCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopStreamProcessorCommand = exports.se_StopProjectVersionCommand = exports.se_StartTextDetectionCommand = exports.se_StartStreamProcessorCommand = exports.se_StartSegmentDetectionCommand = exports.se_StartProjectVersionCommand = exports.se_StartPersonTrackingCommand = exports.se_StartMediaAnalysisJobCommand = exports.se_StartLabelDetectionCommand = exports.se_StartFaceSearchCommand = exports.se_StartFaceDetectionCommand = exports.se_StartContentModerationCommand = exports.se_StartCelebrityRecognitionCommand = exports.se_SearchUsersByImageCommand = exports.se_SearchUsersCommand = exports.se_SearchFacesByImageCommand = exports.se_SearchFacesCommand = exports.se_RecognizeCelebritiesCommand = exports.se_PutProjectPolicyCommand = exports.se_ListUsersCommand = exports.se_ListTagsForResourceCommand = void 0;
5
+ exports.de_UpdateStreamProcessorCommand = exports.de_UpdateDatasetEntriesCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopStreamProcessorCommand = exports.de_StopProjectVersionCommand = exports.de_StartTextDetectionCommand = exports.de_StartStreamProcessorCommand = exports.de_StartSegmentDetectionCommand = exports.de_StartProjectVersionCommand = exports.de_StartPersonTrackingCommand = exports.de_StartMediaAnalysisJobCommand = exports.de_StartLabelDetectionCommand = exports.de_StartFaceSearchCommand = exports.de_StartFaceDetectionCommand = exports.de_StartContentModerationCommand = exports.de_StartCelebrityRecognitionCommand = exports.de_SearchUsersByImageCommand = exports.de_SearchUsersCommand = exports.de_SearchFacesByImageCommand = exports.de_SearchFacesCommand = exports.de_RecognizeCelebritiesCommand = exports.de_PutProjectPolicyCommand = exports.de_ListUsersCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStreamProcessorsCommand = exports.de_ListProjectPoliciesCommand = exports.de_ListMediaAnalysisJobsCommand = exports.de_ListFacesCommand = exports.de_ListDatasetLabelsCommand = exports.de_ListDatasetEntriesCommand = exports.de_ListCollectionsCommand = exports.de_IndexFacesCommand = exports.de_GetTextDetectionCommand = exports.de_GetSegmentDetectionCommand = exports.de_GetPersonTrackingCommand = exports.de_GetMediaAnalysisJobCommand = exports.de_GetLabelDetectionCommand = exports.de_GetFaceSearchCommand = exports.de_GetFaceLivenessSessionResultsCommand = exports.de_GetFaceDetectionCommand = exports.de_GetContentModerationCommand = exports.de_GetCelebrityRecognitionCommand = exports.de_GetCelebrityInfoCommand = exports.de_DistributeDatasetEntriesCommand = exports.de_DisassociateFacesCommand = exports.de_DetectTextCommand = exports.de_DetectProtectiveEquipmentCommand = exports.de_DetectModerationLabelsCommand = exports.de_DetectLabelsCommand = void 0;
6
6
  const protocol_http_1 = require("@smithy/protocol-http");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const uuid_1 = require("uuid");
@@ -275,6 +275,13 @@ const se_GetLabelDetectionCommand = async (input, context) => {
275
275
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
276
  };
277
277
  exports.se_GetLabelDetectionCommand = se_GetLabelDetectionCommand;
278
+ const se_GetMediaAnalysisJobCommand = async (input, context) => {
279
+ const headers = sharedHeaders("GetMediaAnalysisJob");
280
+ let body;
281
+ body = JSON.stringify((0, smithy_client_1._json)(input));
282
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
283
+ };
284
+ exports.se_GetMediaAnalysisJobCommand = se_GetMediaAnalysisJobCommand;
278
285
  const se_GetPersonTrackingCommand = async (input, context) => {
279
286
  const headers = sharedHeaders("GetPersonTracking");
280
287
  let body;
@@ -331,6 +338,13 @@ const se_ListFacesCommand = async (input, context) => {
331
338
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
332
339
  };
333
340
  exports.se_ListFacesCommand = se_ListFacesCommand;
341
+ const se_ListMediaAnalysisJobsCommand = async (input, context) => {
342
+ const headers = sharedHeaders("ListMediaAnalysisJobs");
343
+ let body;
344
+ body = JSON.stringify((0, smithy_client_1._json)(input));
345
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
+ };
347
+ exports.se_ListMediaAnalysisJobsCommand = se_ListMediaAnalysisJobsCommand;
334
348
  const se_ListProjectPoliciesCommand = async (input, context) => {
335
349
  const headers = sharedHeaders("ListProjectPolicies");
336
350
  let body;
@@ -436,6 +450,13 @@ const se_StartLabelDetectionCommand = async (input, context) => {
436
450
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
451
  };
438
452
  exports.se_StartLabelDetectionCommand = se_StartLabelDetectionCommand;
453
+ const se_StartMediaAnalysisJobCommand = async (input, context) => {
454
+ const headers = sharedHeaders("StartMediaAnalysisJob");
455
+ let body;
456
+ body = JSON.stringify(se_StartMediaAnalysisJobRequest(input, context));
457
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
458
+ };
459
+ exports.se_StartMediaAnalysisJobCommand = se_StartMediaAnalysisJobCommand;
439
460
  const se_StartPersonTrackingCommand = async (input, context) => {
440
461
  const headers = sharedHeaders("StartPersonTracking");
441
462
  let body;
@@ -2502,6 +2523,54 @@ const de_GetLabelDetectionCommandError = async (output, context) => {
2502
2523
  });
2503
2524
  }
2504
2525
  };
2526
+ const de_GetMediaAnalysisJobCommand = async (output, context) => {
2527
+ if (output.statusCode >= 300) {
2528
+ return de_GetMediaAnalysisJobCommandError(output, context);
2529
+ }
2530
+ const data = await parseBody(output.body, context);
2531
+ let contents = {};
2532
+ contents = de_GetMediaAnalysisJobResponse(data, context);
2533
+ const response = {
2534
+ $metadata: deserializeMetadata(output),
2535
+ ...contents,
2536
+ };
2537
+ return response;
2538
+ };
2539
+ exports.de_GetMediaAnalysisJobCommand = de_GetMediaAnalysisJobCommand;
2540
+ const de_GetMediaAnalysisJobCommandError = async (output, context) => {
2541
+ const parsedOutput = {
2542
+ ...output,
2543
+ body: await parseErrorBody(output.body, context),
2544
+ };
2545
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2546
+ switch (errorCode) {
2547
+ case "AccessDeniedException":
2548
+ case "com.amazonaws.rekognition#AccessDeniedException":
2549
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2550
+ case "InternalServerError":
2551
+ case "com.amazonaws.rekognition#InternalServerError":
2552
+ throw await de_InternalServerErrorRes(parsedOutput, context);
2553
+ case "InvalidParameterException":
2554
+ case "com.amazonaws.rekognition#InvalidParameterException":
2555
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2556
+ case "ProvisionedThroughputExceededException":
2557
+ case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
2558
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
2559
+ case "ResourceNotFoundException":
2560
+ case "com.amazonaws.rekognition#ResourceNotFoundException":
2561
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2562
+ case "ThrottlingException":
2563
+ case "com.amazonaws.rekognition#ThrottlingException":
2564
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2565
+ default:
2566
+ const parsedBody = parsedOutput.body;
2567
+ return throwDefaultError({
2568
+ output,
2569
+ parsedBody,
2570
+ errorCode,
2571
+ });
2572
+ }
2573
+ };
2505
2574
  const de_GetPersonTrackingCommand = async (output, context) => {
2506
2575
  if (output.statusCode >= 300) {
2507
2576
  return de_GetPersonTrackingCommandError(output, context);
@@ -2931,6 +3000,54 @@ const de_ListFacesCommandError = async (output, context) => {
2931
3000
  });
2932
3001
  }
2933
3002
  };
3003
+ const de_ListMediaAnalysisJobsCommand = async (output, context) => {
3004
+ if (output.statusCode >= 300) {
3005
+ return de_ListMediaAnalysisJobsCommandError(output, context);
3006
+ }
3007
+ const data = await parseBody(output.body, context);
3008
+ let contents = {};
3009
+ contents = de_ListMediaAnalysisJobsResponse(data, context);
3010
+ const response = {
3011
+ $metadata: deserializeMetadata(output),
3012
+ ...contents,
3013
+ };
3014
+ return response;
3015
+ };
3016
+ exports.de_ListMediaAnalysisJobsCommand = de_ListMediaAnalysisJobsCommand;
3017
+ const de_ListMediaAnalysisJobsCommandError = async (output, context) => {
3018
+ const parsedOutput = {
3019
+ ...output,
3020
+ body: await parseErrorBody(output.body, context),
3021
+ };
3022
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3023
+ switch (errorCode) {
3024
+ case "AccessDeniedException":
3025
+ case "com.amazonaws.rekognition#AccessDeniedException":
3026
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3027
+ case "InternalServerError":
3028
+ case "com.amazonaws.rekognition#InternalServerError":
3029
+ throw await de_InternalServerErrorRes(parsedOutput, context);
3030
+ case "InvalidPaginationTokenException":
3031
+ case "com.amazonaws.rekognition#InvalidPaginationTokenException":
3032
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
3033
+ case "InvalidParameterException":
3034
+ case "com.amazonaws.rekognition#InvalidParameterException":
3035
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3036
+ case "ProvisionedThroughputExceededException":
3037
+ case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
3038
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
3039
+ case "ThrottlingException":
3040
+ case "com.amazonaws.rekognition#ThrottlingException":
3041
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3042
+ default:
3043
+ const parsedBody = parsedOutput.body;
3044
+ return throwDefaultError({
3045
+ output,
3046
+ parsedBody,
3047
+ errorCode,
3048
+ });
3049
+ }
3050
+ };
2934
3051
  const de_ListProjectPoliciesCommand = async (output, context) => {
2935
3052
  if (output.statusCode >= 300) {
2936
3053
  return de_ListProjectPoliciesCommandError(output, context);
@@ -3744,6 +3861,69 @@ const de_StartLabelDetectionCommandError = async (output, context) => {
3744
3861
  });
3745
3862
  }
3746
3863
  };
3864
+ const de_StartMediaAnalysisJobCommand = async (output, context) => {
3865
+ if (output.statusCode >= 300) {
3866
+ return de_StartMediaAnalysisJobCommandError(output, context);
3867
+ }
3868
+ const data = await parseBody(output.body, context);
3869
+ let contents = {};
3870
+ contents = (0, smithy_client_1._json)(data);
3871
+ const response = {
3872
+ $metadata: deserializeMetadata(output),
3873
+ ...contents,
3874
+ };
3875
+ return response;
3876
+ };
3877
+ exports.de_StartMediaAnalysisJobCommand = de_StartMediaAnalysisJobCommand;
3878
+ const de_StartMediaAnalysisJobCommandError = async (output, context) => {
3879
+ const parsedOutput = {
3880
+ ...output,
3881
+ body: await parseErrorBody(output.body, context),
3882
+ };
3883
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3884
+ switch (errorCode) {
3885
+ case "AccessDeniedException":
3886
+ case "com.amazonaws.rekognition#AccessDeniedException":
3887
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3888
+ case "IdempotentParameterMismatchException":
3889
+ case "com.amazonaws.rekognition#IdempotentParameterMismatchException":
3890
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
3891
+ case "InternalServerError":
3892
+ case "com.amazonaws.rekognition#InternalServerError":
3893
+ throw await de_InternalServerErrorRes(parsedOutput, context);
3894
+ case "InvalidManifestException":
3895
+ case "com.amazonaws.rekognition#InvalidManifestException":
3896
+ throw await de_InvalidManifestExceptionRes(parsedOutput, context);
3897
+ case "InvalidParameterException":
3898
+ case "com.amazonaws.rekognition#InvalidParameterException":
3899
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
3900
+ case "InvalidS3ObjectException":
3901
+ case "com.amazonaws.rekognition#InvalidS3ObjectException":
3902
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
3903
+ case "LimitExceededException":
3904
+ case "com.amazonaws.rekognition#LimitExceededException":
3905
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3906
+ case "ProvisionedThroughputExceededException":
3907
+ case "com.amazonaws.rekognition#ProvisionedThroughputExceededException":
3908
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
3909
+ case "ResourceNotFoundException":
3910
+ case "com.amazonaws.rekognition#ResourceNotFoundException":
3911
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3912
+ case "ResourceNotReadyException":
3913
+ case "com.amazonaws.rekognition#ResourceNotReadyException":
3914
+ throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
3915
+ case "ThrottlingException":
3916
+ case "com.amazonaws.rekognition#ThrottlingException":
3917
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3918
+ default:
3919
+ const parsedBody = parsedOutput.body;
3920
+ return throwDefaultError({
3921
+ output,
3922
+ parsedBody,
3923
+ errorCode,
3924
+ });
3925
+ }
3926
+ };
3747
3927
  const de_StartPersonTrackingCommand = async (output, context) => {
3748
3928
  if (output.statusCode >= 300) {
3749
3929
  return de_StartPersonTrackingCommandError(output, context);
@@ -4389,6 +4569,15 @@ const de_InvalidImageFormatExceptionRes = async (parsedOutput, context) => {
4389
4569
  });
4390
4570
  return (0, smithy_client_1.decorateServiceException)(exception, body);
4391
4571
  };
4572
+ const de_InvalidManifestExceptionRes = async (parsedOutput, context) => {
4573
+ const body = parsedOutput.body;
4574
+ const deserialized = (0, smithy_client_1._json)(body);
4575
+ const exception = new models_0_1.InvalidManifestException({
4576
+ $metadata: deserializeMetadata(parsedOutput),
4577
+ ...deserialized,
4578
+ });
4579
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
4580
+ };
4392
4581
  const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
4393
4582
  const body = parsedOutput.body;
4394
4583
  const deserialized = (0, smithy_client_1._json)(body);
@@ -4709,6 +4898,17 @@ const se_IndexFacesRequest = (input, context) => {
4709
4898
  QualityFilter: [],
4710
4899
  });
4711
4900
  };
4901
+ const se_MediaAnalysisDetectModerationLabelsConfig = (input, context) => {
4902
+ return (0, smithy_client_1.take)(input, {
4903
+ MinConfidence: smithy_client_1.serializeFloat,
4904
+ ProjectVersion: [],
4905
+ });
4906
+ };
4907
+ const se_MediaAnalysisOperationsConfig = (input, context) => {
4908
+ return (0, smithy_client_1.take)(input, {
4909
+ DetectModerationLabels: (_) => se_MediaAnalysisDetectModerationLabelsConfig(_, context),
4910
+ });
4911
+ };
4712
4912
  const se_Point = (input, context) => {
4713
4913
  return (0, smithy_client_1.take)(input, {
4714
4914
  X: smithy_client_1.serializeFloat,
@@ -4811,6 +5011,16 @@ const se_StartLabelDetectionRequest = (input, context) => {
4811
5011
  Video: smithy_client_1._json,
4812
5012
  });
4813
5013
  };
5014
+ const se_StartMediaAnalysisJobRequest = (input, context) => {
5015
+ return (0, smithy_client_1.take)(input, {
5016
+ ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
5017
+ Input: smithy_client_1._json,
5018
+ JobName: [],
5019
+ KmsKeyId: [],
5020
+ OperationsConfig: (_) => se_MediaAnalysisOperationsConfig(_, context),
5021
+ OutputConfig: smithy_client_1._json,
5022
+ });
5023
+ };
4814
5024
  const se_StartSegmentDetectionFilters = (input, context) => {
4815
5025
  return (0, smithy_client_1.take)(input, {
4816
5026
  ShotFilter: (_) => se_StartShotDetectionFilter(_, context),
@@ -5476,6 +5686,22 @@ const de_GetLabelDetectionResponse = (output, context) => {
5476
5686
  VideoMetadata: (_) => de_VideoMetadata(_, context),
5477
5687
  });
5478
5688
  };
5689
+ const de_GetMediaAnalysisJobResponse = (output, context) => {
5690
+ return (0, smithy_client_1.take)(output, {
5691
+ CompletionTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5692
+ CreationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5693
+ FailureDetails: smithy_client_1._json,
5694
+ Input: smithy_client_1._json,
5695
+ JobId: smithy_client_1.expectString,
5696
+ JobName: smithy_client_1.expectString,
5697
+ KmsKeyId: smithy_client_1.expectString,
5698
+ ManifestSummary: smithy_client_1._json,
5699
+ OperationsConfig: (_) => de_MediaAnalysisOperationsConfig(_, context),
5700
+ OutputConfig: smithy_client_1._json,
5701
+ Results: smithy_client_1._json,
5702
+ Status: smithy_client_1.expectString,
5703
+ });
5704
+ };
5479
5705
  const de_GetPersonTrackingResponse = (output, context) => {
5480
5706
  return (0, smithy_client_1.take)(output, {
5481
5707
  JobId: smithy_client_1.expectString,
@@ -5608,12 +5834,53 @@ const de_ListFacesResponse = (output, context) => {
5608
5834
  NextToken: smithy_client_1.expectString,
5609
5835
  });
5610
5836
  };
5837
+ const de_ListMediaAnalysisJobsResponse = (output, context) => {
5838
+ return (0, smithy_client_1.take)(output, {
5839
+ MediaAnalysisJobs: (_) => de_MediaAnalysisJobDescriptions(_, context),
5840
+ NextToken: smithy_client_1.expectString,
5841
+ });
5842
+ };
5611
5843
  const de_ListProjectPoliciesResponse = (output, context) => {
5612
5844
  return (0, smithy_client_1.take)(output, {
5613
5845
  NextToken: smithy_client_1.expectString,
5614
5846
  ProjectPolicies: (_) => de_ProjectPolicies(_, context),
5615
5847
  });
5616
5848
  };
5849
+ const de_MediaAnalysisDetectModerationLabelsConfig = (output, context) => {
5850
+ return (0, smithy_client_1.take)(output, {
5851
+ MinConfidence: smithy_client_1.limitedParseFloat32,
5852
+ ProjectVersion: smithy_client_1.expectString,
5853
+ });
5854
+ };
5855
+ const de_MediaAnalysisJobDescription = (output, context) => {
5856
+ return (0, smithy_client_1.take)(output, {
5857
+ CompletionTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5858
+ CreationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5859
+ FailureDetails: smithy_client_1._json,
5860
+ Input: smithy_client_1._json,
5861
+ JobId: smithy_client_1.expectString,
5862
+ JobName: smithy_client_1.expectString,
5863
+ KmsKeyId: smithy_client_1.expectString,
5864
+ ManifestSummary: smithy_client_1._json,
5865
+ OperationsConfig: (_) => de_MediaAnalysisOperationsConfig(_, context),
5866
+ OutputConfig: smithy_client_1._json,
5867
+ Results: smithy_client_1._json,
5868
+ Status: smithy_client_1.expectString,
5869
+ });
5870
+ };
5871
+ const de_MediaAnalysisJobDescriptions = (output, context) => {
5872
+ const retVal = (output || [])
5873
+ .filter((e) => e != null)
5874
+ .map((entry) => {
5875
+ return de_MediaAnalysisJobDescription(entry, context);
5876
+ });
5877
+ return retVal;
5878
+ };
5879
+ const de_MediaAnalysisOperationsConfig = (output, context) => {
5880
+ return (0, smithy_client_1.take)(output, {
5881
+ DetectModerationLabels: (_) => de_MediaAnalysisDetectModerationLabelsConfig(_, context),
5882
+ });
5883
+ };
5617
5884
  const de_ModerationLabel = (output, context) => {
5618
5885
  return (0, smithy_client_1.take)(output, {
5619
5886
  Confidence: smithy_client_1.limitedParseFloat32,
@@ -37,6 +37,7 @@ import { GetFaceDetectionCommand, } from "./commands/GetFaceDetectionCommand";
37
37
  import { GetFaceLivenessSessionResultsCommand, } from "./commands/GetFaceLivenessSessionResultsCommand";
38
38
  import { GetFaceSearchCommand, } from "./commands/GetFaceSearchCommand";
39
39
  import { GetLabelDetectionCommand, } from "./commands/GetLabelDetectionCommand";
40
+ import { GetMediaAnalysisJobCommand, } from "./commands/GetMediaAnalysisJobCommand";
40
41
  import { GetPersonTrackingCommand, } from "./commands/GetPersonTrackingCommand";
41
42
  import { GetSegmentDetectionCommand, } from "./commands/GetSegmentDetectionCommand";
42
43
  import { GetTextDetectionCommand, } from "./commands/GetTextDetectionCommand";
@@ -45,6 +46,7 @@ import { ListCollectionsCommand, } from "./commands/ListCollectionsCommand";
45
46
  import { ListDatasetEntriesCommand, } from "./commands/ListDatasetEntriesCommand";
46
47
  import { ListDatasetLabelsCommand, } from "./commands/ListDatasetLabelsCommand";
47
48
  import { ListFacesCommand } from "./commands/ListFacesCommand";
49
+ import { ListMediaAnalysisJobsCommand, } from "./commands/ListMediaAnalysisJobsCommand";
48
50
  import { ListProjectPoliciesCommand, } from "./commands/ListProjectPoliciesCommand";
49
51
  import { ListStreamProcessorsCommand, } from "./commands/ListStreamProcessorsCommand";
50
52
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -60,6 +62,7 @@ import { StartContentModerationCommand, } from "./commands/StartContentModeratio
60
62
  import { StartFaceDetectionCommand, } from "./commands/StartFaceDetectionCommand";
61
63
  import { StartFaceSearchCommand, } from "./commands/StartFaceSearchCommand";
62
64
  import { StartLabelDetectionCommand, } from "./commands/StartLabelDetectionCommand";
65
+ import { StartMediaAnalysisJobCommand, } from "./commands/StartMediaAnalysisJobCommand";
63
66
  import { StartPersonTrackingCommand, } from "./commands/StartPersonTrackingCommand";
64
67
  import { StartProjectVersionCommand, } from "./commands/StartProjectVersionCommand";
65
68
  import { StartSegmentDetectionCommand, } from "./commands/StartSegmentDetectionCommand";
@@ -111,6 +114,7 @@ const commands = {
111
114
  GetFaceLivenessSessionResultsCommand,
112
115
  GetFaceSearchCommand,
113
116
  GetLabelDetectionCommand,
117
+ GetMediaAnalysisJobCommand,
114
118
  GetPersonTrackingCommand,
115
119
  GetSegmentDetectionCommand,
116
120
  GetTextDetectionCommand,
@@ -119,6 +123,7 @@ const commands = {
119
123
  ListDatasetEntriesCommand,
120
124
  ListDatasetLabelsCommand,
121
125
  ListFacesCommand,
126
+ ListMediaAnalysisJobsCommand,
122
127
  ListProjectPoliciesCommand,
123
128
  ListStreamProcessorsCommand,
124
129
  ListTagsForResourceCommand,
@@ -134,6 +139,7 @@ const commands = {
134
139
  StartFaceDetectionCommand,
135
140
  StartFaceSearchCommand,
136
141
  StartLabelDetectionCommand,
142
+ StartMediaAnalysisJobCommand,
137
143
  StartPersonTrackingCommand,
138
144
  StartProjectVersionCommand,
139
145
  StartSegmentDetectionCommand,
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_GetMediaAnalysisJobCommand, se_GetMediaAnalysisJobCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class GetMediaAnalysisJobCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetMediaAnalysisJobCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RekognitionClient";
26
+ const commandName = "GetMediaAnalysisJobCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "RekognitionService",
35
+ operation: "GetMediaAnalysisJob",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_GetMediaAnalysisJobCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_GetMediaAnalysisJobCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_ListMediaAnalysisJobsCommand, se_ListMediaAnalysisJobsCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListMediaAnalysisJobsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListMediaAnalysisJobsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RekognitionClient";
26
+ const commandName = "ListMediaAnalysisJobsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "RekognitionService",
35
+ operation: "ListMediaAnalysisJobs",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_ListMediaAnalysisJobsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_ListMediaAnalysisJobsCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_StartMediaAnalysisJobCommand, se_StartMediaAnalysisJobCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class StartMediaAnalysisJobCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartMediaAnalysisJobCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RekognitionClient";
26
+ const commandName = "StartMediaAnalysisJobCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "RekognitionService",
35
+ operation: "StartMediaAnalysisJob",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_StartMediaAnalysisJobCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_StartMediaAnalysisJobCommand(output, context);
46
+ }
47
+ }
@@ -36,6 +36,7 @@ export * from "./GetFaceDetectionCommand";
36
36
  export * from "./GetFaceLivenessSessionResultsCommand";
37
37
  export * from "./GetFaceSearchCommand";
38
38
  export * from "./GetLabelDetectionCommand";
39
+ export * from "./GetMediaAnalysisJobCommand";
39
40
  export * from "./GetPersonTrackingCommand";
40
41
  export * from "./GetSegmentDetectionCommand";
41
42
  export * from "./GetTextDetectionCommand";
@@ -44,6 +45,7 @@ export * from "./ListCollectionsCommand";
44
45
  export * from "./ListDatasetEntriesCommand";
45
46
  export * from "./ListDatasetLabelsCommand";
46
47
  export * from "./ListFacesCommand";
48
+ export * from "./ListMediaAnalysisJobsCommand";
47
49
  export * from "./ListProjectPoliciesCommand";
48
50
  export * from "./ListStreamProcessorsCommand";
49
51
  export * from "./ListTagsForResourceCommand";
@@ -59,6 +61,7 @@ export * from "./StartContentModerationCommand";
59
61
  export * from "./StartFaceDetectionCommand";
60
62
  export * from "./StartFaceSearchCommand";
61
63
  export * from "./StartLabelDetectionCommand";
64
+ export * from "./StartMediaAnalysisJobCommand";
62
65
  export * from "./StartPersonTrackingCommand";
63
66
  export * from "./StartProjectVersionCommand";
64
67
  export * from "./StartSegmentDetectionCommand";
@@ -1,4 +1,4 @@
1
- const q = "required", r = "fn", s = "argv", t = "ref";
2
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://rekognition-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://rekognition.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
1
+ const s = "required", t = "fn", u = "argv", v = "ref";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://rekognition-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://rekognition.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
4
4
  export const ruleSet = _data;
@@ -526,6 +526,24 @@ export const LabelDetectionSortBy = {
526
526
  NAME: "NAME",
527
527
  TIMESTAMP: "TIMESTAMP",
528
528
  };
529
+ export const MediaAnalysisJobFailureCode = {
530
+ ACCESS_DENIED: "ACCESS_DENIED",
531
+ INTERNAL_ERROR: "INTERNAL_ERROR",
532
+ INVALID_KMS_KEY: "INVALID_KMS_KEY",
533
+ INVALID_MANIFEST: "INVALID_MANIFEST",
534
+ INVALID_OUTPUT_CONFIG: "INVALID_OUTPUT_CONFIG",
535
+ INVALID_S3_OBJECT: "INVALID_S3_OBJECT",
536
+ RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
537
+ RESOURCE_NOT_READY: "RESOURCE_NOT_READY",
538
+ THROTTLED: "THROTTLED",
539
+ };
540
+ export const MediaAnalysisJobStatus = {
541
+ CREATED: "CREATED",
542
+ FAILED: "FAILED",
543
+ IN_PROGRESS: "IN_PROGRESS",
544
+ QUEUED: "QUEUED",
545
+ SUCCEEDED: "SUCCEEDED",
546
+ };
529
547
  export const PersonTrackingSortBy = {
530
548
  INDEX: "INDEX",
531
549
  TIMESTAMP: "TIMESTAMP",
@@ -552,6 +570,21 @@ export const Reason = {
552
570
  LOW_SHARPNESS: "LOW_SHARPNESS",
553
571
  SMALL_BOUNDING_BOX: "SMALL_BOUNDING_BOX",
554
572
  };
573
+ export class InvalidManifestException extends __BaseException {
574
+ constructor(opts) {
575
+ super({
576
+ name: "InvalidManifestException",
577
+ $fault: "client",
578
+ ...opts,
579
+ });
580
+ this.name = "InvalidManifestException";
581
+ this.$fault = "client";
582
+ Object.setPrototypeOf(this, InvalidManifestException.prototype);
583
+ this.Message = opts.Message;
584
+ this.Code = opts.Code;
585
+ this.Logref = opts.Logref;
586
+ }
587
+ }
555
588
  export const LabelDetectionFeatureName = {
556
589
  GENERAL_LABELS: "GENERAL_LABELS",
557
590
  };