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.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 # 
Data CreateRuleGroup Source # 

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 # 
Show CreateRuleGroup Source # 
Generic CreateRuleGroup Source # 
Hashable CreateRuleGroup Source # 
ToJSON CreateRuleGroup Source # 
NFData CreateRuleGroup Source # 

Methods

rnf :: CreateRuleGroup -> () #

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

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 # 
Data CreateRuleGroupResponse Source # 

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 # 
Show CreateRuleGroupResponse Source # 
Generic CreateRuleGroupResponse Source # 
NFData CreateRuleGroupResponse Source # 

Methods

rnf :: CreateRuleGroupResponse -> () #

type Rep CreateRuleGroupResponse Source # 
type Rep CreateRuleGroupResponse = D1 * (MetaData "CreateRuleGroupResponse" "Network.AWS.WAFRegional.CreateRuleGroup" "amazonka-waf-regional-1.6.0-8hbXet7pAjcFZLYYuMOYQd" False) (C1 * (MetaCons "CreateRuleGroupResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_crgrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_crgrsRuleGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe RuleGroup))) (S1 * (MetaSel (Just Symbol "_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 .