Class: Aws::NeptuneGraph::Waiters::GraphStopped

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/waiters.rb

Overview

Wait until Graph is Stopped

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ GraphStopped

Returns a new instance of GraphStopped.

Parameters:

  • options (Hash)

Options Hash (options):

  • :client (required, Client)
  • :max_attempts (Integer) — default: 90
  • :delay (Integer) — default: 20
  • :before_attempt (Proc)
  • :before_wait (Proc)


387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
# File 'gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/waiters.rb', line 387

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 90,
    delay: 20,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_graph,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "success",
          "expected" => "STOPPED"
        },
        {
          "matcher" => "path",
          "argument" => "status != 'STOPPING'",
          "state" => "failure",
          "expected" => true
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

#wait(params = {}) ⇒ Types::GetGraphOutput

Returns a response object which responds to the following methods:

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :graph_identifier (required, String)

    The unique identifier of the Neptune Analytics graph.

Returns:



414
415
416
# File 'gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/waiters.rb', line 414

def wait(params = {})
  @waiter.wait(client: @client, params: params)
end