pulumi_wasm_providers_gcp_mini::storage::bucket

Struct BucketResult

source
pub struct BucketResult {
Show 28 fields pub autoclass: Output<Option<BucketAutoclass>>, pub cors: Output<Option<Vec<BucketCor>>>, pub custom_placement_config: Output<Option<BucketCustomPlacementConfig>>, pub default_event_based_hold: Output<Option<bool>>, pub effective_labels: Output<HashMap<String, String>>, pub enable_object_retention: Output<Option<bool>>, pub encryption: Output<Option<BucketEncryption>>, pub force_destroy: Output<Option<bool>>, pub hierarchical_namespace: Output<Option<BucketHierarchicalNamespace>>, pub labels: Output<Option<HashMap<String, String>>>, pub lifecycle_rules: Output<Option<Vec<BucketLifecycleRule>>>, pub location: Output<String>, pub logging: Output<Option<BucketLogging>>, pub name: Output<String>, pub project: Output<String>, pub project_number: Output<i32>, pub public_access_prevention: Output<String>, pub pulumi_labels: Output<HashMap<String, String>>, pub requester_pays: Output<Option<bool>>, pub retention_policy: Output<Option<BucketRetentionPolicy>>, pub rpo: Output<String>, pub self_link: Output<String>, pub soft_delete_policy: Output<BucketSoftDeletePolicy>, pub storage_class: Output<Option<String>>, pub uniform_bucket_level_access: Output<bool>, pub url: Output<String>, pub versioning: Output<BucketVersioning>, pub website: Output<BucketWebsite>,
}

Fields§

§autoclass: Output<Option<BucketAutoclass>>

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

§cors: Output<Option<Vec<BucketCor>>>

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

§custom_placement_config: Output<Option<BucketCustomPlacementConfig>>

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.

§default_event_based_hold: Output<Option<bool>>

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

§effective_labels: Output<HashMap<String, String>>§enable_object_retention: Output<Option<bool>>

Enables object retention on a storage bucket.

§encryption: Output<Option<BucketEncryption>>

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

§force_destroy: Output<Option<bool>>

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.

§hierarchical_namespace: Output<Option<BucketHierarchicalNamespace>>

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.

§labels: Output<Option<HashMap<String, String>>>

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

§lifecycle_rules: Output<Option<Vec<BucketLifecycleRule>>>

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

§location: Output<String>§logging: Output<Option<BucketLogging>>

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

§name: Output<String>

The name of the bucket.

§project: Output<String>

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

§project_number: Output<i32>

The project number of the project in which the resource belongs.

§public_access_prevention: Output<String>

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

§pulumi_labels: Output<HashMap<String, String>>

The combination of labels configured directly on the resource and default labels configured on the provider.

§requester_pays: Output<Option<bool>>

Enables Requester Pays on a storage bucket.

§retention_policy: Output<Option<BucketRetentionPolicy>>

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

§rpo: Output<String>

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.

§self_link: Output<String>

The URI of the created resource.

§soft_delete_policy: Output<BucketSoftDeletePolicy>

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

§storage_class: Output<Option<String>>

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

§uniform_bucket_level_access: Output<bool>

Enables Uniform bucket-level access access to a bucket.

§url: Output<String>

The base URL of the bucket, in the format gs://<bucket-name>.

§versioning: Output<BucketVersioning>

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

§website: Output<BucketWebsite>

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.