Module: Awspec::Helper::Finder::CloudwatchEvent
- Included in:
- Awspec::Helper::Finder
- Defined in:
- lib/awspec/helper/finder/cloudwatch_event.rb
Instance Method Summary collapse
Instance Method Details
#find_cloudwatch_event(id) ⇒ Object
6 7 8 9 10 |
# File 'lib/awspec/helper/finder/cloudwatch_event.rb', line 6 def find_cloudwatch_event(id) cloudwatch_event_client.list_rules.rules.find do |rule| rule.name == id || rule.arn == id end end |
#select_all_cloudwatch_events ⇒ Object
12 13 14 |
# File 'lib/awspec/helper/finder/cloudwatch_event.rb', line 12 def select_all_cloudwatch_events cloudwatch_event_client.list_rules.rules end |