Sha256: 90a2824712b3c190863093ac5031297857a08b54343f0cb17d3c44790e697981

Contents?: true

Size: 407 Bytes

Versions: 12

Compression:

Stored size: 407 Bytes

Contents

module Awspec::Helper
  module Finder
    module CognitoIdentityPool
      def find_identitypool_by_name(pool_name)
        cognito_identity_client.list_identity_pools(max_results: 60).each do |response|
          pools = response.identity_pools
          pools.each do |pool|
            return pool if pool.identity_pool_name == pool_name
          end
        end
        nil
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
awspec-1.25.1 lib/awspec/helper/finder/cognito_identity_pool.rb
awspec-1.25.0 lib/awspec/helper/finder/cognito_identity_pool.rb
awspec-1.24.4 lib/awspec/helper/finder/cognito_identity_pool.rb
awspec-1.24.3 lib/awspec/helper/finder/cognito_identity_pool.rb
awspec-1.24.2 lib/awspec/helper/finder/cognito_identity_pool.rb
awspec-1.24.1 lib/awspec/helper/finder/cognito_identity_pool.rb
awspec-1.24.0 lib/awspec/helper/finder/cognito_identity_pool.rb
awspec-1.23.0 lib/awspec/helper/finder/cognito_identity_pool.rb
awspec-1.22.1 lib/awspec/helper/finder/cognito_identity_pool.rb
awspec-1.22.0 lib/awspec/helper/finder/cognito_identity_pool.rb
awspec-1.21.1 lib/awspec/helper/finder/cognito_identity_pool.rb
awspec-1.21.0 lib/awspec/helper/finder/cognito_identity_pool.rb