# File lib/aws-sdk-resources/documenter/waiter_operation_documenter.rb, line 46 def api_request @resource_class.client_class.api.operation(api_request_name) end
# File lib/aws-sdk-resources/documenter/waiter_operation_documenter.rb, line 50 def api_request_name waiter.poller.operation_name end
# File lib/aws-sdk-resources/documenter/waiter_operation_documenter.rb, line 6 def docstring super + ' ' + "Waits until this #{resource_class_name} is #{state}. This method waits by polling {Client##{api_request_name}} until successful. An error is raised after a configurable number of failed checks. This waiter uses the following defaults: | Configuration | Default | |-----------------|------------------------| | `#delay` | #{waiter.delay} | | `#max_attempts` | #{waiter.max_attempts} | You can modify defaults and register callbacks by passing a block argument. @yieldparam [Waiters::Waiter] waiter @raise [Waiters::Errors::WaiterFailed] @see Client#wait_until ".lstrip end
# File lib/aws-sdk-resources/documenter/waiter_operation_documenter.rb, line 30 def return_message if @operation.path "Returns a copy of this #{resource_class_name} with loaded data." else "Returns a copy of this #{resource_class_name} that is not loaded." end end
# File lib/aws-sdk-resources/documenter/waiter_operation_documenter.rb, line 26 def return_tag tag("@return [#{resource_class_name}] #{return_message}") end
# File lib/aws-sdk-resources/documenter/waiter_operation_documenter.rb, line 38 def state operation_name.to_s.sub('wait_until_', '') end
# File lib/aws-sdk-resources/documenter/waiter_operation_documenter.rb, line 42 def waiter @resource_class.client_class.waiters.waiter(@operation.waiter_name) end