Method: Aws::S3::Waiters::ObjectNotExists#initialize

Defined in:
lib/aws-sdk-s3/waiters.rb

#initialize(options) ⇒ ObjectNotExists

Returns a new instance of ObjectNotExists.

Options Hash (options):

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


216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
# File 'lib/aws-sdk-s3/waiters.rb', line 216

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 20,
    delay: 5,
    poller: Aws::Waiters::Poller.new(
      operation_name: :head_object,
      acceptors: [{
        "expected" => 404,
        "matcher" => "status",
        "state" => "success"
      }]
    )
  }.merge(options))
end