Skip to content
v2.274.0

FilterRuleProperty Struct ​

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

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 ​

filterTypeoptionalstringfilter_typeoptionalstrfilterTypeoptionalStringFilterTypeoptionalstringFilterTypeoptional*string#
The type of filter rule to apply.

AWS DataSync only supports the SIMPLE_PATTERN rule type.

valueoptionalstringvalueoptionalstrvalueoptionalStringValueoptionalstringValueoptional*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