libZSservicesZSamazonka-dlmZSamazonka-dlm
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.DLM.Types.RetainRule

Description

 
Synopsis

Documentation

data RetainRule Source #

Specifies the retention rule for a lifecycle policy. You can retain snapshots based on either a count or a time interval.

See: newRetainRule smart constructor.

Constructors

RetainRule' 

Fields

Instances

Instances details
Eq RetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.RetainRule

Read RetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.RetainRule

Show RetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.RetainRule

Generic RetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.RetainRule

Associated Types

type Rep RetainRule :: Type -> Type #

NFData RetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.RetainRule

Methods

rnf :: RetainRule -> () #

Hashable RetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.RetainRule

ToJSON RetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.RetainRule

FromJSON RetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.RetainRule

type Rep RetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.RetainRule

type Rep RetainRule = D1 ('MetaData "RetainRule" "Amazonka.DLM.Types.RetainRule" "libZSservicesZSamazonka-dlmZSamazonka-dlm" 'False) (C1 ('MetaCons "RetainRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "interval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "intervalUnit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RetentionIntervalUnitValues)))))

newRetainRule :: RetainRule Source #

Create a value of RetainRule 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:count:RetainRule', retainRule_count - The number of snapshots to retain for each volume, up to a maximum of 1000.

$sel:interval:RetainRule', retainRule_interval - The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.

$sel:intervalUnit:RetainRule', retainRule_intervalUnit - The unit of time for time-based retention.

retainRule_count :: Lens' RetainRule (Maybe Natural) Source #

The number of snapshots to retain for each volume, up to a maximum of 1000.

retainRule_interval :: Lens' RetainRule (Maybe Natural) Source #

The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.

retainRule_intervalUnit :: Lens' RetainRule (Maybe RetentionIntervalUnitValues) Source #

The unit of time for time-based retention.