Skip to main content

trained_model_versions

Creates, updates, deletes, gets or lists a trained_model_versions resource.

Overview

Nametrained_model_versions
TypeResource
Idaws.cleanroomsml.trained_model_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the trained model. (pattern: <code>(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*</code>)
collaboration_identifierstringThe collaboration ID of the collaboration that contains the trained model. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
configured_model_algorithm_association_arnstringThe Amazon Resource Name (ARN) of the configured model algorithm association that was used to create this trained model. (pattern: <code>arn:aws[-a-z]*:cleanrooms-ml:[-a-z0-9]+:[0-9]{12}:membership/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/configured-model-algorithm-association/[-a-zA-Z0-9_/.]+</code>)
create_timestring (date-time)The time at which the trained model was created.
descriptionstringThe description of the trained model. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*</code>)
incremental_training_data_channelsarrayInformation about the incremental training data channels used to create this version of the trained model.
membership_identifierstringThe membership ID of the member that created the trained model. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
ml_model_training_payer_account_idstringThe account ID of the member that is responsible for paying for model training costs. (pattern: <code>[0-9]{12}</code>)
statusstringThe status of the trained model. (CREATE_PENDING, CREATE_IN_PROGRESS, CREATE_FAILED, ACTIVE, DELETE_PENDING, DELETE_IN_PROGRESS, DELETE_FAILED, INACTIVE, CANCEL_PENDING, CANCEL_IN_PROGRESS, CANCEL_FAILED)
trained_model_arnstringThe Amazon Resource Name (ARN) of the trained model. (pattern: <code>arn:aws[-a-z]*:cleanrooms-ml:[-a-z0-9]+:[0-9]{12}:membership/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/trained-model/[-a-zA-Z0-9_/.]+</code>)
update_timestring (date-time)The most recent time at which the trained model was updated.
version_identifierstringThe version identifier of this trained model version. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_trained_model_versionsselectmembership_identifier, trained_model_arn, regionnextToken, maxResults, statusReturns a list of trained model versions for a specified trained model. This operation allows you to view all versions of a trained model, including information about their status and creation details. You can use this to track the evolution of your trained models and select specific versions for inference or further training.

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
membership_identifierstringThe membership identifier for the collaboration that contains the trained model.
regionstringAWS region (default: us-east-1)
trained_model_arnstringThe Amazon Resource Name (ARN) of the trained model for which to list versions.
maxResultsintegerThe maximum number of trained model versions to return in a single page. The default value is 10, and the maximum value is 100.
nextTokenstringThe pagination token from a previous ListTrainedModelVersions request. Use this token to retrieve the next page of results.
statusstringFilter the results to only include trained model versions with the specified status. Valid values include CREATE_PENDING, CREATE_IN_PROGRESS, ACTIVE, CREATE_FAILED, and others.

SELECT examples

Returns a list of trained model versions for a specified trained model. This operation allows you to view all versions of a trained model, including information about their status and creation details. You can use this to track the evolution of your trained models and select specific versions for inference or further training.

SELECT
name,
collaboration_identifier,
configured_model_algorithm_association_arn,
create_time,
description,
incremental_training_data_channels,
membership_identifier,
ml_model_training_payer_account_id,
status,
trained_model_arn,
update_time,
version_identifier
FROM aws.cleanroomsml.trained_model_versions
WHERE membership_identifier = '{{ membership_identifier }}' -- required
AND trained_model_arn = '{{ trained_model_arn }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
AND status = '{{ status }}'
;