Copyright | (c) 2013-2021 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 |
Gets information about the rule.
Requires permission to access the GetTopicRule action.
Synopsis
- data GetTopicRule = GetTopicRule' {}
- newGetTopicRule :: Text -> GetTopicRule
- getTopicRule_ruleName :: Lens' GetTopicRule Text
- data GetTopicRuleResponse = GetTopicRuleResponse' {}
- newGetTopicRuleResponse :: Int -> GetTopicRuleResponse
- getTopicRuleResponse_rule :: Lens' GetTopicRuleResponse (Maybe TopicRule)
- getTopicRuleResponse_ruleArn :: Lens' GetTopicRuleResponse (Maybe Text)
- getTopicRuleResponse_httpStatus :: Lens' GetTopicRuleResponse Int
Creating a Request
data GetTopicRule Source #
The input for the GetTopicRule operation.
See: newGetTopicRule
smart constructor.
Instances
Create a value of GetTopicRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:ruleName:GetTopicRule'
, getTopicRule_ruleName
- The name of the rule.
Request Lenses
getTopicRule_ruleName :: Lens' GetTopicRule Text Source #
The name of the rule.
Destructuring the Response
data GetTopicRuleResponse Source #
The output from the GetTopicRule operation.
See: newGetTopicRuleResponse
smart constructor.
Instances
newGetTopicRuleResponse Source #
Create a value of GetTopicRuleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:rule:GetTopicRuleResponse'
, getTopicRuleResponse_rule
- The rule.
$sel:ruleArn:GetTopicRuleResponse'
, getTopicRuleResponse_ruleArn
- The rule ARN.
$sel:httpStatus:GetTopicRuleResponse'
, getTopicRuleResponse_httpStatus
- The response's http status code.
Response Lenses
getTopicRuleResponse_rule :: Lens' GetTopicRuleResponse (Maybe TopicRule) Source #
The rule.
getTopicRuleResponse_ruleArn :: Lens' GetTopicRuleResponse (Maybe Text) Source #
The rule ARN.
getTopicRuleResponse_httpStatus :: Lens' GetTopicRuleResponse Int Source #
The response's http status code.