Bedrock / Client / batch_delete_evaluation_job

batch_delete_evaluation_job#

Bedrock.Client.batch_delete_evaluation_job(**kwargs)#

Deletes a batch of evaluation jobs. An evaluation job can only be deleted if it has following status FAILED, COMPLETED, and STOPPED. You can request up to 25 model evaluation jobs be deleted in a single request.

See also: AWS API Documentation

Request Syntax

response = client.batch_delete_evaluation_job(
    jobIdentifiers=[
        'string',
    ]
)
Parameters:

jobIdentifiers (list) –

[REQUIRED]

A list of one or more evaluation job Amazon Resource Names (ARNs) you want to delete.

  • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'errors': [
        {
            'jobIdentifier': 'string',
            'code': 'string',
            'message': 'string'
        },
    ],
    'evaluationJobs': [
        {
            'jobIdentifier': 'string',
            'jobStatus': 'InProgress'|'Completed'|'Failed'|'Stopping'|'Stopped'|'Deleting'
        },
    ]
}

Response Structure

  • (dict) –

    • errors (list) –

      A JSON object containing the HTTP status codes and the ARNs of evaluation jobs that failed to be deleted.

      • (dict) –

        A JSON array that provides the status of the evaluation jobs being deleted.

        • jobIdentifier (string) –

          The ARN of the evaluation job being deleted.

        • code (string) –

          A HTTP status code of the evaluation job being deleted.

        • message (string) –

          A status message about the evaluation job deletion.

    • evaluationJobs (list) –

      The list of evaluation jobs for deletion.

      • (dict) –

        An evaluation job for deletion, and it’s current status.

        • jobIdentifier (string) –

          The Amazon Resource Name (ARN) of the evaluation job for deletion.

        • jobStatus (string) –

          The status of the evaluation job for deletion.

Exceptions

  • Bedrock.Client.exceptions.ResourceNotFoundException

  • Bedrock.Client.exceptions.AccessDeniedException

  • Bedrock.Client.exceptions.ValidationException

  • Bedrock.Client.exceptions.ConflictException

  • Bedrock.Client.exceptions.InternalServerException

  • Bedrock.Client.exceptions.ThrottlingException