Interface CfnTask.FilterRuleProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTask.FilterRuleProperty.Jsii$Proxy
Enclosing class:
CfnTask

@Stability(Stable) public static interface CfnTask.FilterRuleProperty extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.datasync.*;
 FilterRuleProperty filterRuleProperty = FilterRuleProperty.builder()
         .filterType("filterType")
         .value("value")
         .build();
 
  • Method Details

    • getFilterType

      @Stability(Stable) @Nullable default String getFilterType()
      The type of filter rule to apply.

      AWS DataSync only supports the SIMPLE_PATTERN rule type.

    • getValue

      @Stability(Stable) @Nullable default String getValue()
      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

    • builder

      @Stability(Stable) static CfnTask.FilterRuleProperty.Builder builder()
      Returns:
      a CfnTask.FilterRuleProperty.Builder of CfnTask.FilterRuleProperty