| 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 |
Amazonka.DrS.Types.PITPolicyRule
Description
Synopsis
- data PITPolicyRule = PITPolicyRule' {}
- newPITPolicyRule :: Natural -> Natural -> PITPolicyRuleUnits -> PITPolicyRule
- pITPolicyRule_enabled :: Lens' PITPolicyRule (Maybe Bool)
- pITPolicyRule_ruleID :: Lens' PITPolicyRule (Maybe Natural)
- pITPolicyRule_interval :: Lens' PITPolicyRule Natural
- pITPolicyRule_retentionDuration :: Lens' PITPolicyRule Natural
- pITPolicyRule_units :: Lens' PITPolicyRule PITPolicyRuleUnits
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
Arguments
| :: Natural | |
| -> Natural | |
| -> PITPolicyRuleUnits | |
| -> PITPolicyRule |
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_ruleID :: Lens' PITPolicyRule (Maybe Natural) Source #
The ID of the rule.
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.