Module: CloudShaped::SnsMethods

Includes:
CoreMethods
Included in:
DSL
Defined in:
lib/cloud_shaped/sns_methods.rb

Overview

Methods to create sns topics

Instance Method Summary collapse

Methods included from CoreMethods

#output, #parameter, #ref, #resource, #tag, #tags

Instance Method Details

#sns_topic(endpoint) ⇒ Object



8
9
10
11
12
13
# File 'lib/cloud_shaped/sns_methods.rb', line 8

def sns_topic(endpoint)
  proto, target = sns_proto_target(endpoint)
  resource 'AWS::SNS::Topic', 'Subscription' => [
    { 'Protocol' => proto, 'Endpoint' => target }
  ]
end