Skip to main content

ai_workload_configs

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

Overview

Nameai_workload_configs
TypeResource
Idaws.sagemaker.ai_workload_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ai_workload_config_arnstringThe Amazon Resource Name (ARN) of the AI workload configuration. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:ai-workload-config/[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
ai_workload_config_namestringThe name of the AI workload configuration. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
ai_workload_configsobjectThe benchmark tool configuration and workload specification.
creation_timestring (date-time)A timestamp that indicates when the AI workload configuration was created.
dataset_configobjectThe dataset configuration for the workload.
tagsarrayThe tags associated with the AI workload configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_ai_workload_configselectregionReturns details of an AI workload configuration, including the dataset configuration, benchmark tool settings, tags, and creation time.
list_ai_workload_configsselectregionReturns a list of AI workload configurations in your account. You can filter the results by name and creation time, and sort the results. The response is paginated.
create_ai_workload_configinsertregion, AIWorkloadConfigNameCreates a reusable AI workload configuration that defines datasets, data sources, and benchmark tool settings for consistent performance testing of generative AI inference deployments on Amazon SageMaker AI.
delete_ai_workload_configdeleteregionDeletes the specified AI workload configuration. You cannot delete a configuration that is referenced by an active 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 workload configuration, including the dataset configuration, benchmark tool settings, tags, and creation time.

SELECT
ai_workload_config_arn,
ai_workload_config_name,
ai_workload_configs,
creation_time,
dataset_config,
tags
FROM aws.sagemaker.ai_workload_configs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a reusable AI workload configuration that defines datasets, data sources, and benchmark tool settings for consistent performance testing of generative AI inference deployments on Amazon SageMaker AI.

INSERT INTO aws.sagemaker.ai_workload_configs (
AIWorkloadConfigName,
DatasetConfig,
AIWorkloadConfigs,
Tags,
region
)
SELECT
'{{ AIWorkloadConfigName }}' /* required */,
'{{ DatasetConfig }}',
'{{ AIWorkloadConfigs }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
ai_workload_config_arn
;

DELETE examples

Deletes the specified AI workload configuration. You cannot delete a configuration that is referenced by an active benchmark job.

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