pulumi_wasm_providers_gcp_mini::storage::bucket

Struct BucketArgsBuilder

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

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

Implementations§

source§

impl<S: State> BucketArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn autoclass( self, value: impl Into<Output<Option<BucketAutoclass>>>, ) -> BucketArgsBuilder<SetAutoclass<S>>
where S::Autoclass: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s Autoclass configuration. Structure is documented below.

source

pub fn maybe_autoclass( self, value: Option<impl Into<Output<Option<BucketAutoclass>>>>, ) -> BucketArgsBuilder<SetAutoclass<S>>
where S::Autoclass: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s Autoclass configuration. Structure is documented below.

source

pub fn cors( self, value: impl Into<Output<Option<Vec<BucketCor>>>>, ) -> BucketArgsBuilder<SetCors<S>>
where S::Cors: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s Cross-Origin Resource Sharing (CORS) configuration. Multiple blocks of this type are permitted. Structure is documented below.

source

pub fn maybe_cors( self, value: Option<impl Into<Output<Option<Vec<BucketCor>>>>>, ) -> BucketArgsBuilder<SetCors<S>>
where S::Cors: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s Cross-Origin Resource Sharing (CORS) configuration. Multiple blocks of this type are permitted. Structure is documented below.

source

pub fn custom_placement_config( self, value: impl Into<Output<Option<BucketCustomPlacementConfig>>>, ) -> BucketArgsBuilder<SetCustomPlacementConfig<S>>
where S::CustomPlacementConfig: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s custom location configuration, which specifies the individual regions that comprise a dual-region bucket. If the bucket is designated a single or multi-region, the parameters are empty. Structure is documented below.

source

pub fn maybe_custom_placement_config( self, value: Option<impl Into<Output<Option<BucketCustomPlacementConfig>>>>, ) -> BucketArgsBuilder<SetCustomPlacementConfig<S>>
where S::CustomPlacementConfig: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s custom location configuration, which specifies the individual regions that comprise a dual-region bucket. If the bucket is designated a single or multi-region, the parameters are empty. Structure is documented below.

source

pub fn default_event_based_hold( self, value: impl Into<Output<Option<bool>>>, ) -> BucketArgsBuilder<SetDefaultEventBasedHold<S>>
where S::DefaultEventBasedHold: IsUnset,

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

Whether or not to automatically apply an eventBasedHold to new objects added to the bucket.

source

pub fn maybe_default_event_based_hold( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> BucketArgsBuilder<SetDefaultEventBasedHold<S>>
where S::DefaultEventBasedHold: IsUnset,

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

Whether or not to automatically apply an eventBasedHold to new objects added to the bucket.

source

pub fn enable_object_retention( self, value: impl Into<Output<Option<bool>>>, ) -> BucketArgsBuilder<SetEnableObjectRetention<S>>
where S::EnableObjectRetention: IsUnset,

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

Enables object retention on a storage bucket.

source

pub fn maybe_enable_object_retention( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> BucketArgsBuilder<SetEnableObjectRetention<S>>
where S::EnableObjectRetention: IsUnset,

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

Enables object retention on a storage bucket.

source

pub fn encryption( self, value: impl Into<Output<Option<BucketEncryption>>>, ) -> BucketArgsBuilder<SetEncryption<S>>
where S::Encryption: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s encryption configuration. Structure is documented below.

source

pub fn maybe_encryption( self, value: Option<impl Into<Output<Option<BucketEncryption>>>>, ) -> BucketArgsBuilder<SetEncryption<S>>
where S::Encryption: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s encryption configuration. Structure is documented below.

source

pub fn force_destroy( self, value: impl Into<Output<Option<bool>>>, ) -> BucketArgsBuilder<SetForceDestroy<S>>
where S::ForceDestroy: IsUnset,

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

When deleting a bucket, this boolean option will delete all contained objects. If you try to delete a bucket that contains objects, the provider will fail that run.

source

pub fn maybe_force_destroy( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> BucketArgsBuilder<SetForceDestroy<S>>
where S::ForceDestroy: IsUnset,

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

When deleting a bucket, this boolean option will delete all contained objects. If you try to delete a bucket that contains objects, the provider will fail that run.

source

pub fn hierarchical_namespace( self, value: impl Into<Output<Option<BucketHierarchicalNamespace>>>, ) -> BucketArgsBuilder<SetHierarchicalNamespace<S>>
where S::HierarchicalNamespace: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s hierarchical namespace policy, which defines the bucket capability to handle folders in logical structure. Structure is documented below. To use this configuration, uniform_bucket_level_access must be enabled on bucket.

source

pub fn maybe_hierarchical_namespace( self, value: Option<impl Into<Output<Option<BucketHierarchicalNamespace>>>>, ) -> BucketArgsBuilder<SetHierarchicalNamespace<S>>
where S::HierarchicalNamespace: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s hierarchical namespace policy, which defines the bucket capability to handle folders in logical structure. Structure is documented below. To use this configuration, uniform_bucket_level_access must be enabled on bucket.

source

pub fn labels( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> BucketArgsBuilder<SetLabels<S>>
where S::Labels: IsUnset,

Optional (Some / Option setters). Default:

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

A map of key/value label pairs to assign to the bucket.

source

pub fn maybe_labels( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> BucketArgsBuilder<SetLabels<S>>
where S::Labels: IsUnset,

Optional (Some / Option setters). Default:

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

A map of key/value label pairs to assign to the bucket.

source

pub fn lifecycle_rules( self, value: impl Into<Output<Option<Vec<BucketLifecycleRule>>>>, ) -> BucketArgsBuilder<SetLifecycleRules<S>>
where S::LifecycleRules: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s Lifecycle Rules configuration. Multiple blocks of this type are permitted. Structure is documented below.

source

pub fn maybe_lifecycle_rules( self, value: Option<impl Into<Output<Option<Vec<BucketLifecycleRule>>>>>, ) -> BucketArgsBuilder<SetLifecycleRules<S>>
where S::LifecycleRules: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s Lifecycle Rules configuration. Multiple blocks of this type are permitted. Structure is documented below.

source

pub fn location( self, value: impl Into<Output<String>>, ) -> BucketArgsBuilder<SetLocation<S>>
where S::Location: IsUnset,

Required.

The GCS location.


source

pub fn logging( self, value: impl Into<Output<Option<BucketLogging>>>, ) -> BucketArgsBuilder<SetLogging<S>>
where S::Logging: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s Access & Storage Logs configuration. Structure is documented below.

source

pub fn maybe_logging( self, value: Option<impl Into<Output<Option<BucketLogging>>>>, ) -> BucketArgsBuilder<SetLogging<S>>
where S::Logging: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s Access & Storage Logs configuration. Structure is documented below.

source

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

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

The name of the bucket.

source

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

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

The name of the bucket.

source

pub fn project( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetProject<S>>
where S::Project: IsUnset,

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

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

source

pub fn maybe_project( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetProject<S>>
where S::Project: IsUnset,

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

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

source

pub fn public_access_prevention( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetPublicAccessPrevention<S>>
where S::PublicAccessPrevention: IsUnset,

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

Prevents public access to a bucket. Acceptable values are “inherited” or “enforced”. If “inherited”, the bucket uses public access prevention. only if the bucket is subject to the public access prevention organization policy constraint. Defaults to “inherited”.

source

pub fn maybe_public_access_prevention( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetPublicAccessPrevention<S>>
where S::PublicAccessPrevention: IsUnset,

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

Prevents public access to a bucket. Acceptable values are “inherited” or “enforced”. If “inherited”, the bucket uses public access prevention. only if the bucket is subject to the public access prevention organization policy constraint. Defaults to “inherited”.

source

pub fn requester_pays( self, value: impl Into<Output<Option<bool>>>, ) -> BucketArgsBuilder<SetRequesterPays<S>>
where S::RequesterPays: IsUnset,

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

Enables Requester Pays on a storage bucket.

source

pub fn maybe_requester_pays( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> BucketArgsBuilder<SetRequesterPays<S>>
where S::RequesterPays: IsUnset,

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

Enables Requester Pays on a storage bucket.

source

pub fn retention_policy( self, value: impl Into<Output<Option<BucketRetentionPolicy>>>, ) -> BucketArgsBuilder<SetRetentionPolicy<S>>
where S::RetentionPolicy: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration of the bucket’s data retention policy for how long objects in the bucket should be retained. Structure is documented below.

source

pub fn maybe_retention_policy( self, value: Option<impl Into<Output<Option<BucketRetentionPolicy>>>>, ) -> BucketArgsBuilder<SetRetentionPolicy<S>>
where S::RetentionPolicy: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration of the bucket’s data retention policy for how long objects in the bucket should be retained. Structure is documented below.

source

pub fn rpo( self, value: impl Into<Output<Option<String>>>, ) -> BucketArgsBuilder<SetRpo<S>>
where S::Rpo: IsUnset,

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

The recovery point objective for cross-region replication of the bucket. Applicable only for dual and multi-region buckets. "DEFAULT" sets default replication. "ASYNC_TURBO" value enables turbo replication, valid for dual-region buckets only. See Turbo Replication for more information. If rpo is not specified at bucket creation, it defaults to "DEFAULT" for dual and multi-region buckets. NOTE If used with single-region bucket, It will throw an error.

source

pub fn maybe_rpo( self, value: Option<impl Into<Output<Option<String>>>>, ) -> BucketArgsBuilder<SetRpo<S>>
where S::Rpo: IsUnset,

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

The recovery point objective for cross-region replication of the bucket. Applicable only for dual and multi-region buckets. "DEFAULT" sets default replication. "ASYNC_TURBO" value enables turbo replication, valid for dual-region buckets only. See Turbo Replication for more information. If rpo is not specified at bucket creation, it defaults to "DEFAULT" for dual and multi-region buckets. NOTE If used with single-region bucket, It will throw an error.

source

pub fn soft_delete_policy( self, value: impl Into<Output<Option<BucketSoftDeletePolicy>>>, ) -> BucketArgsBuilder<SetSoftDeletePolicy<S>>
where S::SoftDeletePolicy: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted. If it is not provided, by default Google Cloud Storage sets this to default soft delete policy

source

pub fn maybe_soft_delete_policy( self, value: Option<impl Into<Output<Option<BucketSoftDeletePolicy>>>>, ) -> BucketArgsBuilder<SetSoftDeletePolicy<S>>
where S::SoftDeletePolicy: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted. If it is not provided, by default Google Cloud Storage sets this to default soft delete policy

source

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

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

The Storage Class of the new bucket. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE.

source

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

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

The Storage Class of the new bucket. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE.

source

pub fn uniform_bucket_level_access( self, value: impl Into<Output<Option<bool>>>, ) -> BucketArgsBuilder<SetUniformBucketLevelAccess<S>>
where S::UniformBucketLevelAccess: IsUnset,

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

Enables Uniform bucket-level access access to a bucket.

source

pub fn maybe_uniform_bucket_level_access( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> BucketArgsBuilder<SetUniformBucketLevelAccess<S>>
where S::UniformBucketLevelAccess: IsUnset,

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

Enables Uniform bucket-level access access to a bucket.

source

pub fn versioning( self, value: impl Into<Output<Option<BucketVersioning>>>, ) -> BucketArgsBuilder<SetVersioning<S>>
where S::Versioning: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s Versioning configuration. Structure is documented below.

source

pub fn maybe_versioning( self, value: Option<impl Into<Output<Option<BucketVersioning>>>>, ) -> BucketArgsBuilder<SetVersioning<S>>
where S::Versioning: IsUnset,

Optional (Some / Option setters). Default:

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

The bucket’s Versioning configuration. Structure is documented below.

source

pub fn website( self, value: impl Into<Output<Option<BucketWebsite>>>, ) -> BucketArgsBuilder<SetWebsite<S>>
where S::Website: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration if the bucket acts as a website. Structure is documented below.

source

pub fn maybe_website( self, value: Option<impl Into<Output<Option<BucketWebsite>>>>, ) -> BucketArgsBuilder<SetWebsite<S>>
where S::Website: IsUnset,

Optional (Some / Option setters). Default:

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

Configuration if the bucket acts as a website. Structure is documented below.

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.