Class: Stax::Aws::APIGateway
Constant Summary
Constants inherited from Sdk
Class Method Summary collapse
Methods inherited from Sdk
Class Method Details
.api(id) ⇒ Object
13 14 15 |
# File 'lib/stax/aws/apigw.rb', line 13 def api(id) client.get_rest_api(rest_api_id: id) end |
.client ⇒ Object
9 10 11 |
# File 'lib/stax/aws/apigw.rb', line 9 def client @_client ||= ::Aws::APIGateway::Client.new end |
.resources(id) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/stax/aws/apigw.rb', line 21 def resources(id) position = nil items = [] loop do resp = client.get_resources(rest_api_id: id, position: position) items += resp.items position = resp.position break unless position end items end |
.stages(id, deployment = nil) ⇒ Object
17 18 19 |
# File 'lib/stax/aws/apigw.rb', line 17 def stages(id, deployment = nil) client.get_stages(rest_api_id: id, deployment_id: deployment).item end |