Skip to main content

training_datasets

Creates, updates, deletes or gets a training_dataset resource or lists training_datasets in a region

Overview

Nametraining_datasets
TypeResource
DescriptionDefinition of AWS::CleanRoomsML::TrainingDataset Resource Type
Idaws.cleanroomsml.training_datasets

Fields

NameDatatypeDescription
descriptionstring
namestring
role_arnstring
tagsarrayAn arbitrary set of tags (key-value pairs) for this cleanrooms-ml training dataset.
training_dataarray
training_dataset_arnstring
statusstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, RoleArn, TrainingData, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all training_datasets in a region.

SELECT
region,
description,
name,
role_arn,
tags,
training_data,
training_dataset_arn,
status
FROM aws.cleanroomsml.training_datasets
WHERE region = 'us-east-1';

Gets all properties from an individual training_dataset.

SELECT
region,
description,
name,
role_arn,
tags,
training_data,
training_dataset_arn,
status
FROM aws.cleanroomsml.training_datasets
WHERE region = 'us-east-1' AND data__Identifier = '<TrainingDatasetArn>';

INSERT example

Use the following StackQL query and manifest file to create a new training_dataset resource, using stack-deploy.

/*+ create */
INSERT INTO aws.cleanroomsml.training_datasets (
Name,
RoleArn,
TrainingData,
region
)
SELECT
'{{ Name }}',
'{{ RoleArn }}',
'{{ TrainingData }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cleanroomsml.training_datasets
WHERE data__Identifier = '<TrainingDatasetArn>'
AND region = 'us-east-1';

Permissions

To operate on the training_datasets resource, the following permissions are required:

Create

cleanrooms-ml:CreateTrainingDataset,
cleanrooms-ml:GetTrainingDataset,
cleanrooms-ml:TagResource,
iam:PassRole

Read

cleanrooms-ml:GetTrainingDataset

Delete

cleanrooms-ml:DeleteTrainingDataset

List

cleanrooms-ml:ListTrainingDatasets

Update

cleanrooms-ml:TagResource,
cleanrooms-ml:UntagResource