Class: Aws::NeptuneGraph::Waiters::GraphSnapshotDeleted

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

Overview

Wait until GraphSnapshot is Deleted

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ GraphSnapshotDeleted

Returns a new instance of GraphSnapshotDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# File 'gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/waiters.rb', line 238

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

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :snapshot_identifier (required, String)

    The ID of the snapshot to retrieve.

Returns:



264
265
266
# File 'gems/aws-sdk-neptunegraph/lib/aws-sdk-neptunegraph/waiters.rb', line 264

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