# CfnFilterProps

Properties for defining a `CfnFilter`.

Extends: CfnFilterProps
Used as props by: CfnFilter

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_personalize as personalize } from 'aws-cdk-lib';
const cfnFilterProps: personalize.CfnFilterProps = {
  datasetGroupArn: 'datasetGroupArn',
  filterExpression: 'filterExpression',
  name: 'name',

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `datasetGroupArn`: string (required) — The ARN of the dataset group that the filter belongs to.

- `filterExpression`: string (required) — The filter expression that defines which items are included or excluded from recommendations.

- `name`: string (required) — The name of the filter.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Tags to associate with the filter.
