Skip to main content

configured_model_algorithms

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

Overview

Nameconfigured_model_algorithms
TypeResource
Idaws.cleanroomsml.configured_model_algorithms

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the configured model algorithm. (pattern: <code>(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*</code>)
configured_model_algorithm_arnstringThe Amazon Resource Name (ARN) of the configured model algorithm. (pattern: <code>arn:aws[-a-z]*:cleanrooms-ml:[-a-z0-9]+:[0-9]{12}:configured-model-algorithm/[-a-zA-Z0-9_/.]+</code>)
create_timestring (date-time)The time at which the configured model algorithm was created.
descriptionstringThe description of the configured model algorithm. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*</code>)
inference_container_configobjectProvides configuration information for the inference container.
kms_key_arnstringThe Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and decrypt customer-owned data in the configured ML model and associated data. (pattern: <code>arn:aws[-a-z]*:kms:[-a-z0-9]+:[0-9]{12}:key/.+</code>)
role_arnstringThe Amazon Resource Name (ARN) of the service role that was used to create the configured model algorithm. (pattern: <code>arn:aws[-a-z]*:iam::[0-9]{12}:role/.+</code>)
tagsobjectThe optional metadata that you applied to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. The following basic restrictions apply to tags: Maximum number of tags per resource - 50. For each resource, each tag key must be unique, and each tag key can have only one value. Maximum key length - 128 Unicode characters in UTF-8. Maximum value length - 256 Unicode characters in UTF-8. If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and values are case sensitive. Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
training_container_configobjectProvides configuration information for the dockerized container where the model algorithm is stored.
update_timestring (date-time)The most recent time at which the configured model algorithm was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_configured_model_algorithmselectconfigured_model_algorithm_arn, regionReturns information about a configured model algorithm.
list_configured_model_algorithmsselectregionnextToken, maxResultsReturns a list of configured model algorithms.
create_configured_model_algorithminsertregion, name, roleArnCreates a configured model algorithm using a container image stored in an ECR repository.
delete_configured_model_algorithmdeleteconfigured_model_algorithm_arn, regionDeletes a configured model algorithm.

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
configured_model_algorithm_arnstringThe Amazon Resource Name (ARN) of the configured model algorithm that you want to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum size of the results that is returned per call.
nextTokenstringThe token value retrieved from a previous call to access the next page of results.

SELECT examples

Returns information about a configured model algorithm.

SELECT
name,
configured_model_algorithm_arn,
create_time,
description,
inference_container_config,
kms_key_arn,
role_arn,
tags,
training_container_config,
update_time
FROM aws.cleanroomsml.configured_model_algorithms
WHERE configured_model_algorithm_arn = '{{ configured_model_algorithm_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a configured model algorithm using a container image stored in an ECR repository.

INSERT INTO aws.cleanroomsml.configured_model_algorithms (
name,
description,
roleArn,
trainingContainerConfig,
inferenceContainerConfig,
tags,
kmsKeyArn,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ roleArn }}' /* required */,
'{{ trainingContainerConfig }}',
'{{ inferenceContainerConfig }}',
'{{ tags }}',
'{{ kmsKeyArn }}',
'{{ region }}'
RETURNING
configured_model_algorithm_arn
;

DELETE examples

Deletes a configured model algorithm.

DELETE FROM aws.cleanroomsml.configured_model_algorithms
WHERE configured_model_algorithm_arn = '{{ configured_model_algorithm_arn }}' --required
AND region = '{{ region }}' --required
;