amazonka-waf-1.6.0: Amazon WAF 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.WAF.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 #

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 #

See: deleteRuleGroup smart constructor.

Instances
Eq DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

Data DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

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 # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

Show DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

Generic DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

Associated Types

type Rep DeleteRuleGroup :: * -> * #

Hashable DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

ToJSON DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

AWSRequest DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

Associated Types

type Rs DeleteRuleGroup :: * #

ToHeaders DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

ToPath DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

ToQuery DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

NFData DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

Methods

rnf :: DeleteRuleGroup -> () #

type Rep DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

type Rep DeleteRuleGroup = D1 (MetaData "DeleteRuleGroup" "Network.AWS.WAF.DeleteRuleGroup" "amazonka-waf-1.6.0-CW9xC92N0D3LNApAd7iUoL" False) (C1 (MetaCons "DeleteRuleGroup'" PrefixI True) (S1 (MetaSel (Just "_drgRuleGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_drgChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DeleteRuleGroup # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

Request Lenses

drgRuleGroupId :: Lens' DeleteRuleGroup Text #

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

drgChangeToken :: Lens' DeleteRuleGroup Text #

The value returned by the most recent call to GetChangeToken .

Destructuring the Response

deleteRuleGroupResponse #

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 #

See: deleteRuleGroupResponse smart constructor.

Instances
Eq DeleteRuleGroupResponse # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

Data DeleteRuleGroupResponse # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

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 # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

Show DeleteRuleGroupResponse # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

Generic DeleteRuleGroupResponse # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

Associated Types

type Rep DeleteRuleGroupResponse :: * -> * #

NFData DeleteRuleGroupResponse # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

Methods

rnf :: DeleteRuleGroupResponse -> () #

type Rep DeleteRuleGroupResponse # 
Instance details

Defined in Network.AWS.WAF.DeleteRuleGroup

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

Response Lenses

drgrsChangeToken :: Lens' DeleteRuleGroupResponse (Maybe Text) #

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 :: Lens' DeleteRuleGroupResponse Int #

  • - | The response status code.