Skip to main content

datasets

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

Overview

Namedatasets
TypeResource
DescriptionResource schema for AWS::IoTSiteWise::Dataset.
Idawscc.iotsitewise.datasets

Fields

NameDatatypeDescription
dataset_idstringThe ID of the dataset.
dataset_arnstringThe ARN of the dataset.
dataset_namestringThe name of the dataset.
dataset_descriptionstringA description about the dataset, and its functionality.
dataset_sourceobjectThe data source for the dataset.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::IoTSiteWise::Dataset.

Methods

NameAccessible byRequired Params
create_resourceINSERTDatasetName, DatasetSource, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual dataset.

SELECT
region,
dataset_id,
dataset_arn,
dataset_name,
dataset_description,
dataset_source,
tags
FROM awscc.iotsitewise.datasets
WHERE region = 'us-east-1' AND data__Identifier = '<DatasetId>';

INSERT example

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

/*+ create */
INSERT INTO awscc.iotsitewise.datasets (
DatasetName,
DatasetSource,
region
)
SELECT
'{{ DatasetName }}',
'{{ DatasetSource }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.iotsitewise.datasets
WHERE data__Identifier = '<DatasetId>'
AND region = 'us-east-1';

Permissions

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

Create

iotsitewise:CreateDataset,
iotsitewise:DescribeDataset,
iam:PassRole,
iotsitewise:ListTagsForResource,
iotsitewise:TagResource

Read

iotsitewise:DescribeDataset,
iotsitewise:ListTagsForResource

Update

iotsitewise:UpdateDataset,
iotsitewise:DescribeDataset,
iam:PassRole,
iotsitewise:ListTagsForResource,
iotsitewise:TagResource,
iotsitewise:UntagResource

Delete

iotsitewise:DeleteDataset,
iotsitewise:DescribeDataset,
iotsitewise:ListTagsForResource

List

iotsitewise:ListDatasets,
iotsitewise:ListTagsForResource