| 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.ListTopicRules
Description
Lists the rules for the specific topic.
Requires permission to access the ListTopicRules action.
This operation returns paginated results.
Synopsis
- data ListTopicRules = ListTopicRules' {}
- newListTopicRules :: ListTopicRules
- listTopicRules_maxResults :: Lens' ListTopicRules (Maybe Natural)
- listTopicRules_nextToken :: Lens' ListTopicRules (Maybe Text)
- listTopicRules_ruleDisabled :: Lens' ListTopicRules (Maybe Bool)
- listTopicRules_topic :: Lens' ListTopicRules (Maybe Text)
- data ListTopicRulesResponse = ListTopicRulesResponse' {
- nextToken :: Maybe Text
- rules :: Maybe [TopicRuleListItem]
- httpStatus :: Int
- newListTopicRulesResponse :: Int -> ListTopicRulesResponse
- listTopicRulesResponse_nextToken :: Lens' ListTopicRulesResponse (Maybe Text)
- listTopicRulesResponse_rules :: Lens' ListTopicRulesResponse (Maybe [TopicRuleListItem])
- listTopicRulesResponse_httpStatus :: Lens' ListTopicRulesResponse Int
Creating a Request
data ListTopicRules Source #
The input for the ListTopicRules operation.
See: newListTopicRules smart constructor.
Constructors
| ListTopicRules' | |
Fields
| |
Instances
newListTopicRules :: ListTopicRules Source #
Create a value of ListTopicRules 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:maxResults:ListTopicRules', listTopicRules_maxResults - The maximum number of results to return.
ListTopicRules, listTopicRules_nextToken - To retrieve the next set of results, the nextToken value from a
previous response; otherwise null to receive the first set of
results.
ListTopicRules, listTopicRules_ruleDisabled - Specifies whether the rule is disabled.
ListTopicRules, listTopicRules_topic - The topic.
Request Lenses
listTopicRules_maxResults :: Lens' ListTopicRules (Maybe Natural) Source #
The maximum number of results to return.
listTopicRules_nextToken :: Lens' ListTopicRules (Maybe Text) Source #
To retrieve the next set of results, the nextToken value from a
previous response; otherwise null to receive the first set of
results.
listTopicRules_ruleDisabled :: Lens' ListTopicRules (Maybe Bool) Source #
Specifies whether the rule is disabled.
listTopicRules_topic :: Lens' ListTopicRules (Maybe Text) Source #
The topic.
Destructuring the Response
data ListTopicRulesResponse Source #
The output from the ListTopicRules operation.
See: newListTopicRulesResponse smart constructor.
Constructors
| ListTopicRulesResponse' | |
Fields
| |
Instances
newListTopicRulesResponse Source #
Create a value of ListTopicRulesResponse 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:
ListTopicRules, listTopicRulesResponse_nextToken - The token to use to get the next set of results, or null if there
are no additional results.
$sel:rules:ListTopicRulesResponse', listTopicRulesResponse_rules - The rules.
$sel:httpStatus:ListTopicRulesResponse', listTopicRulesResponse_httpStatus - The response's http status code.
Response Lenses
listTopicRulesResponse_nextToken :: Lens' ListTopicRulesResponse (Maybe Text) Source #
The token to use to get the next set of results, or null if there are no additional results.
listTopicRulesResponse_rules :: Lens' ListTopicRulesResponse (Maybe [TopicRuleListItem]) Source #
The rules.
listTopicRulesResponse_httpStatus :: Lens' ListTopicRulesResponse Int Source #
The response's http status code.