amazonka-sns-1.4.5: 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.ListEndpointsByPlatformApplication

Contents

Description

Lists the endpoints and endpoint attributes for devices in a supported push notification service, such as GCM and APNS. The results for ListEndpointsByPlatformApplication are paginated and return a limited list of endpoints, up to 100. If additional records are available after the first page results, then a NextToken string will be returned. To receive the next page, you call ListEndpointsByPlatformApplication again using the NextToken string received from the previous call. When there are no more records to return, NextToken will be null. For more information, see Using Amazon SNS Mobile Push Notifications .

This operation returns paginated results.

Synopsis

Creating a Request

listEndpointsByPlatformApplication #

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

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

  • lebpaNextToken - NextToken string is used when calling ListEndpointsByPlatformApplication action to retrieve additional records that are available after the first page results.
  • lebpaPlatformApplicationARN - PlatformApplicationArn for ListEndpointsByPlatformApplicationInput action.

data ListEndpointsByPlatformApplication #

Input for ListEndpointsByPlatformApplication action.

See: listEndpointsByPlatformApplication smart constructor.

Instances

Eq ListEndpointsByPlatformApplication # 
Data ListEndpointsByPlatformApplication # 

Methods

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

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

toConstr :: ListEndpointsByPlatformApplication -> Constr #

dataTypeOf :: ListEndpointsByPlatformApplication -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListEndpointsByPlatformApplication # 
Show ListEndpointsByPlatformApplication # 
Generic ListEndpointsByPlatformApplication # 
Hashable ListEndpointsByPlatformApplication # 
NFData ListEndpointsByPlatformApplication # 
AWSPager ListEndpointsByPlatformApplication # 
AWSRequest ListEndpointsByPlatformApplication # 
ToQuery ListEndpointsByPlatformApplication # 
ToPath ListEndpointsByPlatformApplication # 
ToHeaders ListEndpointsByPlatformApplication # 
type Rep ListEndpointsByPlatformApplication # 
type Rep ListEndpointsByPlatformApplication = D1 (MetaData "ListEndpointsByPlatformApplication" "Network.AWS.SNS.ListEndpointsByPlatformApplication" "amazonka-sns-1.4.5-5x1MjGFUMvV6p7MfMkg43e" False) (C1 (MetaCons "ListEndpointsByPlatformApplication'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lebpaNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lebpaPlatformApplicationARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ListEndpointsByPlatformApplication # 

Request Lenses

lebpaNextToken :: Lens' ListEndpointsByPlatformApplication (Maybe Text) #

NextToken string is used when calling ListEndpointsByPlatformApplication action to retrieve additional records that are available after the first page results.

lebpaPlatformApplicationARN :: Lens' ListEndpointsByPlatformApplication Text #

PlatformApplicationArn for ListEndpointsByPlatformApplicationInput action.

Destructuring the Response

listEndpointsByPlatformApplicationResponse #

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

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

  • lebparsNextToken - NextToken string is returned when calling ListEndpointsByPlatformApplication action if additional records are available after the first page results.
  • lebparsEndpoints - Endpoints returned for ListEndpointsByPlatformApplication action.
  • lebparsResponseStatus - -- | The response status code.

data ListEndpointsByPlatformApplicationResponse #

Response for ListEndpointsByPlatformApplication action.

See: listEndpointsByPlatformApplicationResponse smart constructor.

Instances

Eq ListEndpointsByPlatformApplicationResponse # 
Data ListEndpointsByPlatformApplicationResponse # 

Methods

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

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

toConstr :: ListEndpointsByPlatformApplicationResponse -> Constr #

dataTypeOf :: ListEndpointsByPlatformApplicationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListEndpointsByPlatformApplicationResponse # 
Show ListEndpointsByPlatformApplicationResponse # 
Generic ListEndpointsByPlatformApplicationResponse # 
NFData ListEndpointsByPlatformApplicationResponse # 
type Rep ListEndpointsByPlatformApplicationResponse # 
type Rep ListEndpointsByPlatformApplicationResponse = D1 (MetaData "ListEndpointsByPlatformApplicationResponse" "Network.AWS.SNS.ListEndpointsByPlatformApplication" "amazonka-sns-1.4.5-5x1MjGFUMvV6p7MfMkg43e" False) (C1 (MetaCons "ListEndpointsByPlatformApplicationResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lebparsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lebparsEndpoints") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Endpoint]))) (S1 (MetaSel (Just Symbol "_lebparsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

lebparsNextToken :: Lens' ListEndpointsByPlatformApplicationResponse (Maybe Text) #

NextToken string is returned when calling ListEndpointsByPlatformApplication action if additional records are available after the first page results.

lebparsEndpoints :: Lens' ListEndpointsByPlatformApplicationResponse [Endpoint] #

Endpoints returned for ListEndpointsByPlatformApplication action.