Class: Aws::Repostspace::Waiters::SpaceDeleted

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ SpaceDeleted

Returns a new instance of SpaceDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
# File 'gems/aws-sdk-repostspace/lib/aws-sdk-repostspace/waiters.rb', line 242

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 24,
    delay: 300,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_space,
      acceptors: [
        {
          "matcher" => "error",
          "state" => "success",
          "expected" => "ResourceNotFoundException"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "success",
          "expected" => "DELETED"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "failure",
          "expected" => "DELETE_FAILED"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "retry",
          "expected" => "DELETING"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :space_id (required, String)

    The ID of the private re:Post.

Returns:



280
281
282
# File 'gems/aws-sdk-repostspace/lib/aws-sdk-repostspace/waiters.rb', line 280

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