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

Copyright(c) 2013-2016 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.ListSubscriptions

Contents

Description

Returns a list of the requester's subscriptions. 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 ListSubscriptions call to get further results.

This operation returns paginated results.

Synopsis

Creating a Request

listSubscriptions :: ListSubscriptions Source #

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

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

data ListSubscriptions Source #

Input for ListSubscriptions action.

See: listSubscriptions smart constructor.

Instances

Eq ListSubscriptions Source # 
Data ListSubscriptions Source # 

Methods

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

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

toConstr :: ListSubscriptions -> Constr #

dataTypeOf :: ListSubscriptions -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListSubscriptions Source # 
Show ListSubscriptions Source # 
Generic ListSubscriptions Source # 
Hashable ListSubscriptions Source # 
NFData ListSubscriptions Source # 

Methods

rnf :: ListSubscriptions -> () #

AWSPager ListSubscriptions Source # 
AWSRequest ListSubscriptions Source # 
ToQuery ListSubscriptions Source # 
ToPath ListSubscriptions Source # 
ToHeaders ListSubscriptions Source # 
type Rep ListSubscriptions Source # 
type Rep ListSubscriptions = D1 (MetaData "ListSubscriptions" "Network.AWS.SNS.ListSubscriptions" "amazonka-sns-1.4.1-5jBhOS7pRMq3hcCKbdHesk" True) (C1 (MetaCons "ListSubscriptions'" PrefixI True) (S1 (MetaSel (Just Symbol "_lsNextToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))
type Rs ListSubscriptions Source # 

Request Lenses

lsNextToken :: Lens' ListSubscriptions (Maybe Text) Source #

Token returned by the previous ListSubscriptions request.

Destructuring the Response

listSubscriptionsResponse Source #

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

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

data ListSubscriptionsResponse Source #

Response for ListSubscriptions action

See: listSubscriptionsResponse smart constructor.

Instances

Eq ListSubscriptionsResponse Source # 
Data ListSubscriptionsResponse Source # 

Methods

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

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

toConstr :: ListSubscriptionsResponse -> Constr #

dataTypeOf :: ListSubscriptionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListSubscriptionsResponse Source # 
Show ListSubscriptionsResponse Source # 
Generic ListSubscriptionsResponse Source # 
NFData ListSubscriptionsResponse Source # 
type Rep ListSubscriptionsResponse Source # 
type Rep ListSubscriptionsResponse = D1 (MetaData "ListSubscriptionsResponse" "Network.AWS.SNS.ListSubscriptions" "amazonka-sns-1.4.1-5jBhOS7pRMq3hcCKbdHesk" False) (C1 (MetaCons "ListSubscriptionsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lsrsSubscriptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Subscription]))) (S1 (MetaSel (Just Symbol "_lsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

lsrsNextToken :: Lens' ListSubscriptionsResponse (Maybe Text) Source #

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