You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: `Enables uniform bucket-level access on a bucket.`,
367
367
},
368
+
"custom_placement_config": {
369
+
Type: schema.TypeList,
370
+
Optional: true,
371
+
MaxItems: 1,
372
+
Elem: &schema.Resource{
373
+
Schema: map[string]*schema.Schema{
374
+
"data_locations": {
375
+
Type: schema.TypeSet,
376
+
Required: true,
377
+
ForceNew: true,
378
+
MaxItems: 2,
379
+
MinItems: 2,
380
+
Elem: &schema.Schema{
381
+
Type: schema.TypeString,
382
+
},
383
+
Description: `The list of individual regions that comprise a dual-region bucket. See the docs for a list of acceptable regions. Note: If any of the data_locations changes, it will recreate the bucket.`,
384
+
},
385
+
},
386
+
},
387
+
Description: `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.`,
388
+
},
368
389
},
369
390
UseJSONNumber: true,
370
391
}
@@ -482,6 +503,10 @@ func resourceStorageBucketCreate(d *schema.ResourceData, meta interface{}) error
Copy file name to clipboardExpand all lines: website/docs/r/storage_bucket.html.markdown
+6
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,8 @@ The following arguments are supported:
101
101
102
102
*`uniform_bucket_level_access` - (Optional, Default: false) Enables [Uniform bucket-level access](https://cloud.google.com/storage/docs/uniform-bucket-level-access) access to a bucket.
103
103
104
+
*`custom_placement_config` - (Optional) 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](#nested_custom_placement_config).
*`action` - (Required) The Lifecycle Rule's action configuration. A single block of this type is supported. Structure is [documented below](#nested_action).
@@ -189,6 +191,10 @@ The following arguments are supported:
189
191
state of the project.
190
192
You should take care for race conditions when the same Terraform manages IAM policy on the Cloud KMS crypto key. See the data source page for more details.
*`data_locations` - (Required) The list of individual regions that comprise a dual-region bucket. See [Cloud Storage bucket locations](https://cloud.google.com/storage/docs/dual-regions#availability) for a list of acceptable regions. **Note**: If any of the data_locations changes, it will [recreate the bucket](https://cloud.google.com/storage/docs/locations#key-concepts).
197
+
192
198
## Attributes Reference
193
199
194
200
In addition to the arguments listed above, the following computed attributes are
0 commit comments