BucketObjectState constructor

const BucketObjectState({
  1. Input<String?>? bucket,
  2. Input<String?>? cacheControl,
  3. Input<String?>? content,
  4. Input<String?>? contentDisposition,
  5. Input<String?>? contentEncoding,
  6. Input<String?>? contentLanguage,
  7. Input<String?>? contentType,
  8. Input<BucketObjectContexts?>? contexts,
  9. Input<String?>? crc32c,
  10. Input<BucketObjectCustomerEncryption?>? customerEncryption,
  11. Input<String?>? deletionPolicy,
  12. Input<String?>? detectMd5hash,
  13. Input<bool?>? eventBasedHold,
  14. Input<bool?>? forceEmptyContentType,
  15. Input<int?>? generation,
  16. Input<String?>? kmsKeyName,
  17. Input<String?>? md5hash,
  18. Input<String?>? md5hexhash,
  19. Input<String?>? mediaLink,
  20. Input<Map<String, String>?>? metadata,
  21. Input<String?>? name,
  22. Input<String?>? outputName,
  23. Input<BucketObjectRetention?>? retention,
  24. Input<String?>? selfLink,
  25. Input? source,
  26. Input<String?>? sourceMd5hash,
  27. Input<String?>? storageClass,
  28. Input<bool?>? temporaryHold,
})

Creates a new BucketObjectState. bucket The name of the containing bucket. cacheControl Cache-Control content Data as string to be uploaded. Must be defined if source is not. Note: The content field is marked as sensitive. contentDisposition Content-Disposition of the object data. contentEncoding Content-Encoding of the object data. contentLanguage Content-Language of the object data. contentType Content-Type of the object data. Defaults to "application/octet-stream" or "text/plain; charset=utf-8". contexts Contexts attached to an object, in key-value pairs. For more information about object contexts, see Object contexts overview. Structure is documented below. crc32c (Computed) Base 64 CRC32 hash of the uploaded data. customerEncryption Enables object encryption with Customer-Supplied Encryption Key (CSEK). Google documentation about CSEK. deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to "DELETE". detectMd5hash Detect changes to local file or changes made outside of Terraform to the file stored on the server. MD5 hash of the data, encoded using base64. This field is not present for composite objects. For more information about using the MD5 hash, see Hashes and ETags: Best Practices. eventBasedHold 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). forceEmptyContentType When set to true, it ensure the object's Content-Type is empty. generation (Computed) The content generation of this object. Used for object versioning and soft delete. kmsKeyName The resource name of the Cloud KMS key that will be used to encrypt the object. md5hash (Computed) Base 64 MD5 hash of the uploaded data. md5hexhash (Computed) Hex value of md5hash[mediaLink] (Computed) A url reference to download this object. [metadata] User-provided metadata, in key/value pairs. [name] The name of the object. If you're interpolating the name of this object, seeoutputNameinstead. [outputName] (Computed) The name of the object. Use this field in interpolations withgcp.storage.ObjectACL` to recreate retention The object retention settings for the object. The retention settings allow an object to be retained until a provided date. Structure is documented below. selfLink (Computed) A url reference to this object. source A path to the data you want to upload. Must be defined sourceMd5hash User-provided md5hash to trigger replacement of object in storage bucket, Must be Base 64 MD5 hash of the object data. The usual way to set this is filemd5("file.zip"), where "file.zip" is the local filename storageClass The StorageClass of the new bucket object. temporaryHold Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites.

Implementation

const BucketObjectState({
  this.bucket,
  this.cacheControl,
  this.content,
  this.contentDisposition,
  this.contentEncoding,
  this.contentLanguage,
  this.contentType,
  this.contexts,
  this.crc32c,
  this.customerEncryption,
  this.deletionPolicy,
  this.detectMd5hash,
  this.eventBasedHold,
  this.forceEmptyContentType,
  this.generation,
  this.kmsKeyName,
  this.md5hash,
  this.md5hexhash,
  this.mediaLink,
  this.metadata,
  this.name,
  this.outputName,
  this.retention,
  this.selfLink,
  this.source,
  this.sourceMd5hash,
  this.storageClass,
  this.temporaryHold,
});