Class: Aws::S3::Waiters::ObjectNotExists
- Inherits:
-
Object
- Object
- Aws::S3::Waiters::ObjectNotExists
- Defined in:
- gems/aws-sdk-s3/lib/aws-sdk-s3/waiters.rb
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.
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/waiters.rb', line 216 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 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
234 235 236 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/waiters.rb', line 234 def wait(params = {}) @waiter.wait(client: @client, params: params) end |