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

Contents

Description

Returns the RateBasedRule that is specified by the RuleId that you included in the GetRateBasedRule request.

Synopsis

Creating a Request

getRateBasedRule #

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

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

  • grbrRuleId - The RuleId of the RateBasedRule that you want to get. RuleId is returned by CreateRateBasedRule and by ListRateBasedRules .

data GetRateBasedRule #

See: getRateBasedRule smart constructor.

Instances

Eq GetRateBasedRule # 
Data GetRateBasedRule # 

Methods

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

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

toConstr :: GetRateBasedRule -> Constr #

dataTypeOf :: GetRateBasedRule -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetRateBasedRule # 
Show GetRateBasedRule # 
Generic GetRateBasedRule # 
Hashable GetRateBasedRule # 
ToJSON GetRateBasedRule # 
NFData GetRateBasedRule # 

Methods

rnf :: GetRateBasedRule -> () #

AWSRequest GetRateBasedRule # 
ToHeaders GetRateBasedRule # 
ToPath GetRateBasedRule # 
ToQuery GetRateBasedRule # 
type Rep GetRateBasedRule # 
type Rep GetRateBasedRule = D1 * (MetaData "GetRateBasedRule" "Network.AWS.WAF.GetRateBasedRule" "amazonka-waf-1.6.0-K7okww4xWnpBRydji27mKc" True) (C1 * (MetaCons "GetRateBasedRule'" PrefixI True) (S1 * (MetaSel (Just Symbol "_grbrRuleId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs GetRateBasedRule # 

Request Lenses

grbrRuleId :: Lens' GetRateBasedRule Text #

The RuleId of the RateBasedRule that you want to get. RuleId is returned by CreateRateBasedRule and by ListRateBasedRules .

Destructuring the Response

getRateBasedRuleResponse #

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

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

data GetRateBasedRuleResponse #

See: getRateBasedRuleResponse smart constructor.

Instances

Eq GetRateBasedRuleResponse # 
Data GetRateBasedRuleResponse # 

Methods

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

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

toConstr :: GetRateBasedRuleResponse -> Constr #

dataTypeOf :: GetRateBasedRuleResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetRateBasedRuleResponse # 
Show GetRateBasedRuleResponse # 
Generic GetRateBasedRuleResponse # 
NFData GetRateBasedRuleResponse # 
type Rep GetRateBasedRuleResponse # 
type Rep GetRateBasedRuleResponse = D1 * (MetaData "GetRateBasedRuleResponse" "Network.AWS.WAF.GetRateBasedRule" "amazonka-waf-1.6.0-K7okww4xWnpBRydji27mKc" False) (C1 * (MetaCons "GetRateBasedRuleResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_grbrrsRule") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe RateBasedRule))) (S1 * (MetaSel (Just Symbol "_grbrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

grbrrsRule :: Lens' GetRateBasedRuleResponse (Maybe RateBasedRule) #

Information about the RateBasedRule that you specified in the GetRateBasedRule request.

grbrrsResponseStatus :: Lens' GetRateBasedRuleResponse Int #

  • - | The response status code.