| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT.GetTopicRule
Description
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.
Constructors
| GetTopicRule' | |
Instances
Arguments
| :: Text | |
| -> GetTopicRule |
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:
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.
Constructors
| GetTopicRuleResponse' | |
Instances
newGetTopicRuleResponse Source #
Arguments
| :: Int | |
| -> GetTopicRuleResponse |
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.
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.