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::IoTAnalytics::Dataset
Idaws.iotanalytics.datasets

Fields

NameDatatypeDescription
actionsarray
late_data_rulesarray
dataset_namestring
content_delivery_rulesarray
triggersarray
versioning_configurationobject
idstring
retention_periodobject
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTActions, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all datasets in a region.

SELECT
region,
actions,
late_data_rules,
dataset_name,
content_delivery_rules,
triggers,
versioning_configuration,
id,
retention_period,
tags
FROM aws.iotanalytics.datasets
WHERE region = 'us-east-1';

Gets all properties from an individual dataset.

SELECT
region,
actions,
late_data_rules,
dataset_name,
content_delivery_rules,
triggers,
versioning_configuration,
id,
retention_period,
tags
FROM aws.iotanalytics.datasets
WHERE region = 'us-east-1' AND data__Identifier = '<DatasetName>';

INSERT example

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

/*+ create */
INSERT INTO aws.iotanalytics.datasets (
Actions,
region
)
SELECT
'{{ Actions }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

iotanalytics:CreateDataset

Read

iotanalytics:DescribeDataset,
iotanalytics:ListTagsForResource

Update

iotanalytics:UpdateDataset,
iotanalytics:TagResource,
iotanalytics:UntagResource

Delete

iotanalytics:DeleteDataset

List

iotanalytics:ListDatasets