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
4 5 6 7 8 |
# File 'lib/awspec/helper/finder/cloudwatch_event.rb', line 4 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
10 11 12 |
# File 'lib/awspec/helper/finder/cloudwatch_event.rb', line 10 def select_all_cloudwatch_events cloudwatch_event_client.list_rules.rules end |