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 |
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
Rule
to remove predicates, if any. For more information, seeUpdateRule
. - Use
GetChangeToken
to get the change token that you provide in theChangeToken
parameter of aDeleteRule
request. - Submit a
DeleteRule
request.
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
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
- TheRuleId
of theRule
that you want to delete.RuleId
is returned byCreateRule
and 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
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
- TheChangeToken
that you used to submit theDeleteRule
request. 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.