Skip to main content

dataset_groups

Creates, updates, deletes or gets a dataset_group resource or lists dataset_groups in a region

Overview

Namedataset_groups
TypeResource
DescriptionResource Schema for AWS::Personalize::DatasetGroup.
Idaws.personalize.dataset_groups

Fields

NameDatatypeDescription
dataset_group_arnstringThe Amazon Resource Name (ARN) of the dataset group.
namestringThe name for the new dataset group.
kms_key_arnstringThe Amazon Resource Name(ARN) of a AWS Key Management Service (KMS) key used to encrypt the datasets.
role_arnstringThe ARN of the AWS Identity and Access Management (IAM) role that has permissions to access the AWS Key Management Service (KMS) key. Supplying an IAM role is only valid when also specifying a KMS key.
domainstringThe domain of a Domain dataset group.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all dataset_groups in a region.

SELECT
region,
dataset_group_arn,
name,
kms_key_arn,
role_arn,
domain
FROM aws.personalize.dataset_groups
WHERE region = 'us-east-1';

Gets all properties from an individual dataset_group.

SELECT
region,
dataset_group_arn,
name,
kms_key_arn,
role_arn,
domain
FROM aws.personalize.dataset_groups
WHERE region = 'us-east-1' AND data__Identifier = '<DatasetGroupArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.personalize.dataset_groups (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.personalize.dataset_groups
WHERE data__Identifier = '<DatasetGroupArn>'
AND region = 'us-east-1';

Permissions

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

Create

personalize:CreateDatasetGroup,
personalize:DescribeDatasetGroup,
iam:PassRole

Read

personalize:DescribeDatasetGroup

Delete

personalize:DescribeDatasetGroup,
personalize:DeleteDatasetGroup

List

personalize:ListDatasetGroups