| 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.DeleteRuleGroup
Description
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
RuleGroupto remove rules, if any. For more information, seeUpdateRuleGroup. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of aDeleteRuleGrouprequest. - Submit a
DeleteRuleGrouprequest.
Synopsis
- 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
Arguments
| :: Text | |
| -> Text | |
| -> DeleteRuleGroup |
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- TheRuleGroupIdof theRuleGroupthat you want to delete.RuleGroupIdis returned byCreateRuleGroupand byListRuleGroups.drgChangeToken- The value returned by the most recent call toGetChangeToken.
data DeleteRuleGroup Source #
See: deleteRuleGroup smart constructor.
Instances
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 #
Arguments
| :: Int | |
| -> DeleteRuleGroupResponse |
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- TheChangeTokenthat you used to submit theDeleteRuleGrouprequest. 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.
Instances
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.