Module: RubyAemAws::SNSTopic
- Included in:
- Component::StackManagerResources
- Defined in:
- lib/ruby_aem_aws/client/sns_topic.rb
Overview
Mixin for interaction with AWS SNS
Instance Method Summary collapse
-
#publish(topicarn, message) ⇒ Object
Message ID.
Instance Method Details
#publish(topicarn, message) ⇒ Object
Returns Message ID.
21 22 23 24 25 26 27 28 |
# File 'lib/ruby_aem_aws/client/sns_topic.rb', line 21 def publish(topicarn, ) client = Aws::SNS::Topic.new(topicarn) = { subject: 'Publish', message: , message_structure: 'json' } publish = client.publish() publish. end |