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.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:

  • lsNextToken - Token returned by the previous ListSubscriptions request.

data ListSubscriptions Source #

Input for ListSubscriptions action.

See: listSubscriptions smart constructor.

Instances
Eq ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

Data ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

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

Defined in Network.AWS.SNS.ListSubscriptions

Show ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

Generic ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

Associated Types

type Rep ListSubscriptions :: Type -> Type #

Hashable ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

AWSPager ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

AWSRequest ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

Associated Types

type Rs ListSubscriptions :: Type #

ToHeaders ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

ToPath ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

ToQuery ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

NFData ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

Methods

rnf :: ListSubscriptions -> () #

type Rep ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

type Rep ListSubscriptions = D1 (MetaData "ListSubscriptions" "Network.AWS.SNS.ListSubscriptions" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" True) (C1 (MetaCons "ListSubscriptions'" PrefixI True) (S1 (MetaSel (Just "_lsNextToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))
type Rs ListSubscriptions Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

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

Defined in Network.AWS.SNS.ListSubscriptions

Data ListSubscriptionsResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

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

Defined in Network.AWS.SNS.ListSubscriptions

Show ListSubscriptionsResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

Generic ListSubscriptionsResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

Associated Types

type Rep ListSubscriptionsResponse :: Type -> Type #

NFData ListSubscriptionsResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

type Rep ListSubscriptionsResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListSubscriptions

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