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 |
Creates a safety rule in a control panel. Safety rules let you add safeguards around changing routing control states, and for 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 you change a routing control state, that a certain criteria is met. For example, the criteria might be that at least one routing control state is On after the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.
Gating rule: A gating rule lets you configure a gating routing control as an overall "on/off" switch for a group of routing controls. Or, you can configure more complex gating scenarios, for example by configuring multiple gating routing controls.
For more information, see Safety rules in the Amazon Route 53 Application Recovery Controller Developer Guide.
Synopsis
- data CreateSafetyRule = CreateSafetyRule' {}
- newCreateSafetyRule :: CreateSafetyRule
- createSafetyRule_assertionRule :: Lens' CreateSafetyRule (Maybe NewAssertionRule)
- createSafetyRule_clientToken :: Lens' CreateSafetyRule (Maybe Text)
- createSafetyRule_gatingRule :: Lens' CreateSafetyRule (Maybe NewGatingRule)
- createSafetyRule_tags :: Lens' CreateSafetyRule (Maybe (HashMap Text Text))
- 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:
CreateSafetyRule
, createSafetyRule_assertionRule
- The assertion rule requested.
$sel:clientToken:CreateSafetyRule'
, createSafetyRule_clientToken
- A unique, case-sensitive string of up to 64 ASCII characters. To make an
idempotent API request with an action, specify a client token in the
request.
CreateSafetyRule
, createSafetyRule_gatingRule
- The gating rule requested.
$sel:tags:CreateSafetyRule'
, createSafetyRule_tags
- The tags associated with the safety rule.
Request Lenses
createSafetyRule_assertionRule :: Lens' CreateSafetyRule (Maybe NewAssertionRule) Source #
The assertion rule requested.
createSafetyRule_clientToken :: Lens' CreateSafetyRule (Maybe Text) Source #
A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, specify a client token in the request.
createSafetyRule_gatingRule :: Lens' CreateSafetyRule (Maybe NewGatingRule) Source #
The gating rule requested.
createSafetyRule_tags :: Lens' CreateSafetyRule (Maybe (HashMap Text Text)) Source #
The tags associated with the safety rule.
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:
CreateSafetyRule
, createSafetyRuleResponse_assertionRule
- The assertion rule created.
CreateSafetyRule
, createSafetyRuleResponse_gatingRule
- The gating rule created.
$sel:httpStatus:CreateSafetyRuleResponse'
, createSafetyRuleResponse_httpStatus
- The response's http status code.
Response Lenses
createSafetyRuleResponse_assertionRule :: Lens' CreateSafetyRuleResponse (Maybe AssertionRule) Source #
The assertion rule created.
createSafetyRuleResponse_gatingRule :: Lens' CreateSafetyRuleResponse (Maybe GatingRule) Source #
The gating rule created.
createSafetyRuleResponse_httpStatus :: Lens' CreateSafetyRuleResponse Int Source #
The response's http status code.