Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
Contains an array of Transition
objects specifying how long in days
before a recovery point transitions to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the Feature availability by resource table. Backup ignores this expression for other resource types.
See: newLifecycle
smart constructor.
Lifecycle' | |
|
Instances
FromJSON Lifecycle Source # | |
ToJSON Lifecycle Source # | |
Defined in Amazonka.Backup.Types.Lifecycle | |
Generic Lifecycle Source # | |
Read Lifecycle Source # | |
Show Lifecycle Source # | |
NFData Lifecycle Source # | |
Defined in Amazonka.Backup.Types.Lifecycle | |
Eq Lifecycle Source # | |
Hashable Lifecycle Source # | |
Defined in Amazonka.Backup.Types.Lifecycle | |
type Rep Lifecycle Source # | |
Defined in Amazonka.Backup.Types.Lifecycle type Rep Lifecycle = D1 ('MetaData "Lifecycle" "Amazonka.Backup.Types.Lifecycle" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "Lifecycle'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deleteAfterDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "moveToColdStorageAfterDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))) |
newLifecycle :: Lifecycle Source #
Create a value of Lifecycle
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:deleteAfterDays:Lifecycle'
, lifecycle_deleteAfterDays
- Specifies the number of days after creation that a recovery point is
deleted. Must be greater than 90 days plus MoveToColdStorageAfterDays
.
$sel:moveToColdStorageAfterDays:Lifecycle'
, lifecycle_moveToColdStorageAfterDays
- Specifies the number of days after creation that a recovery point is
moved to cold storage.