Sha256: c6391e29742c5dbbb76ffc34daf85a402eaa080fb191d64a708a4aa09e4c1c62

Contents?: true

Size: 417 Bytes

Versions: 13

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

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

13 entries across 13 versions & 1 rubygems

Version Path
awspec-1.31.0 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.30.0 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.29.3 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.29.2 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.29.1 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.29.0 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.28.2 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.28.1 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.28.0 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.27.1 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.27.0 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.26.0 lib/awspec/helper/finder/cognito_user_pool.rb
awspec-1.25.2 lib/awspec/helper/finder/cognito_user_pool.rb