# AWS IoT Analytics Construct Library

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

TypeScript:

```ts
import * as iotanalytics from 'aws-cdk-lib/aws-iotanalytics';
```

Python:

```python
import aws_cdk.aws_iotanalytics as iotanalytics
```

Java:

```java
import software.amazon.awscdk.services.iotanalytics.*;
```

C#:

```csharp
using Amazon.CDK.AWS.IoTAnalytics;
```

Go:

```go
import iotanalytics "github.com/aws/aws-cdk-go/awscdk"
```

There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:

- Search [Construct Hub for IoTAnalytics construct libraries](https://constructs.dev/search?q=iotanalytics)
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::IoTAnalytics resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_IoTAnalytics.html) directly.

There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::IoTAnalytics](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_IoTAnalytics.html).

(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)

## Types

### Constructs (L1)

- [`CfnChannel`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnChannel.html) Construct (L1) The AWS::IoTAnalytics::Channel resource collects data from an MQTT topic and archives the raw, unprocessed messages before publishing the data to a pipeline.
- [`CfnDataset`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.html) Construct (L1) The AWS::IoTAnalytics::Dataset resource stores data retrieved from a data store by applying a `queryAction` (an SQL query) or a `containerAction` (executing a containerized application).
- [`CfnDatastore`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.html) Construct (L1) AWS::IoTAnalytics::Datastore resource is a repository for messages.
- [`CfnPipeline`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipeline.html) Construct (L1) The AWS::IoTAnalytics::Pipeline resource consumes messages from one or more channels and allows you to process the messages before storing them in a data store.

### Structs

- [`CfnChannel.ChannelStorageProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnChannel.ChannelStorageProperty.html) Struct Where channel data is stored.
- [`CfnChannel.CustomerManagedS3Property`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnChannel.CustomerManagedS3Property.html) Struct Used to store channel data in an S3 bucket that you manage.
- [`CfnChannel.RetentionPeriodProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnChannel.RetentionPeriodProperty.html) Struct How long, in days, message data is kept.
- [`CfnChannelProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnChannelProps.html) Struct Properties for defining a `CfnChannel`.
- [`CfnDataset.ActionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.ActionProperty.html) Struct Information needed to run the "containerAction" to produce data set contents.
- [`CfnDataset.ContainerActionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.ContainerActionProperty.html) Struct Information needed to run the "containerAction" to produce data set contents.
- [`CfnDataset.DatasetContentDeliveryRuleDestinationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.DatasetContentDeliveryRuleDestinationProperty.html) Struct The destination to which dataset contents are delivered.
- [`CfnDataset.DatasetContentDeliveryRuleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.DatasetContentDeliveryRuleProperty.html) Struct When dataset contents are created, they are delivered to destination specified here.
- [`CfnDataset.DatasetContentVersionValueProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.DatasetContentVersionValueProperty.html) Struct The dataset whose latest contents are used as input to the notebook or application.
- [`CfnDataset.DeltaTimeProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.DeltaTimeProperty.html) Struct Used to limit data to that which has arrived since the last execution of the action.
- [`CfnDataset.DeltaTimeSessionWindowConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.DeltaTimeSessionWindowConfigurationProperty.html) Struct A structure that contains the configuration information of a delta time session window.
- [`CfnDataset.FilterProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.FilterProperty.html) Struct Information which is used to filter message data, to segregate it according to the time frame in which it arrives.
- [`CfnDataset.GlueConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.GlueConfigurationProperty.html) Struct Configuration information for coordination with AWS Glue , a fully managed extract, transform and load (ETL) service.
- [`CfnDataset.IotEventsDestinationConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.IotEventsDestinationConfigurationProperty.html) Struct Configuration information for delivery of dataset contents to AWS IoT Events .
- [`CfnDataset.LateDataRuleConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.LateDataRuleConfigurationProperty.html) Struct The information needed to configure a delta time session window.
- [`CfnDataset.LateDataRuleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.LateDataRuleProperty.html) Struct A structure that contains the name and configuration information of a late data rule.
- [`CfnDataset.OutputFileUriValueProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.OutputFileUriValueProperty.html) Struct The value of the variable as a structure that specifies an output file URI.
- [`CfnDataset.QueryActionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.QueryActionProperty.html) Struct An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.
- [`CfnDataset.ResourceConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.ResourceConfigurationProperty.html) Struct The configuration of the resource used to execute the `containerAction` .
- [`CfnDataset.RetentionPeriodProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.RetentionPeriodProperty.html) Struct How long, in days, message data is kept.
- [`CfnDataset.S3DestinationConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.S3DestinationConfigurationProperty.html) Struct Configuration information for delivery of dataset contents to Amazon Simple Storage Service (Amazon S3).
- [`CfnDataset.ScheduleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.ScheduleProperty.html) Struct The schedule for when to trigger an update.
- [`CfnDataset.TriggeringDatasetProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.TriggeringDatasetProperty.html) Struct Information about the dataset whose content generation triggers the new dataset content generation.
- [`CfnDataset.TriggerProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.TriggerProperty.html) Struct The "DatasetTrigger" that specifies when the data set is automatically updated.
- [`CfnDataset.VariableProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.VariableProperty.html) Struct An instance of a variable to be passed to the `containerAction` execution.
- [`CfnDataset.VersioningConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDataset.VersioningConfigurationProperty.html) Struct Information about the versioning of dataset contents.
- [`CfnDatasetProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatasetProps.html) Struct Properties for defining a `CfnDataset`.
- [`CfnDatastore.ColumnProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.ColumnProperty.html) Struct Contains information about a column that stores your data.
- [`CfnDatastore.CustomerManagedS3Property`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.CustomerManagedS3Property.html) Struct S3-customer-managed;
- [`CfnDatastore.CustomerManagedS3StorageProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.CustomerManagedS3StorageProperty.html) Struct Amazon S3 -customer-managed;
- [`CfnDatastore.DatastorePartitionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.DatastorePartitionProperty.html) Struct A single dimension to partition a data store.
- [`CfnDatastore.DatastorePartitionsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.DatastorePartitionsProperty.html) Struct Information about the partition dimensions in a data store.
- [`CfnDatastore.DatastoreStorageProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.DatastoreStorageProperty.html) Struct Where data store data is stored.
- [`CfnDatastore.FileFormatConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.FileFormatConfigurationProperty.html) Struct Contains the configuration information of file formats. ITA data stores support JSON and [Parquet](https://docs.aws.amazon.com/https://parquet.apache.org/) .
- [`CfnDatastore.IotSiteWiseMultiLayerStorageProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.IotSiteWiseMultiLayerStorageProperty.html) Struct Stores data used by AWS IoT SiteWise in an Amazon S3 bucket that you manage.
- [`CfnDatastore.ParquetConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.ParquetConfigurationProperty.html) Struct Contains the configuration information of the Parquet format.
- [`CfnDatastore.PartitionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.PartitionProperty.html) Struct A single dimension to partition a data store.
- [`CfnDatastore.RetentionPeriodProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.RetentionPeriodProperty.html) Struct How long, in days, message data is kept.
- [`CfnDatastore.SchemaDefinitionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.SchemaDefinitionProperty.html) Struct Information needed to define a schema.
- [`CfnDatastore.TimestampPartitionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.TimestampPartitionProperty.html) Struct A partition dimension defined by a timestamp attribute.
- [`CfnDatastoreProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastoreProps.html) Struct Properties for defining a `CfnDatastore`.
- [`CfnPipeline.ActivityProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipeline.ActivityProperty.html) Struct An activity that performs a transformation on a message.
- [`CfnPipeline.AddAttributesProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipeline.AddAttributesProperty.html) Struct An activity that adds other attributes based on existing attributes in the message.
- [`CfnPipeline.ChannelProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipeline.ChannelProperty.html) Struct Determines the source of the messages to be processed.
- [`CfnPipeline.DatastoreProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipeline.DatastoreProperty.html) Struct The datastore activity that specifies where to store the processed data.
- [`CfnPipeline.DeviceRegistryEnrichProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipeline.DeviceRegistryEnrichProperty.html) Struct An activity that adds data from the AWS IoT device registry to your message.
- [`CfnPipeline.DeviceShadowEnrichProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipeline.DeviceShadowEnrichProperty.html) Struct An activity that adds information from the AWS IoT Device Shadows service to a message.
- [`CfnPipeline.FilterProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipeline.FilterProperty.html) Struct An activity that filters a message based on its attributes.
- [`CfnPipeline.LambdaProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipeline.LambdaProperty.html) Struct An activity that runs a Lambda function to modify the message.
- [`CfnPipeline.MathProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipeline.MathProperty.html) Struct An activity that computes an arithmetic expression using the message's attributes.
- [`CfnPipeline.RemoveAttributesProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipeline.RemoveAttributesProperty.html) Struct An activity that removes attributes from a message.
- [`CfnPipeline.SelectAttributesProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipeline.SelectAttributesProperty.html) Struct Creates a new message using only the specified attributes from the original message.
- [`CfnPipelineProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnPipelineProps.html) Struct Properties for defining a `CfnPipeline`.
