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 RuleGroup
. You can't delete a RuleGroup
if it's still used in any WebACL
objects or if it still includes any rules.
If you just want to remove a RuleGroup
from a WebACL
, use UpdateWebACL
.
To permanently delete a RuleGroup
from AWS WAF, perform the following steps:
- Update the
RuleGroup
to remove rules, if any. For more information, seeUpdateRuleGroup
. - Use
GetChangeToken
to get the change token that you provide in theChangeToken
parameter of aDeleteRuleGroup
request. - Submit a
DeleteRuleGroup
request.
- deleteRuleGroup :: Text -> Text -> DeleteRuleGroup
- data DeleteRuleGroup
- drgRuleGroupId :: Lens' DeleteRuleGroup Text
- drgChangeToken :: Lens' DeleteRuleGroup Text
- deleteRuleGroupResponse :: Int -> DeleteRuleGroupResponse
- data DeleteRuleGroupResponse
- drgrsChangeToken :: Lens' DeleteRuleGroupResponse (Maybe Text)
- drgrsResponseStatus :: Lens' DeleteRuleGroupResponse Int
Creating a Request
Creates a value of DeleteRuleGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
drgRuleGroupId
- TheRuleGroupId
of theRuleGroup
that you want to delete.RuleGroupId
is returned byCreateRuleGroup
and byListRuleGroups
.drgChangeToken
- The value returned by the most recent call toGetChangeToken
.
data DeleteRuleGroup Source #
See: deleteRuleGroup
smart constructor.
Request Lenses
drgRuleGroupId :: Lens' DeleteRuleGroup Text Source #
The RuleGroupId
of the RuleGroup
that you want to delete. RuleGroupId
is returned by CreateRuleGroup
and by ListRuleGroups
.
drgChangeToken :: Lens' DeleteRuleGroup Text Source #
The value returned by the most recent call to GetChangeToken
.
Destructuring the Response
deleteRuleGroupResponse Source #
Creates a value of DeleteRuleGroupResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
drgrsChangeToken
- TheChangeToken
that you used to submit theDeleteRuleGroup
request. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus
.drgrsResponseStatus
- -- | The response status code.
data DeleteRuleGroupResponse Source #
See: deleteRuleGroupResponse
smart constructor.
Response Lenses
drgrsChangeToken :: Lens' DeleteRuleGroupResponse (Maybe Text) Source #
The ChangeToken
that you used to submit the DeleteRuleGroup
request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus
.
drgrsResponseStatus :: Lens' DeleteRuleGroupResponse Int Source #
- - | The response status code.