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 |
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_ruleDisabled :: Lens' ListTopicRules (Maybe Bool)
- listTopicRules_topic :: Lens' ListTopicRules (Maybe Text)
- listTopicRules_nextToken :: Lens' ListTopicRules (Maybe Text)
- listTopicRules_maxResults :: Lens' ListTopicRules (Maybe Natural)
- data ListTopicRulesResponse = ListTopicRulesResponse' {
- rules :: Maybe [TopicRuleListItem]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListTopicRulesResponse :: Int -> ListTopicRulesResponse
- listTopicRulesResponse_rules :: Lens' ListTopicRulesResponse (Maybe [TopicRuleListItem])
- listTopicRulesResponse_nextToken :: Lens' ListTopicRulesResponse (Maybe Text)
- listTopicRulesResponse_httpStatus :: Lens' ListTopicRulesResponse Int
Creating a Request
data ListTopicRules Source #
The input for the ListTopicRules operation.
See: newListTopicRules
smart constructor.
ListTopicRules' | |
|
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:ruleDisabled:ListTopicRules'
, listTopicRules_ruleDisabled
- Specifies whether the rule is disabled.
$sel:topic:ListTopicRules'
, listTopicRules_topic
- The topic.
$sel:nextToken: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.
$sel:maxResults:ListTopicRules'
, listTopicRules_maxResults
- The maximum number of results to return.
Request Lenses
listTopicRules_ruleDisabled :: Lens' ListTopicRules (Maybe Bool) Source #
Specifies whether the rule is disabled.
listTopicRules_topic :: Lens' ListTopicRules (Maybe Text) Source #
The topic.
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_maxResults :: Lens' ListTopicRules (Maybe Natural) Source #
The maximum number of results to return.
Destructuring the Response
data ListTopicRulesResponse Source #
The output from the ListTopicRules operation.
See: newListTopicRulesResponse
smart constructor.
ListTopicRulesResponse' | |
|
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:
$sel:rules:ListTopicRulesResponse'
, listTopicRulesResponse_rules
- The rules.
$sel:nextToken:ListTopicRules'
, listTopicRulesResponse_nextToken
- The token to use to get the next set of results, or null if there
are no additional results.
$sel:httpStatus:ListTopicRulesResponse'
, listTopicRulesResponse_httpStatus
- The response's http status code.
Response Lenses
listTopicRulesResponse_rules :: Lens' ListTopicRulesResponse (Maybe [TopicRuleListItem]) Source #
The rules.
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_httpStatus :: Lens' ListTopicRulesResponse Int Source #
The response's http status code.