| 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.DeleteRateBasedRule
Description
Permanently deletes a RateBasedRule . 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 RateBasedRule from AWS WAF, perform the following steps:
- Update the
RateBasedRuleto remove predicates, if any. For more information, seeUpdateRateBasedRule. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of aDeleteRateBasedRulerequest. - Submit a
DeleteRateBasedRulerequest.
Synopsis
- deleteRateBasedRule :: Text -> Text -> DeleteRateBasedRule
- data DeleteRateBasedRule
- drbrRuleId :: Lens' DeleteRateBasedRule Text
- drbrChangeToken :: Lens' DeleteRateBasedRule Text
- deleteRateBasedRuleResponse :: Int -> DeleteRateBasedRuleResponse
- data DeleteRateBasedRuleResponse
- drbrrsChangeToken :: Lens' DeleteRateBasedRuleResponse (Maybe Text)
- drbrrsResponseStatus :: Lens' DeleteRateBasedRuleResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> DeleteRateBasedRule |
Creates a value of DeleteRateBasedRule with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
drbrRuleId- TheRuleIdof theRateBasedRulethat you want to delete.RuleIdis returned byCreateRateBasedRuleand byListRateBasedRules.drbrChangeToken- The value returned by the most recent call toGetChangeToken.
data DeleteRateBasedRule Source #
See: deleteRateBasedRule smart constructor.
Instances
Request Lenses
drbrRuleId :: Lens' DeleteRateBasedRule Text Source #
The RuleId of the RateBasedRule that you want to delete. RuleId is returned by CreateRateBasedRule and by ListRateBasedRules .
drbrChangeToken :: Lens' DeleteRateBasedRule Text Source #
The value returned by the most recent call to GetChangeToken .
Destructuring the Response
deleteRateBasedRuleResponse Source #
Arguments
| :: Int | |
| -> DeleteRateBasedRuleResponse |
Creates a value of DeleteRateBasedRuleResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
drbrrsChangeToken- TheChangeTokenthat you used to submit theDeleteRateBasedRulerequest. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus.drbrrsResponseStatus- -- | The response status code.
data DeleteRateBasedRuleResponse Source #
See: deleteRateBasedRuleResponse smart constructor.
Instances
Response Lenses
drbrrsChangeToken :: Lens' DeleteRateBasedRuleResponse (Maybe Text) Source #
The ChangeToken that you used to submit the DeleteRateBasedRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .
drbrrsResponseStatus :: Lens' DeleteRateBasedRuleResponse Int Source #
- - | The response status code.