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 AssertionRule = AssertionRule' {
- status :: Status
- controlPanelArn :: Text
- safetyRuleArn :: Text
- assertedControls :: [Text]
- ruleConfig :: RuleConfig
- waitPeriodMs :: Int
- name :: Text
- newAssertionRule :: Status -> Text -> Text -> RuleConfig -> Int -> Text -> AssertionRule
- assertionRule_status :: Lens' AssertionRule Status
- assertionRule_controlPanelArn :: Lens' AssertionRule Text
- assertionRule_safetyRuleArn :: Lens' AssertionRule Text
- assertionRule_assertedControls :: Lens' AssertionRule [Text]
- assertionRule_ruleConfig :: Lens' AssertionRule RuleConfig
- assertionRule_waitPeriodMs :: Lens' AssertionRule Int
- assertionRule_name :: Lens' AssertionRule Text
Documentation
data 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.
See: newAssertionRule
smart constructor.
AssertionRule' | |
|
Instances
:: Status | |
-> Text | |
-> Text | |
-> RuleConfig | |
-> Int | |
-> Text | |
-> AssertionRule |
Create a value of AssertionRule
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:status:AssertionRule'
, assertionRule_status
- The deployment status of an assertion rule. Status can be one of the
following: PENDING, DEPLOYED, PENDING_DELETION.
$sel:controlPanelArn:AssertionRule'
, assertionRule_controlPanelArn
- The Amazon Resource Name (ARN) of the control panel.
$sel:safetyRuleArn:AssertionRule'
, assertionRule_safetyRuleArn
- The Amazon Resource Name (ARN) of the assertion rule.
$sel:assertedControls:AssertionRule'
, assertionRule_assertedControls
- The routing controls that are part of transactions that are evaluated to
determine if a request to change a routing control state is allowed. For
example, you might include three routing controls, one for each of three
Amazon Web Services Regions.
$sel:ruleConfig:AssertionRule'
, assertionRule_ruleConfig
- The criteria that you set for specific assertion controls (routing
controls) that designate how many controls must be enabled as the result
of a transaction. For example, if you have three assertion controls, you
might specify atleast 2 for your rule configuration. This means that at
least two assertion controls must be enabled, so that at least two
Amazon Web Services Regions are enabled.
$sel:waitPeriodMs:AssertionRule'
, assertionRule_waitPeriodMs
- An evaluation period, in milliseconds (ms), during which any request
against the target routing controls will fail. This helps prevent
"flapping" of state. The wait period is 5000 ms by default, but you
can choose a custom value.
$sel:name:AssertionRule'
, assertionRule_name
- Name of the assertion rule. You can use any non-white space character in
the name.
assertionRule_status :: Lens' AssertionRule Status Source #
The deployment status of an assertion rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.
assertionRule_controlPanelArn :: Lens' AssertionRule Text Source #
The Amazon Resource Name (ARN) of the control panel.
assertionRule_safetyRuleArn :: Lens' AssertionRule Text Source #
The Amazon Resource Name (ARN) of the assertion rule.
assertionRule_assertedControls :: Lens' AssertionRule [Text] Source #
The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.
assertionRule_ruleConfig :: Lens' AssertionRule RuleConfig Source #
The criteria that you set for specific assertion controls (routing controls) that designate how many controls must be enabled as the result of a transaction. For example, if you have three assertion controls, you might specify atleast 2 for your rule configuration. This means that at least two assertion controls must be enabled, so that at least two Amazon Web Services Regions are enabled.
assertionRule_waitPeriodMs :: Lens' AssertionRule Int Source #
An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can choose a custom value.
assertionRule_name :: Lens' AssertionRule Text Source #
Name of the assertion rule. You can use any non-white space character in the name.