awstin.sns package¶
awstin.sns module¶
-
class
awstin.sns.
SNSTopic
(topic_name)[source]¶ Bases:
object
A client for typical use of an SNS topic
-
publish
(message, **attributes)[source]¶ Publish a message to the topic
- Parameters
message (str) – The message to send
**attributes (dict(str, Any)) – Message attributes to add to the message. Value must be castable into “String” (str), “String.Array” (list of str), “Number” (int or float), and “Binary” (bytes). If it’s not classified, a bytes cast will be attempted.
- Returns
The message’s unique ID
- Return type
str
-