# CfnChannelProps

Properties for defining a `CfnChannel`.

Extends: CfnChannelProps
Used as props by: CfnChannel

- Source: Generated code

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotanalytics as iotanalytics } from 'aws-cdk-lib';

declare const serviceManagedS3: any;
const cfnChannelProps: iotanalytics.CfnChannelProps = {
  channelName: 'channelName',
  channelStorage: {
    customerManagedS3: {
      bucket: 'bucket',
      roleArn: 'roleArn',

      // the properties below are optional
      keyPrefix: 'keyPrefix',
    },
    serviceManagedS3: serviceManagedS3,
  },
  retentionPeriod: {
    numberOfDays: 123,
    unlimited: false,
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `channelName`: string — The name of the channel.

- `channelStorage`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnChannel.ChannelStorageProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnChannel.ChannelStorageProperty.html) — Where channel data is stored.

- `retentionPeriod`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnChannel.RetentionPeriodProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnChannel.RetentionPeriodProperty.html) — How long, in days, message data is kept for the channel.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — 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) .
