amazonka-sns-1.4.4: 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.SetPlatformApplicationAttributes

Contents

Description

Sets the attributes of the platform application object for the supported push notification services, such as APNS and GCM. For more information, see Using Amazon SNS Mobile Push Notifications. For information on configuring attributes for message delivery status, see Using Amazon SNS Application Attributes for Message Delivery Status.

Synopsis

Creating a Request

setPlatformApplicationAttributes Source #

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

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

data SetPlatformApplicationAttributes Source #

Input for SetPlatformApplicationAttributes action.

See: setPlatformApplicationAttributes smart constructor.

Instances

Eq SetPlatformApplicationAttributes Source # 
Data SetPlatformApplicationAttributes Source # 

Methods

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

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

toConstr :: SetPlatformApplicationAttributes -> Constr #

dataTypeOf :: SetPlatformApplicationAttributes -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetPlatformApplicationAttributes Source # 
Show SetPlatformApplicationAttributes Source # 
Generic SetPlatformApplicationAttributes Source # 
Hashable SetPlatformApplicationAttributes Source # 
NFData SetPlatformApplicationAttributes Source # 
AWSRequest SetPlatformApplicationAttributes Source # 
ToPath SetPlatformApplicationAttributes Source # 
ToHeaders SetPlatformApplicationAttributes Source # 
ToQuery SetPlatformApplicationAttributes Source # 
type Rep SetPlatformApplicationAttributes Source # 
type Rep SetPlatformApplicationAttributes = D1 (MetaData "SetPlatformApplicationAttributes" "Network.AWS.SNS.SetPlatformApplicationAttributes" "amazonka-sns-1.4.4-61mjRuWdOi3INrh89sztXd" False) (C1 (MetaCons "SetPlatformApplicationAttributes'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_spaaPlatformApplicationARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_spaaAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text)))))
type Rs SetPlatformApplicationAttributes Source # 

Request Lenses

spaaPlatformApplicationARN :: Lens' SetPlatformApplicationAttributes Text Source #

PlatformApplicationArn for SetPlatformApplicationAttributes action.

spaaAttributes :: Lens' SetPlatformApplicationAttributes (HashMap Text Text) Source #

A map of the platform application attributes. Attributes in this map include the following:

  • PlatformCredential -- The credential received from the notification service. For APNS/APNS_SANDBOX, PlatformCredential is private key. For GCM, PlatformCredential is "API key". For ADM, PlatformCredential is "client secret".
  • PlatformPrincipal -- The principal received from the notification service. For APNS/APNS_SANDBOX, PlatformPrincipal is SSL certificate. For GCM, PlatformPrincipal is not applicable. For ADM, PlatformPrincipal is "client id".
  • EventEndpointCreated -- Topic ARN to which EndpointCreated event notifications should be sent.
  • EventEndpointDeleted -- Topic ARN to which EndpointDeleted event notifications should be sent.
  • EventEndpointUpdated -- Topic ARN to which EndpointUpdate event notifications should be sent.
  • EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.
  • SuccessFeedbackRoleArn -- IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf.
  • FailureFeedbackRoleArn -- IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf.
  • SuccessFeedbackSampleRate -- Sample rate percentage (0-100) of successfully delivered messages.

Destructuring the Response

data SetPlatformApplicationAttributesResponse Source #

Instances

Eq SetPlatformApplicationAttributesResponse Source # 
Data SetPlatformApplicationAttributesResponse Source # 

Methods

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

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

toConstr :: SetPlatformApplicationAttributesResponse -> Constr #

dataTypeOf :: SetPlatformApplicationAttributesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetPlatformApplicationAttributesResponse Source # 
Show SetPlatformApplicationAttributesResponse Source # 
Generic SetPlatformApplicationAttributesResponse Source # 
NFData SetPlatformApplicationAttributesResponse Source # 
type Rep SetPlatformApplicationAttributesResponse Source # 
type Rep SetPlatformApplicationAttributesResponse = D1 (MetaData "SetPlatformApplicationAttributesResponse" "Network.AWS.SNS.SetPlatformApplicationAttributes" "amazonka-sns-1.4.4-61mjRuWdOi3INrh89sztXd" False) (C1 (MetaCons "SetPlatformApplicationAttributesResponse'" PrefixI False) U1)