# TopicRelativeDateFilterProperty

A structure that represents a relative date filter.

- 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_quicksight as quicksight } from 'aws-cdk-lib';
const topicRelativeDateFilterProperty: quicksight.CfnTopic.TopicRelativeDateFilterProperty = {
  constant: {
    constantType: 'constantType',
    singularConstant: 'singularConstant',
  },
  relativeDateFilterFunction: 'relativeDateFilterFunction',
  timeGranularity: 'timeGranularity',
};
```

## Properties

- `constant`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTopic.TopicSingularFilterConstantProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTopic.TopicSingularFilterConstantProperty.html) — The constant used in a relative date filter.

- `relativeDateFilterFunction`: string — The function to be used in a relative date filter to determine the range of dates to include in the results.

  Valid values for this structure are `BEFORE` , `AFTER` , and `BETWEEN` .

- `timeGranularity`: string — The level of time precision that is used to aggregate `DateTime` values.
