Method: Awspec::Helper::Finder::Apigateway#find_apigateway_by_id
- Defined in:
- lib/awspec/helper/finder/apigateway.rb
#find_apigateway_by_id(id) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/awspec/helper/finder/apigateway.rb', line 6 def find_apigateway_by_id(id) apis = [] apigateway_client.get_rest_apis(limit: 500).each do |response| apis += response.items end apis.each do |api| return api if api.id == id end nil end |