BucketObject

class BucketObject : KotlinCustomResource

Stores a new object and metadata.

Properties

Link copied to clipboard

Access controls on the object.

Link copied to clipboard
val bucket: Output<String>
Link copied to clipboard
val cacheControl: Output<String>

Cache-Control directive for the object data. If omitted, and the object is accessible to all anonymous users, the default will be public, max-age=3600.

Link copied to clipboard
val componentCount: Output<Int>

Number of underlying components that make up this object. Components are accumulated by compose operations.

Link copied to clipboard

Content-Disposition of the object data.

Link copied to clipboard
val contentEncoding: Output<String>

If set, sets the contentEncoding property of the final object to this value. Setting this parameter is equivalent to setting the contentEncoding metadata property. This can be useful when uploading an object with uploadType=media to indicate the encoding of the content being uploaded.

Link copied to clipboard
val contentLanguage: Output<String>

Content-Language of the object data.

Link copied to clipboard
val contentType: Output<String>

Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream.

Link copied to clipboard
val crc32c: Output<String>

CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see Hashes and ETags: Best Practices.

Link copied to clipboard

Metadata of customer-supplied encryption key, if the object is encrypted by such a key.

Link copied to clipboard
val customTime: Output<String>

A timestamp in RFC 3339 format specified by the user for an object.

Link copied to clipboard
val etag: Output<String>

HTTP 1.1 Entity tag for the object.

Link copied to clipboard
val eventBasedHold: Output<Boolean>

Whether an object is under event-based hold. Event-based hold is a way to retain objects until an event occurs, which is signified by the hold's release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is the loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false.

Link copied to clipboard
val generation: Output<String>

The content generation of this object. Used for object versioning.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.

Link copied to clipboard

Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.

Link copied to clipboard

Makes the operation conditional on whether the object's current metageneration matches the given value.

Link copied to clipboard

Makes the operation conditional on whether the object's current metageneration does not match the given value.

Link copied to clipboard
val kind: Output<String>

The kind of item this is. For objects, this is always storage#object.

Link copied to clipboard
val kmsKeyName: Output<String>

Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.

Link copied to clipboard
val md5Hash: Output<String>

MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Hashes and ETags: Best Practices.

Link copied to clipboard
val mediaLink: Output<String>

Media download link.

Link copied to clipboard
val metadata: Output<Map<String, String>>

User-provided metadata, in key/value pairs.

Link copied to clipboard
val metageneration: Output<String>

The version of the metadata for this object at this generation. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the context of a particular generation of a particular object.

Link copied to clipboard
val name: Output<String>

Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.

Link copied to clipboard

The owner of the object. This will always be the uploader of the object.

Link copied to clipboard
val predefinedAcl: Output<String>?

Apply a predefined set of access controls to this object.

Link copied to clipboard
val projection: Output<String>?

Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A server-determined value that specifies the earliest time that the object's retention period expires. This value is in RFC 3339 format. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).

Link copied to clipboard
val selfLink: Output<String>

The link to this object.

Link copied to clipboard
val size: Output<String>

Content-Length of the data in bytes.

Link copied to clipboard
val storageClass: Output<String>

Storage class of the object.

Link copied to clipboard
val temporaryHold: Output<Boolean>

Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. A common use case of this flag is regulatory investigations where objects need to be retained while the investigation is ongoing. Note that unlike event-based hold, temporary hold does not impact retention expiration time of an object.

Link copied to clipboard
val timeCreated: Output<String>

The creation time of the object in RFC 3339 format.

Link copied to clipboard
val timeDeleted: Output<String>

The deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.

Link copied to clipboard

The time at which the object's storage class was last changed. When the object is initially created, it will be set to timeCreated.

Link copied to clipboard
val updated: Output<String>

The modification time of the object metadata in RFC 3339 format. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val userProject: Output<String>?

The project to be billed for this request. Required for Requester Pays buckets.