aws s3api head-object
The HEAD operation retrieves metadata from an object without returning the object itself. AWS CLI reference
21 options Its page in the AWS CLI reference
Options
--bucketThe name of the bucket that contains the object.--checksum-modeTo retrieve the checksum, this parameter must be enabled.--expected-bucket-ownerThe account ID of the expected bucket owner.--if-matchReturn the object only if its entity tag (ETag) is the same as the one specified; otherwise, return a 412 (precondition failed) error.--if-modified-sinceReturn the object only if it has been modified since the specified time; otherwise, return a 304 (not modified) error.--if-none-matchReturn the object only if its entity tag (ETag) is different from the one specified; otherwise, return a 304 (not modified) error.--if-unmodified-sinceReturn the object only if it has not been modified since the specified time; otherwise, return a 412 (precondition failed) error.--keyThe object key.--part-numberPart number of the object being read.--rangeHeadObject returns only the metadata for an object.--request-payerConfirms that the requester knows that they will be charged for the request.--response-cache-controlSets the Cache-Control header of the response.--response-content-dispositionSets the Content-Disposition header of the response.--response-content-encodingSets the Content-Encoding header of the response.--response-content-languageSets the Content-Language header of the response.--response-content-typeSets the Content-Type header of the response.--response-expiresSets the Expires header of the response.--sse-customer-algorithmSpecifies the algorithm to use when encrypting the object (for example, AES256).--sse-customer-key-md5Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.--sse-customer-keySpecifies the customer-provided encryption key for Amazon S3 to use in encrypting data.--version-idVersion ID used to reference a specific version of the object.