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-0.79.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.79.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.78.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.77.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.77.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.76.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.76.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.75.2 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.75.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.75.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.74.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.74.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.73.2 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.73.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.73.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.72.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.71.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.70.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.69.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-0.69.0 lib/awspec/helper/finder/cloudwatch_event.rb