amazonka-waf-regional-1.6.1: 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 # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

Data DeleteRuleGroup Source # 
Instance details

Defined in Network.AWS.WAFRegional.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 Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

Show DeleteRuleGroup Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

Generic DeleteRuleGroup Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

Associated Types

type Rep DeleteRuleGroup :: Type -> Type #

Hashable DeleteRuleGroup Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

ToJSON DeleteRuleGroup Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

AWSRequest DeleteRuleGroup Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

Associated Types

type Rs DeleteRuleGroup :: Type #

ToHeaders DeleteRuleGroup Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

ToPath DeleteRuleGroup Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

ToQuery DeleteRuleGroup Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

NFData DeleteRuleGroup Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

Methods

rnf :: DeleteRuleGroup -> () #

type Rep DeleteRuleGroup Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

type Rep DeleteRuleGroup = D1 (MetaData "DeleteRuleGroup" "Network.AWS.WAFRegional.DeleteRuleGroup" "amazonka-waf-regional-1.6.1-IvDSn8aH4TMJoxm1GVf7Ug" 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 Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

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

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

Data DeleteRuleGroupResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.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 Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

Show DeleteRuleGroupResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

Generic DeleteRuleGroupResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

Associated Types

type Rep DeleteRuleGroupResponse :: Type -> Type #

NFData DeleteRuleGroupResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

Methods

rnf :: DeleteRuleGroupResponse -> () #

type Rep DeleteRuleGroupResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.DeleteRuleGroup

type Rep DeleteRuleGroupResponse = D1 (MetaData "DeleteRuleGroupResponse" "Network.AWS.WAFRegional.DeleteRuleGroup" "amazonka-waf-regional-1.6.1-IvDSn8aH4TMJoxm1GVf7Ug" 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) 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 .