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

Description

 
Synopsis

Documentation

data NoncurrentVersionExpiration Source #

Specifies when noncurrent object versions expire. Upon expiration, Amazon S3 permanently deletes the noncurrent object versions. You set this lifecycle configuration action on a bucket that has versioning enabled (or suspended) to request that Amazon S3 delete noncurrent object versions at a specific period in the object's lifetime.

See: newNoncurrentVersionExpiration smart constructor.

Constructors

NoncurrentVersionExpiration' 

Fields

Instances

Instances details
FromXML NoncurrentVersionExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.NoncurrentVersionExpiration

ToXML NoncurrentVersionExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.NoncurrentVersionExpiration

Generic NoncurrentVersionExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.NoncurrentVersionExpiration

Associated Types

type Rep NoncurrentVersionExpiration :: Type -> Type #

Read NoncurrentVersionExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.NoncurrentVersionExpiration

Show NoncurrentVersionExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.NoncurrentVersionExpiration

NFData NoncurrentVersionExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.NoncurrentVersionExpiration

Eq NoncurrentVersionExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.NoncurrentVersionExpiration

Hashable NoncurrentVersionExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.NoncurrentVersionExpiration

type Rep NoncurrentVersionExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.NoncurrentVersionExpiration

type Rep NoncurrentVersionExpiration = D1 ('MetaData "NoncurrentVersionExpiration" "Amazonka.S3.Types.NoncurrentVersionExpiration" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" 'False) (C1 ('MetaCons "NoncurrentVersionExpiration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "newerNoncurrentVersions'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "noncurrentDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newNoncurrentVersionExpiration Source #

Create a value of NoncurrentVersionExpiration 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:newerNoncurrentVersions':NoncurrentVersionExpiration', noncurrentVersionExpiration_newerNoncurrentVersions - Specifies how many noncurrent versions Amazon S3 will retain. If there are this many more recent noncurrent versions, Amazon S3 will take the associated action. For more information about noncurrent versions, see Lifecycle configuration elements in the Amazon S3 User Guide.

$sel:noncurrentDays:NoncurrentVersionExpiration', noncurrentVersionExpiration_noncurrentDays - Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. The value must be a non-zero positive integer. For information about the noncurrent days calculations, see How Amazon S3 Calculates When an Object Became Noncurrent in the Amazon S3 User Guide.

noncurrentVersionExpiration_newerNoncurrentVersions :: Lens' NoncurrentVersionExpiration (Maybe Int) Source #

Specifies how many noncurrent versions Amazon S3 will retain. If there are this many more recent noncurrent versions, Amazon S3 will take the associated action. For more information about noncurrent versions, see Lifecycle configuration elements in the Amazon S3 User Guide.

noncurrentVersionExpiration_noncurrentDays :: Lens' NoncurrentVersionExpiration Int Source #

Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. The value must be a non-zero positive integer. For information about the noncurrent days calculations, see How Amazon S3 Calculates When an Object Became Noncurrent in the Amazon S3 User Guide.