diff --git a/clients/client-rekognition/src/commands/CopyProjectVersionCommand.ts b/clients/client-rekognition/src/commands/CopyProjectVersionCommand.ts index 6c7103544dbcc..291a4fadde8bd 100644 --- a/clients/client-rekognition/src/commands/CopyProjectVersionCommand.ts +++ b/clients/client-rekognition/src/commands/CopyProjectVersionCommand.ts @@ -37,7 +37,10 @@ export interface CopyProjectVersionCommandOutput extends CopyProjectVersionRespo /** * @public - *

Copies a version of an Amazon Rekognition Custom Labels model from a source project to a destination project. The source and + * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ * + *

Copies a version of an Amazon Rekognition Custom Labels model from a source project to a destination project. The source and * destination projects can be in different AWS accounts but must be in the same AWS Region. * You can't copy a model to another AWS service. * @@ -51,7 +54,9 @@ export interface CopyProjectVersionCommandOutput extends CopyProjectVersionRespo *

*

If you are copying a model version to a project in the same AWS account, you don't need to create a project policy.

* - *

To copy a model, the destination project, source project, and source model version must already exist.

+ *

Copying project versions is supported only for Custom Labels models.

+ *

To copy a model, the destination project, source project, and source model version + * must already exist.

*
*

Copying a model version takes a while to complete. To get the current status, call DescribeProjectVersions and check the value of Status in the * ProjectVersionDescription object. The copy operation has finished when @@ -102,9 +107,11 @@ export interface CopyProjectVersionCommandOutput extends CopyProjectVersionRespo * operation again.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/CreateDatasetCommand.ts b/clients/client-rekognition/src/commands/CreateDatasetCommand.ts index c899b84a23300..c1809d2aa1917 100644 --- a/clients/client-rekognition/src/commands/CreateDatasetCommand.ts +++ b/clients/client-rekognition/src/commands/CreateDatasetCommand.ts @@ -37,7 +37,10 @@ export interface CreateDatasetCommandOutput extends CreateDatasetResponse, __Met /** * @public - *

Creates a new Amazon Rekognition Custom Labels dataset. You can create a dataset by using + * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ * + *

Creates a new Amazon Rekognition Custom Labels dataset. You can create a dataset by using * an Amazon Sagemaker format manifest file or by copying an existing Amazon Rekognition Custom Labels dataset.

*

To create a training dataset for a project, specify TRAIN for the value of * DatasetType. To create the test dataset for a project, @@ -104,9 +107,11 @@ export interface CreateDatasetCommandOutput extends CreateDatasetResponse, __Met *

Amazon Rekognition is unable to access the S3 object specified in the request.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/CreateProjectCommand.ts b/clients/client-rekognition/src/commands/CreateProjectCommand.ts index 678ba15c6898f..4cd353d3763e7 100644 --- a/clients/client-rekognition/src/commands/CreateProjectCommand.ts +++ b/clients/client-rekognition/src/commands/CreateProjectCommand.ts @@ -37,9 +37,12 @@ export interface CreateProjectCommandOutput extends CreateProjectResponse, __Met /** * @public - *

Creates a new Amazon Rekognition Custom Labels project. A project is a group of resources (datasets, model versions) - * that you use to create and manage Amazon Rekognition Custom Labels models.

- *

This operation requires permissions to perform the rekognition:CreateProject action.

+ *

Creates a new Amazon Rekognition project. A project is a group of resources (datasets, model + * versions) that you use to create and manage a Amazon Rekognition Custom Labels Model or custom adapter. You can + * specify a feature to create the project with, if no feature is specified then Custom Labels + * is used by default. For adapters, you can also choose whether or not to have the project + * auto update by using the AutoUpdate argument. This operation requires permissions to + * perform the rekognition:CreateProject action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -48,6 +51,8 @@ export interface CreateProjectCommandOutput extends CreateProjectResponse, __Met * const client = new RekognitionClient(config); * const input = { // CreateProjectRequest * ProjectName: "STRING_VALUE", // required + * Feature: "CONTENT_MODERATION" || "CUSTOM_LABELS", + * AutoUpdate: "ENABLED" || "DISABLED", * }; * const command = new CreateProjectCommand(input); * const response = await client.send(command); @@ -74,9 +79,11 @@ export interface CreateProjectCommandOutput extends CreateProjectResponse, __Met * operation again.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/CreateProjectVersionCommand.ts b/clients/client-rekognition/src/commands/CreateProjectVersionCommand.ts index 8efda08a411c2..c5fd3166d5d7d 100644 --- a/clients/client-rekognition/src/commands/CreateProjectVersionCommand.ts +++ b/clients/client-rekognition/src/commands/CreateProjectVersionCommand.ts @@ -37,14 +37,24 @@ export interface CreateProjectVersionCommandOutput extends CreateProjectVersionR /** * @public - *

Creates a new version of a model and begins training. - * Models are managed as part of an Amazon Rekognition Custom Labels project. - * The response from CreateProjectVersion - * is an Amazon Resource Name (ARN) for the version of the model.

- *

Training uses the training and test datasets associated with the project. - * For more information, see Creating training and test dataset in the Amazon Rekognition Custom Labels Developer Guide. - *

+ *

Creates a new version of Amazon Rekognition project (like a Custom Labels model or a custom adapter) + * and begins training. Models and adapters are managed as part of a Rekognition project. The + * response from CreateProjectVersion is an Amazon Resource Name (ARN) for the + * project version.

+ *

The FeatureConfig operation argument allows you to configure specific model or adapter + * settings. You can provide a description to the project version by using the + * VersionDescription argment. Training can take a while to complete. You can get the current + * status by calling DescribeProjectVersions. Training completed + * successfully if the value of the Status field is + * TRAINING_COMPLETED. Once training has successfully completed, call DescribeProjectVersions to get the training results and evaluate the + * model.

+ *

This operation requires permissions to perform the + * rekognition:CreateProjectVersion action.

* + *

+ * The following applies only to projects with Amazon Rekognition Custom Labels as the chosen + * feature: + *

*

You can train a model in a project that doesn't have associated datasets by specifying manifest files in the * TrainingData and TestingData fields. *

@@ -55,18 +65,7 @@ export interface CreateProjectVersionCommandOutput extends CreateProjectVersionR * we recommend that you use the manifest * files to create training and test datasets for the project.

*
- *

Training takes a while to complete. You can get the current status by calling - * DescribeProjectVersions. Training completed successfully if - * the value of the Status field is TRAINING_COMPLETED.

- *

If training - * fails, see Debugging a failed model training in the Amazon Rekognition Custom Labels developer guide.

- *

Once training has successfully completed, call DescribeProjectVersions to - * get the training results and evaluate the model. For more information, see Improving a trained Amazon Rekognition Custom Labels model - * in the Amazon Rekognition Custom Labels developers guide. - *

- *

After evaluating the model, you start the model - * by calling StartProjectVersion.

- *

This operation requires permissions to perform the rekognition:CreateProjectVersion action.

+ *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -111,6 +110,12 @@ export interface CreateProjectVersionCommandOutput extends CreateProjectVersionR * "": "STRING_VALUE", * }, * KmsKeyId: "STRING_VALUE", + * VersionDescription: "STRING_VALUE", + * FeatureConfig: { // CustomizationFeatureConfig + * ContentModeration: { // CustomizationFeatureContentModerationConfig + * ConfidenceThreshold: Number("float"), + * }, + * }, * }; * const command = new CreateProjectVersionCommand(input); * const response = await client.send(command); @@ -137,9 +142,11 @@ export interface CreateProjectVersionCommandOutput extends CreateProjectVersionR * operation again.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/CreateStreamProcessorCommand.ts b/clients/client-rekognition/src/commands/CreateStreamProcessorCommand.ts index db54a740249dc..13719dfdbd07b 100644 --- a/clients/client-rekognition/src/commands/CreateStreamProcessorCommand.ts +++ b/clients/client-rekognition/src/commands/CreateStreamProcessorCommand.ts @@ -155,9 +155,11 @@ export interface CreateStreamProcessorCommandOutput extends CreateStreamProcesso * operation again.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/DeleteDatasetCommand.ts b/clients/client-rekognition/src/commands/DeleteDatasetCommand.ts index b4ba40679b350..a40d8a4a52a87 100644 --- a/clients/client-rekognition/src/commands/DeleteDatasetCommand.ts +++ b/clients/client-rekognition/src/commands/DeleteDatasetCommand.ts @@ -37,7 +37,10 @@ export interface DeleteDatasetCommandOutput extends DeleteDatasetResponse, __Met /** * @public - *

Deletes an existing Amazon Rekognition Custom Labels dataset. + * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ * + *

Deletes an existing Amazon Rekognition Custom Labels dataset. * Deleting a dataset might take while. Use DescribeDataset to check the * current status. The dataset is still deleting if the value of Status is * DELETE_IN_PROGRESS. If you try to access the dataset after it is deleted, you get @@ -79,9 +82,11 @@ export interface DeleteDatasetCommandOutput extends DeleteDatasetResponse, __Met * operation again.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/DeleteProjectCommand.ts b/clients/client-rekognition/src/commands/DeleteProjectCommand.ts index b998bb40735ce..0d31ec98fbaa0 100644 --- a/clients/client-rekognition/src/commands/DeleteProjectCommand.ts +++ b/clients/client-rekognition/src/commands/DeleteProjectCommand.ts @@ -37,8 +37,8 @@ export interface DeleteProjectCommandOutput extends DeleteProjectResponse, __Met /** * @public - *

Deletes an Amazon Rekognition Custom Labels project. To delete a project you must first delete all models associated - * with the project. To delete a model, see DeleteProjectVersion.

+ *

Deletes a Amazon Rekognition project. To delete a project you must first delete all models or + * adapters associated with the project. To delete a model or adapter, see DeleteProjectVersion.

*

* DeleteProject is an asynchronous operation. To check if the project is * deleted, call DescribeProjects. The project is deleted when the project diff --git a/clients/client-rekognition/src/commands/DeleteProjectPolicyCommand.ts b/clients/client-rekognition/src/commands/DeleteProjectPolicyCommand.ts index 41d179f758d54..5b21a8b64cd81 100644 --- a/clients/client-rekognition/src/commands/DeleteProjectPolicyCommand.ts +++ b/clients/client-rekognition/src/commands/DeleteProjectPolicyCommand.ts @@ -37,7 +37,10 @@ export interface DeleteProjectPolicyCommandOutput extends DeleteProjectPolicyRes /** * @public - *

Deletes an existing project policy.

+ * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ *
+ *

Deletes an existing project policy.

*

To get a list of project policies attached to a project, call ListProjectPolicies. To attach a project policy to a project, call PutProjectPolicy.

*

This operation requires permissions to perform the rekognition:DeleteProjectPolicy action.

* @example diff --git a/clients/client-rekognition/src/commands/DeleteProjectVersionCommand.ts b/clients/client-rekognition/src/commands/DeleteProjectVersionCommand.ts index ee7344ca821ca..e9d44bd8f0ae7 100644 --- a/clients/client-rekognition/src/commands/DeleteProjectVersionCommand.ts +++ b/clients/client-rekognition/src/commands/DeleteProjectVersionCommand.ts @@ -37,12 +37,11 @@ export interface DeleteProjectVersionCommandOutput extends DeleteProjectVersionR /** * @public - *

Deletes an Amazon Rekognition Custom Labels model.

- *

You can't delete a model if it is running or if it is training. - * To check the status of a model, use the Status field returned - * from DescribeProjectVersions. - * To stop a running model call StopProjectVersion. If the model - * is training, wait until it finishes.

+ *

Deletes a Rekognition project model or project version, like a Amazon Rekognition Custom Labels model or a custom + * adapter.

+ *

You can't delete a project version if it is running or if it is training. To check + * the status of a project version, use the Status field returned from DescribeProjectVersions. To stop a project version call StopProjectVersion. If the project version is training, wait until it + * finishes.

*

This operation requires permissions to perform the * rekognition:DeleteProjectVersion action.

* @example @@ -57,7 +56,7 @@ export interface DeleteProjectVersionCommandOutput extends DeleteProjectVersionR * const command = new DeleteProjectVersionCommand(input); * const response = await client.send(command); * // { // DeleteProjectVersionResponse - * // Status: "TRAINING_IN_PROGRESS" || "TRAINING_COMPLETED" || "TRAINING_FAILED" || "STARTING" || "RUNNING" || "FAILED" || "STOPPING" || "STOPPED" || "DELETING" || "COPYING_IN_PROGRESS" || "COPYING_COMPLETED" || "COPYING_FAILED", + * // Status: "TRAINING_IN_PROGRESS" || "TRAINING_COMPLETED" || "TRAINING_FAILED" || "STARTING" || "RUNNING" || "FAILED" || "STOPPING" || "STOPPED" || "DELETING" || "COPYING_IN_PROGRESS" || "COPYING_COMPLETED" || "COPYING_FAILED" || "DEPRECATED" || "EXPIRED", * // }; * * ``` diff --git a/clients/client-rekognition/src/commands/DescribeDatasetCommand.ts b/clients/client-rekognition/src/commands/DescribeDatasetCommand.ts index 2eb3fba4d44a6..8a16f9f20463d 100644 --- a/clients/client-rekognition/src/commands/DescribeDatasetCommand.ts +++ b/clients/client-rekognition/src/commands/DescribeDatasetCommand.ts @@ -37,7 +37,10 @@ export interface DescribeDatasetCommandOutput extends DescribeDatasetResponse, _ /** * @public - *

+ * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ * + *

* Describes an Amazon Rekognition Custom Labels dataset. You can get information such as the current status of a dataset and * statistics about the images and labels in a dataset. *

diff --git a/clients/client-rekognition/src/commands/DescribeProjectVersionsCommand.ts b/clients/client-rekognition/src/commands/DescribeProjectVersionsCommand.ts index fd5ce246142fd..a46201090d2d9 100644 --- a/clients/client-rekognition/src/commands/DescribeProjectVersionsCommand.ts +++ b/clients/client-rekognition/src/commands/DescribeProjectVersionsCommand.ts @@ -37,9 +37,9 @@ export interface DescribeProjectVersionsCommandOutput extends DescribeProjectVer /** * @public - *

Lists and describes the versions of a model in an Amazon Rekognition Custom Labels project. You - * can specify up to 10 model versions in ProjectVersionArns. If - * you don't specify a value, descriptions for all model versions in the project are returned.

+ *

Lists and describes the versions of an Amazon Rekognition project. You can specify up to 10 model or + * adapter versions in ProjectVersionArns. If you don't specify a value, + * descriptions for all model/adapter versions in the project are returned.

*

This operation requires permissions to perform the rekognition:DescribeProjectVersions * action.

* @example @@ -64,7 +64,7 @@ export interface DescribeProjectVersionsCommandOutput extends DescribeProjectVer * // ProjectVersionArn: "STRING_VALUE", * // CreationTimestamp: new Date("TIMESTAMP"), * // MinInferenceUnits: Number("int"), - * // Status: "TRAINING_IN_PROGRESS" || "TRAINING_COMPLETED" || "TRAINING_FAILED" || "STARTING" || "RUNNING" || "FAILED" || "STOPPING" || "STOPPED" || "DELETING" || "COPYING_IN_PROGRESS" || "COPYING_COMPLETED" || "COPYING_FAILED", + * // Status: "TRAINING_IN_PROGRESS" || "TRAINING_COMPLETED" || "TRAINING_FAILED" || "STARTING" || "RUNNING" || "FAILED" || "STOPPING" || "STOPPED" || "DELETING" || "COPYING_IN_PROGRESS" || "COPYING_COMPLETED" || "COPYING_FAILED" || "DEPRECATED" || "EXPIRED", * // StatusMessage: "STRING_VALUE", * // BillableTrainingTimeInSeconds: Number("long"), * // TrainingEndTimestamp: new Date("TIMESTAMP"), @@ -156,6 +156,14 @@ export interface DescribeProjectVersionsCommandOutput extends DescribeProjectVer * // KmsKeyId: "STRING_VALUE", * // MaxInferenceUnits: Number("int"), * // SourceProjectVersionArn: "STRING_VALUE", + * // VersionDescription: "STRING_VALUE", + * // Feature: "CONTENT_MODERATION" || "CUSTOM_LABELS", + * // BaseModelVersion: "STRING_VALUE", + * // FeatureConfig: { // CustomizationFeatureConfig + * // ContentModeration: { // CustomizationFeatureContentModerationConfig + * // ConfidenceThreshold: Number("float"), + * // }, + * // }, * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-rekognition/src/commands/DescribeProjectsCommand.ts b/clients/client-rekognition/src/commands/DescribeProjectsCommand.ts index d30d360ad4b2e..28ffc6ef35994 100644 --- a/clients/client-rekognition/src/commands/DescribeProjectsCommand.ts +++ b/clients/client-rekognition/src/commands/DescribeProjectsCommand.ts @@ -37,7 +37,7 @@ export interface DescribeProjectsCommandOutput extends DescribeProjectsResponse, /** * @public - *

Gets information about your Amazon Rekognition Custom Labels projects.

+ *

Gets information about your Rekognition projects.

*

This operation requires permissions to perform the rekognition:DescribeProjects action.

* @example * Use a bare-bones client and the command you need to make an API call. @@ -51,6 +51,9 @@ export interface DescribeProjectsCommandOutput extends DescribeProjectsResponse, * ProjectNames: [ // ProjectNames * "STRING_VALUE", * ], + * Features: [ // CustomizationFeatures + * "CONTENT_MODERATION" || "CUSTOM_LABELS", + * ], * }; * const command = new DescribeProjectsCommand(input); * const response = await client.send(command); @@ -70,6 +73,8 @@ export interface DescribeProjectsCommandOutput extends DescribeProjectsResponse, * // StatusMessageCode: "SUCCESS" || "SERVICE_ERROR" || "CLIENT_ERROR", * // }, * // ], + * // Feature: "CONTENT_MODERATION" || "CUSTOM_LABELS", + * // AutoUpdate: "ENABLED" || "DISABLED", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-rekognition/src/commands/DetectCustomLabelsCommand.ts b/clients/client-rekognition/src/commands/DetectCustomLabelsCommand.ts index 9c67ba4529c09..9682225e70374 100644 --- a/clients/client-rekognition/src/commands/DetectCustomLabelsCommand.ts +++ b/clients/client-rekognition/src/commands/DetectCustomLabelsCommand.ts @@ -37,7 +37,10 @@ export interface DetectCustomLabelsCommandOutput extends DetectCustomLabelsRespo /** * @public - *

Detects custom labels in a supplied image by using an Amazon Rekognition Custom Labels model.

+ * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ *
+ *

Detects custom labels in a supplied image by using an Amazon Rekognition Custom Labels model.

*

You specify which version of a model version to use by using the ProjectVersionArn input * parameter.

*

You pass the input image as base64-encoded image bytes or as a reference to an image in @@ -144,9 +147,11 @@ export interface DetectCustomLabelsCommandOutput extends DetectCustomLabelsRespo *

Amazon Rekognition is unable to access the S3 object specified in the request.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/DetectModerationLabelsCommand.ts b/clients/client-rekognition/src/commands/DetectModerationLabelsCommand.ts index c4e8b33c333a0..21eb9a7a2ec52 100644 --- a/clients/client-rekognition/src/commands/DetectModerationLabelsCommand.ts +++ b/clients/client-rekognition/src/commands/DetectModerationLabelsCommand.ts @@ -50,6 +50,8 @@ export interface DetectModerationLabelsCommandOutput extends DetectModerationLab * AWS * CLI to call Amazon Rekognition operations, passing image bytes is not * supported. The image must be either a PNG or JPEG formatted file.

+ *

You can specify an adapter to use when retrieving label predictions by providing a + * ProjectVersionArn to the ProjectVersion argument.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -75,6 +77,7 @@ export interface DetectModerationLabelsCommandOutput extends DetectModerationLab * ], * }, * }, + * ProjectVersion: "STRING_VALUE", * }; * const command = new DetectModerationLabelsCommand(input); * const response = await client.send(command); @@ -94,6 +97,7 @@ export interface DetectModerationLabelsCommandOutput extends DetectModerationLab * // ], * // HumanLoopActivationConditionsEvaluationResults: "STRING_VALUE", * // }, + * // ProjectVersion: "STRING_VALUE", * // }; * * ``` @@ -133,6 +137,14 @@ export interface DetectModerationLabelsCommandOutput extends DetectModerationLab *

The number of requests exceeded your throughput limit. If you want to increase this * limit, contact Amazon Rekognition.

* + * @throws {@link ResourceNotFoundException} (client fault) + *

The resource specified in the request cannot be found.

+ * + * @throws {@link ResourceNotReadyException} (client fault) + *

The requested resource isn't ready. For example, + * this exception occurs when you call DetectCustomLabels with a + * model version that isn't deployed.

+ * * @throws {@link ThrottlingException} (server fault) *

Amazon Rekognition is temporarily unable to process the request. Try your call again.

* diff --git a/clients/client-rekognition/src/commands/DistributeDatasetEntriesCommand.ts b/clients/client-rekognition/src/commands/DistributeDatasetEntriesCommand.ts index 58496cb066955..889dabcfc3aa0 100644 --- a/clients/client-rekognition/src/commands/DistributeDatasetEntriesCommand.ts +++ b/clients/client-rekognition/src/commands/DistributeDatasetEntriesCommand.ts @@ -37,7 +37,10 @@ export interface DistributeDatasetEntriesCommandOutput extends DistributeDataset /** * @public - *

Distributes the entries (images) in a training dataset across the training dataset and the test dataset for a project. + * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ * + *

Distributes the entries (images) in a training dataset across the training dataset and the test dataset for a project. * DistributeDatasetEntries moves 20% of the training dataset images to the test dataset. * An entry is a JSON Line that describes an image. *

diff --git a/clients/client-rekognition/src/commands/ListDatasetEntriesCommand.ts b/clients/client-rekognition/src/commands/ListDatasetEntriesCommand.ts index 361bcd8efc7b5..7789dd17f69a8 100644 --- a/clients/client-rekognition/src/commands/ListDatasetEntriesCommand.ts +++ b/clients/client-rekognition/src/commands/ListDatasetEntriesCommand.ts @@ -37,7 +37,10 @@ export interface ListDatasetEntriesCommandOutput extends ListDatasetEntriesRespo /** * @public - *

+ * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ * + *

* Lists the entries (images) within a dataset. An entry is a * JSON Line that contains the information for a single image, including * the image location, assigned labels, and object location bounding boxes. For diff --git a/clients/client-rekognition/src/commands/ListDatasetLabelsCommand.ts b/clients/client-rekognition/src/commands/ListDatasetLabelsCommand.ts index 681c4ad7bbce4..864b124de24a1 100644 --- a/clients/client-rekognition/src/commands/ListDatasetLabelsCommand.ts +++ b/clients/client-rekognition/src/commands/ListDatasetLabelsCommand.ts @@ -37,7 +37,10 @@ export interface ListDatasetLabelsCommandOutput extends ListDatasetLabelsRespons /** * @public - *

Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see + * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ * + *

Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see * Labeling images. *

*

diff --git a/clients/client-rekognition/src/commands/ListProjectPoliciesCommand.ts b/clients/client-rekognition/src/commands/ListProjectPoliciesCommand.ts index 6edb5a590afb8..eacee753420ec 100644 --- a/clients/client-rekognition/src/commands/ListProjectPoliciesCommand.ts +++ b/clients/client-rekognition/src/commands/ListProjectPoliciesCommand.ts @@ -37,7 +37,10 @@ export interface ListProjectPoliciesCommandOutput extends ListProjectPoliciesRes /** * @public - *

Gets a list of the project policies attached to a project.

+ * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ *
+ *

Gets a list of the project policies attached to a project.

*

To attach a project policy to a project, call PutProjectPolicy. To remove a project policy from a project, call DeleteProjectPolicy.

*

This operation requires permissions to perform the rekognition:ListProjectPolicies action.

* @example diff --git a/clients/client-rekognition/src/commands/PutProjectPolicyCommand.ts b/clients/client-rekognition/src/commands/PutProjectPolicyCommand.ts index 939640c24fc6c..8077404e6c2f5 100644 --- a/clients/client-rekognition/src/commands/PutProjectPolicyCommand.ts +++ b/clients/client-rekognition/src/commands/PutProjectPolicyCommand.ts @@ -37,10 +37,14 @@ export interface PutProjectPolicyCommandOutput extends PutProjectPolicyResponse, /** * @public - *

Attaches a project policy to a Amazon Rekognition Custom Labels project in a trusting AWS account. A + * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ * + *

Attaches a project policy to a Amazon Rekognition Custom Labels project in a trusting AWS account. A * project policy specifies that a trusted AWS account can copy a model version from a - * trusting AWS account to a project in the trusted AWS account. To copy a model version you use - * the CopyProjectVersion operation.

+ * trusting AWS account to a project in the trusted AWS account. To copy a model version + * you use the CopyProjectVersion operation. Only applies to Custom Labels + * projects.

*

For more information about the format of a project policy document, see Attaching a project policy (SDK) * in the Amazon Rekognition Custom Labels Developer Guide. *

@@ -91,9 +95,11 @@ export interface PutProjectPolicyCommandOutput extends PutProjectPolicyResponse, *

The supplied revision id for the project policy is invalid.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link MalformedPolicyDocumentException} (client fault) *

The format of the project policy document that you supplied to diff --git a/clients/client-rekognition/src/commands/SearchUsersByImageCommand.ts b/clients/client-rekognition/src/commands/SearchUsersByImageCommand.ts index 2edb3d0ab1c61..b230fb03f19ba 100644 --- a/clients/client-rekognition/src/commands/SearchUsersByImageCommand.ts +++ b/clients/client-rekognition/src/commands/SearchUsersByImageCommand.ts @@ -14,7 +14,8 @@ import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { SearchUsersByImageRequest, SearchUsersByImageResponse } from "../models/models_0"; +import { SearchUsersByImageRequest } from "../models/models_0"; +import { SearchUsersByImageResponse } from "../models/models_1"; import { de_SearchUsersByImageCommand, se_SearchUsersByImageCommand } from "../protocols/Aws_json1_1"; import { RekognitionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionClient"; diff --git a/clients/client-rekognition/src/commands/StartCelebrityRecognitionCommand.ts b/clients/client-rekognition/src/commands/StartCelebrityRecognitionCommand.ts index e6f8b87f91a85..1bdc9d461656a 100644 --- a/clients/client-rekognition/src/commands/StartCelebrityRecognitionCommand.ts +++ b/clients/client-rekognition/src/commands/StartCelebrityRecognitionCommand.ts @@ -14,8 +14,7 @@ import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { StartCelebrityRecognitionRequest } from "../models/models_0"; -import { StartCelebrityRecognitionResponse } from "../models/models_1"; +import { StartCelebrityRecognitionRequest, StartCelebrityRecognitionResponse } from "../models/models_1"; import { de_StartCelebrityRecognitionCommand, se_StartCelebrityRecognitionCommand } from "../protocols/Aws_json1_1"; import { RekognitionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionClient"; @@ -102,9 +101,11 @@ export interface StartCelebrityRecognitionCommandOutput extends StartCelebrityRe *

Amazon Rekognition is unable to access the S3 object specified in the request.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/StartContentModerationCommand.ts b/clients/client-rekognition/src/commands/StartContentModerationCommand.ts index e56a4974a2d4e..3fda28ebbadcf 100644 --- a/clients/client-rekognition/src/commands/StartContentModerationCommand.ts +++ b/clients/client-rekognition/src/commands/StartContentModerationCommand.ts @@ -102,9 +102,11 @@ export interface StartContentModerationCommandOutput extends StartContentModerat *

Amazon Rekognition is unable to access the S3 object specified in the request.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/StartFaceDetectionCommand.ts b/clients/client-rekognition/src/commands/StartFaceDetectionCommand.ts index d4dcbed90fc7d..6650eee14bfed 100644 --- a/clients/client-rekognition/src/commands/StartFaceDetectionCommand.ts +++ b/clients/client-rekognition/src/commands/StartFaceDetectionCommand.ts @@ -103,9 +103,11 @@ export interface StartFaceDetectionCommandOutput extends StartFaceDetectionRespo *

Amazon Rekognition is unable to access the S3 object specified in the request.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/StartFaceSearchCommand.ts b/clients/client-rekognition/src/commands/StartFaceSearchCommand.ts index c64a0f4d4fd38..8e506b6f8071c 100644 --- a/clients/client-rekognition/src/commands/StartFaceSearchCommand.ts +++ b/clients/client-rekognition/src/commands/StartFaceSearchCommand.ts @@ -103,9 +103,11 @@ export interface StartFaceSearchCommandOutput extends StartFaceSearchResponse, _ *

Amazon Rekognition is unable to access the S3 object specified in the request.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/StartLabelDetectionCommand.ts b/clients/client-rekognition/src/commands/StartLabelDetectionCommand.ts index dce00e71f6085..a46da47243e4a 100644 --- a/clients/client-rekognition/src/commands/StartLabelDetectionCommand.ts +++ b/clients/client-rekognition/src/commands/StartLabelDetectionCommand.ts @@ -135,9 +135,11 @@ export interface StartLabelDetectionCommandOutput extends StartLabelDetectionRes *

Amazon Rekognition is unable to access the S3 object specified in the request.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/StartPersonTrackingCommand.ts b/clients/client-rekognition/src/commands/StartPersonTrackingCommand.ts index 77a839da933b4..2598736987d90 100644 --- a/clients/client-rekognition/src/commands/StartPersonTrackingCommand.ts +++ b/clients/client-rekognition/src/commands/StartPersonTrackingCommand.ts @@ -99,9 +99,11 @@ export interface StartPersonTrackingCommandOutput extends StartPersonTrackingRes *

Amazon Rekognition is unable to access the S3 object specified in the request.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/StartProjectVersionCommand.ts b/clients/client-rekognition/src/commands/StartProjectVersionCommand.ts index d59307a8484f9..638e88b8281c5 100644 --- a/clients/client-rekognition/src/commands/StartProjectVersionCommand.ts +++ b/clients/client-rekognition/src/commands/StartProjectVersionCommand.ts @@ -37,15 +37,17 @@ export interface StartProjectVersionCommandOutput extends StartProjectVersionRes /** * @public - *

Starts the running of the version of a model. Starting a model takes a while - * to complete. To check the current state of the model, use DescribeProjectVersions.

+ * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ *
+ *

Starts the running of the version of a model. Starting a model takes a while to + * complete. To check the current state of the model, use DescribeProjectVersions.

*

Once the model is running, you can detect custom labels in new images by calling * DetectCustomLabels.

* *

You are charged for the amount of time that the model is running. To stop a running * model, call StopProjectVersion.

*
- *

For more information, see Running a trained Amazon Rekognition Custom Labels model in the Amazon Rekognition Custom Labels Guide.

*

This operation requires permissions to perform the * rekognition:StartProjectVersion action.

* @example @@ -62,7 +64,7 @@ export interface StartProjectVersionCommandOutput extends StartProjectVersionRes * const command = new StartProjectVersionCommand(input); * const response = await client.send(command); * // { // StartProjectVersionResponse - * // Status: "TRAINING_IN_PROGRESS" || "TRAINING_COMPLETED" || "TRAINING_FAILED" || "STARTING" || "RUNNING" || "FAILED" || "STOPPING" || "STOPPED" || "DELETING" || "COPYING_IN_PROGRESS" || "COPYING_COMPLETED" || "COPYING_FAILED", + * // Status: "TRAINING_IN_PROGRESS" || "TRAINING_COMPLETED" || "TRAINING_FAILED" || "STARTING" || "RUNNING" || "FAILED" || "STOPPING" || "STOPPED" || "DELETING" || "COPYING_IN_PROGRESS" || "COPYING_COMPLETED" || "COPYING_FAILED" || "DEPRECATED" || "EXPIRED", * // }; * * ``` @@ -84,9 +86,11 @@ export interface StartProjectVersionCommandOutput extends StartProjectVersionRes * operation again.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/StartSegmentDetectionCommand.ts b/clients/client-rekognition/src/commands/StartSegmentDetectionCommand.ts index 07bfb5ace9ffc..95bcd17d41337 100644 --- a/clients/client-rekognition/src/commands/StartSegmentDetectionCommand.ts +++ b/clients/client-rekognition/src/commands/StartSegmentDetectionCommand.ts @@ -119,9 +119,11 @@ export interface StartSegmentDetectionCommandOutput extends StartSegmentDetectio *

Amazon Rekognition is unable to access the S3 object specified in the request.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/StartTextDetectionCommand.ts b/clients/client-rekognition/src/commands/StartTextDetectionCommand.ts index f2ec7e6b65ecd..796fd83deac0f 100644 --- a/clients/client-rekognition/src/commands/StartTextDetectionCommand.ts +++ b/clients/client-rekognition/src/commands/StartTextDetectionCommand.ts @@ -121,9 +121,11 @@ export interface StartTextDetectionCommandOutput extends StartTextDetectionRespo *

Amazon Rekognition is unable to access the S3 object specified in the request.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/commands/StopProjectVersionCommand.ts b/clients/client-rekognition/src/commands/StopProjectVersionCommand.ts index 3b2a817237f83..e30fe67c50dda 100644 --- a/clients/client-rekognition/src/commands/StopProjectVersionCommand.ts +++ b/clients/client-rekognition/src/commands/StopProjectVersionCommand.ts @@ -37,8 +37,12 @@ export interface StopProjectVersionCommandOutput extends StopProjectVersionRespo /** * @public - *

Stops a running model. The operation might take a while to complete. To - * check the current status, call DescribeProjectVersions.

+ * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ *
+ *

Stops a running model. The operation might take a while to complete. To check the + * current status, call DescribeProjectVersions. Only applies to Custom + * Labels projects.

*

This operation requires permissions to perform the rekognition:StopProjectVersion action.

* @example * Use a bare-bones client and the command you need to make an API call. @@ -52,7 +56,7 @@ export interface StopProjectVersionCommandOutput extends StopProjectVersionRespo * const command = new StopProjectVersionCommand(input); * const response = await client.send(command); * // { // StopProjectVersionResponse - * // Status: "TRAINING_IN_PROGRESS" || "TRAINING_COMPLETED" || "TRAINING_FAILED" || "STARTING" || "RUNNING" || "FAILED" || "STOPPING" || "STOPPED" || "DELETING" || "COPYING_IN_PROGRESS" || "COPYING_COMPLETED" || "COPYING_FAILED", + * // Status: "TRAINING_IN_PROGRESS" || "TRAINING_COMPLETED" || "TRAINING_FAILED" || "STARTING" || "RUNNING" || "FAILED" || "STOPPING" || "STOPPED" || "DELETING" || "COPYING_IN_PROGRESS" || "COPYING_COMPLETED" || "COPYING_FAILED" || "DEPRECATED" || "EXPIRED", * // }; * * ``` diff --git a/clients/client-rekognition/src/commands/UpdateDatasetEntriesCommand.ts b/clients/client-rekognition/src/commands/UpdateDatasetEntriesCommand.ts index 114d0d721a911..34d3f580088fc 100644 --- a/clients/client-rekognition/src/commands/UpdateDatasetEntriesCommand.ts +++ b/clients/client-rekognition/src/commands/UpdateDatasetEntriesCommand.ts @@ -37,7 +37,10 @@ export interface UpdateDatasetEntriesCommandOutput extends UpdateDatasetEntriesR /** * @public - *

Adds or updates one or more entries (images) in a dataset. An entry is a JSON Line which contains the + * + *

This operation applies only to Amazon Rekognition Custom Labels.

+ * + *

Adds or updates one or more entries (images) in a dataset. An entry is a JSON Line which contains the * information for a single image, including * the image location, assigned labels, and object location bounding boxes. For more information, * see Image-Level labels in manifest files and Object localization in manifest files in the Amazon Rekognition Custom Labels Developer Guide. @@ -94,9 +97,11 @@ export interface UpdateDatasetEntriesCommandOutput extends UpdateDatasetEntriesR * operation again.

* * @throws {@link LimitExceededException} (client fault) - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

* * @throws {@link ProvisionedThroughputExceededException} (client fault) *

The number of requests exceeded your throughput limit. If you want to increase this diff --git a/clients/client-rekognition/src/models/models_0.ts b/clients/client-rekognition/src/models/models_0.ts index 2c9af4d857781..bc5f7ff83ee82 100644 --- a/clients/client-rekognition/src/models/models_0.ts +++ b/clients/client-rekognition/src/models/models_0.ts @@ -2130,9 +2130,11 @@ export interface CopyProjectVersionResponse { /** * @public - *

An Amazon Rekognition service limit was exceeded. For example, if you start too many Amazon Rekognition Video jobs concurrently, calls to start operations - * (StartLabelDetection, for example) will raise a LimitExceededException exception (HTTP status code: 400) until - * the number of concurrently running jobs is below the Amazon Rekognition service limit.

+ *

An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs + * concurrently, subsequent calls to start operations (ex: + * StartLabelDetection) will raise a LimitExceededException + * exception (HTTP status code: 400) until the number of concurrently running jobs is below + * the Amazon Rekognition service limit.

*/ export class LimitExceededException extends __BaseException { readonly name: "LimitExceededException" = "LimitExceededException"; @@ -2438,6 +2440,34 @@ export interface CreateFaceLivenessSessionResponse { SessionId: string | undefined; } +/** + * @public + * @enum + */ +export const ProjectAutoUpdate = { + DISABLED: "DISABLED", + ENABLED: "ENABLED", +} as const; + +/** + * @public + */ +export type ProjectAutoUpdate = (typeof ProjectAutoUpdate)[keyof typeof ProjectAutoUpdate]; + +/** + * @public + * @enum + */ +export const CustomizationFeature = { + CONTENT_MODERATION: "CONTENT_MODERATION", + CUSTOM_LABELS: "CUSTOM_LABELS", +} as const; + +/** + * @public + */ +export type CustomizationFeature = (typeof CustomizationFeature)[keyof typeof CustomizationFeature]; + /** * @public */ @@ -2447,6 +2477,20 @@ export interface CreateProjectRequest { *

The name of the project to create.

*/ ProjectName: string | undefined; + + /** + * @public + *

Specifies feature that is being customized. If no value is provided CUSTOM_LABELS is used as a default.

+ */ + Feature?: CustomizationFeature | string; + + /** + * @public + *

Specifies whether automatic retraining should be attempted for the versions of the + * project. Automatic retraining is done as a best effort. Required argument for Content + * Moderation. Applicable only to adapters.

+ */ + AutoUpdate?: ProjectAutoUpdate | string; } /** @@ -2463,7 +2507,33 @@ export interface CreateProjectResponse { /** * @public - *

The dataset used for testing. Optionally, if AutoCreate is set, Amazon Rekognition Custom Labels uses the + *

Configuration options for Content Moderation training.

+ */ +export interface CustomizationFeatureContentModerationConfig { + /** + * @public + *

The confidence level you plan to use to identify if unsafe content is present during inference.

+ */ + ConfidenceThreshold?: number; +} + +/** + * @public + *

Feature specific configuration for the training job. Configuration provided for the job must match + * the feature type parameter associated with project. If configuration + * and feature type do not match an InvalidParameterException is returned.

+ */ +export interface CustomizationFeatureConfig { + /** + * @public + *

Configuration options for Custom Moderation training.

+ */ + ContentModeration?: CustomizationFeatureContentModerationConfig; +} + +/** + * @public + *

The dataset used for testing. Optionally, if AutoCreate is set, Amazon Rekognition uses the * training dataset to create a test dataset with a temporary split of the training dataset.

*/ export interface TestingData { @@ -2475,8 +2545,8 @@ export interface TestingData { /** * @public - *

If specified, Amazon Rekognition Custom Labels temporarily splits the training dataset (80%) to create a test dataset (20%) for the training job. - * After training completes, the test dataset is not stored and the training dataset reverts to its previous size.

+ *

If specified, Rekognition splits training dataset to create a test dataset for + * the training job.

*/ AutoCreate?: boolean; } @@ -2488,7 +2558,8 @@ export interface TestingData { export interface TrainingData { /** * @public - *

A Sagemaker GroundTruth manifest file that contains the training images (assets).

+ *

A manifest file that contains references to the training images and ground-truth + * annotations.

*/ Assets?: Asset[]; } @@ -2499,56 +2570,55 @@ export interface TrainingData { export interface CreateProjectVersionRequest { /** * @public - *

The ARN of the Amazon Rekognition Custom Labels project that - * manages the model that you want to train.

+ *

The ARN of the Amazon Rekognition project that will manage the project version you want to + * train.

*/ ProjectArn: string | undefined; /** * @public - *

A name for the version of the model. This value must be unique.

+ *

A name for the version of the project version. This value must be unique.

*/ VersionName: string | undefined; /** * @public - *

The Amazon S3 bucket location to store the results of training. - * The S3 bucket can be in any AWS account as long as the caller has - * s3:PutObject permissions on the S3 bucket.

+ *

The Amazon S3 bucket location to store the results of training. The bucket can be any S3 + * bucket in your AWS account. You need s3:PutObject permission on the bucket. + *

*/ OutputConfig: OutputConfig | undefined; /** * @public - *

Specifies an external manifest that the services uses to train the model. + *

Specifies an external manifest that the services uses to train the project version. * If you specify TrainingData you must also specify TestingData. - * The project must not have any associated datasets. - *

+ * The project must not have any associated datasets.

*/ TrainingData?: TrainingData; /** * @public - *

Specifies an external manifest that the service uses to test the model. - * If you specify TestingData you must also specify TrainingData. - * The project must not have any associated datasets.

+ *

Specifies an external manifest that the service uses to test the project version. If + * you specify TestingData you must also specify TrainingData. The + * project must not have any associated datasets.

*/ TestingData?: TestingData; /** * @public - *

A set of tags (key-value pairs) that you want to attach to the model.

+ *

A set of tags (key-value pairs) that you want to attach to the project version.

*/ Tags?: Record; /** * @public - *

The identifier for your AWS Key Management Service key (AWS KMS key). - * You can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, - * an alias for your KMS key, or an alias ARN. - * The key is used to encrypt training and test images copied into the service for model training. - * Your source images are unaffected. The key is also used to encrypt training results - * and manifest files written to the output Amazon S3 bucket (OutputConfig).

+ *

The identifier for your AWS Key Management Service key (AWS KMS key). You can supply + * the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for + * your KMS key, or an alias ARN. The key is used to encrypt training images, test images, and manifest files copied + * into the service for the project version. Your source images are unaffected. The + * key is also used to encrypt training results and manifest files written to the output Amazon S3 + * bucket (OutputConfig).

*

If you choose to use your own KMS key, you need the following permissions on the KMS key.

*