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

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

Methods

NameResourceAccessible byRequired Params
create_resourcedataset_groupsINSERTDatasetGroupName, Domain, region
delete_resourcedataset_groupsDELETEIdentifier, region
update_resourcedataset_groupsUPDATEIdentifier, PatchDocument, region
list_resourcesdataset_groups_list_onlySELECTregion
get_resourcedataset_groupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual dataset_group.

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

UPDATE example

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

/*+ update */
UPDATE awscc.forecast.dataset_groups
SET PatchDocument = string('{{ {
"DatasetArns": dataset_arns,
"Domain": domain,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ dataset_group_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.forecast.dataset_groups
WHERE
Identifier = '{{ dataset_group_arn }}' AND
region = 'us-east-1';

Permissions

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

forecast:CreateDatasetGroup