| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.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 operation returns paginated results.
- listTopics :: ListTopics
- data ListTopics
- ltNextToken :: Lens' ListTopics (Maybe Text)
- listTopicsResponse :: Int -> ListTopicsResponse
- data ListTopicsResponse
- ltrsTopics :: Lens' ListTopicsResponse [Topic]
- ltrsNextToken :: Lens' ListTopicsResponse (Maybe Text)
- ltrsResponseStatus :: Lens' ListTopicsResponse Int
Creating a Request
listTopics :: ListTopics Source #
Creates a value of ListTopics with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltNextToken- Token returned by the previousListTopicsrequest.
data ListTopics Source #
See: listTopics smart constructor.
Instances
Request Lenses
ltNextToken :: Lens' ListTopics (Maybe Text) Source #
Token returned by the previous ListTopics request.
Destructuring the Response
Arguments
| :: Int | |
| -> ListTopicsResponse |
Creates a value of ListTopicsResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltrsTopics- A list of topic ARNs.ltrsNextToken- Token to pass along to the nextListTopicsrequest. This element is returned if there are additional topics to retrieve.ltrsResponseStatus- -- | The response status code.
data ListTopicsResponse Source #
Response for ListTopics action.
See: listTopicsResponse smart constructor.
Response Lenses
ltrsTopics :: Lens' ListTopicsResponse [Topic] Source #
A list of topic ARNs.
ltrsNextToken :: 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.
ltrsResponseStatus :: Lens' ListTopicsResponse Int Source #
- - | The response status code.