Skip to content

Commit

Permalink
feat(client-rekognition): Amazon Rekognition introduces StartMediaAna…
Browse files Browse the repository at this point in the history
…lysisJob, GetMediaAnalysisJob, and ListMediaAnalysisJobs operations to run a bulk analysis of images with a Detect Moderation model.
  • Loading branch information
awstools committed Oct 23, 2023
1 parent 2b13ffd commit 6f675cf
Show file tree
Hide file tree
Showing 20 changed files with 3,020 additions and 633 deletions.
24 changes: 24 additions & 0 deletions clients/client-rekognition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,14 @@ GetLabelDetection

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/getlabeldetectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/getlabeldetectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/getlabeldetectioncommandoutput.html)

</details>
<details>
<summary>
GetMediaAnalysisJob
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/getmediaanalysisjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/getmediaanalysisjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/getmediaanalysisjobcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -928,6 +936,14 @@ ListFaces

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/listfacescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/listfacescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/listfacescommandoutput.html)

</details>
<details>
<summary>
ListMediaAnalysisJobs
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/listmediaanalysisjobscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/listmediaanalysisjobscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/listmediaanalysisjobscommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -1048,6 +1064,14 @@ StartLabelDetection

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/startlabeldetectioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/startlabeldetectioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/startlabeldetectioncommandoutput.html)

</details>
<details>
<summary>
StartMediaAnalysisJob
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/classes/startmediaanalysisjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/startmediaanalysisjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rekognition/interfaces/startmediaanalysisjobcommandoutput.html)

</details>
<details>
<summary>
Expand Down
69 changes: 69 additions & 0 deletions clients/client-rekognition/src/Rekognition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ import {
GetLabelDetectionCommandInput,
GetLabelDetectionCommandOutput,
} from "./commands/GetLabelDetectionCommand";
import {
GetMediaAnalysisJobCommand,
GetMediaAnalysisJobCommandInput,
GetMediaAnalysisJobCommandOutput,
} from "./commands/GetMediaAnalysisJobCommand";
import {
GetPersonTrackingCommand,
GetPersonTrackingCommandInput,
Expand Down Expand Up @@ -204,6 +209,11 @@ import {
ListDatasetLabelsCommandOutput,
} from "./commands/ListDatasetLabelsCommand";
import { ListFacesCommand, ListFacesCommandInput, ListFacesCommandOutput } from "./commands/ListFacesCommand";
import {
ListMediaAnalysisJobsCommand,
ListMediaAnalysisJobsCommandInput,
ListMediaAnalysisJobsCommandOutput,
} from "./commands/ListMediaAnalysisJobsCommand";
import {
ListProjectPoliciesCommand,
ListProjectPoliciesCommandInput,
Expand Down Expand Up @@ -267,6 +277,11 @@ import {
StartLabelDetectionCommandInput,
StartLabelDetectionCommandOutput,
} from "./commands/StartLabelDetectionCommand";
import {
StartMediaAnalysisJobCommand,
StartMediaAnalysisJobCommandInput,
StartMediaAnalysisJobCommandOutput,
} from "./commands/StartMediaAnalysisJobCommand";
import {
StartPersonTrackingCommand,
StartPersonTrackingCommandInput,
Expand Down Expand Up @@ -359,6 +374,7 @@ const commands = {
GetFaceLivenessSessionResultsCommand,
GetFaceSearchCommand,
GetLabelDetectionCommand,
GetMediaAnalysisJobCommand,
GetPersonTrackingCommand,
GetSegmentDetectionCommand,
GetTextDetectionCommand,
Expand All @@ -367,6 +383,7 @@ const commands = {
ListDatasetEntriesCommand,
ListDatasetLabelsCommand,
ListFacesCommand,
ListMediaAnalysisJobsCommand,
ListProjectPoliciesCommand,
ListStreamProcessorsCommand,
ListTagsForResourceCommand,
Expand All @@ -382,6 +399,7 @@ const commands = {
StartFaceDetectionCommand,
StartFaceSearchCommand,
StartLabelDetectionCommand,
StartMediaAnalysisJobCommand,
StartPersonTrackingCommand,
StartProjectVersionCommand,
StartSegmentDetectionCommand,
Expand Down Expand Up @@ -964,6 +982,23 @@ export interface Rekognition {
cb: (err: any, data?: GetLabelDetectionCommandOutput) => void
): void;

/**
* @see {@link GetMediaAnalysisJobCommand}
*/
getMediaAnalysisJob(
args: GetMediaAnalysisJobCommandInput,
options?: __HttpHandlerOptions
): Promise<GetMediaAnalysisJobCommandOutput>;
getMediaAnalysisJob(
args: GetMediaAnalysisJobCommandInput,
cb: (err: any, data?: GetMediaAnalysisJobCommandOutput) => void
): void;
getMediaAnalysisJob(
args: GetMediaAnalysisJobCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetMediaAnalysisJobCommandOutput) => void
): void;

/**
* @see {@link GetPersonTrackingCommand}
*/
Expand Down Expand Up @@ -1085,6 +1120,23 @@ export interface Rekognition {
cb: (err: any, data?: ListFacesCommandOutput) => void
): void;

/**
* @see {@link ListMediaAnalysisJobsCommand}
*/
listMediaAnalysisJobs(
args: ListMediaAnalysisJobsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListMediaAnalysisJobsCommandOutput>;
listMediaAnalysisJobs(
args: ListMediaAnalysisJobsCommandInput,
cb: (err: any, data?: ListMediaAnalysisJobsCommandOutput) => void
): void;
listMediaAnalysisJobs(
args: ListMediaAnalysisJobsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListMediaAnalysisJobsCommandOutput) => void
): void;

/**
* @see {@link ListProjectPoliciesCommand}
*/
Expand Down Expand Up @@ -1319,6 +1371,23 @@ export interface Rekognition {
cb: (err: any, data?: StartLabelDetectionCommandOutput) => void
): void;

/**
* @see {@link StartMediaAnalysisJobCommand}
*/
startMediaAnalysisJob(
args: StartMediaAnalysisJobCommandInput,
options?: __HttpHandlerOptions
): Promise<StartMediaAnalysisJobCommandOutput>;
startMediaAnalysisJob(
args: StartMediaAnalysisJobCommandInput,
cb: (err: any, data?: StartMediaAnalysisJobCommandOutput) => void
): void;
startMediaAnalysisJob(
args: StartMediaAnalysisJobCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: StartMediaAnalysisJobCommandOutput) => void
): void;

/**
* @see {@link StartPersonTrackingCommand}
*/
Expand Down
18 changes: 18 additions & 0 deletions clients/client-rekognition/src/RekognitionClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ import {
} from "./commands/GetFaceLivenessSessionResultsCommand";
import { GetFaceSearchCommandInput, GetFaceSearchCommandOutput } from "./commands/GetFaceSearchCommand";
import { GetLabelDetectionCommandInput, GetLabelDetectionCommandOutput } from "./commands/GetLabelDetectionCommand";
import {
GetMediaAnalysisJobCommandInput,
GetMediaAnalysisJobCommandOutput,
} from "./commands/GetMediaAnalysisJobCommand";
import { GetPersonTrackingCommandInput, GetPersonTrackingCommandOutput } from "./commands/GetPersonTrackingCommand";
import {
GetSegmentDetectionCommandInput,
Expand All @@ -141,6 +145,10 @@ import { ListCollectionsCommandInput, ListCollectionsCommandOutput } from "./com
import { ListDatasetEntriesCommandInput, ListDatasetEntriesCommandOutput } from "./commands/ListDatasetEntriesCommand";
import { ListDatasetLabelsCommandInput, ListDatasetLabelsCommandOutput } from "./commands/ListDatasetLabelsCommand";
import { ListFacesCommandInput, ListFacesCommandOutput } from "./commands/ListFacesCommand";
import {
ListMediaAnalysisJobsCommandInput,
ListMediaAnalysisJobsCommandOutput,
} from "./commands/ListMediaAnalysisJobsCommand";
import {
ListProjectPoliciesCommandInput,
ListProjectPoliciesCommandOutput,
Expand Down Expand Up @@ -177,6 +185,10 @@ import {
StartLabelDetectionCommandInput,
StartLabelDetectionCommandOutput,
} from "./commands/StartLabelDetectionCommand";
import {
StartMediaAnalysisJobCommandInput,
StartMediaAnalysisJobCommandOutput,
} from "./commands/StartMediaAnalysisJobCommand";
import {
StartPersonTrackingCommandInput,
StartPersonTrackingCommandOutput,
Expand Down Expand Up @@ -262,6 +274,7 @@ export type ServiceInputTypes =
| GetFaceLivenessSessionResultsCommandInput
| GetFaceSearchCommandInput
| GetLabelDetectionCommandInput
| GetMediaAnalysisJobCommandInput
| GetPersonTrackingCommandInput
| GetSegmentDetectionCommandInput
| GetTextDetectionCommandInput
Expand All @@ -270,6 +283,7 @@ export type ServiceInputTypes =
| ListDatasetEntriesCommandInput
| ListDatasetLabelsCommandInput
| ListFacesCommandInput
| ListMediaAnalysisJobsCommandInput
| ListProjectPoliciesCommandInput
| ListStreamProcessorsCommandInput
| ListTagsForResourceCommandInput
Expand All @@ -285,6 +299,7 @@ export type ServiceInputTypes =
| StartFaceDetectionCommandInput
| StartFaceSearchCommandInput
| StartLabelDetectionCommandInput
| StartMediaAnalysisJobCommandInput
| StartPersonTrackingCommandInput
| StartProjectVersionCommandInput
| StartSegmentDetectionCommandInput
Expand Down Expand Up @@ -339,6 +354,7 @@ export type ServiceOutputTypes =
| GetFaceLivenessSessionResultsCommandOutput
| GetFaceSearchCommandOutput
| GetLabelDetectionCommandOutput
| GetMediaAnalysisJobCommandOutput
| GetPersonTrackingCommandOutput
| GetSegmentDetectionCommandOutput
| GetTextDetectionCommandOutput
Expand All @@ -347,6 +363,7 @@ export type ServiceOutputTypes =
| ListDatasetEntriesCommandOutput
| ListDatasetLabelsCommandOutput
| ListFacesCommandOutput
| ListMediaAnalysisJobsCommandOutput
| ListProjectPoliciesCommandOutput
| ListStreamProcessorsCommandOutput
| ListTagsForResourceCommandOutput
Expand All @@ -362,6 +379,7 @@ export type ServiceOutputTypes =
| StartFaceDetectionCommandOutput
| StartFaceSearchCommandOutput
| StartLabelDetectionCommandOutput
| StartMediaAnalysisJobCommandOutput
| StartPersonTrackingCommandOutput
| StartProjectVersionCommandOutput
| StartSegmentDetectionCommandOutput
Expand Down
Loading

0 comments on commit 6f675cf

Please sign in to comment.