amazonka-waf-1.3.5: Amazon WAF SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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.

See: AWS API Reference for GetRule.

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:

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:

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.