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>
The GCS location.
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.