You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::DataSync::Types::FilterRule

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing FilterRule as input to an Aws::Client method, you can use a vanilla Hash:

{
  filter_type: "SIMPLE_PATTERN", # accepts SIMPLE_PATTERN
  value: "FilterValue",
}

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

Instance Attribute Summary collapse

Instance Attribute Details

#filter_typeString

The type of filter rule to apply. AWS DataSync only supports the SIMPLE_PATTERN rule type.

Possible values:

  • SIMPLE_PATTERN

Returns:

  • (String)

    The type of filter rule to apply.

#valueString

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

Returns:

  • (String)

    A single filter string that consists of the patterns to include or exclude.