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 |
Creates a safety rule in a control panel. Safety rules let you add safeguards around enabling and disabling routing controls, to help prevent unexpected outcomes.
There are two types of safety rules: assertion rules and gating rules.
Assertion rule: 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.
Gating rule: 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.
Synopsis
- data CreateSafetyRule = CreateSafetyRule' {}
- newCreateSafetyRule :: CreateSafetyRule
- createSafetyRule_assertionRule :: Lens' CreateSafetyRule (Maybe NewAssertionRule)
- createSafetyRule_clientToken :: Lens' CreateSafetyRule (Maybe Text)
- createSafetyRule_gatingRule :: Lens' CreateSafetyRule (Maybe NewGatingRule)
- data CreateSafetyRuleResponse = CreateSafetyRuleResponse' {}
- newCreateSafetyRuleResponse :: Int -> CreateSafetyRuleResponse
- createSafetyRuleResponse_assertionRule :: Lens' CreateSafetyRuleResponse (Maybe AssertionRule)
- createSafetyRuleResponse_gatingRule :: Lens' CreateSafetyRuleResponse (Maybe GatingRule)
- createSafetyRuleResponse_httpStatus :: Lens' CreateSafetyRuleResponse Int
Creating a Request
data CreateSafetyRule Source #
The request body that you include when you create a safety rule.
See: newCreateSafetyRule
smart constructor.
CreateSafetyRule' | |
|
Instances
newCreateSafetyRule :: CreateSafetyRule Source #
Create a value of CreateSafetyRule
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:assertionRule:CreateSafetyRule'
, createSafetyRule_assertionRule
- Undocumented member.
$sel:clientToken:CreateSafetyRule'
, createSafetyRule_clientToken
- Unique client idempotency token.
$sel:gatingRule:CreateSafetyRule'
, createSafetyRule_gatingRule
- Undocumented member.
Request Lenses
createSafetyRule_assertionRule :: Lens' CreateSafetyRule (Maybe NewAssertionRule) Source #
Undocumented member.
createSafetyRule_clientToken :: Lens' CreateSafetyRule (Maybe Text) Source #
Unique client idempotency token.
createSafetyRule_gatingRule :: Lens' CreateSafetyRule (Maybe NewGatingRule) Source #
Undocumented member.
Destructuring the Response
data CreateSafetyRuleResponse Source #
See: newCreateSafetyRuleResponse
smart constructor.
CreateSafetyRuleResponse' | |
|
Instances
newCreateSafetyRuleResponse Source #
Create a value of CreateSafetyRuleResponse
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:assertionRule:CreateSafetyRule'
, createSafetyRuleResponse_assertionRule
- Undocumented member.
$sel:gatingRule:CreateSafetyRule'
, createSafetyRuleResponse_gatingRule
- Undocumented member.
$sel:httpStatus:CreateSafetyRuleResponse'
, createSafetyRuleResponse_httpStatus
- The response's http status code.
Response Lenses
createSafetyRuleResponse_assertionRule :: Lens' CreateSafetyRuleResponse (Maybe AssertionRule) Source #
Undocumented member.
createSafetyRuleResponse_gatingRule :: Lens' CreateSafetyRuleResponse (Maybe GatingRule) Source #
Undocumented member.
createSafetyRuleResponse_httpStatus :: Lens' CreateSafetyRuleResponse Int Source #
The response's http status code.