amazonka-sns-1.0.0: 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.ListSubscriptionsByTopic

Contents

Description

Returns a list of the subscriptions to a specific topic. Each call returns a limited list of subscriptions, up to 100. If there are more subscriptions, a NextToken is also returned. Use the NextToken parameter in a new ListSubscriptionsByTopic call to get further results.

See: AWS API Reference for ListSubscriptionsByTopic.

This operation returns paginated results.

Synopsis

Creating a Request

listSubscriptionsByTopic Source

Creates a value of ListSubscriptionsByTopic with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

lsbtTopicARN :: Lens' ListSubscriptionsByTopic Text Source

The ARN of the topic for which you wish to find subscriptions.

Destructuring the Response

listSubscriptionsByTopicResponse Source

Creates a value of ListSubscriptionsByTopicResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

lsbtrsNextToken :: Lens' ListSubscriptionsByTopicResponse (Maybe Text) Source

Token to pass along to the next ListSubscriptionsByTopic request. This element is returned if there are more subscriptions to retrieve.