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