# CompositeFilterProperty

Enables the creation of filtering criteria for security findings.

- Source: Generated code
- Type last changed: v2.203.0 · 1 Jul 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityhub as securityhub } from 'aws-cdk-lib';
const compositeFilterProperty: securityhub.CfnAutomationRuleV2.CompositeFilterProperty = {
  booleanFilters: [{
    fieldName: 'fieldName',
    filter: {
      value: false,
    },
  }],
  dateFilters: [{
    fieldName: 'fieldName',
    filter: {
      dateRange: {
        unit: 'unit',
        value: 123,
      },
      end: 'end',
      start: 'start',
    },
  }],
  mapFilters: [{
    fieldName: 'fieldName',
    filter: {
      comparison: 'comparison',
      key: 'key',
      value: 'value',
    },
  }],
  numberFilters: [{
    fieldName: 'fieldName',
    filter: {
      eq: 123,
      gte: 123,
      lte: 123,
    },
  }],
  operator: 'operator',
  stringFilters: [{
    fieldName: 'fieldName',
    filter: {
      comparison: 'comparison',
      value: 'value',
    },
  }],
};
```

## Properties

- `booleanFilters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAutomationRuleV2.OcsfBooleanFilterProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_securityhub.CfnAutomationRuleV2.OcsfBooleanFilterProperty.html)[] — Enables filtering based on boolean field values.

- `dateFilters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAutomationRuleV2.OcsfDateFilterProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_securityhub.CfnAutomationRuleV2.OcsfDateFilterProperty.html)[] — Enables filtering based on date and timestamp fields.

- `mapFilters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAutomationRuleV2.OcsfMapFilterProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_securityhub.CfnAutomationRuleV2.OcsfMapFilterProperty.html)[] — Enables the creation of filtering criteria for security findings.

- `numberFilters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAutomationRuleV2.OcsfNumberFilterProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_securityhub.CfnAutomationRuleV2.OcsfNumberFilterProperty.html)[] — Enables filtering based on numerical field values.

- `operator`: string — The logical operator used to combine multiple filter conditions.

- `stringFilters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAutomationRuleV2.OcsfStringFilterProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_securityhub.CfnAutomationRuleV2.OcsfStringFilterProperty.html)[] — Enables filtering based on string field values.
