Class: Aws::NeptuneGraph::Waiters::ImportTaskCancelled
- Inherits:
-
Object
- Object
- Aws::NeptuneGraph::Waiters::ImportTaskCancelled
- Defined in:
- gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/waiters.rb
Overview
Wait until Import Task is Cancelled
Instance Method Summary collapse
-
#initialize(options) ⇒ ImportTaskCancelled
constructor
A new instance of ImportTaskCancelled.
-
#wait(params = {}) ⇒ Types::GetImportTaskOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ImportTaskCancelled
Returns a new instance of ImportTaskCancelled.
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 |
# File 'gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/waiters.rb', line 282 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 60, poller: Aws::Waiters::Poller.new( operation_name: :get_import_task, acceptors: [ { "matcher" => "path", "argument" => "status != 'CANCELLING' && status != 'CANCELLED'", "state" => "failure", "expected" => true }, { "matcher" => "path", "argument" => "status", "state" => "success", "expected" => "CANCELLED" } ] ) }.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
309 310 311 |
# File 'gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/waiters.rb', line 309 def wait(params = {}) @waiter.wait(client: @client, params: params) end |