amazonka-sns-1.3.2: Amazon Simple Notification Service SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SNS.ListTopics

Contents

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.

See: AWS API Reference for ListTopics.

This operation returns paginated results.

Synopsis

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:

Request Lenses

ltNextToken :: Lens' ListTopics (Maybe Text) Source

Token returned by the previous ListTopics request.

Destructuring the Response

listTopicsResponse Source

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:

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.