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.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:

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

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:

  • drRuleId - The RuleId of the Rule that you want to delete. RuleId is returned by CreateRule and by ListRules .
  • drChangeToken - The value returned by the most recent call to GetChangeToken .

data DeleteRule Source #

See: deleteRule smart constructor.

Instances

Eq DeleteRule Source # 
Data DeleteRule Source # 

Methods

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

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

toConstr :: DeleteRule -> Constr #

dataTypeOf :: DeleteRule -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteRule Source # 
Show DeleteRule Source # 
Generic DeleteRule Source # 

Associated Types

type Rep DeleteRule :: * -> * #

Hashable DeleteRule Source # 
ToJSON DeleteRule Source # 
NFData DeleteRule Source # 

Methods

rnf :: DeleteRule -> () #

AWSRequest DeleteRule Source # 
ToHeaders DeleteRule Source # 

Methods

toHeaders :: DeleteRule -> [Header] #

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

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:

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

data DeleteRuleResponse Source #

See: deleteRuleResponse smart constructor.

Instances

Eq DeleteRuleResponse Source # 
Data DeleteRuleResponse Source # 

Methods

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

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

toConstr :: DeleteRuleResponse -> Constr #

dataTypeOf :: DeleteRuleResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteRuleResponse Source # 
Show DeleteRuleResponse Source # 
Generic DeleteRuleResponse Source # 
NFData DeleteRuleResponse Source # 

Methods

rnf :: DeleteRuleResponse -> () #

type Rep DeleteRuleResponse Source # 
type Rep DeleteRuleResponse = D1 * (MetaData "DeleteRuleResponse" "Network.AWS.WAFRegional.DeleteRule" "amazonka-waf-regional-1.6.0-8hbXet7pAjcFZLYYuMOYQd" False) (C1 * (MetaCons "DeleteRuleResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_drrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_drrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

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 .

drrsResponseStatus :: Lens' DeleteRuleResponse Int Source #

  • - | The response status code.