# RetentionPeriodProperty

How long, in days, message data is kept.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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';
const retentionPeriodProperty: iotanalytics.CfnChannel.RetentionPeriodProperty = {
  numberOfDays: 123,
  unlimited: false,
};
```

## Properties

- `numberOfDays`: number — The number of days that message data is kept.

  The `unlimited` parameter must be false.

- `unlimited`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — If true, message data is kept indefinitely.
