amazonka-waf-regional-1.6.0: Amazon WAF Regional SDK.

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

Network.AWS.WAFRegional.DeleteRateBasedRule

Contents

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 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 a DeleteRateBasedRule request.
  • Submit a DeleteRateBasedRule request.

Synopsis

Creating a Request

deleteRateBasedRule Source #

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 - The RuleId of the RateBasedRule that you want to delete. RuleId is returned by CreateRateBasedRule and by ListRateBasedRules .
  • drbrChangeToken - The value returned by the most recent call to GetChangeToken .

data DeleteRateBasedRule Source #

See: deleteRateBasedRule smart constructor.

Instances

Eq DeleteRateBasedRule Source # 
Data DeleteRateBasedRule Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteRateBasedRule -> c DeleteRateBasedRule #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteRateBasedRule #

toConstr :: DeleteRateBasedRule -> Constr #

dataTypeOf :: DeleteRateBasedRule -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteRateBasedRule) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteRateBasedRule) #

gmapT :: (forall b. Data b => b -> b) -> DeleteRateBasedRule -> DeleteRateBasedRule #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteRateBasedRule -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteRateBasedRule -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteRateBasedRule -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteRateBasedRule -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteRateBasedRule -> m DeleteRateBasedRule #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteRateBasedRule -> m DeleteRateBasedRule #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteRateBasedRule -> m DeleteRateBasedRule #

Read DeleteRateBasedRule Source # 
Show DeleteRateBasedRule Source # 
Generic DeleteRateBasedRule Source # 
Hashable DeleteRateBasedRule Source # 
ToJSON DeleteRateBasedRule Source # 
NFData DeleteRateBasedRule Source # 

Methods

rnf :: DeleteRateBasedRule -> () #

AWSRequest DeleteRateBasedRule Source # 
ToHeaders DeleteRateBasedRule Source # 
ToPath DeleteRateBasedRule Source # 
ToQuery DeleteRateBasedRule Source # 
type Rep DeleteRateBasedRule Source # 
type Rep DeleteRateBasedRule = D1 * (MetaData "DeleteRateBasedRule" "Network.AWS.WAFRegional.DeleteRateBasedRule" "amazonka-waf-regional-1.6.0-8hbXet7pAjcFZLYYuMOYQd" False) (C1 * (MetaCons "DeleteRateBasedRule'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_drbrRuleId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_drbrChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs DeleteRateBasedRule Source # 

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 #

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 - 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 - -- | The response status code.

data DeleteRateBasedRuleResponse Source #

See: deleteRateBasedRuleResponse smart constructor.

Instances

Eq DeleteRateBasedRuleResponse Source # 
Data DeleteRateBasedRuleResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteRateBasedRuleResponse -> c DeleteRateBasedRuleResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteRateBasedRuleResponse #

toConstr :: DeleteRateBasedRuleResponse -> Constr #

dataTypeOf :: DeleteRateBasedRuleResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteRateBasedRuleResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteRateBasedRuleResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeleteRateBasedRuleResponse -> DeleteRateBasedRuleResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteRateBasedRuleResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteRateBasedRuleResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteRateBasedRuleResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteRateBasedRuleResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteRateBasedRuleResponse -> m DeleteRateBasedRuleResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteRateBasedRuleResponse -> m DeleteRateBasedRuleResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteRateBasedRuleResponse -> m DeleteRateBasedRuleResponse #

Read DeleteRateBasedRuleResponse Source # 
Show DeleteRateBasedRuleResponse Source # 
Generic DeleteRateBasedRuleResponse Source # 
NFData DeleteRateBasedRuleResponse Source # 
type Rep DeleteRateBasedRuleResponse Source # 
type Rep DeleteRateBasedRuleResponse = D1 * (MetaData "DeleteRateBasedRuleResponse" "Network.AWS.WAFRegional.DeleteRateBasedRule" "amazonka-waf-regional-1.6.0-8hbXet7pAjcFZLYYuMOYQd" False) (C1 * (MetaCons "DeleteRateBasedRuleResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_drbrrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_drbrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

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 .