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

Description

 
Synopsis

Documentation

data Transition Source #

Specifies when an object transitions to a specified storage class. For more information about Amazon S3 lifecycle configuration rules, see Transitioning Objects Using Amazon S3 Lifecycle in the Amazon S3 User Guide.

See: newTransition smart constructor.

Constructors

Transition' 

Fields

  • days :: Maybe Int

    Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.

  • date :: Maybe ISO8601

    Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.

  • storageClass :: Maybe TransitionStorageClass

    The storage class to which you want the object to transition.

Instances

Instances details
Eq Transition Source # 
Instance details

Defined in Amazonka.S3.Types.Transition

Read Transition Source # 
Instance details

Defined in Amazonka.S3.Types.Transition

Show Transition Source # 
Instance details

Defined in Amazonka.S3.Types.Transition

Generic Transition Source # 
Instance details

Defined in Amazonka.S3.Types.Transition

Associated Types

type Rep Transition :: Type -> Type #

NFData Transition Source # 
Instance details

Defined in Amazonka.S3.Types.Transition

Methods

rnf :: Transition -> () #

Hashable Transition Source # 
Instance details

Defined in Amazonka.S3.Types.Transition

FromXML Transition Source # 
Instance details

Defined in Amazonka.S3.Types.Transition

ToXML Transition Source # 
Instance details

Defined in Amazonka.S3.Types.Transition

Methods

toXML :: Transition -> XML #

type Rep Transition Source # 
Instance details

Defined in Amazonka.S3.Types.Transition

type Rep Transition = D1 ('MetaData "Transition" "Amazonka.S3.Types.Transition" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "Transition'" '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 "storageClass") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TransitionStorageClass)))))

newTransition :: Transition Source #

Create a value of Transition 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:Transition', transition_days - Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.

$sel:date:Transition', transition_date - Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.

$sel:storageClass:Transition', transition_storageClass - The storage class to which you want the object to transition.

transition_days :: Lens' Transition (Maybe Int) Source #

Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.

transition_date :: Lens' Transition (Maybe UTCTime) Source #

Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.

transition_storageClass :: Lens' Transition (Maybe TransitionStorageClass) Source #

The storage class to which you want the object to transition.