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.25.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.25.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.24.4 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.24.3 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.24.2 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.24.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.24.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.23.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.22.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.22.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.21.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.21.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.20.0 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.19.2 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.19.1 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.19.0 lib/awspec/helper/finder/cloudwatch_event.rb
cthiesfork-awspec-1.2.4 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/helper/finder/cloudwatch_event.rb
awspec-1.18.6 lib/awspec/helper/finder/cloudwatch_event.rb