AWS::IoTAnalytics::ChannelThe AWS::IoTAnalytics::Channel resource collects data from an MQTT topic and archives the raw, unprocessed messages before publishing the data to a pipeline. For more information, see [How to Use](https://docs.aws.amazon.com/iotanalytics/latest/userguide/welcome.html#aws-iot-analytics-how) in the *User Guide* .
import { CfnChannel } from 'aws-cdk-lib/aws-iotanalytics';Or use the module namespace:
import * as iotanalytics from 'aws-cdk-lib/aws-iotanalytics';
// iotanalytics.CfnChannelConfiguration passed to the constructor as CfnChannelProps.
channelNameOptionalstringThe name of the channel.
channelStorageOptionalIResolvable | ChannelStoragePropertyWhere channel data is stored.
retentionPeriodOptionalIResolvable | RetentionPeriodPropertyHow long, in days, message data is kept for the channel.
tagsOptionalCfnTag[]Metadata which can be used to manage the channel. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-iotanalyticsAWS::IoTAnalytics::Channel