Module: Awspec::Helper::Finder::CognitoUserPool
- Included in:
- Awspec::Helper::Finder
- Defined in:
- lib/awspec/helper/finder/cognito_user_pool.rb
Instance Method Summary collapse
Instance Method Details
#find_userpool_by_name(pool_name) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/awspec/helper/finder/cognito_user_pool.rb', line 6 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 |