| 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.ELBV2.ModifyRule
Description
Replaces the specified properties of the specified rule. Any properties that you do not specify are unchanged.
To add an item to a list, remove an item from a list, or update an item in a list, you must provide the entire list. For example, to add an action, specify a list with the current actions plus the new action.
Synopsis
- data ModifyRule = ModifyRule' {
- actions :: Maybe [Action]
- conditions :: Maybe [RuleCondition]
- ruleArn :: Text
- newModifyRule :: Text -> ModifyRule
- modifyRule_actions :: Lens' ModifyRule (Maybe [Action])
- modifyRule_conditions :: Lens' ModifyRule (Maybe [RuleCondition])
- modifyRule_ruleArn :: Lens' ModifyRule Text
- data ModifyRuleResponse = ModifyRuleResponse' {
- rules :: Maybe [Rule]
- httpStatus :: Int
- newModifyRuleResponse :: Int -> ModifyRuleResponse
- modifyRuleResponse_rules :: Lens' ModifyRuleResponse (Maybe [Rule])
- modifyRuleResponse_httpStatus :: Lens' ModifyRuleResponse Int
Creating a Request
data ModifyRule Source #
See: newModifyRule smart constructor.
Constructors
| ModifyRule' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ModifyRule |
Create a value of ModifyRule 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:
ModifyRule, modifyRule_actions - The actions.
ModifyRule, modifyRule_conditions - The conditions.
ModifyRule, modifyRule_ruleArn - The Amazon Resource Name (ARN) of the rule.
Request Lenses
modifyRule_actions :: Lens' ModifyRule (Maybe [Action]) Source #
The actions.
modifyRule_conditions :: Lens' ModifyRule (Maybe [RuleCondition]) Source #
The conditions.
modifyRule_ruleArn :: Lens' ModifyRule Text Source #
The Amazon Resource Name (ARN) of the rule.
Destructuring the Response
data ModifyRuleResponse Source #
See: newModifyRuleResponse smart constructor.
Constructors
| ModifyRuleResponse' | |
Fields
| |
Instances
newModifyRuleResponse Source #
Arguments
| :: Int | |
| -> ModifyRuleResponse |
Create a value of ModifyRuleResponse 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:rules:ModifyRuleResponse', modifyRuleResponse_rules - Information about the modified rule.
$sel:httpStatus:ModifyRuleResponse', modifyRuleResponse_httpStatus - The response's http status code.
Response Lenses
modifyRuleResponse_rules :: Lens' ModifyRuleResponse (Maybe [Rule]) Source #
Information about the modified rule.
modifyRuleResponse_httpStatus :: Lens' ModifyRuleResponse Int Source #
The response's http status code.