Class: Aws::S3::Waiters::ObjectExists
- Inherits:
-
Object
- Object
- Aws::S3::Waiters::ObjectExists
- Defined in:
- gems/aws-sdk-s3/lib/aws-sdk-s3/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ ObjectExists
constructor
A new instance of ObjectExists.
-
#wait(params = {}) ⇒ Types::HeadObjectOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ObjectExists
Returns a new instance of ObjectExists.
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/waiters.rb', line 174 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" => 200, "matcher" => "status", "state" => "success" }, { "expected" => 404, "matcher" => "status", "state" => "retry" } ] ) }.merge()) 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
- #archive_status => String
- #last_modified => Time
- #content_length => Integer
- #checksum_crc32 => String
- #checksum_crc32c => String
- #checksum_sha1 => String
- #checksum_sha256 => String
- #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
- #bucket_key_enabled => Boolean
- #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
199 200 201 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/waiters.rb', line 199 def wait(params = {}) @waiter.wait(client: @client, params: params) end |