Class: Jets::Cfn::Resource::Logs::SubscriptionFilter
- Defined in:
- lib/jets/cfn/resource/logs/subscription_filter.rb
Instance Method Summary collapse
- #definition ⇒ Object
-
#initialize(props = {}) ⇒ SubscriptionFilter
constructor
A new instance of SubscriptionFilter.
- #log_logical_id ⇒ Object
-
#merged_properties ⇒ Object
Do not name this method properties, that is a computed method of ‘Jets::Cfn::Resource`.
Methods inherited from Base
#attributes, #logical_id, #outputs, #parameters, #permission, #properties, #replacements, #replacer, #standarize, #template, truncate_id, #type
Methods included from Util::Camelize
Constructor Details
#initialize(props = {}) ⇒ SubscriptionFilter
Returns a new instance of SubscriptionFilter.
4 5 6 |
# File 'lib/jets/cfn/resource/logs/subscription_filter.rb', line 4 def initialize(props={}) @props = props # associated_properties from dsl.rb end |
Instance Method Details
#definition ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/jets/cfn/resource/logs/subscription_filter.rb', line 8 def definition { log_logical_id => { Type: "AWS::Logs::SubscriptionFilter", Properties: merged_properties, } } end |
#log_logical_id ⇒ Object
27 28 29 |
# File 'lib/jets/cfn/resource/logs/subscription_filter.rb', line 27 def log_logical_id "{namespace}SubscriptionFilter" end |
#merged_properties ⇒ Object
Do not name this method properties, that is a computed method of ‘Jets::Cfn::Resource`
18 19 20 21 22 23 24 25 |
# File 'lib/jets/cfn/resource/logs/subscription_filter.rb', line 18 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 |