head_object
Retrieve metadata for an S3 object without downloading its content. Specify bucket, key, ETag conditions, and version to fetch precise details efficiently.
Instructions
Retrieves metadata from an object without returning the object itself.
Args: bucket (str): The name of the bucket. key (str): The key (name) of the object. if_match (Optional[str]): Return object only if its ETag is the same. if_none_match (Optional[str]): Return object only if its ETag is different. version_id (Optional[str]): Version of the object.
Returns: str: JSON formatted S3 response.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bucket | Yes | ||
if_match | No | ||
if_none_match | No | ||
key | Yes | ||
version_id | No |