Amazon Rekognition

2020/03/31 - Amazon Rekognition - 2 new api methods

Changes  This release adds DeleteProject and DeleteProjectVersion APIs to Amazon Rekognition Custom Labels.

DeleteProjectVersion (new) Link ¶

Deletes a version of a model.

You must first stop the model before you can delete it. To check if a model is running, use the Status field returned from DescribeProjectVersions . To stop a running model call StopProjectVersion .

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

See also: AWS API Documentation

Request Syntax

client.delete_project_version(
    ProjectVersionArn='string'
)
type ProjectVersionArn

string

param ProjectVersionArn

[REQUIRED]

The Amazon Resource Name (ARN) of the model version that you want to delete.

rtype

dict

returns

Response Syntax

{
    'Status': 'TRAINING_IN_PROGRESS'|'TRAINING_COMPLETED'|'TRAINING_FAILED'|'STARTING'|'RUNNING'|'FAILED'|'STOPPING'|'STOPPED'|'DELETING'
}

Response Structure

  • (dict) --

    • Status (string) --

      The status of the deletion operation.

DeleteProject (new) Link ¶

Deletes an Amazon Rekognition Custom Labels project. To delete a project you must first delete all versions of the model associated with the project. To delete a version of a model, see DeleteProjectVersion .

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

See also: AWS API Documentation

Request Syntax

client.delete_project(
    ProjectArn='string'
)
type ProjectArn

string

param ProjectArn

[REQUIRED]

The Amazon Resource Name (ARN) of the project that you want to delete.

rtype

dict

returns

Response Syntax

{
    'Status': 'CREATING'|'CREATED'|'DELETING'
}

Response Structure

  • (dict) --

    • Status (string) --

      The current status of the delete project operation.