amazonka-sns-1.6.0: 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.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 #

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:

  • spaaPlatformApplicationARN - PlatformApplicationArn for SetPlatformApplicationAttributes action.
  • spaaAttributes - A map of the platform application attributes. Attributes in this map include the following: * PlatformCredential -- The credential received from the notification service. For APNSAPNS_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 APNSAPNS_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.

data SetPlatformApplicationAttributes #

Input for SetPlatformApplicationAttributes action.

See: setPlatformApplicationAttributes smart constructor.

Instances
Eq SetPlatformApplicationAttributes # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

Data SetPlatformApplicationAttributes # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

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

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

Show SetPlatformApplicationAttributes # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

Generic SetPlatformApplicationAttributes # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

Associated Types

type Rep SetPlatformApplicationAttributes :: * -> * #

Hashable SetPlatformApplicationAttributes # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

AWSRequest SetPlatformApplicationAttributes # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

Associated Types

type Rs SetPlatformApplicationAttributes :: * #

ToHeaders SetPlatformApplicationAttributes # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

ToPath SetPlatformApplicationAttributes # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

ToQuery SetPlatformApplicationAttributes # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

NFData SetPlatformApplicationAttributes # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

type Rep SetPlatformApplicationAttributes # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

type Rep SetPlatformApplicationAttributes = D1 (MetaData "SetPlatformApplicationAttributes" "Network.AWS.SNS.SetPlatformApplicationAttributes" "amazonka-sns-1.6.0-HtFY9r81ykN4UA9Dx2hCIO" False) (C1 (MetaCons "SetPlatformApplicationAttributes'" PrefixI True) (S1 (MetaSel (Just "_spaaPlatformApplicationARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_spaaAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text))))
type Rs SetPlatformApplicationAttributes # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

Request Lenses

spaaPlatformApplicationARN :: Lens' SetPlatformApplicationAttributes Text #

PlatformApplicationArn for SetPlatformApplicationAttributes action.

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

A map of the platform application attributes. Attributes in this map include the following: * PlatformCredential -- The credential received from the notification service. For APNSAPNS_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 APNSAPNS_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 #

Instances
Eq SetPlatformApplicationAttributesResponse # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

Data SetPlatformApplicationAttributesResponse # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

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

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

Show SetPlatformApplicationAttributesResponse # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

Generic SetPlatformApplicationAttributesResponse # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

Associated Types

type Rep SetPlatformApplicationAttributesResponse :: * -> * #

NFData SetPlatformApplicationAttributesResponse # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

type Rep SetPlatformApplicationAttributesResponse # 
Instance details

Defined in Network.AWS.SNS.SetPlatformApplicationAttributes

type Rep SetPlatformApplicationAttributesResponse = D1 (MetaData "SetPlatformApplicationAttributesResponse" "Network.AWS.SNS.SetPlatformApplicationAttributes" "amazonka-sns-1.6.0-HtFY9r81ykN4UA9Dx2hCIO" False) (C1 (MetaCons "SetPlatformApplicationAttributesResponse'" PrefixI False) (U1 :: * -> *))