FilterRuleProperty Struct
Specifies which files, folders, and objects to include or exclude when transferring files from source to destination.
| Source | |
|---|---|
| Type last changed |
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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_datasync as datasync
filter_rule_property = datasync.CfnTask.FilterRuleProperty(
filter_type="filterType",
value="value"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.datasync.*;
FilterRuleProperty filterRuleProperty = FilterRuleProperty.builder()
.filterType("filterType")
.value("value")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataSync;
var filterRuleProperty = new FilterRuleProperty {
FilterType = "filterType",
Value = "value"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
filterRuleProperty := &FilterRuleProperty{
FilterType: jsii.String("filterType"),
Value: jsii.String("value"),
}
Properties
filterTypeoptionalstringfilter_typeoptionalstrfilterTypeoptionalStringFilterTypeoptionalstringFilterTypeoptional*string #The type of filter rule to apply.
AWS DataSync only supports the SIMPLE_PATTERN rule type.
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