Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Rule = Rule' {}
- newRule :: Rule
- rule_gating :: Lens' Rule (Maybe GatingRule)
- rule_assertion :: Lens' Rule (Maybe AssertionRule)
Documentation
A safety rule. A safety rule can be an assertion rule or a gating rule.
See: newRule
smart constructor.
Rule' | |
|
Instances
Eq Rule Source # | |
Read Rule Source # | |
Show Rule Source # | |
Generic Rule Source # | |
NFData Rule Source # | |
Hashable Rule Source # | |
FromJSON Rule Source # | |
type Rep Rule Source # | |
Defined in Amazonka.Route53RecoveryControlConfig.Types.Rule type Rep Rule = D1 ('MetaData "Rule" "Amazonka.Route53RecoveryControlConfig.Types.Rule" "libZSservicesZSamazonka-route53-recovery-control-configZSamazonka-route53-recovery-control-config" 'False) (C1 ('MetaCons "Rule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gating") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GatingRule)) :*: S1 ('MetaSel ('Just "assertion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AssertionRule)))) |
Create a value of Rule
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:gating:Rule'
, rule_gating
- A gating rule verifies that a set of gating controls evaluates as true,
based on a rule configuration that you specify. If the gating rule
evaluates to true, Amazon Route 53 Application Recovery Controller
allows a set of routing control state changes to run and complete
against the set of target controls.
$sel:assertion:Rule'
, rule_assertion
- An assertion rule enforces that, when a routing control state is
changed, the criteria set by the rule configuration is met. Otherwise,
the change to the routing control is not accepted.
rule_gating :: Lens' Rule (Maybe GatingRule) Source #
A gating rule verifies that a set of gating controls evaluates as true, based on a rule configuration that you specify. If the gating rule evaluates to true, Amazon Route 53 Application Recovery Controller allows a set of routing control state changes to run and complete against the set of target controls.
rule_assertion :: Lens' Rule (Maybe AssertionRule) Source #
An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control is not accepted.