Sha256: 04716a53cd2b55cfae0f0e391a195baa8f4735f4ef4a1b19b0e398a21a2f39cb

Contents?: true

Size: 348 Bytes

Versions: 153

Compression:

Stored size: 348 Bytes

Contents

module Awspec::Helper
  module Finder
    module CloudwatchEvent
      def find_cloudwatch_event(id)
        cloudwatch_event_client.list_rules.rules.find do |rule|
          rule.name == id || rule.arn == id
        end
      end

      def select_all_cloudwatch_events
        cloudwatch_event_client.list_rules.rules
      end
    end
  end
end

Version data entries

153 entries across 153 versions & 4 rubygems

Version Path
awspec-1.15.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.15.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.14.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.14.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.13.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.12.7 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.12.6 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.12.5 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.12.4 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.12.3 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.12.2 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.12.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.12.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.11.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.11.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.10.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.9.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.8.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.7.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.6.1 lib/awspec/helper/finder/cloudwatch_event.rb