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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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.

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:

  • lsbtNextToken - Token returned by the previous ListSubscriptionsByTopic request.
  • lsbtTopicARN - The ARN of the topic for which you wish to find subscriptions.

data ListSubscriptionsByTopic Source #

Input for ListSubscriptionsByTopic action.

See: listSubscriptionsByTopic smart constructor.

Instances

Eq ListSubscriptionsByTopic Source # 
Data ListSubscriptionsByTopic Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListSubscriptionsByTopic -> c ListSubscriptionsByTopic #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListSubscriptionsByTopic #

toConstr :: ListSubscriptionsByTopic -> Constr #

dataTypeOf :: ListSubscriptionsByTopic -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListSubscriptionsByTopic) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListSubscriptionsByTopic) #

gmapT :: (forall b. Data b => b -> b) -> ListSubscriptionsByTopic -> ListSubscriptionsByTopic #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListSubscriptionsByTopic -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListSubscriptionsByTopic -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListSubscriptionsByTopic -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListSubscriptionsByTopic -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListSubscriptionsByTopic -> m ListSubscriptionsByTopic #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListSubscriptionsByTopic -> m ListSubscriptionsByTopic #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListSubscriptionsByTopic -> m ListSubscriptionsByTopic #

Read ListSubscriptionsByTopic Source # 
Show ListSubscriptionsByTopic Source # 
Generic ListSubscriptionsByTopic Source # 
Hashable ListSubscriptionsByTopic Source # 
NFData ListSubscriptionsByTopic Source # 
AWSPager ListSubscriptionsByTopic Source # 
AWSRequest ListSubscriptionsByTopic Source # 
ToHeaders ListSubscriptionsByTopic Source # 
ToPath ListSubscriptionsByTopic Source # 
ToQuery ListSubscriptionsByTopic Source # 
type Rep ListSubscriptionsByTopic Source # 
type Rep ListSubscriptionsByTopic = D1 * (MetaData "ListSubscriptionsByTopic" "Network.AWS.SNS.ListSubscriptionsByTopic" "amazonka-sns-1.6.0-9aFI2fxVFLPtYIjs5ltfP" False) (C1 * (MetaCons "ListSubscriptionsByTopic'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lsbtNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lsbtTopicARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs ListSubscriptionsByTopic Source # 

Request Lenses

lsbtNextToken :: Lens' ListSubscriptionsByTopic (Maybe Text) Source #

Token returned by the previous ListSubscriptionsByTopic request.

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:

data ListSubscriptionsByTopicResponse Source #

Response for ListSubscriptionsByTopic action.

See: listSubscriptionsByTopicResponse smart constructor.

Instances

Eq ListSubscriptionsByTopicResponse Source # 
Data ListSubscriptionsByTopicResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListSubscriptionsByTopicResponse -> c ListSubscriptionsByTopicResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListSubscriptionsByTopicResponse #

toConstr :: ListSubscriptionsByTopicResponse -> Constr #

dataTypeOf :: ListSubscriptionsByTopicResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListSubscriptionsByTopicResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListSubscriptionsByTopicResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListSubscriptionsByTopicResponse -> ListSubscriptionsByTopicResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListSubscriptionsByTopicResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListSubscriptionsByTopicResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListSubscriptionsByTopicResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListSubscriptionsByTopicResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListSubscriptionsByTopicResponse -> m ListSubscriptionsByTopicResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListSubscriptionsByTopicResponse -> m ListSubscriptionsByTopicResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListSubscriptionsByTopicResponse -> m ListSubscriptionsByTopicResponse #

Read ListSubscriptionsByTopicResponse Source # 
Show ListSubscriptionsByTopicResponse Source # 
Generic ListSubscriptionsByTopicResponse Source # 
NFData ListSubscriptionsByTopicResponse Source # 
type Rep ListSubscriptionsByTopicResponse Source # 
type Rep ListSubscriptionsByTopicResponse = D1 * (MetaData "ListSubscriptionsByTopicResponse" "Network.AWS.SNS.ListSubscriptionsByTopic" "amazonka-sns-1.6.0-9aFI2fxVFLPtYIjs5ltfP" False) (C1 * (MetaCons "ListSubscriptionsByTopicResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lsbtrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lsbtrsSubscriptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Subscription]))) (S1 * (MetaSel (Just Symbol "_lsbtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

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.