Copyright | (c) 2013-2021 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 |
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
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
RateBasedRule
to remove predicates, if any. For more information, see UpdateRateBasedRule. - Use GetChangeToken to get the change token that you provide in the
ChangeToken
parameter of aDeleteRateBasedRule
request. - Submit a
DeleteRateBasedRule
request.
Synopsis
- data DeleteRateBasedRule = DeleteRateBasedRule' {
- ruleId :: Text
- changeToken :: Text
- newDeleteRateBasedRule :: Text -> Text -> DeleteRateBasedRule
- deleteRateBasedRule_ruleId :: Lens' DeleteRateBasedRule Text
- deleteRateBasedRule_changeToken :: Lens' DeleteRateBasedRule Text
- data DeleteRateBasedRuleResponse = DeleteRateBasedRuleResponse' {
- changeToken :: Maybe Text
- httpStatus :: Int
- newDeleteRateBasedRuleResponse :: Int -> DeleteRateBasedRuleResponse
- deleteRateBasedRuleResponse_changeToken :: Lens' DeleteRateBasedRuleResponse (Maybe Text)
- deleteRateBasedRuleResponse_httpStatus :: Lens' DeleteRateBasedRuleResponse Int
Creating a Request
data DeleteRateBasedRule Source #
See: newDeleteRateBasedRule
smart constructor.
DeleteRateBasedRule' | |
|
Instances
newDeleteRateBasedRule Source #
:: Text | |
-> Text | |
-> DeleteRateBasedRule |
Create a value of DeleteRateBasedRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:ruleId:DeleteRateBasedRule'
, deleteRateBasedRule_ruleId
- The RuleId
of the RateBasedRule that you want to delete. RuleId
is
returned by CreateRateBasedRule and by ListRateBasedRules.
$sel:changeToken:DeleteRateBasedRule'
, deleteRateBasedRule_changeToken
- The value returned by the most recent call to GetChangeToken.
Request Lenses
deleteRateBasedRule_ruleId :: Lens' DeleteRateBasedRule Text Source #
The RuleId
of the RateBasedRule that you want to delete. RuleId
is
returned by CreateRateBasedRule and by ListRateBasedRules.
deleteRateBasedRule_changeToken :: Lens' DeleteRateBasedRule Text Source #
The value returned by the most recent call to GetChangeToken.
Destructuring the Response
data DeleteRateBasedRuleResponse Source #
See: newDeleteRateBasedRuleResponse
smart constructor.
DeleteRateBasedRuleResponse' | |
|
Instances
newDeleteRateBasedRuleResponse Source #
Create a value of DeleteRateBasedRuleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:changeToken:DeleteRateBasedRule'
, deleteRateBasedRuleResponse_changeToken
- 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.
$sel:httpStatus:DeleteRateBasedRuleResponse'
, deleteRateBasedRuleResponse_httpStatus
- The response's http status code.
Response Lenses
deleteRateBasedRuleResponse_changeToken :: 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.
deleteRateBasedRuleResponse_httpStatus :: Lens' DeleteRateBasedRuleResponse Int Source #
The response's http status code.