IcsSNS Common Library
IcsSNS: Library for SNS
This is the IcsSNS common library. |
-
class opslib.icssns.IcsSNS(region, **kwargs)[source]
ICS Libraray for SNS
-
__dict__ = dict_proxy({'__module__': 'opslib.icssns', 'getTopicARN': <function getTopicARN at 0x568cd70>, 'publish': <function publish at 0x568cde8>, '__dict__': <attribute '__dict__' of 'IcsSNS' objects>, '__weakref__': <attribute '__weakref__' of 'IcsSNS' objects>, '__doc__': '\n ICS Libraray for SNS\n ', '__init__': <function __init__ at 0x568ccf8>})
-
__init__(region, **kwargs)[source]
-
__module__ = 'opslib.icssns'
-
__weakref__
list of weak references to the object (if defined)
-
getTopicARN(name)[source]
Get the Amazon Resource Name of specified SNS Topic
Parameters: | name (str) – SNS Topic Name |
Return type: | string |
Returns: | a string containing Amazon Resource Name |
-
publish(topic_arn, msg, subj=None)[source]
Publish messages to SNS Topic
Parameters: |
- topic_arn (string) – Amazon Resource Name for SNS
- msg (string) – message contents
- subj (string) – subject contents
|