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

Copyright(c) 2013-2017 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.GetEndpointAttributes

Contents

Description

Retrieves the endpoint attributes for a device on one of the supported push notification services, such as GCM and APNS. For more information, see Using Amazon SNS Mobile Push Notifications .

Synopsis

Creating a Request

getEndpointAttributes Source #

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

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

data GetEndpointAttributes Source #

Input for GetEndpointAttributes action.

See: getEndpointAttributes smart constructor.

Instances

Eq GetEndpointAttributes Source # 
Data GetEndpointAttributes Source # 

Methods

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

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

toConstr :: GetEndpointAttributes -> Constr #

dataTypeOf :: GetEndpointAttributes -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetEndpointAttributes Source # 
Show GetEndpointAttributes Source # 
Generic GetEndpointAttributes Source # 
Hashable GetEndpointAttributes Source # 
NFData GetEndpointAttributes Source # 

Methods

rnf :: GetEndpointAttributes -> () #

AWSRequest GetEndpointAttributes Source # 
ToQuery GetEndpointAttributes Source # 
ToPath GetEndpointAttributes Source # 
ToHeaders GetEndpointAttributes Source # 
type Rep GetEndpointAttributes Source # 
type Rep GetEndpointAttributes = D1 (MetaData "GetEndpointAttributes" "Network.AWS.SNS.GetEndpointAttributes" "amazonka-sns-1.5.0-FOVkUDPVPzl2gzYILqja69" True) (C1 (MetaCons "GetEndpointAttributes'" PrefixI True) (S1 (MetaSel (Just Symbol "_geaEndpointARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetEndpointAttributes Source # 

Request Lenses

geaEndpointARN :: Lens' GetEndpointAttributes Text Source #

EndpointArn for GetEndpointAttributes input.

Destructuring the Response

getEndpointAttributesResponse Source #

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

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

  • gearsAttributes - Attributes include the following: * CustomUserData -- arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB. * Enabled -- flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token. * Token -- device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.
  • gearsResponseStatus - -- | The response status code.

data GetEndpointAttributesResponse Source #

Response from GetEndpointAttributes of the EndpointArn.

See: getEndpointAttributesResponse smart constructor.

Instances

Eq GetEndpointAttributesResponse Source # 
Data GetEndpointAttributesResponse Source # 

Methods

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

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

toConstr :: GetEndpointAttributesResponse -> Constr #

dataTypeOf :: GetEndpointAttributesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetEndpointAttributesResponse Source # 
Show GetEndpointAttributesResponse Source # 
Generic GetEndpointAttributesResponse Source # 
NFData GetEndpointAttributesResponse Source # 
type Rep GetEndpointAttributesResponse Source # 
type Rep GetEndpointAttributesResponse = D1 (MetaData "GetEndpointAttributesResponse" "Network.AWS.SNS.GetEndpointAttributes" "amazonka-sns-1.5.0-FOVkUDPVPzl2gzYILqja69" False) (C1 (MetaCons "GetEndpointAttributesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gearsAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) (S1 (MetaSel (Just Symbol "_gearsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gearsAttributes :: Lens' GetEndpointAttributesResponse (HashMap Text Text) Source #

Attributes include the following: * CustomUserData -- arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB. * Enabled -- flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token. * Token -- device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.