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 |
Returns a list of the requester's topics. Each call returns a limited
list of topics, up to 100. If there are more topics, a NextToken
is
also returned. Use the NextToken
parameter in a new ListTopics
call
to get further results.
This action is throttled at 30 transactions per second (TPS).
This operation returns paginated results.
Synopsis
- data ListTopics = ListTopics' {}
- newListTopics :: ListTopics
- listTopics_nextToken :: Lens' ListTopics (Maybe Text)
- data ListTopicsResponse = ListTopicsResponse' {}
- newListTopicsResponse :: Int -> ListTopicsResponse
- listTopicsResponse_topics :: Lens' ListTopicsResponse (Maybe [Topic])
- listTopicsResponse_nextToken :: Lens' ListTopicsResponse (Maybe Text)
- listTopicsResponse_httpStatus :: Lens' ListTopicsResponse Int
Creating a Request
data ListTopics Source #
See: newListTopics
smart constructor.
Instances
newListTopics :: ListTopics Source #
Create a value of ListTopics
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:nextToken:ListTopics'
, listTopics_nextToken
- Token returned by the previous ListTopics
request.
Request Lenses
listTopics_nextToken :: Lens' ListTopics (Maybe Text) Source #
Token returned by the previous ListTopics
request.
Destructuring the Response
data ListTopicsResponse Source #
Response for ListTopics action.
See: newListTopicsResponse
smart constructor.
Instances
newListTopicsResponse Source #
Create a value of ListTopicsResponse
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:topics:ListTopicsResponse'
, listTopicsResponse_topics
- A list of topic ARNs.
$sel:nextToken:ListTopics'
, listTopicsResponse_nextToken
- Token to pass along to the next ListTopics
request. This element is
returned if there are additional topics to retrieve.
$sel:httpStatus:ListTopicsResponse'
, listTopicsResponse_httpStatus
- The response's http status code.
Response Lenses
listTopicsResponse_topics :: Lens' ListTopicsResponse (Maybe [Topic]) Source #
A list of topic ARNs.
listTopicsResponse_nextToken :: Lens' ListTopicsResponse (Maybe Text) Source #
Token to pass along to the next ListTopics
request. This element is
returned if there are additional topics to retrieve.
listTopicsResponse_httpStatus :: Lens' ListTopicsResponse Int Source #
The response's http status code.