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

Contents

Description

Returns the Rule that is specified by the RuleId that you included in the GetRule request.

Synopsis

Creating a Request

getRule Source #

Arguments

:: Text

grRuleId

-> GetRule 

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

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

  • grRuleId - The RuleId of the Rule that you want to get. RuleId is returned by CreateRule and by ListRules .

data GetRule Source #

See: getRule smart constructor.

Instances

Eq GetRule Source # 

Methods

(==) :: GetRule -> GetRule -> Bool #

(/=) :: GetRule -> GetRule -> Bool #

Data GetRule Source # 

Methods

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

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

toConstr :: GetRule -> Constr #

dataTypeOf :: GetRule -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetRule Source # 
Show GetRule Source # 
Generic GetRule Source # 

Associated Types

type Rep GetRule :: * -> * #

Methods

from :: GetRule -> Rep GetRule x #

to :: Rep GetRule x -> GetRule #

Hashable GetRule Source # 

Methods

hashWithSalt :: Int -> GetRule -> Int #

hash :: GetRule -> Int #

ToJSON GetRule Source # 
NFData GetRule Source # 

Methods

rnf :: GetRule -> () #

AWSRequest GetRule Source # 

Associated Types

type Rs GetRule :: * #

ToHeaders GetRule Source # 

Methods

toHeaders :: GetRule -> [Header] #

ToPath GetRule Source # 

Methods

toPath :: GetRule -> ByteString #

ToQuery GetRule Source # 
type Rep GetRule Source # 
type Rep GetRule = D1 * (MetaData "GetRule" "Network.AWS.WAF.GetRule" "amazonka-waf-1.6.0-3fCImJDdtLm395kgBUHRQd" True) (C1 * (MetaCons "GetRule'" PrefixI True) (S1 * (MetaSel (Just Symbol "_grRuleId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs GetRule Source # 

Request Lenses

grRuleId :: Lens' GetRule Text Source #

The RuleId of the Rule that you want to get. RuleId is returned by CreateRule and by ListRules .

Destructuring the Response

getRuleResponse Source #

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

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

  • grrsRule - Information about the Rule that you specified in the GetRule request. For more information, see the following topics: * Rule : Contains MetricName , Name , an array of Predicate objects, and RuleId * Predicate : Each Predicate object contains DataId , Negated , and Type
  • grrsResponseStatus - -- | The response status code.

data GetRuleResponse Source #

See: getRuleResponse smart constructor.

Instances

Eq GetRuleResponse Source # 
Data GetRuleResponse Source # 

Methods

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

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

toConstr :: GetRuleResponse -> Constr #

dataTypeOf :: GetRuleResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetRuleResponse Source # 
Show GetRuleResponse Source # 
Generic GetRuleResponse Source # 
NFData GetRuleResponse Source # 

Methods

rnf :: GetRuleResponse -> () #

type Rep GetRuleResponse Source # 
type Rep GetRuleResponse = D1 * (MetaData "GetRuleResponse" "Network.AWS.WAF.GetRule" "amazonka-waf-1.6.0-3fCImJDdtLm395kgBUHRQd" False) (C1 * (MetaCons "GetRuleResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_grrsRule") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Rule))) (S1 * (MetaSel (Just Symbol "_grrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

grrsRule :: Lens' GetRuleResponse (Maybe Rule) Source #

Information about the Rule that you specified in the GetRule request. For more information, see the following topics: * Rule : Contains MetricName , Name , an array of Predicate objects, and RuleId * Predicate : Each Predicate object contains DataId , Negated , and Type

grrsResponseStatus :: Lens' GetRuleResponse Int Source #

  • - | The response status code.