amazonka-waf-1.3.4: Amazon WAF SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.WAF.DeleteRule

Contents

Description

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:

  1. Update the Rule to remove predicates, if any. For more information, see UpdateRule.
  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteRule request.
  3. Submit a DeleteRule request.

See: AWS API Reference for DeleteRule.

Synopsis

Creating a Request

deleteRule Source

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:

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

deleteRuleResponse Source

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:

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.