Sha256: 21635457374c0d0b0f791b0d79725357434a0e7000653a02932ed2ae0755f885

Contents?: true

Size: 487 Bytes

Versions: 31

Compression:

Stored size: 487 Bytes

Contents

module Awspec::Helper
  module Finder
    module Apigateway
      def find_apigateway_by_id(id)
        rest_apis = apigateway_client.get_rest_apis
        rest_apis.items.each do |item|
          return item if item.id == id
        end
        nil
      end

      def find_apigateway_by_name(name)
        rest_apis = apigateway_client.get_rest_apis
        rest_apis.items.each do |item|
          return item if item.name == name
        end
        nil
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
awspec-1.18.4 lib/awspec/helper/finder/apigateway.rb
awspec-1.18.3 lib/awspec/helper/finder/apigateway.rb
awspec-1.18.2 lib/awspec/helper/finder/apigateway.rb
awspec-1.18.1 lib/awspec/helper/finder/apigateway.rb
awspec-1.18.0 lib/awspec/helper/finder/apigateway.rb
awspec-1.17.4 lib/awspec/helper/finder/apigateway.rb
awspec-1.17.3 lib/awspec/helper/finder/apigateway.rb
awspec-1.17.2 lib/awspec/helper/finder/apigateway.rb
awspec-1.17.1 lib/awspec/helper/finder/apigateway.rb
awspec-1.17.0 lib/awspec/helper/finder/apigateway.rb
awspec-1.16.1 lib/awspec/helper/finder/apigateway.rb
awspec-1.16.0 lib/awspec/helper/finder/apigateway.rb
awspec-1.15.3 lib/awspec/helper/finder/apigateway.rb
awspec-1.15.2 lib/awspec/helper/finder/apigateway.rb
awspec-1.15.1 lib/awspec/helper/finder/apigateway.rb
awspec-1.15.0 lib/awspec/helper/finder/apigateway.rb
awspec-1.14.1 lib/awspec/helper/finder/apigateway.rb
awspec-1.14.0 lib/awspec/helper/finder/apigateway.rb
awspec-1.13.0 lib/awspec/helper/finder/apigateway.rb
awspec-1.12.7 lib/awspec/helper/finder/apigateway.rb