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
DescriptionRepresents a dataset group that holds a collection of related datasets
Idaws.forecast.dataset_groups

Fields

NameDatatypeDescription
dataset_arnsarrayAn array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.
dataset_group_namestringA name for the dataset group.
domainstringThe domain associated with the dataset group. When you add a dataset to a dataset group, this value and the value specified for the Domain parameter of the CreateDataset operation must match.
tagsarrayThe tags of Application Insights application.
dataset_group_arnstringThe Amazon Resource Name (ARN) of the dataset group to delete.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDatasetGroupName, Domain, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all dataset_groups in a region.

SELECT
region,
dataset_arns,
dataset_group_name,
domain,
tags,
dataset_group_arn
FROM aws.forecast.dataset_groups
WHERE region = 'us-east-1';

Gets all properties from an individual dataset_group.

SELECT
region,
dataset_arns,
dataset_group_name,
domain,
tags,
dataset_group_arn
FROM aws.forecast.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.forecast.dataset_groups (
DatasetGroupName,
Domain,
region
)
SELECT
'{{ DatasetGroupName }}',
'{{ Domain }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.forecast.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

forecast:CreateDatasetGroup

Read

forecast:DescribeDatasetGroup

Update

forecast:UpdateDatasetGroup

Delete

forecast:DeleteDatasetGroup

List

forecast:ListDatasetGroups