| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.WAF.DeleteRule
Description
Permanently deletes a Rule. You can't delete a Rule if it's still
used in any WebACL objects or if it still includes any predicates,
such as ByteMatchSet objects.
If you just want to remove a Rule from a WebACL, use
UpdateWebACL.
To permanently delete a Rule from AWS WAF, perform the following
steps:
- Update the
Ruleto remove predicates, if any. For more information, see UpdateRule. - Use GetChangeToken to get the change token that you provide in
the
ChangeTokenparameter of aDeleteRulerequest. - Submit a
DeleteRulerequest.
- deleteRule :: Text -> Text -> DeleteRule
- data DeleteRule
- drRuleId :: Lens' DeleteRule Text
- drChangeToken :: Lens' DeleteRule Text
- deleteRuleResponse :: Int -> DeleteRuleResponse
- data DeleteRuleResponse
- drrsChangeToken :: Lens' DeleteRuleResponse (Maybe Text)
- drrsResponseStatus :: Lens' DeleteRuleResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> DeleteRule |
Creates a value of DeleteRule with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeleteRule Source #
See: deleteRule smart constructor.
Instances
Request Lenses
drRuleId :: Lens' DeleteRule Text Source #
The RuleId of the Rule that you want to delete. RuleId is
returned by CreateRule and by ListRules.
drChangeToken :: Lens' DeleteRule Text Source #
The value returned by the most recent call to GetChangeToken.
Destructuring the Response
Arguments
| :: Int | |
| -> DeleteRuleResponse |
Creates a value of DeleteRuleResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeleteRuleResponse Source #
See: deleteRuleResponse smart constructor.
Response Lenses
drrsChangeToken :: Lens' DeleteRuleResponse (Maybe Text) Source #
The ChangeToken that you used to submit the DeleteRule request. You
can also use this value to query the status of the request. For more
information, see GetChangeTokenStatus.
drrsResponseStatus :: Lens' DeleteRuleResponse Int Source #
The response status code.