Sha256: 7ae921968d921774e2ddeb50ec853f574e088d1a35bb0db8f7a636bda75bb633
Contents?: true
Size: 738 Bytes
Versions: 15
Compression:
Stored size: 738 Bytes
Contents
# CloudFormation SNS Subscription docs: https://amzn.to/2SJtN3C module Jets::Cfn::Resource::Sns class Subscription < Jets::Cfn::Base def initialize(props={}) @props = props # associated_properties from dsl.rb end def definition { subscription_logical_id => { Type: "AWS::SNS::Subscription", Properties: merged_properties, } } end # Do not name this method properties, that is a computed method of `Jets::Cfn::Resource` def merged_properties { Endpoint: "!GetAtt {namespace}LambdaFunction.Arn", Protocol: "lambda", }.deep_merge(@props) end def subscription_logical_id "{namespace}SnsSubscription" end end end
Version data entries
15 entries across 15 versions & 1 rubygems