amazonka-waf-1.6.1: 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.CreateRuleGroup

Contents

Description

Creates a RuleGroup . A rule group is a collection of predefined rules that you add to a web ACL. You use UpdateRuleGroup to add rules to the rule group.

Rule groups are subject to the following limits:

  • Three rule groups per account. You can request an increase to this limit by contacting customer support.
  • One rule group per web ACL.
  • Ten rules per rule group.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide .

Synopsis

Creating a Request

createRuleGroup Source #

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

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

  • crgName - A friendly name or description of the RuleGroup . You can't change Name after you create a RuleGroup .
  • crgMetricName - A friendly name or description for the metrics for this RuleGroup . The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name of the metric after you create the RuleGroup .
  • crgChangeToken - The value returned by the most recent call to GetChangeToken .

data CreateRuleGroup Source #

See: createRuleGroup smart constructor.

Instances
Eq CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Data CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Methods

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

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

toConstr :: CreateRuleGroup -> Constr #

dataTypeOf :: CreateRuleGroup -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Show CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Generic CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Associated Types

type Rep CreateRuleGroup :: Type -> Type #

Hashable CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

ToJSON CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

AWSRequest CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Associated Types

type Rs CreateRuleGroup :: Type #

ToHeaders CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

ToPath CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

ToQuery CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

NFData CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Methods

rnf :: CreateRuleGroup -> () #

type Rep CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

type Rep CreateRuleGroup = D1 (MetaData "CreateRuleGroup" "Network.AWS.WAF.CreateRuleGroup" "amazonka-waf-1.6.1-AAUMqlxoZ2N3dlHnZE2nzz" False) (C1 (MetaCons "CreateRuleGroup'" PrefixI True) (S1 (MetaSel (Just "_crgName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_crgMetricName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_crgChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateRuleGroup Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Request Lenses

crgName :: Lens' CreateRuleGroup Text Source #

A friendly name or description of the RuleGroup . You can't change Name after you create a RuleGroup .

crgMetricName :: Lens' CreateRuleGroup Text Source #

A friendly name or description for the metrics for this RuleGroup . The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name of the metric after you create the RuleGroup .

crgChangeToken :: Lens' CreateRuleGroup Text Source #

The value returned by the most recent call to GetChangeToken .

Destructuring the Response

createRuleGroupResponse Source #

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

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

data CreateRuleGroupResponse Source #

See: createRuleGroupResponse smart constructor.

Instances
Eq CreateRuleGroupResponse Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Data CreateRuleGroupResponse Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Methods

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

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

toConstr :: CreateRuleGroupResponse -> Constr #

dataTypeOf :: CreateRuleGroupResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateRuleGroupResponse Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Show CreateRuleGroupResponse Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Generic CreateRuleGroupResponse Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Associated Types

type Rep CreateRuleGroupResponse :: Type -> Type #

NFData CreateRuleGroupResponse Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Methods

rnf :: CreateRuleGroupResponse -> () #

type Rep CreateRuleGroupResponse Source # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

type Rep CreateRuleGroupResponse = D1 (MetaData "CreateRuleGroupResponse" "Network.AWS.WAF.CreateRuleGroup" "amazonka-waf-1.6.1-AAUMqlxoZ2N3dlHnZE2nzz" False) (C1 (MetaCons "CreateRuleGroupResponse'" PrefixI True) (S1 (MetaSel (Just "_crgrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_crgrsRuleGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RuleGroup)) :*: S1 (MetaSel (Just "_crgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

crgrsChangeToken :: Lens' CreateRuleGroupResponse (Maybe Text) Source #

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