Class: Aws::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Client
- Defined in:
- lib/aws-sdk-core/client.rb
Overview
Base class for all Aws service clients.
Class Attribute Summary collapse
- .identifier ⇒ Symbol private
- .paginators ⇒ Paging::Provider private
- .waiters ⇒ Waiters::Provider private
Attributes inherited from Seahorse::Client::Base
Class Method Summary collapse
Instance Method Summary collapse
-
#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Seahorse::Client::Response
Waits until a particular condition is satisfied.
-
#waiter_names ⇒ Array<Symbol>
Returns the list of supported waiters.
Methods inherited from Seahorse::Client::Base
add_plugin, api, #build_request, clear_plugins, #initialize, #inspect, #method_missing, new, #operation, #operation_names, plugins, remove_plugin, #respond_to?, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response, #handler_for, #new_handler
Constructor Details
This class inherits a constructor from Seahorse::Client::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Seahorse::Client::Base
Class Attribute Details
.identifier ⇒ Symbol
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
88 89 90 |
# File 'lib/aws-sdk-core/client.rb', line 88 def identifier @identifier end |
.paginators ⇒ Paging::Provider
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
92 93 94 |
# File 'lib/aws-sdk-core/client.rb', line 92 def paginators @paginators end |
.waiters ⇒ Waiters::Provider
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
96 97 98 |
# File 'lib/aws-sdk-core/client.rb', line 96 def waiters @waiters end |
Class Method Details
.define(svc_name, options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
99 100 101 102 103 104 105 |
# File 'lib/aws-sdk-core/client.rb', line 99 def define(svc_name, ) client_class = Class.new(self) client_class.identifier = svc_name.downcase.to_sym client_class.set_api(load_api([:api])) Api::ServiceCustomizations.apply(client_class) client_class end |
Instance Method Details
#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Seahorse::Client::Response
Waits until a particular condition is satisfied. This works by polling a client request and checking for particular response data or errors. Waiters each have a default duration max attempts which are configurable. Additionally, you can register callbacks and stop waiters by throwing ‘:success` or `:failure`.
72 73 74 75 76 |
# File 'lib/aws-sdk-core/client.rb', line 72 def wait_until(waiter_name, params = {}, &block) waiter = self.class.waiters.waiter(waiter_name) yield(waiter) if block_given? waiter.wait(self, params) end |
#waiter_names ⇒ Array<Symbol>
Returns the list of supported waiters.
80 81 82 |
# File 'lib/aws-sdk-core/client.rb', line 80 def waiter_names self.class.waiters.waiter_names end |