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 |
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.
ModifyRule' | |
|
Instances
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:
$sel:actions:ModifyRule'
, modifyRule_actions
- The actions.
$sel:conditions:ModifyRule'
, modifyRule_conditions
- The conditions.
$sel:ruleArn: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.
ModifyRuleResponse' | |
|
Instances
newModifyRuleResponse Source #
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.