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. DataSync only supports the SIMPLE_PATTERN rule type.

Returns:

  • (String)


1861
1862
1863
1864
1865
1866
# File 'gems/aws-sdk-datasync/lib/aws-sdk-datasync/types.rb', line 1861

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)


1861
1862
1863
1864
1865
1866
# File 'gems/aws-sdk-datasync/lib/aws-sdk-datasync/types.rb', line 1861

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