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 |
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
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 theRule
that you specified in theGetRule
request. For more information, see the following topics: *Rule
: ContainsMetricName
,Name
, an array ofPredicate
objects, andRuleId
*Predicate
: EachPredicate
object containsDataId
,Negated
, andType
grrsResponseStatus
- -- | The response status code.
data GetRuleResponse Source #
See: getRuleResponse
smart constructor.
Instances
Response Lenses
grrsResponseStatus :: Lens' GetRuleResponse Int Source #
- - | The response status code.