GetObjectResult

data class GetObjectResult(val body: String, val bucket: String, val bucketKeyEnabled: Boolean, val cacheControl: String, val contentDisposition: String, val contentEncoding: String, val contentLanguage: String, val contentLength: Int, val contentType: String, val etag: String, val expiration: String, val expires: String, val id: String, val key: String, val lastModified: String, val metadata: Map<String, String>, val objectLockLegalHoldStatus: String, val objectLockMode: String, val objectLockRetainUntilDate: String, val range: String? = null, val serverSideEncryption: String, val sseKmsKeyId: String, val storageClass: String, val tags: Map<String, String>, val versionId: String, val websiteRedirectLocation: String)

A collection of values returned by getObject.

Constructors

Link copied to clipboard
constructor(body: String, bucket: String, bucketKeyEnabled: Boolean, cacheControl: String, contentDisposition: String, contentEncoding: String, contentLanguage: String, contentLength: Int, contentType: String, etag: String, expiration: String, expires: String, id: String, key: String, lastModified: String, metadata: Map<String, String>, objectLockLegalHoldStatus: String, objectLockMode: String, objectLockRetainUntilDate: String, range: String? = null, serverSideEncryption: String, sseKmsKeyId: String, storageClass: String, tags: Map<String, String>, versionId: String, websiteRedirectLocation: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Object data (see limitations above to understand cases in which this field is actually available)

Link copied to clipboard
Link copied to clipboard

(Optional) Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.

Link copied to clipboard

Caching behavior along the request/reply chain.

Link copied to clipboard

Presentational information for the object.

Link copied to clipboard

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.

Link copied to clipboard

Language the content is in.

Link copied to clipboard

Size of the body in bytes.

Link copied to clipboard

Standard MIME type describing the format of the object data.

Link copied to clipboard

ETag generated for the object (an MD5 sum of the object content in case it's not encrypted)

Link copied to clipboard

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.

Link copied to clipboard

Date and time at which the object is no longer cacheable.

Link copied to clipboard
val id: String

The provider-assigned unique ID for this managed resource.

Link copied to clipboard
val key: String
Link copied to clipboard

Last modified date of the object in RFC1123 format (e.g., Mon, 02 Jan 2006 15:04:05 MST)

Link copied to clipboard

Map of metadata stored with the object in S3

Link copied to clipboard

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.

Link copied to clipboard

Object lock retention mode currently in place for this object.

Link copied to clipboard

The date and time when this object's object lock will expire.

Link copied to clipboard
val range: String? = null
Link copied to clipboard

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.

Link copied to clipboard

If present, specifies the ID of the Key Management Service (KMS) master encryption key that was used for the object.

Link copied to clipboard

Storage class information of the object. Available for all objects except for Standard storage class objects.

Link copied to clipboard

Map of tags assigned to the object.

Link copied to clipboard

Latest version ID of the object returned.

Link copied to clipboard

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.