amazonka-s3-2.0: Amazon Simple Storage Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.S3.Types.ReplicationRuleFilter

Description

 
Synopsis

Documentation

data ReplicationRuleFilter Source #

A filter that identifies the subset of objects to which the replication rule applies. A Filter must specify exactly one Prefix, Tag, or an And child element.

See: newReplicationRuleFilter smart constructor.

Constructors

ReplicationRuleFilter' 

Fields

  • and :: Maybe ReplicationRuleAndOperator

    A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter. For example:

    • If you specify both a Prefix and a Tag filter, wrap these filters in an And tag.
    • If you specify a filter based on multiple tags, wrap the Tag elements in an And tag.
  • prefix :: Maybe Text

    An object key name prefix that identifies the subset of objects to which the rule applies.

    Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.

  • tag :: Maybe Tag

    A container for specifying a tag key and value.

    The rule applies only to objects that have the tag in their tag set.

Instances

Instances details
FromXML ReplicationRuleFilter Source # 
Instance details

Defined in Amazonka.S3.Types.ReplicationRuleFilter

ToXML ReplicationRuleFilter Source # 
Instance details

Defined in Amazonka.S3.Types.ReplicationRuleFilter

Generic ReplicationRuleFilter Source # 
Instance details

Defined in Amazonka.S3.Types.ReplicationRuleFilter

Associated Types

type Rep ReplicationRuleFilter :: Type -> Type #

Read ReplicationRuleFilter Source # 
Instance details

Defined in Amazonka.S3.Types.ReplicationRuleFilter

Show ReplicationRuleFilter Source # 
Instance details

Defined in Amazonka.S3.Types.ReplicationRuleFilter

NFData ReplicationRuleFilter Source # 
Instance details

Defined in Amazonka.S3.Types.ReplicationRuleFilter

Methods

rnf :: ReplicationRuleFilter -> () #

Eq ReplicationRuleFilter Source # 
Instance details

Defined in Amazonka.S3.Types.ReplicationRuleFilter

Hashable ReplicationRuleFilter Source # 
Instance details

Defined in Amazonka.S3.Types.ReplicationRuleFilter

type Rep ReplicationRuleFilter Source # 
Instance details

Defined in Amazonka.S3.Types.ReplicationRuleFilter

type Rep ReplicationRuleFilter = D1 ('MetaData "ReplicationRuleFilter" "Amazonka.S3.Types.ReplicationRuleFilter" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" 'False) (C1 ('MetaCons "ReplicationRuleFilter'" 'PrefixI 'True) (S1 ('MetaSel ('Just "and") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReplicationRuleAndOperator)) :*: (S1 ('MetaSel ('Just "prefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Tag)))))

newReplicationRuleFilter :: ReplicationRuleFilter Source #

Create a value of ReplicationRuleFilter 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:and:ReplicationRuleFilter', replicationRuleFilter_and - A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter. For example:

  • If you specify both a Prefix and a Tag filter, wrap these filters in an And tag.
  • If you specify a filter based on multiple tags, wrap the Tag elements in an And tag.

ReplicationRuleFilter, replicationRuleFilter_prefix - An object key name prefix that identifies the subset of objects to which the rule applies.

Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.

$sel:tag:ReplicationRuleFilter', replicationRuleFilter_tag - A container for specifying a tag key and value.

The rule applies only to objects that have the tag in their tag set.

replicationRuleFilter_and :: Lens' ReplicationRuleFilter (Maybe ReplicationRuleAndOperator) Source #

A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter. For example:

  • If you specify both a Prefix and a Tag filter, wrap these filters in an And tag.
  • If you specify a filter based on multiple tags, wrap the Tag elements in an And tag.

replicationRuleFilter_prefix :: Lens' ReplicationRuleFilter (Maybe Text) Source #

An object key name prefix that identifies the subset of objects to which the rule applies.

Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.

replicationRuleFilter_tag :: Lens' ReplicationRuleFilter (Maybe Tag) Source #

A container for specifying a tag key and value.

The rule applies only to objects that have the tag in their tag set.