amazonka-drs-2.0: Amazon Elastic Disaster Recovery Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DrS.Types.PITPolicyRule

Description

 
Synopsis

Documentation

data PITPolicyRule Source #

A rule in the Point in Time (PIT) policy representing when to take snapshots and how long to retain them for.

See: newPITPolicyRule smart constructor.

Constructors

PITPolicyRule' 

Fields

Instances

Instances details
FromJSON PITPolicyRule Source # 
Instance details

Defined in Amazonka.DrS.Types.PITPolicyRule

ToJSON PITPolicyRule Source # 
Instance details

Defined in Amazonka.DrS.Types.PITPolicyRule

Generic PITPolicyRule Source # 
Instance details

Defined in Amazonka.DrS.Types.PITPolicyRule

Associated Types

type Rep PITPolicyRule :: Type -> Type #

Read PITPolicyRule Source # 
Instance details

Defined in Amazonka.DrS.Types.PITPolicyRule

Show PITPolicyRule Source # 
Instance details

Defined in Amazonka.DrS.Types.PITPolicyRule

NFData PITPolicyRule Source # 
Instance details

Defined in Amazonka.DrS.Types.PITPolicyRule

Methods

rnf :: PITPolicyRule -> () #

Eq PITPolicyRule Source # 
Instance details

Defined in Amazonka.DrS.Types.PITPolicyRule

Hashable PITPolicyRule Source # 
Instance details

Defined in Amazonka.DrS.Types.PITPolicyRule

type Rep PITPolicyRule Source # 
Instance details

Defined in Amazonka.DrS.Types.PITPolicyRule

type Rep PITPolicyRule = D1 ('MetaData "PITPolicyRule" "Amazonka.DrS.Types.PITPolicyRule" "amazonka-drs-2.0-Jcy074h2jPgFhWHQx96blx" 'False) (C1 ('MetaCons "PITPolicyRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "ruleID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "interval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "retentionDuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "units") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PITPolicyRuleUnits)))))

newPITPolicyRule Source #

Create a value of PITPolicyRule 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:enabled:PITPolicyRule', pITPolicyRule_enabled - Whether this rule is enabled or not.

$sel:ruleID:PITPolicyRule', pITPolicyRule_ruleID - The ID of the rule.

$sel:interval:PITPolicyRule', pITPolicyRule_interval - How often, in the chosen units, a snapshot should be taken.

$sel:retentionDuration:PITPolicyRule', pITPolicyRule_retentionDuration - The duration to retain a snapshot for, in the chosen units.

$sel:units:PITPolicyRule', pITPolicyRule_units - The units used to measure the interval and retentionDuration.

pITPolicyRule_enabled :: Lens' PITPolicyRule (Maybe Bool) Source #

Whether this rule is enabled or not.

pITPolicyRule_interval :: Lens' PITPolicyRule Natural Source #

How often, in the chosen units, a snapshot should be taken.

pITPolicyRule_retentionDuration :: Lens' PITPolicyRule Natural Source #

The duration to retain a snapshot for, in the chosen units.

pITPolicyRule_units :: Lens' PITPolicyRule PITPolicyRuleUnits Source #

The units used to measure the interval and retentionDuration.