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

Contents

Description

Permanently deletes a RuleGroup . You can't delete a RuleGroup if it's still used in any WebACL objects or if it still includes any rules.

If you just want to remove a RuleGroup from a WebACL , use UpdateWebACL .

To permanently delete a RuleGroup from AWS WAF, perform the following steps:

  • Update the RuleGroup to remove rules, if any. For more information, see UpdateRuleGroup .
  • Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteRuleGroup request.
  • Submit a DeleteRuleGroup request.

Synopsis

Creating a Request

deleteRuleGroup Source #

Creates a value of DeleteRuleGroup with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • drgRuleGroupId - The RuleGroupId of the RuleGroup that you want to delete. RuleGroupId is returned by CreateRuleGroup and by ListRuleGroups .
  • drgChangeToken - The value returned by the most recent call to GetChangeToken .

data DeleteRuleGroup Source #

See: deleteRuleGroup smart constructor.

Instances

Eq DeleteRuleGroup Source # 
Data DeleteRuleGroup Source # 

Methods

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

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

toConstr :: DeleteRuleGroup -> Constr #

dataTypeOf :: DeleteRuleGroup -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: DeleteRuleGroup -> () #

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

Request Lenses

drgRuleGroupId :: Lens' DeleteRuleGroup Text Source #

The RuleGroupId of the RuleGroup that you want to delete. RuleGroupId is returned by CreateRuleGroup and by ListRuleGroups .

drgChangeToken :: Lens' DeleteRuleGroup Text Source #

The value returned by the most recent call to GetChangeToken .

Destructuring the Response

deleteRuleGroupResponse Source #

Creates a value of DeleteRuleGroupResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • drgrsChangeToken - The ChangeToken that you used to submit the DeleteRuleGroup request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .
  • drgrsResponseStatus - -- | The response status code.

data DeleteRuleGroupResponse Source #

See: deleteRuleGroupResponse smart constructor.

Instances

Eq DeleteRuleGroupResponse Source # 
Data DeleteRuleGroupResponse Source # 

Methods

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

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

toConstr :: DeleteRuleGroupResponse -> Constr #

dataTypeOf :: DeleteRuleGroupResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteRuleGroupResponse Source # 
Show DeleteRuleGroupResponse Source # 
Generic DeleteRuleGroupResponse Source # 
NFData DeleteRuleGroupResponse Source # 

Methods

rnf :: DeleteRuleGroupResponse -> () #

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

Response Lenses

drgrsChangeToken :: Lens' DeleteRuleGroupResponse (Maybe Text) Source #

The ChangeToken that you used to submit the DeleteRuleGroup request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .