Class: Aws::S3::Waiters::ObjectNotExists
- Inherits:
-
Object
- Object
- Aws::S3::Waiters::ObjectNotExists
- Defined in:
- lib/aws-sdk-s3/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ ObjectNotExists
constructor
A new instance of ObjectNotExists.
-
#wait(params = {}) ⇒ Types::HeadObjectOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ObjectNotExists
Returns a new instance of ObjectNotExists.
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/aws-sdk-s3/waiters.rb', line 150 def initialize() @client = .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()) end |
Instance Attribute Details
#waiter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
173 174 175 |
# File 'lib/aws-sdk-s3/waiters.rb', line 173 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::HeadObjectOutput
Returns a response object which responds to the following methods:
-
#delete_marker => Boolean
-
#accept_ranges => String
-
#expiration => String
-
#restore => String
-
#last_modified => Time
-
#content_length => Integer
-
#etag => String
-
#missing_meta => Integer
-
#version_id => String
-
#cache_control => String
-
#content_disposition => String
-
#content_encoding => String
-
#content_language => String
-
#content_type => String
-
#expires => Time
-
#expires_string => String
-
#website_redirect_location => String
-
#server_side_encryption => String
-
#metadata => Hash<String,String>
-
#sse_customer_algorithm => String
-
#sse_customer_key_md5 => String
-
#ssekms_key_id => String
-
#storage_class => String
-
#request_charged => String
-
#replication_status => String
-
#parts_count => Integer
-
#object_lock_mode => String
-
#object_lock_retain_until_date => Time
-
#object_lock_legal_hold_status => String
168 169 170 |
# File 'lib/aws-sdk-s3/waiters.rb', line 168 def wait(params = {}) @waiter.wait(client: @client, params: params) end |