Skip to main content

datasets

Creates, updates, deletes or gets a dataset resource or lists datasets in a region

Overview

Namedatasets
TypeResource
DescriptionResource Type Definition for AWS::Forecast::Dataset
Idaws.forecast.datasets

Fields

NameDatatypeDescription
arnstring
dataset_namestringA name for the dataset
dataset_typestringThe dataset type
data_frequencystringFrequency of data collection. This parameter is required for RELATED_TIME_SERIES
domainstringThe domain associated with the dataset
encryption_configobject
schemaobject
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDatasetName, DatasetType, Domain, Schema, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all datasets in a region.

SELECT
region,
arn,
dataset_name,
dataset_type,
data_frequency,
domain,
encryption_config,
schema,
tags
FROM aws.forecast.datasets
WHERE region = 'us-east-1';

Gets all properties from an individual dataset.

SELECT
region,
arn,
dataset_name,
dataset_type,
data_frequency,
domain,
encryption_config,
schema,
tags
FROM aws.forecast.datasets
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.forecast.datasets (
DatasetName,
DatasetType,
Domain,
Schema,
region
)
SELECT
'{{ DatasetName }}',
'{{ DatasetType }}',
'{{ Domain }}',
'{{ Schema }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.forecast.datasets
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

forecast:CreateDataset

Read

forecast:DescribeDataset

Delete

forecast:DeleteDataset

List

forecast:ListDatasets