# FilterRuleProperty

Specifies which files, folders, and objects to include or exclude when transferring files from source to destination.

- 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_datasync as datasync } from 'aws-cdk-lib';
const filterRuleProperty: datasync.CfnTask.FilterRuleProperty = {
  filterType: 'filterType',
  value: 'value',
};
```

## Properties

- `filterType`: string — The type of filter rule to apply.

  AWS DataSync only supports the SIMPLE_PATTERN rule type.

- `value`: string — A single filter string that consists of the patterns to include or exclude.

  The patterns are delimited by "|" (that is, a pipe), for example: `/folder1|/folder2`
