pub struct GetObjectResult {Show 32 fields
pub arn: Output<String>,
pub body: Output<String>,
pub bucket: Output<String>,
pub bucket_key_enabled: Output<bool>,
pub cache_control: Output<String>,
pub checksum_crc32: Output<String>,
pub checksum_crc32c: Output<String>,
pub checksum_mode: Output<Option<String>>,
pub checksum_sha1: Output<String>,
pub checksum_sha256: Output<String>,
pub content_disposition: Output<String>,
pub content_encoding: Output<String>,
pub content_language: Output<String>,
pub content_length: Output<i32>,
pub content_type: Output<String>,
pub etag: Output<String>,
pub expiration: Output<String>,
pub expires: Output<String>,
pub id: Output<String>,
pub key: Output<String>,
pub last_modified: Output<String>,
pub metadata: Output<HashMap<String, String>>,
pub object_lock_legal_hold_status: Output<String>,
pub object_lock_mode: Output<String>,
pub object_lock_retain_until_date: Output<String>,
pub range: Output<Option<String>>,
pub server_side_encryption: Output<String>,
pub sse_kms_key_id: Output<String>,
pub storage_class: Output<String>,
pub tags: Output<HashMap<String, String>>,
pub version_id: Output<String>,
pub website_redirect_location: Output<String>,
}
Fields§
§arn: Output<String>
ARN of the object.
body: Output<String>
Object data (see limitations above to understand cases in which this field is actually available)
bucket: Output<String>
§bucket_key_enabled: Output<bool>
(Optional) Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
cache_control: Output<String>
Caching behavior along the request/reply chain.
checksum_crc32: Output<String>
The base64-encoded, 32-bit CRC32 checksum of the object.
checksum_crc32c: Output<String>
The base64-encoded, 32-bit CRC32C checksum of the object.
checksum_mode: Output<Option<String>>
§checksum_sha1: Output<String>
The base64-encoded, 160-bit SHA-1 digest of the object.
checksum_sha256: Output<String>
The base64-encoded, 256-bit SHA-256 digest of the object.
content_disposition: Output<String>
Presentational information for the object.
content_encoding: Output<String>
What content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
content_language: Output<String>
Language the content is in.
content_length: Output<i32>
Size of the body in bytes.
content_type: Output<String>
Standard MIME type describing the format of the object data.
etag: Output<String>
ETag generated for the object (an MD5 sum of the object content in case it’s not encrypted)
expiration: Output<String>
If the object expiration is configured (see object lifecycle management), the field includes this header. It includes the expiry-date and rule-id key value pairs providing object expiration information. The value of the rule-id is URL encoded.
expires: Output<String>
Date and time at which the object is no longer cacheable.
id: Output<String>
The provider-assigned unique ID for this managed resource.
key: Output<String>
§last_modified: Output<String>
Last modified date of the object in RFC1123 format (e.g., Mon, 02 Jan 2006 15:04:05 MST
)
metadata: Output<HashMap<String, String>>
Map of metadata stored with the object in S3. Keys are always returned in lowercase.
object_lock_legal_hold_status: Output<String>
Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object’s legal hold status.
object_lock_mode: Output<String>
Object lock retention mode currently in place for this object.
object_lock_retain_until_date: Output<String>
The date and time when this object’s object lock will expire.
range: Output<Option<String>>
§server_side_encryption: Output<String>
If the object is stored using server-side encryption (KMS or Amazon S3-managed encryption key), this field includes the chosen encryption and algorithm used.
sse_kms_key_id: Output<String>
If present, specifies the ID of the Key Management Service (KMS) master encryption key that was used for the object.
storage_class: Output<String>
Storage class information of the object. Available for all objects except for Standard
storage class objects.
Map of tags assigned to the object.
version_id: Output<String>
Latest version ID of the object returned.
website_redirect_location: Output<String>
If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.