| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.WAF.GetRule
Description
Returns the Rule that is specified by the RuleId that you included in the GetRule request.
Synopsis
- getRule :: Text -> GetRule
- data GetRule
- grRuleId :: Lens' GetRule Text
- getRuleResponse :: Int -> GetRuleResponse
- data GetRuleResponse
- grrsRule :: Lens' GetRuleResponse (Maybe Rule)
- grrsResponseStatus :: Lens' GetRuleResponse Int
Creating a Request
See: getRule smart constructor.
Instances
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
Arguments
| :: Int | |
| -> GetRuleResponse |
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 theRulethat you specified in theGetRulerequest. For more information, see the following topics: *Rule: ContainsMetricName,Name, an array ofPredicateobjects, andRuleId*Predicate: EachPredicateobject containsDataId,Negated, andTypegrrsResponseStatus- -- | The response status code.
data GetRuleResponse Source #
See: getRuleResponse smart constructor.
Instances
Response Lenses
grrsResponseStatus :: Lens' GetRuleResponse Int Source #
- - | The response status code.