class Aws::S3::Types::HeadObjectRequest


@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObjectRequest AWS API Documentation
@return [String]
(Access Denied)‘ error.
by a different account, the request will fail with an HTTP `403
The account ID of the expected bucket owner. If the bucket is owned
@!attribute [rw] expected_bucket_owner
@return [Integer]
and the number of parts in this object.
for the part specified. Useful querying about the size of the part
between 1 and 10,000. Effectively performs a ’ranged’ HEAD request
Part number of the object being read. This is a positive integer
@!attribute [rw] part_number
@return [String]<br>: docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html<br><br><br><br>in the *Amazon S3 User Guide*.
pays buckets, see [Downloading Objects in Requestor Pays Buckets][1]
requests. For information about downloading objects from requester
request. Bucket owners need not specify this parameter in their
Confirms that the requester knows that they will be charged for the
@!attribute [rw] request_payer
@return [String]
to ensure that the encryption key was transmitted without error.
RFC 1321. Amazon S3 uses this header for a message integrity check
Specifies the 128-bit MD5 digest of the encryption key according to
@!attribute [rw] sse_customer_key_md5
@return [String]
‘x-amz-server-side-encryption-customer-algorithm` header.
key must be appropriate for use with the algorithm specified in the
it is discarded; Amazon S3 does not store the encryption key. The
in encrypting data. This value is used to store the object and then
Specifies the customer-provided encryption key for Amazon S3 to use
@!attribute [rw] sse_customer_key
@return [String]
example, AES256).
Specifies the algorithm to use to when encrypting the object (for
@!attribute [rw] sse_customer_algorithm
@return [String]
VersionId used to reference a specific version of the object.
@!attribute [rw] version_id
@return [String]<br>: www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35<br><br><br><br></note>
`GET` request.
<note markdown=“1”> Amazon S3 doesn’t support retrieving multiple ranges of data per

[http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35][1].
information about the HTTP Range header, see
Downloads the specified range bytes of an object. For more
@!attribute [rw] range
@return [String]
The object key.
@!attribute [rw] key
@return [Time]
specified time, otherwise return a 412 (precondition failed).
Return the object only if it has not been modified since the
@!attribute [rw] if_unmodified_since
@return [String]
the one specified, otherwise return a 304 (not modified).
Return the object only if its entity tag (ETag) is different from
@!attribute [rw] if_none_match
@return [Time]
time, otherwise return a 304 (not modified).
Return the object only if it has been modified since the specified
@!attribute [rw] if_modified_since
@return [String]
one specified, otherwise return a 412 (precondition failed).
Return the object only if its entity tag (ETag) is the same as the
@!attribute [rw] if_match
@return [String]<br>: docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html<br>[1]: docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html<br><br><br><br>Outposts][2] in the *Amazon S3 User Guide*.
more information about S3 on Outposts ARNs, see [Using S3 on
you provide the Outposts bucket ARN in place of the bucket name. For
When using this action using S3 on Outposts through the AWS SDKs,
AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com.
takes the form
requests to the S3 on Outposts hostname. The S3 on Outposts hostname
When using this action with Amazon S3 on Outposts, you must direct<br><br>points] in the *Amazon S3 User Guide*.
more information about access point ARNs, see [Using access
you provide the access point ARN in place of the bucket name. For
When using this action with an access point through the AWS SDKs,
AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
takes the form
requests to the access point hostname. The access point hostname
When using this action with an access point, you must direct
The name of the bucket containing the object.
@!attribute [rw] bucket
}
expected_bucket_owner: “AccountId”,
part_number: 1,
request_payer: “requester”, # accepts requester
sse_customer_key_md5: “SSECustomerKeyMD5”,
sse_customer_key: “SSECustomerKey”,
sse_customer_algorithm: “SSECustomerAlgorithm”,
version_id: “ObjectVersionId”,
range: “Range”,
key: “ObjectKey”, # required
if_unmodified_since: Time.now,
if_none_match: “IfNoneMatch”,
if_modified_since: Time.now,
if_match: “IfMatch”,
bucket: “BucketName”, # required
{
data as a hash:
@note When making an API call, you may pass HeadObjectRequest