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

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 #

See: createRuleGroup smart constructor.

Instances
Eq CreateRuleGroup # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

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

Defined in Network.AWS.WAF.CreateRuleGroup

Show CreateRuleGroup # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Generic CreateRuleGroup # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Associated Types

type Rep CreateRuleGroup :: * -> * #

Hashable CreateRuleGroup # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

ToJSON CreateRuleGroup # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

AWSRequest CreateRuleGroup # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Associated Types

type Rs CreateRuleGroup :: * #

ToHeaders CreateRuleGroup # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

ToPath CreateRuleGroup # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

ToQuery CreateRuleGroup # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

NFData CreateRuleGroup # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Methods

rnf :: CreateRuleGroup -> () #

type Rep CreateRuleGroup # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

type Rep CreateRuleGroup = D1 (MetaData "CreateRuleGroup" "Network.AWS.WAF.CreateRuleGroup" "amazonka-waf-1.6.0-8vJWOdEr4mb8Ak9o7JGEhy" 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 # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Request Lenses

crgName :: Lens' CreateRuleGroup Text #

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

crgMetricName :: Lens' CreateRuleGroup Text #

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 #

The value returned by the most recent call to GetChangeToken .

Destructuring the Response

createRuleGroupResponse #

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 #

See: createRuleGroupResponse smart constructor.

Instances
Eq CreateRuleGroupResponse # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

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

Defined in Network.AWS.WAF.CreateRuleGroup

Show CreateRuleGroupResponse # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Generic CreateRuleGroupResponse # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Associated Types

type Rep CreateRuleGroupResponse :: * -> * #

NFData CreateRuleGroupResponse # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

Methods

rnf :: CreateRuleGroupResponse -> () #

type Rep CreateRuleGroupResponse # 
Instance details

Defined in Network.AWS.WAF.CreateRuleGroup

type Rep CreateRuleGroupResponse = D1 (MetaData "CreateRuleGroupResponse" "Network.AWS.WAF.CreateRuleGroup" "amazonka-waf-1.6.0-8vJWOdEr4mb8Ak9o7JGEhy" 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) #

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 .

crgrsResponseStatus :: Lens' CreateRuleGroupResponse Int #

  • - | The response status code.