pulumi_wasm_providers_gcp_mini::storage::bucket_object

Struct BucketObjectArgsBuilder

source
pub struct BucketObjectArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> BucketObjectArgsBuilder<S>

source

pub fn build_struct(self) -> BucketObjectArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn bucket( self, value: impl Into<Output<String>>, ) -> BucketObjectArgsBuilder<SetBucket<S>>
where S::Bucket: IsUnset,

Required.

The name of the containing bucket.

source

pub fn cache_control( self, value: impl Into<Output<Option<String>>>, ) -> BucketObjectArgsBuilder<SetCacheControl<S>>
where S::CacheControl: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_cache_control( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketObjectArgsBuilder<SetCacheControl<S>>
where S::CacheControl: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn content( self, value: impl Into<Output<Option<String>>>, ) -> BucketObjectArgsBuilder<SetContent<S>>
where S::Content: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Data as string to be uploaded. Must be defined if source is not. Note: The content field is marked as sensitive.

source

pub fn maybe_content( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketObjectArgsBuilder<SetContent<S>>
where S::Content: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Data as string to be uploaded. Must be defined if source is not. Note: The content field is marked as sensitive.

source

pub fn content_disposition( self, value: impl Into<Output<Option<String>>>, ) -> BucketObjectArgsBuilder<SetContentDisposition<S>>
where S::ContentDisposition: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Content-Disposition of the object data.

source

pub fn maybe_content_disposition( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketObjectArgsBuilder<SetContentDisposition<S>>
where S::ContentDisposition: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Content-Disposition of the object data.

source

pub fn content_encoding( self, value: impl Into<Output<Option<String>>>, ) -> BucketObjectArgsBuilder<SetContentEncoding<S>>
where S::ContentEncoding: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Content-Encoding of the object data.

source

pub fn maybe_content_encoding( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketObjectArgsBuilder<SetContentEncoding<S>>
where S::ContentEncoding: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Content-Encoding of the object data.

source

pub fn content_language( self, value: impl Into<Output<Option<String>>>, ) -> BucketObjectArgsBuilder<SetContentLanguage<S>>
where S::ContentLanguage: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Content-Language of the object data.

source

pub fn maybe_content_language( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketObjectArgsBuilder<SetContentLanguage<S>>
where S::ContentLanguage: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Content-Language of the object data.

source

pub fn content_type( self, value: impl Into<Output<Option<String>>>, ) -> BucketObjectArgsBuilder<SetContentType<S>>
where S::ContentType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Content-Type of the object data. Defaults to “application/octet-stream” or “text/plain; charset=utf-8”.

source

pub fn maybe_content_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketObjectArgsBuilder<SetContentType<S>>
where S::ContentType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Content-Type of the object data. Defaults to “application/octet-stream” or “text/plain; charset=utf-8”.

source

pub fn customer_encryption( self, value: impl Into<Output<Option<BucketObjectCustomerEncryption>>>, ) -> BucketObjectArgsBuilder<SetCustomerEncryption<S>>
where S::CustomerEncryption: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::storage::BucketObjectCustomerEncryption>,
> as Default>::default()

Enables object encryption with Customer-Supplied Encryption Key (CSEK). Google documentation about CSEK. Structure is documented below.

source

pub fn maybe_customer_encryption( self, value: Option<impl Into<Output<Option<BucketObjectCustomerEncryption>>>>, ) -> BucketObjectArgsBuilder<SetCustomerEncryption<S>>
where S::CustomerEncryption: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::storage::BucketObjectCustomerEncryption>,
> as Default>::default()

Enables object encryption with Customer-Supplied Encryption Key (CSEK). Google documentation about CSEK. Structure is documented below.

source

pub fn detect_md5hash( self, value: impl Into<Output<Option<String>>>, ) -> BucketObjectArgsBuilder<SetDetectMd5hash<S>>
where S::DetectMd5hash: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

source

pub fn maybe_detect_md5hash( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketObjectArgsBuilder<SetDetectMd5hash<S>>
where S::DetectMd5hash: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

source

pub fn event_based_hold( self, value: impl Into<Output<Option<bool>>>, ) -> BucketObjectArgsBuilder<SetEventBasedHold<S>>
where S::EventBasedHold: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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).

source

pub fn maybe_event_based_hold( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> BucketObjectArgsBuilder<SetEventBasedHold<S>>
where S::EventBasedHold: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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).

source

pub fn kms_key_name( self, value: impl Into<Output<Option<String>>>, ) -> BucketObjectArgsBuilder<SetKmsKeyName<S>>
where S::KmsKeyName: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The resource name of the Cloud KMS key that will be used to encrypt the object.

source

pub fn maybe_kms_key_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketObjectArgsBuilder<SetKmsKeyName<S>>
where S::KmsKeyName: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The resource name of the Cloud KMS key that will be used to encrypt the object.

source

pub fn metadata( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> BucketObjectArgsBuilder<SetMetadata<S>>
where S::Metadata: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

User-provided metadata, in key/value pairs.

One of the following is required:

source

pub fn maybe_metadata( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> BucketObjectArgsBuilder<SetMetadata<S>>
where S::Metadata: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

User-provided metadata, in key/value pairs.

One of the following is required:

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> BucketObjectArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The name of the object. If you’re interpolating the name of this object, see output_name instead.

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketObjectArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The name of the object. If you’re interpolating the name of this object, see output_name instead.

source

pub fn retention( self, value: impl Into<Output<Option<BucketObjectRetention>>>, ) -> BucketObjectArgsBuilder<SetRetention<S>>
where S::Retention: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::storage::BucketObjectRetention>,
> as Default>::default()

The object retention settings for the object. The retention settings allow an object to be retained until a provided date. Structure is documented below.

source

pub fn maybe_retention( self, value: Option<impl Into<Output<Option<BucketObjectRetention>>>>, ) -> BucketObjectArgsBuilder<SetRetention<S>>
where S::Retention: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::storage::BucketObjectRetention>,
> as Default>::default()

The object retention settings for the object. The retention settings allow an object to be retained until a provided date. Structure is documented below.

source

pub fn source( self, value: impl Into<Output<Option<String>>>, ) -> BucketObjectArgsBuilder<SetSource<S>>
where S::Source: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

A path to the data you want to upload. Must be defined if content is not.


source

pub fn maybe_source( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketObjectArgsBuilder<SetSource<S>>
where S::Source: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

A path to the data you want to upload. Must be defined if content is not.


source

pub fn storage_class( self, value: impl Into<Output<Option<String>>>, ) -> BucketObjectArgsBuilder<SetStorageClass<S>>
where S::StorageClass: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The StorageClass of the new bucket object. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE. If not provided, this defaults to the bucket’s default storage class or to a standard class.

source

pub fn maybe_storage_class( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketObjectArgsBuilder<SetStorageClass<S>>
where S::StorageClass: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The StorageClass of the new bucket object. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE. If not provided, this defaults to the bucket’s default storage class or to a standard class.

source

pub fn temporary_hold( self, value: impl Into<Output<Option<bool>>>, ) -> BucketObjectArgsBuilder<SetTemporaryHold<S>>
where S::TemporaryHold: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites.

source

pub fn maybe_temporary_hold( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> BucketObjectArgsBuilder<SetTemporaryHold<S>>
where S::TemporaryHold: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.