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

Contents

Description

Returns a list of the requester's topics. Each call returns a limited list of topics, up to 100. If there are more topics, a NextToken is also returned. Use the NextToken parameter in a new ListTopics call to get further results.

This operation returns paginated results.

Synopsis

Creating a Request

listTopics :: ListTopics Source #

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

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

  • ltNextToken - Token returned by the previous ListTopics request.

data ListTopics Source #

See: listTopics smart constructor.

Instances
Eq ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Data ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Methods

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

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

toConstr :: ListTopics -> Constr #

dataTypeOf :: ListTopics -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Show ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Generic ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Associated Types

type Rep ListTopics :: Type -> Type #

Hashable ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

AWSPager ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

AWSRequest ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Associated Types

type Rs ListTopics :: Type #

ToHeaders ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Methods

toHeaders :: ListTopics -> [Header] #

ToPath ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

ToQuery ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

NFData ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Methods

rnf :: ListTopics -> () #

type Rep ListTopics Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

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

Defined in Network.AWS.SNS.ListTopics

Request Lenses

ltNextToken :: Lens' ListTopics (Maybe Text) Source #

Token returned by the previous ListTopics request.

Destructuring the Response

listTopicsResponse Source #

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

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

  • ltrsTopics - A list of topic ARNs.
  • ltrsNextToken - Token to pass along to the next ListTopics request. This element is returned if there are additional topics to retrieve.
  • ltrsResponseStatus - -- | The response status code.

data ListTopicsResponse Source #

Response for ListTopics action.

See: listTopicsResponse smart constructor.

Instances
Eq ListTopicsResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Data ListTopicsResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Methods

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

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

toConstr :: ListTopicsResponse -> Constr #

dataTypeOf :: ListTopicsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListTopicsResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Show ListTopicsResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Generic ListTopicsResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Associated Types

type Rep ListTopicsResponse :: Type -> Type #

NFData ListTopicsResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

Methods

rnf :: ListTopicsResponse -> () #

type Rep ListTopicsResponse Source # 
Instance details

Defined in Network.AWS.SNS.ListTopics

type Rep ListTopicsResponse = D1 (MetaData "ListTopicsResponse" "Network.AWS.SNS.ListTopics" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" False) (C1 (MetaCons "ListTopicsResponse'" PrefixI True) (S1 (MetaSel (Just "_ltrsTopics") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Topic])) :*: (S1 (MetaSel (Just "_ltrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ltrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ltrsTopics :: Lens' ListTopicsResponse [Topic] Source #

A list of topic ARNs.

ltrsNextToken :: Lens' ListTopicsResponse (Maybe Text) Source #

Token to pass along to the next ListTopics request. This element is returned if there are additional topics to retrieve.

ltrsResponseStatus :: Lens' ListTopicsResponse Int Source #

  • - | The response status code.