libZSservicesZSamazonka-datasyncZSamazonka-datasync
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DataSync.Types.FilterRule

Description

 
Synopsis

Documentation

data FilterRule Source #

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

See: newFilterRule smart constructor.

Constructors

FilterRule' 

Fields

  • filterType :: Maybe FilterType

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

  • value :: Maybe Text

    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

Instances

Instances details
Eq FilterRule Source # 
Instance details

Defined in Amazonka.DataSync.Types.FilterRule

Read FilterRule Source # 
Instance details

Defined in Amazonka.DataSync.Types.FilterRule

Show FilterRule Source # 
Instance details

Defined in Amazonka.DataSync.Types.FilterRule

Generic FilterRule Source # 
Instance details

Defined in Amazonka.DataSync.Types.FilterRule

Associated Types

type Rep FilterRule :: Type -> Type #

NFData FilterRule Source # 
Instance details

Defined in Amazonka.DataSync.Types.FilterRule

Methods

rnf :: FilterRule -> () #

Hashable FilterRule Source # 
Instance details

Defined in Amazonka.DataSync.Types.FilterRule

ToJSON FilterRule Source # 
Instance details

Defined in Amazonka.DataSync.Types.FilterRule

FromJSON FilterRule Source # 
Instance details

Defined in Amazonka.DataSync.Types.FilterRule

type Rep FilterRule Source # 
Instance details

Defined in Amazonka.DataSync.Types.FilterRule

type Rep FilterRule = D1 ('MetaData "FilterRule" "Amazonka.DataSync.Types.FilterRule" "libZSservicesZSamazonka-datasyncZSamazonka-datasync" 'False) (C1 ('MetaCons "FilterRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filterType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FilterType)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newFilterRule :: FilterRule Source #

Create a value of FilterRule with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:filterType:FilterRule', filterRule_filterType - The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.

$sel:value:FilterRule', filterRule_value - 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

filterRule_filterType :: Lens' FilterRule (Maybe FilterType) Source #

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

filterRule_value :: Lens' FilterRule (Maybe Text) Source #

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