Safe Haskell | None |
---|---|
Language | Haskell2010 |
Types
createConfig :: Region -> Credentials -> Text -> IO Config Source #
Given an AWS Region
and a Credentials
descriptor, create an
SNS topic with the given Text
name, and return a pinpon
server
Config
for the topic. Notifications sent to the pinpon
server
using this Config
will be relayed to the SNS topic for delivery
to the topic's subscribers.
The initial set of platforms in the newly-created Config
is
empty. If you want to send platform-specific messages, add the
desired platform(s) to the Config
s platform set after creating
the Config
.
Note that if the topic already exists with the given credentials and region, then this operation is idempotent.
pinpon
can deliver platform-specific messages via Amazon SNS
for the following platforms.
Note that, though it is not listed here, pinpon
supports delivery
via SNS to email addresses. This support is always enabled.
Platforms not specifically supported by pinpon
will still receive
notifications, but those notifications will not have any
platform-specific features; clients on those platforms will receive
only the notification message text. (See
Network.PinPon.Notification.Notification.)
APNS | Apple's APN service |
APNSSandbox | Apple's APN sandbox service |