8 SNS (Notifications)
(require (planet gh/aws:1:=3/sns)) |
SNS lets you create topics to which notifications can be published. Each topic has zero or more subscriptions.
Subscriptions can be of various types of endpoints, such as email, SMS, or an HTTP POST of a JSON-encoded message.
A new subscription must be confirmed by the recipient before it will receive notifications, to prevent unwanted notifications.
Topics and subscriptions are unqiuely identified by a string referred to as an ARN (Amazon Resource Name). The string is composed of the service endpoint hostname, your AWS account number, and a name. An example ARN is arn:aws:sns:us-east-1:123456789012:My-Topic.
parameter
(sns-endpoint v) → void? v : endpoint?
procedure
(create-topic name) → string?
name : string?
procedure
(delete-topic arn) → void?
arn : string?
procedure
(list-topics) → (listof string?)
struct
(struct subscription ( protocol owner topic-arn subscription-arn endpoint) #:extra-constructor-name make-subscription) protocol : string? owner : string? topic-arn : string? subscription-arn : string? endpoint : string?
procedure
procedure
(list-subscriptions-by-topic arn) → (listof subscription?)
arn : string?
procedure
(sns-protocol? s) → boolean?
s : string?
procedure
endpoint : string? protocol : sns-protocol? topic-arn : string?
procedure
(unsubscribe subscription-arn) → void?
subscription-arn : string?
procedure
(publish topic-arn message #:subject subject #:json? json?) → void? topic-arn : string? message : string? subject : "" json? : #f