| 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.Route53RecoveryControlConfig.UpdateSafetyRule
Description
Update a safety rule (an assertion rule or gating rule). You can only update the name and the waiting period for a safety rule. To make other updates, delete the safety rule and create a new one.
Synopsis
- data UpdateSafetyRule = UpdateSafetyRule' {}
- newUpdateSafetyRule :: UpdateSafetyRule
- updateSafetyRule_assertionRuleUpdate :: Lens' UpdateSafetyRule (Maybe AssertionRuleUpdate)
- updateSafetyRule_gatingRuleUpdate :: Lens' UpdateSafetyRule (Maybe GatingRuleUpdate)
- data UpdateSafetyRuleResponse = UpdateSafetyRuleResponse' {}
- newUpdateSafetyRuleResponse :: Int -> UpdateSafetyRuleResponse
- updateSafetyRuleResponse_assertionRule :: Lens' UpdateSafetyRuleResponse (Maybe AssertionRule)
- updateSafetyRuleResponse_gatingRule :: Lens' UpdateSafetyRuleResponse (Maybe GatingRule)
- updateSafetyRuleResponse_httpStatus :: Lens' UpdateSafetyRuleResponse Int
Creating a Request
data UpdateSafetyRule Source #
A rule that you add to Application Recovery Controller to ensure that recovery actions don't accidentally impair your application's availability.
See: newUpdateSafetyRule smart constructor.
Constructors
| UpdateSafetyRule' | |
Fields
| |
Instances
newUpdateSafetyRule :: UpdateSafetyRule Source #
Create a value of UpdateSafetyRule 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:assertionRuleUpdate:UpdateSafetyRule', updateSafetyRule_assertionRuleUpdate - The assertion rule to update.
$sel:gatingRuleUpdate:UpdateSafetyRule', updateSafetyRule_gatingRuleUpdate - The gating rule to update.
Request Lenses
updateSafetyRule_assertionRuleUpdate :: Lens' UpdateSafetyRule (Maybe AssertionRuleUpdate) Source #
The assertion rule to update.
updateSafetyRule_gatingRuleUpdate :: Lens' UpdateSafetyRule (Maybe GatingRuleUpdate) Source #
The gating rule to update.
Destructuring the Response
data UpdateSafetyRuleResponse Source #
See: newUpdateSafetyRuleResponse smart constructor.
Constructors
| UpdateSafetyRuleResponse' | |
Fields
| |
Instances
newUpdateSafetyRuleResponse Source #
Create a value of UpdateSafetyRuleResponse 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:UpdateSafetyRuleResponse', updateSafetyRuleResponse_assertionRule - The assertion rule updated.
$sel:gatingRule:UpdateSafetyRuleResponse', updateSafetyRuleResponse_gatingRule - The gating rule updated.
$sel:httpStatus:UpdateSafetyRuleResponse', updateSafetyRuleResponse_httpStatus - The response's http status code.
Response Lenses
updateSafetyRuleResponse_assertionRule :: Lens' UpdateSafetyRuleResponse (Maybe AssertionRule) Source #
The assertion rule updated.
updateSafetyRuleResponse_gatingRule :: Lens' UpdateSafetyRuleResponse (Maybe GatingRule) Source #
The gating rule updated.
updateSafetyRuleResponse_httpStatus :: Lens' UpdateSafetyRuleResponse Int Source #
The response's http status code.