Skip to main content

datasets

Creates, updates, deletes or gets a dataset resource or lists datasets in a region

Overview

Namedatasets
TypeResource
DescriptionResource schema for AWS::Personalize::Dataset.
Idawscc.personalize.datasets

Fields

NameDatatypeDescription
namestringThe name for the dataset
dataset_arnstringThe ARN of the dataset
dataset_typestringThe type of dataset
dataset_group_arnstringThe Amazon Resource Name (ARN) of the dataset group to add the dataset to
schema_arnstringThe ARN of the schema to associate with the dataset. The schema defines the dataset fields.
dataset_import_jobobjectInitial DatasetImportJob for the created dataset
regionstringAWS region.

For more information, see AWS::Personalize::Dataset.

Methods

NameResourceAccessible byRequired Params
create_resourcedatasetsINSERTName, DatasetType, DatasetGroupArn, SchemaArn, region
delete_resourcedatasetsDELETEIdentifier, region
update_resourcedatasetsUPDATEIdentifier, PatchDocument, region
list_resourcesdatasets_list_onlySELECTregion
get_resourcedatasetsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual dataset.

SELECT
region,
name,
dataset_arn,
dataset_type,
dataset_group_arn,
schema_arn,
dataset_import_job
FROM awscc.personalize.datasets
WHERE
region = 'us-east-1' AND
Identifier = '{{ dataset_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.personalize.datasets (
Name,
DatasetType,
DatasetGroupArn,
SchemaArn,
region
)
SELECT
'{{ name }}',
'{{ dataset_type }}',
'{{ dataset_group_arn }}',
'{{ schema_arn }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a dataset resource, using stack-deploy.

/*+ update */
UPDATE awscc.personalize.datasets
SET PatchDocument = string('{{ {
"DatasetImportJob": dataset_import_job
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ dataset_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.personalize.datasets
WHERE
Identifier = '{{ dataset_arn }}' AND
region = 'us-east-1';

Permissions

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

personalize:CreateDataset,
personalize:DescribeDataset,
personalize:CreateDatasetImportJob,
personalize:DescribeDatasetImportJob,
iam:PassRole