Class: Aws::NeptuneGraph::Waiters::ImportTaskSuccessful
- Inherits:
-
Object
- Object
- Aws::NeptuneGraph::Waiters::ImportTaskSuccessful
- Defined in:
- gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/waiters.rb
Overview
Wait until Import Task is Successful
Instance Method Summary collapse
-
#initialize(options) ⇒ ImportTaskSuccessful
constructor
A new instance of ImportTaskSuccessful.
-
#wait(params = {}) ⇒ Types::GetImportTaskOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ImportTaskSuccessful
Returns a new instance of ImportTaskSuccessful.
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 |
# File 'gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/waiters.rb', line 327 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 480, delay: 60, poller: Aws::Waiters::Poller.new( operation_name: :get_import_task, acceptors: [ { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "CANCELLING" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "CANCELLED" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "ROLLING_BACK" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "FAILED" }, { "matcher" => "path", "argument" => "status", "state" => "success", "expected" => "SUCCEEDED" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetImportTaskOutput
Returns a response object which responds to the following methods:
- #graph_id => String
- #task_id => String
- #source => String
- #format => String
- #role_arn => String
- #status => String
- #import_options => Types::ImportOptions
- #import_task_details => Types::ImportTaskDetails
- #attempt_number => Integer
- #status_reason => String
372 373 374 |
# File 'gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/waiters.rb', line 372 def wait(params = {}) @waiter.wait(client: @client, params: params) end |