libZSservicesZSamazonka-s3ZSamazonka-s3
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.S3.Types.LifecycleExpiration

Description

 
Synopsis

Documentation

data LifecycleExpiration Source #

Container for the expiration for the lifecycle of the object.

See: newLifecycleExpiration smart constructor.

Constructors

LifecycleExpiration' 

Fields

  • days :: Maybe Int

    Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

  • date :: Maybe ISO8601

    Indicates at what date the object is to be moved or deleted. Should be in GMT ISO 8601 Format.

  • expiredObjectDeleteMarker :: Maybe Bool

    Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.

Instances

Instances details
Eq LifecycleExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleExpiration

Read LifecycleExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleExpiration

Show LifecycleExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleExpiration

Generic LifecycleExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleExpiration

Associated Types

type Rep LifecycleExpiration :: Type -> Type #

NFData LifecycleExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleExpiration

Methods

rnf :: LifecycleExpiration -> () #

Hashable LifecycleExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleExpiration

FromXML LifecycleExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleExpiration

ToXML LifecycleExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleExpiration

type Rep LifecycleExpiration Source # 
Instance details

Defined in Amazonka.S3.Types.LifecycleExpiration

type Rep LifecycleExpiration = D1 ('MetaData "LifecycleExpiration" "Amazonka.S3.Types.LifecycleExpiration" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "LifecycleExpiration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "days") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "expiredObjectDeleteMarker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))))

newLifecycleExpiration :: LifecycleExpiration Source #

Create a value of LifecycleExpiration 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:days:LifecycleExpiration', lifecycleExpiration_days - Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

$sel:date:LifecycleExpiration', lifecycleExpiration_date - Indicates at what date the object is to be moved or deleted. Should be in GMT ISO 8601 Format.

$sel:expiredObjectDeleteMarker:LifecycleExpiration', lifecycleExpiration_expiredObjectDeleteMarker - Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.

lifecycleExpiration_days :: Lens' LifecycleExpiration (Maybe Int) Source #

Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

lifecycleExpiration_date :: Lens' LifecycleExpiration (Maybe UTCTime) Source #

Indicates at what date the object is to be moved or deleted. Should be in GMT ISO 8601 Format.

lifecycleExpiration_expiredObjectDeleteMarker :: Lens' LifecycleExpiration (Maybe Bool) Source #

Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired; if set to false the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.