Skip to main content

evaluation_jobs

Creates, updates, deletes, gets or lists an evaluation_jobs resource.

Overview

Nameevaluation_jobs
TypeResource
Idaws.bedrock.evaluation_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_typestringSpecifies whether the evaluation job is for evaluating a model or evaluating a knowledge base (retrieval and response generation). (ModelEvaluation, RagEvaluation)
creation_timestring (date-time)The time the evaluation job was created.
customer_encryption_key_idstringThe Amazon Resource Name (ARN) of the customer managed encryption key specified when the evaluation job was created. (pattern: <code>(arn:aws(-[^:]+)?:kms:[a-zA-Z0-9-]*:[0-9]{12}:((key/[a-zA-Z0-9-]{36})|(alias/[a-zA-Z0-9-/]+)))|([a-zA-Z0-9-]{36})|(alias/[a-zA-Z0-9-/]+)</code>)
evaluation_configobjectThe configuration details of either an automated or human-based evaluation job.
failure_messagesarrayA list of strings that specify why the evaluation job failed to create.
inference_configobjectContains the configuration details of the inference model used for the evaluation job.
job_arnstringThe Amazon Resource Name (ARN) of the evaluation job. (pattern: <code>arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:evaluation-job/[a-z0-9]{12}</code>)
job_descriptionstringThe description of the evaluation job. (pattern: <code>.+</code>)
job_namestringThe name for the evaluation job. (pattern: <code>[a-z0-9](-*[a-z0-9]){0,62}</code>)
job_typestringSpecifies whether the evaluation job is automated or human-based. (Human, Automated)
last_modified_timestring (date-time)The time the evaluation job was last modified.
output_data_configobjectThe Amazon S3 location where the results of your evaluation job are saved.
role_arnstringThe Amazon Resource Name (ARN) of the IAM service role used in the evaluation job. (pattern: <code>arn:aws(-[^:]+)?:iam::([0-9]{12})?:role/.+</code>)
statusstringThe current status of the evaluation job. (InProgress, Completed, Failed, Stopping, Stopped, Deleting)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_evaluation_jobselectjob_identifier, regionGets information about an evaluation job, such as the status of the job.
list_evaluation_jobsselectregioncreationTimeAfter, creationTimeBefore, statusEquals, applicationTypeEquals, nameContains, maxResults, nextToken, sortBy, sortOrderLists all existing evaluation jobs.
create_evaluation_jobinsertregion, jobName, roleArn, evaluationConfig, inferenceConfig, outputDataConfigCreates an evaluation job.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
job_identifierstringThe Amazon Resource Name (ARN) of the evaluation job you want get information on.
regionstringAWS region (default: us-east-1)
applicationTypeEqualsstringA filter to only list evaluation jobs that are either model evaluations or knowledge base evaluations.
creationTimeAfterstring (date-time)A filter to only list evaluation jobs created after a specified time.
creationTimeBeforestring (date-time)A filter to only list evaluation jobs created before a specified time.
maxResultsintegerThe maximum number of results to return.
nameContainsstringA filter to only list evaluation jobs that contain a specified string in the job name.
nextTokenstringContinuation token from the previous response, for Amazon Bedrock to list the next set of results.
sortBystringSpecifies a creation time to sort the list of evaluation jobs by when they were created.
sortOrderstringSpecifies whether to sort the list of evaluation jobs by either ascending or descending order.
statusEqualsstringA filter to only list evaluation jobs that are of a certain status.

SELECT examples

Gets information about an evaluation job, such as the status of the job.

SELECT
application_type,
creation_time,
customer_encryption_key_id,
evaluation_config,
failure_messages,
inference_config,
job_arn,
job_description,
job_name,
job_type,
last_modified_time,
output_data_config,
role_arn,
status
FROM aws.bedrock.evaluation_jobs
WHERE job_identifier = '{{ job_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an evaluation job.

INSERT INTO aws.bedrock.evaluation_jobs (
jobName,
jobDescription,
clientRequestToken,
roleArn,
customerEncryptionKeyId,
jobTags,
applicationType,
evaluationConfig,
inferenceConfig,
outputDataConfig,
region
)
SELECT
'{{ jobName }}' /* required */,
'{{ jobDescription }}',
'{{ clientRequestToken }}',
'{{ roleArn }}' /* required */,
'{{ customerEncryptionKeyId }}',
'{{ jobTags }}',
'{{ applicationType }}',
'{{ evaluationConfig }}' /* required */,
'{{ inferenceConfig }}' /* required */,
'{{ outputDataConfig }}' /* required */,
'{{ region }}'
RETURNING
job_arn
;