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.LifecycleRule

Description

 
Synopsis

Documentation

data LifecycleRule Source #

A lifecycle rule for individual objects in an Amazon S3 bucket.

See: newLifecycleRule smart constructor.

Constructors

LifecycleRule' 

Fields

Instances

Instances details
FromXML LifecycleRule Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleRule

ToXML LifecycleRule Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleRule

Methods

toXML :: LifecycleRule -> XML #

Generic LifecycleRule Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleRule

Associated Types

type Rep LifecycleRule :: Type -> Type #

Read LifecycleRule Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleRule

Show LifecycleRule Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleRule

NFData LifecycleRule Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleRule

Methods

rnf :: LifecycleRule -> () #

Eq LifecycleRule Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleRule

Hashable LifecycleRule Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleRule

type Rep LifecycleRule Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleRule

newLifecycleRule Source #

Create a value of LifecycleRule 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:abortIncompleteMultipartUpload:LifecycleRule', lifecycleRule_abortIncompleteMultipartUpload - Undocumented member.

$sel:expiration:LifecycleRule', lifecycleRule_expiration - Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.

$sel:filter':LifecycleRule', lifecycleRule_filter - The Filter is used to identify objects that a Lifecycle Rule applies to. A Filter must have exactly one of Prefix, Tag, or And specified. Filter is required if the LifecycleRule does not contain a Prefix element.

$sel:id:LifecycleRule', lifecycleRule_id - Unique identifier for the rule. The value cannot be longer than 255 characters.

$sel:noncurrentVersionExpiration:LifecycleRule', lifecycleRule_noncurrentVersionExpiration - Undocumented member.

$sel:noncurrentVersionTransitions:LifecycleRule', lifecycleRule_noncurrentVersionTransitions - Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.

LifecycleRule, lifecycleRule_prefix - Prefix identifying one or more objects to which the rule applies. This is no longer used; use Filter instead.

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:transitions:LifecycleRule', lifecycleRule_transitions - Specifies when an Amazon S3 object transitions to a specified storage class.

$sel:status:LifecycleRule', lifecycleRule_status - If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.

lifecycleRule_expiration :: Lens' LifecycleRule (Maybe LifecycleExpiration) Source #

Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.

lifecycleRule_filter :: Lens' LifecycleRule (Maybe LifecycleRuleFilter) Source #

The Filter is used to identify objects that a Lifecycle Rule applies to. A Filter must have exactly one of Prefix, Tag, or And specified. Filter is required if the LifecycleRule does not contain a Prefix element.

lifecycleRule_id :: Lens' LifecycleRule (Maybe Text) Source #

Unique identifier for the rule. The value cannot be longer than 255 characters.

lifecycleRule_noncurrentVersionTransitions :: Lens' LifecycleRule (Maybe [NoncurrentVersionTransition]) Source #

Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.

lifecycleRule_prefix :: Lens' LifecycleRule (Maybe Text) Source #

Prefix identifying one or more objects to which the rule applies. This is no longer used; use Filter instead.

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.

lifecycleRule_transitions :: Lens' LifecycleRule (Maybe [Transition]) Source #

Specifies when an Amazon S3 object transitions to a specified storage class.

lifecycleRule_status :: Lens' LifecycleRule ExpirationStatus Source #

If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.