View a markdown version of this page

AWS::IoTSiteWise::Dataset - AWS CloudFormation

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::IoTSiteWise::Dataset

Creates a dataset to connect an external datasource.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::IoTSiteWise::Dataset", "Properties" : { "DatasetConfig" : DatasetConfig, "DatasetDescription" : String, "DatasetName" : String, "DatasetSource" : DatasetSource, "DatasetType" : String, "Tags" : [ Tag, ... ], "WorkspaceName" : String } }

YAML

Type: AWS::IoTSiteWise::Dataset Properties: DatasetConfig: DatasetConfig DatasetDescription: String DatasetName: String DatasetSource: DatasetSource DatasetType: String Tags: - Tag WorkspaceName: String

Properties

DatasetConfig

The configuration for the dataset. Provide the session configuration for a SESSION dataset.

Required: No

Type: DatasetConfig

Update requires: No interruption

DatasetDescription

A description about the dataset, and its functionality.

Required: No

Type: String

Update requires: No interruption

DatasetName

The name of the dataset.

Required: Yes

Type: String

Update requires: No interruption

DatasetSource

The data source for the dataset. This property is required for EXTERNAL datasets (for example, an Amazon Kendra index) and is omitted for workspace-scoped SESSION and CURATED datasets.

Required: No

Type: DatasetSource

Update requires: No interruption

DatasetType

The type of the dataset. Valid values:

  • SESSION: A workspace-scoped dataset backed by a time range of time-series data. Specify WorkspaceName and DatasetConfig.

  • CURATED: A workspace-scoped dataset whose data segments are curated through an interactive application workflow. Specify WorkspaceName.

  • EXTERNAL: A dataset backed by an external knowledge base, such as an Amazon Kendra index. Specify DatasetSource.

You can't change the dataset type after you create the dataset. Changing this property requires replacing the resource.

Required: No

Type: String

Allowed values: SESSION | CURATED | EXTERNAL

Update requires: Replacement

Tags

A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide.

Required: No

Type: Array of Tag

Update requires: No interruption

WorkspaceName

The name of the workspace that the dataset belongs to. This property is required for workspace-scoped SESSION and CURATED datasets and is omitted for EXTERNAL datasets.

You can't change the workspace after you create the dataset. Changing this property requires replacing the resource.

Required: No

Type: String

Pattern: ^[a-zA-Z0-9_-]+$

Minimum: 1

Maximum: 64

Update requires: Replacement

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the DatasetId.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

DatasetArn

The ARN of the dataset, which has the following format.

arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId}

For more information about using the Ref function, see Ref.

DatasetId

The ID of the dataset.

For more information about using the Ref function, see Ref.