| 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.SNS.ListTopics
Description
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_nextToken :: Lens' ListTopicsResponse (Maybe Text)
- listTopicsResponse_topics :: Lens' ListTopicsResponse (Maybe [Topic])
- listTopicsResponse_httpStatus :: Lens' ListTopicsResponse Int
Creating a Request
data ListTopics Source #
See: newListTopics smart constructor.
Constructors
| ListTopics' | |
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:
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.
Constructors
| ListTopicsResponse' | |
Instances
newListTopicsResponse Source #
Arguments
| :: Int | |
| -> ListTopicsResponse |
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:
ListTopics, listTopicsResponse_nextToken - Token to pass along to the next ListTopics request. This element is
returned if there are additional topics to retrieve.
$sel:topics:ListTopicsResponse', listTopicsResponse_topics - A list of topic ARNs.
$sel:httpStatus:ListTopicsResponse', listTopicsResponse_httpStatus - The response's http status code.
Response Lenses
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_topics :: Lens' ListTopicsResponse (Maybe [Topic]) Source #
A list of topic ARNs.
listTopicsResponse_httpStatus :: Lens' ListTopicsResponse Int Source #
The response's http status code.