libZSservicesZSamazonka-efsZSamazonka-efs
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.EFS.Types.LifecyclePolicy

Description

 
Synopsis

Documentation

data LifecyclePolicy Source #

Describes a policy used by EFS lifecycle management and EFS intelligent tiering that specifies when to transition files into and out of the file system's Infrequent Access (IA) storage class. For more information, see EFS Intelligent‐Tiering and EFS Lifecycle Management.

When using the put-lifecycle-configuration CLI command or the PutLifecycleConfiguration API action, Amazon EFS requires that each LifecyclePolicy object have only a single transition. This means that in a request body, LifecyclePolicies needs to be structured as an array of LifecyclePolicy objects, one object for each transition, TransitionToIA, TransitionToPrimaryStorageClass. For more information, see the request examples in PutLifecycleConfiguration.

See: newLifecyclePolicy smart constructor.

Constructors

LifecyclePolicy' 

Fields

Instances

Instances details
Eq LifecyclePolicy Source # 
Instance details

Defined in Amazonka.EFS.Types.LifecyclePolicy

Read LifecyclePolicy Source # 
Instance details

Defined in Amazonka.EFS.Types.LifecyclePolicy

Show LifecyclePolicy Source # 
Instance details

Defined in Amazonka.EFS.Types.LifecyclePolicy

Generic LifecyclePolicy Source # 
Instance details

Defined in Amazonka.EFS.Types.LifecyclePolicy

Associated Types

type Rep LifecyclePolicy :: Type -> Type #

NFData LifecyclePolicy Source # 
Instance details

Defined in Amazonka.EFS.Types.LifecyclePolicy

Methods

rnf :: LifecyclePolicy -> () #

Hashable LifecyclePolicy Source # 
Instance details

Defined in Amazonka.EFS.Types.LifecyclePolicy

ToJSON LifecyclePolicy Source # 
Instance details

Defined in Amazonka.EFS.Types.LifecyclePolicy

FromJSON LifecyclePolicy Source # 
Instance details

Defined in Amazonka.EFS.Types.LifecyclePolicy

type Rep LifecyclePolicy Source # 
Instance details

Defined in Amazonka.EFS.Types.LifecyclePolicy

type Rep LifecyclePolicy = D1 ('MetaData "LifecyclePolicy" "Amazonka.EFS.Types.LifecyclePolicy" "libZSservicesZSamazonka-efsZSamazonka-efs" 'False) (C1 ('MetaCons "LifecyclePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "transitionToIA") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TransitionToIARules)) :*: S1 ('MetaSel ('Just "transitionToPrimaryStorageClass") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TransitionToPrimaryStorageClassRules))))

newLifecyclePolicy :: LifecyclePolicy Source #

Create a value of LifecyclePolicy 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:transitionToIA:LifecyclePolicy', lifecyclePolicy_transitionToIA - Describes the period of time that a file is not accessed, after which it transitions to IA storage. Metadata operations such as listing the contents of a directory don't count as file access events.

$sel:transitionToPrimaryStorageClass:LifecyclePolicy', lifecyclePolicy_transitionToPrimaryStorageClass - Describes when to transition a file from IA storage to primary storage. Metadata operations such as listing the contents of a directory don't count as file access events.

lifecyclePolicy_transitionToIA :: Lens' LifecyclePolicy (Maybe TransitionToIARules) Source #

Describes the period of time that a file is not accessed, after which it transitions to IA storage. Metadata operations such as listing the contents of a directory don't count as file access events.

lifecyclePolicy_transitionToPrimaryStorageClass :: Lens' LifecyclePolicy (Maybe TransitionToPrimaryStorageClassRules) Source #

Describes when to transition a file from IA storage to primary storage. Metadata operations such as listing the contents of a directory don't count as file access events.