Name | Version |
---|---|
>= 4.61.0 |
Name | Version |
---|---|
>= 4.61.0 | |
random | n/a |
No modules.
Name | Type |
---|---|
google_storage_bucket.main | resource |
random_id.main | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
byte_length | The byte length for the random ID. | number |
2 |
no |
enable_lifecycle_rule | Whether to enable lifecycle rule for the bucket. | bool |
false |
no |
force_destroy | Whether to force destroy the bucket. | bool |
false |
no |
labels | A map of labels for the bucket. | map(string) |
null |
no |
lifecycle_rule_action_storage_class | The storage class for the lifecycle rule action. | string |
"NEARLINE" |
no |
lifecycle_rule_action_type | The type for the lifecycle rule action. | string |
"Delete" |
no |
lifecycle_rule_condition_age | The age for the lifecycle rule condition. | number |
30 |
no |
lifecycle_rule_condition_created_before | The created before for the lifecycle rule condition. | string |
"2019-01-01" |
no |
lifecycle_rule_condition_num_newer_versions | The number of newer versions for the lifecycle rule condition. | number |
1 |
no |
lifecycle_rule_condition_with_state | Match to live and/or archived objects. Unversioned buckets have only live objects. | string |
"ANY" |
no |
location | The location for the bucket. | string |
n/a | yes |
name | The name for the bucket. | string |
n/a | yes |
project | The project for the bucket. | string |
n/a | yes |
public_access_prevention | Whether to enable public access prevention for the bucket. | string |
"inherited" |
no |
random_id | If a numeric random ID is to be used as suffix for resources names. | bool |
true |
no |
soft_delete_policy_retention_duration_seconds | The retention duration in seconds for the bucket. | number |
604800 |
no |
storage_class | The storage class for the bucket. | string |
"STANDARD" |
no |
uniform_bucket_level_access | Whether to enable uniform bucket-level access for the bucket. | bool |
false |
no |
versioning | Whether to enable versioning for the bucket. | bool |
false |
no |
Name | Description |
---|---|
name | The name of the bucket. |
self_link | The URI of the created resource. |
url | The bucket's website URL. |