Sha256: a1d876821eaa23cd015f3c8bba3741bd81e1ed212b7f160cb63daff87e1f25c8
Contents?: true
Size: 929 Bytes
Versions: 15
Compression:
Stored size: 929 Bytes
Contents
# CloudFormation Log Subscription docs: https://amzn.to/2SNiSpr module Jets::Cfn::Resource::Logs class SubscriptionFilter < Jets::Cfn::Base def initialize(props={}) @props = props # associated_properties from dsl.rb end def definition { log_logical_id => { Type: "AWS::Logs::SubscriptionFilter", Properties: merged_properties, } } end # Do not name this method properties, that is a computed method of `Jets::Cfn::Resource` def merged_properties { DestinationArn: "!GetAtt {namespace}LambdaFunction.Arn", FilterPattern: "", # matches everything https://amzn.to/2N3b39I # LogGroupName: string # will be set by log_event # RoleArn: string # only required for kinensis, we dont use this for Lambda }.deep_merge(@props) end def log_logical_id "{namespace}SubscriptionFilter" end end end
Version data entries
15 entries across 15 versions & 1 rubygems