Module: Jets::Stack::Main::Dsl::Sns

Defined in:
lib/jets/stack/main/dsl/sns.rb

Instance Method Summary collapse

Instance Method Details

#sns_subscription(id, props = {}) ⇒ Object



12
13
14
# File 'lib/jets/stack/main/dsl/sns.rb', line 12

def sns_subscription(id, props={})
  resource(id, "AWS::SNS::Subscription", props)
end

#sns_topic(id, props = {}) ⇒ Object



3
4
5
6
# File 'lib/jets/stack/main/dsl/sns.rb', line 3

def sns_topic(id, props={})
  resource(id, "AWS::SNS::Topic", props)
  output(id) # Topic Arn
end

#sns_topic_policy(id, props = {}) ⇒ Object



8
9
10
# File 'lib/jets/stack/main/dsl/sns.rb', line 8

def sns_topic_policy(id, props={})
  resource(id, "AWS::SNS::TopicPolicy", props)
end