Class: Aws::LocationService::Waiters::JobCompleted
- Inherits:
-
Object
- Object
- Aws::LocationService::Waiters::JobCompleted
- Defined in:
- gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ JobCompleted
constructor
A new instance of JobCompleted.
-
#wait(params = {}) ⇒ Types::GetJobResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ JobCompleted
Returns a new instance of JobCompleted.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/waiters.rb', line 84 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 5, delay: 60, poller: Aws::Waiters::Poller.new( operation_name: :get_job, acceptors: [ { "matcher" => "path", "argument" => "status", "state" => "success", "expected" => "Completed" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "Failed" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "Cancelled" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetJobResponse
Returns a response object which responds to the following methods:
- #action => String
- #action_options => Types::JobActionOptions
- #created_at => Time
- #ended_at => Time
- #error => Types::JobError
- #execution_role_arn => String
- #input_options => Types::JobInputOptions
- #job_arn => String
- #job_id => String
- #name => String
- #output_options => Types::JobOutputOptions
- #status => String
- #updated_at => Time
- #tags => Hash<String,String>
117 118 119 |
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/waiters.rb', line 117 def wait(params = {}) @waiter.wait(client: @client, params: params) end |