Skip to main content

dataset_groups

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

Overview

Namedataset_groups
TypeResource
Idaws.personalize.dataset_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the dataset group. (pattern: <code>^[a-zA-Z0-9][a-zA-Z0-9-_]*</code>)
creation_date_timestring (date-time)The creation date and time (in Unix time) of the dataset group.
dataset_group_arnstringThe Amazon Resource Name (ARN) of the dataset group. (pattern: <code>arn:([a-z\d-]+):personalize:.:.:.+</code>)
domainstringThe domain of a Domain dataset group. (ECOMMERCE, VIDEO_ON_DEMAND)
failure_reasonstringIf creating a dataset group fails, provides the reason why.
kms_key_arnstringThe Amazon Resource Name (ARN) of the Key Management Service (KMS) key used to encrypt the datasets. (pattern: <code>arn:aws.:kms:.:[0-9]{12}:key/.*</code>)
last_updated_date_timestring (date-time)The last update date and time (in Unix time) of the dataset group.
role_arnstringThe ARN of the Identity and Access Management (IAM) role that has permissions to access the Key Management Service (KMS) key. Supplying an IAM role is only valid when also specifying a KMS key. (pattern: <code>arn:([a-z\d-]+):iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+</code>)
statusstringThe current status of the dataset group. A dataset group can be in one of the following states: CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED DELETE PENDING

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_dataset_groupselectregionDescribes the given dataset group. For more information on dataset groups, see CreateDatasetGroup.
list_dataset_groupsselectregionReturns a list of dataset groups. The response provides the properties for each dataset group, including the Amazon Resource Name (ARN). For more information on dataset groups, see CreateDatasetGroup.
create_dataset_groupinsertregion, nameCreates an empty dataset group. A dataset group is a container for Amazon Personalize resources. A dataset group can contain at most three datasets, one for each type of dataset: Item interactions Items Users Actions Action interactions A dataset group can be a Domain dataset group, where you specify a domain and use pre-configured resources like recommenders, or a Custom dataset group, where you use custom resources, such as a solution with a solution version, that you deploy with a campaign. If you start with a Domain dataset group, you can still add custom resources such as solutions and solution versions trained with recipes for custom use cases and deployed with campaigns. A dataset group can be in one of the following states: CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED DELETE PENDING To get the status of the dataset group, call DescribeDatasetGroup. If the status shows as CREATE FAILED, the response includes a failureReason key, which describes why the creation failed. You must wait until the status of the dataset group is ACTIVE before adding a dataset to the group. You can specify an Key Management Service (KMS) key to encrypt the datasets in the group. If you specify a KMS key, you must also include an Identity and Access Management (IAM) role that has permission to access the key. APIs that require a dataset group ARN in the request CreateDataset CreateEventTracker CreateSolution Related APIs ListDatasetGroups DescribeDatasetGroup DeleteDatasetGroup
delete_dataset_groupdeleteregionDeletes a dataset group. Before you delete a dataset group, you must delete the following: All associated event trackers. All associated solutions. All datasets in the dataset group.

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

Describes the given dataset group. For more information on dataset groups, see CreateDatasetGroup.

SELECT
name,
creation_date_time,
dataset_group_arn,
domain,
failure_reason,
kms_key_arn,
last_updated_date_time,
role_arn,
status
FROM aws.personalize.dataset_groups
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an empty dataset group. A dataset group is a container for Amazon Personalize resources. A dataset group can contain at most three datasets, one for each type of dataset: Item interactions Items Users Actions Action interactions A dataset group can be a Domain dataset group, where you specify a domain and use pre-configured resources like recommenders, or a Custom dataset group, where you use custom resources, such as a solution with a solution version, that you deploy with a campaign. If you start with a Domain dataset group, you can still add custom resources such as solutions and solution versions trained with recipes for custom use cases and deployed with campaigns. A dataset group can be in one of the following states: CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED DELETE PENDING To get the status of the dataset group, call DescribeDatasetGroup. If the status shows as CREATE FAILED, the response includes a failureReason key, which describes why the creation failed. You must wait until the status of the dataset group is ACTIVE before adding a dataset to the group. You can specify an Key Management Service (KMS) key to encrypt the datasets in the group. If you specify a KMS key, you must also include an Identity and Access Management (IAM) role that has permission to access the key. APIs that require a dataset group ARN in the request CreateDataset CreateEventTracker CreateSolution Related APIs ListDatasetGroups DescribeDatasetGroup DeleteDatasetGroup

INSERT INTO aws.personalize.dataset_groups (
name,
roleArn,
kmsKeyArn,
domain,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ roleArn }}',
'{{ kmsKeyArn }}',
'{{ domain }}',
'{{ tags }}',
'{{ region }}'
RETURNING
dataset_group_arn,
domain
;

DELETE examples

Deletes a dataset group. Before you delete a dataset group, you must delete the following: All associated event trackers. All associated solutions. All datasets in the dataset group.

DELETE FROM aws.personalize.dataset_groups
WHERE region = '{{ region }}' --required
;