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.
Idawscc.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.

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

Methods

NameResourceAccessible byRequired Params
create_resourcedataset_groupsINSERTName, region
delete_resourcedataset_groupsDELETEIdentifier, region
list_resourcesdataset_groups_list_onlySELECTregion
get_resourcedataset_groupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual dataset_group.

SELECT
region,
dataset_group_arn,
name,
kms_key_arn,
role_arn,
domain
FROM awscc.personalize.dataset_groups
WHERE
region = '{{ region }}' AND
Identifier = '{{ dataset_group_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.personalize.dataset_groups (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.personalize.dataset_groups
WHERE
Identifier = '{{ dataset_group_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

personalize:CreateDatasetGroup,
personalize:DescribeDatasetGroup,
iam:PassRole