amazonka-sns-1.6.1: 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 # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

Data ListSubscriptionsByTopic Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

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 # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

Show ListSubscriptionsByTopic Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

Generic ListSubscriptionsByTopic Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

Associated Types

type Rep ListSubscriptionsByTopic :: Type -> Type #

Hashable ListSubscriptionsByTopic Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

AWSPager ListSubscriptionsByTopic Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

AWSRequest ListSubscriptionsByTopic Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

Associated Types

type Rs ListSubscriptionsByTopic :: Type #

ToHeaders ListSubscriptionsByTopic Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

ToPath ListSubscriptionsByTopic Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

ToQuery ListSubscriptionsByTopic Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

NFData ListSubscriptionsByTopic Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

type Rep ListSubscriptionsByTopic Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

type Rep ListSubscriptionsByTopic = D1 (MetaData "ListSubscriptionsByTopic" "Network.AWS.SNS.ListSubscriptionsByTopic" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" False) (C1 (MetaCons "ListSubscriptionsByTopic'" PrefixI True) (S1 (MetaSel (Just "_lsbtNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lsbtTopicARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs ListSubscriptionsByTopic Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

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 # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

Data ListSubscriptionsByTopicResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

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 # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

Show ListSubscriptionsByTopicResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

Generic ListSubscriptionsByTopicResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

Associated Types

type Rep ListSubscriptionsByTopicResponse :: Type -> Type #

NFData ListSubscriptionsByTopicResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

type Rep ListSubscriptionsByTopicResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptionsByTopic

type Rep ListSubscriptionsByTopicResponse = D1 (MetaData "ListSubscriptionsByTopicResponse" "Network.AWS.SNS.ListSubscriptionsByTopic" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" False) (C1 (MetaCons "ListSubscriptionsByTopicResponse'" PrefixI True) (S1 (MetaSel (Just "_lsbtrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lsbtrsSubscriptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Subscription])) :*: S1 (MetaSel (Just "_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.