| Copyright | (c) 2013-2018 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 |
| 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, seeUpdateRule. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of aDeleteRulerequest. - Submit a
DeleteRulerequest.
Synopsis
- 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:
drRuleId- TheRuleIdof theRulethat you want to delete.RuleIdis returned byCreateRuleand byListRules.drChangeToken- The value returned by the most recent call toGetChangeToken.
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:
drrsChangeToken- TheChangeTokenthat you used to submit theDeleteRulerequest. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus.drrsResponseStatus- -- | The response status code.
data DeleteRuleResponse Source #
See: deleteRuleResponse smart constructor.
Instances
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.