aws-cdk-lib.aws_datasync.CfnTask.FilterRuleProperty

interface FilterRuleProperty

LanguageType name
.NETAmazon.CDK.AWS.DataSync.CfnTask.FilterRuleProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsdatasync#CfnTask_FilterRuleProperty
Javasoftware.amazon.awscdk.services.datasync.CfnTask.FilterRuleProperty
Pythonaws_cdk.aws_datasync.CfnTask.FilterRuleProperty
TypeScript aws-cdk-lib » aws_datasync » CfnTask » FilterRuleProperty

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

Example

// 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

NameTypeDescription
filterType?stringThe type of filter rule to apply.
value?stringA single filter string that consists of the patterns to include or exclude.

filterType?

Type: string (optional)

The type of filter rule to apply.

AWS DataSync only supports the SIMPLE_PATTERN rule type.


value?

Type: string (optional)

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