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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-datasync/lib/aws-sdk-datasync/types.rb

Overview

Note:

When making an API call, you may pass FilterRule data as a 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.

Constant Summary collapse

SENSITIVE =
[]

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.

Returns:

  • (String)


1787
1788
1789
1790
1791
1792
# File 'gems/aws-sdk-datasync/lib/aws-sdk-datasync/types.rb', line 1787

class FilterRule < Struct.new(
  :filter_type,
  :value)
  SENSITIVE = []
  include Aws::Structure
end

#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)


1787
1788
1789
1790
1791
1792
# File 'gems/aws-sdk-datasync/lib/aws-sdk-datasync/types.rb', line 1787

class FilterRule < Struct.new(
  :filter_type,
  :value)
  SENSITIVE = []
  include Aws::Structure
end