Skip to main content

ai_benchmark_jobs

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

Overview

Nameai_benchmark_jobs
TypeResource
Idaws.sagemaker.ai_benchmark_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ai_benchmark_job_arnstringThe Amazon Resource Name (ARN) of the AI benchmark job. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:ai-benchmark-job/[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
ai_benchmark_job_namestringThe name of the AI benchmark job. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
ai_benchmark_job_statusstringThe status of the AI benchmark job. (InProgress, Completed, Failed, Stopping, Stopped)
ai_workload_config_identifierstringThe name or Amazon Resource Name (ARN) of the AI workload configuration used for this benchmark job. (pattern: <code>(arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:[a-z-]*/)?([a-zA-Z0-9]([a-zA-Z0-9-]){0,62})(?<!-)</code>)
benchmark_targetobjectThe target endpoint that was benchmarked.
creation_timestring (date-time)A timestamp that indicates when the benchmark job was created.
end_timestring (date-time)A timestamp that indicates when the benchmark job completed.
failure_reasonstringIf the benchmark job failed, the reason it failed.
network_configobjectThe network configuration for the benchmark job.
output_configobjectThe output configuration for the benchmark job, including the Amazon S3 output location and CloudWatch log information.
role_arnstringThe Amazon Resource Name (ARN) of the IAM role used by the benchmark job. (pattern: <code>arn:aws[a-z-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+</code>)
start_timestring (date-time)A timestamp that indicates when the benchmark job started running.
tagsarrayThe tags associated with the benchmark job.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_ai_benchmark_jobselectregionReturns details of an AI benchmark job, including its status, configuration, target endpoint, and timing information.
list_ai_benchmark_jobsselectregionReturns a list of AI benchmark jobs in your account. You can filter the results by name, status, and creation time, and sort the results. The response is paginated.
create_ai_benchmark_jobinsertregion, AIBenchmarkJobName, BenchmarkTarget, OutputConfig, AIWorkloadConfigIdentifier, RoleArnCreates a benchmark job that runs performance benchmarks against inference infrastructure using a predefined AI workload configuration. The benchmark job measures metrics such as latency, throughput, and cost for your generative AI inference endpoints.
delete_ai_benchmark_jobdeleteregionDeletes the specified AI benchmark job.
stop_ai_benchmark_jobexecregion, AIBenchmarkJobNameStops a running AI benchmark 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
regionstringAWS region (default: us-east-1)

SELECT examples

Returns details of an AI benchmark job, including its status, configuration, target endpoint, and timing information.

SELECT
ai_benchmark_job_arn,
ai_benchmark_job_name,
ai_benchmark_job_status,
ai_workload_config_identifier,
benchmark_target,
creation_time,
end_time,
failure_reason,
network_config,
output_config,
role_arn,
start_time,
tags
FROM aws.sagemaker.ai_benchmark_jobs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a benchmark job that runs performance benchmarks against inference infrastructure using a predefined AI workload configuration. The benchmark job measures metrics such as latency, throughput, and cost for your generative AI inference endpoints.

INSERT INTO aws.sagemaker.ai_benchmark_jobs (
AIBenchmarkJobName,
BenchmarkTarget,
OutputConfig,
AIWorkloadConfigIdentifier,
RoleArn,
NetworkConfig,
Tags,
region
)
SELECT
'{{ AIBenchmarkJobName }}' /* required */,
'{{ BenchmarkTarget }}' /* required */,
'{{ OutputConfig }}' /* required */,
'{{ AIWorkloadConfigIdentifier }}' /* required */,
'{{ RoleArn }}' /* required */,
'{{ NetworkConfig }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
ai_benchmark_job_arn
;

DELETE examples

Deletes the specified AI benchmark job.

DELETE FROM aws.sagemaker.ai_benchmark_jobs
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Stops a running AI benchmark job.

EXEC aws.sagemaker.ai_benchmark_jobs.stop_ai_benchmark_job
@region='{{ region }}' --required
@@json=
'{
"AIBenchmarkJobName": "{{ AIBenchmarkJobName }}"
}'
;