Sha256: a00b0075ae59969dfc087841b6942120695e71bf86ec37001dc9396f533fe048

Contents?: true

Size: 386 Bytes

Versions: 12

Compression:

Stored size: 386 Bytes

Contents

module Awspec::Helper
  module Finder
    module CognitoUserPool
      def find_userpool_by_name(pool_name)
        cognito_identity_provider_client.list_user_pools(max_results: 60).each do |response|
          pools = response.user_pools
          pools.each do |pool|
            return pool if 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_user_pool.rb
awspec-1.25.0 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.24.4 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.24.3 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.24.2 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.24.1 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.24.0 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.23.0 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.22.1 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.22.0 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.21.1 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.21.0 lib/awspec/helper/finder/cognito_user_pool.rb