pulumiverse-scaleway 1.17.0__py3-none-any.whl → 1.18.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumiverse-scaleway might be problematic. Click here for more details.
- pulumiverse_scaleway/__init__.py +9 -0
- pulumiverse_scaleway/_inputs.py +133 -107
- pulumiverse_scaleway/account_project.py +17 -17
- pulumiverse_scaleway/account_ssh_key.py +8 -4
- pulumiverse_scaleway/container.py +146 -160
- pulumiverse_scaleway/container_cron.py +42 -77
- pulumiverse_scaleway/container_domain.py +30 -24
- pulumiverse_scaleway/container_namespace.py +42 -42
- pulumiverse_scaleway/container_token.py +36 -38
- pulumiverse_scaleway/container_trigger.py +45 -43
- pulumiverse_scaleway/function.py +112 -154
- pulumiverse_scaleway/function_cron.py +42 -60
- pulumiverse_scaleway/function_domain.py +56 -47
- pulumiverse_scaleway/function_namespace.py +49 -49
- pulumiverse_scaleway/function_token.py +36 -38
- pulumiverse_scaleway/function_trigger.py +45 -43
- pulumiverse_scaleway/get_account_project.py +14 -8
- pulumiverse_scaleway/get_account_ssh_key.py +14 -10
- pulumiverse_scaleway/get_availability_zones.py +17 -9
- pulumiverse_scaleway/get_container.py +50 -30
- pulumiverse_scaleway/get_container_namespace.py +26 -16
- pulumiverse_scaleway/get_function.py +20 -12
- pulumiverse_scaleway/get_function_namespace.py +14 -14
- pulumiverse_scaleway/get_object_bucket.py +22 -10
- pulumiverse_scaleway/get_object_bucket_policy.py +15 -9
- pulumiverse_scaleway/get_tem_domain.py +12 -1
- pulumiverse_scaleway/instance_server.py +32 -0
- pulumiverse_scaleway/object_bucket.py +67 -81
- pulumiverse_scaleway/object_bucket_acl.py +21 -17
- pulumiverse_scaleway/object_bucket_lock_configuration.py +21 -19
- pulumiverse_scaleway/object_bucket_policy.py +10 -8
- pulumiverse_scaleway/object_bucket_website_configuration.py +24 -22
- pulumiverse_scaleway/object_item.py +78 -62
- pulumiverse_scaleway/outputs.py +102 -73
- pulumiverse_scaleway/pulumi-plugin.json +1 -1
- pulumiverse_scaleway/sdb_database.py +26 -22
- pulumiverse_scaleway/tem_domain.py +75 -0
- pulumiverse_scaleway/vpc_private_network.py +2 -2
- pulumiverse_scaleway/vpc_route.py +577 -0
- {pulumiverse_scaleway-1.17.0.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/METADATA +1 -1
- {pulumiverse_scaleway-1.17.0.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/RECORD +43 -42
- {pulumiverse_scaleway-1.17.0.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/WHEEL +1 -1
- {pulumiverse_scaleway-1.17.0.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/top_level.txt +0 -0
|
@@ -34,21 +34,19 @@ class ObjectBucketArgs:
|
|
|
34
34
|
"""
|
|
35
35
|
The set of arguments for constructing a ObjectBucket resource.
|
|
36
36
|
:param pulumi.Input[str] acl: (Deprecated) The canned ACL you want to apply to the bucket.
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
|
|
38
|
+
> **Note:** The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation. Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
39
|
+
:param pulumi.Input[bool] force_destroy: Enable deletion of objects in the bucket before destroying, locked objects or under legal hold are also deleted and **not** recoverable
|
|
39
40
|
:param pulumi.Input[Sequence[pulumi.Input['ObjectBucketLifecycleRuleArgs']]] lifecycle_rules: Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
|
|
40
41
|
:param pulumi.Input[str] name: The name of the bucket.
|
|
41
42
|
:param pulumi.Input[bool] object_lock_enabled: Enable object lock
|
|
42
43
|
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the bucket is associated with.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
Please check the [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation for supported values.
|
|
46
|
-
:param pulumi.Input[str] region: The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket should be created.
|
|
47
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A list of tags (key / value) for the bucket.
|
|
44
|
+
:param pulumi.Input[str] region: The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket will be created.
|
|
45
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A list of tags (key/value) for the bucket.
|
|
48
46
|
|
|
49
47
|
* > **Important:** The Scaleway console does not support `key/value` tags yet, so only the tags' values will be displayed.
|
|
50
|
-
|
|
51
|
-
:param pulumi.Input['ObjectBucketVersioningArgs'] versioning:
|
|
48
|
+
If you make any change to your bucket's tags using the console, it will overwrite them with the format `value/value`.
|
|
49
|
+
:param pulumi.Input['ObjectBucketVersioningArgs'] versioning: Allow multiple versions of an object in the same bucket
|
|
52
50
|
"""
|
|
53
51
|
if acl is not None:
|
|
54
52
|
warnings.warn("""ACL attribute is deprecated. Please use the resource ObjectBucketAcl instead.""", DeprecationWarning)
|
|
@@ -80,6 +78,8 @@ class ObjectBucketArgs:
|
|
|
80
78
|
def acl(self) -> Optional[pulumi.Input[str]]:
|
|
81
79
|
"""
|
|
82
80
|
(Deprecated) The canned ACL you want to apply to the bucket.
|
|
81
|
+
|
|
82
|
+
> **Note:** The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation. Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
83
83
|
"""
|
|
84
84
|
return pulumi.get(self, "acl")
|
|
85
85
|
|
|
@@ -90,9 +90,6 @@ class ObjectBucketArgs:
|
|
|
90
90
|
@property
|
|
91
91
|
@pulumi.getter(name="corsRules")
|
|
92
92
|
def cors_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ObjectBucketCorsRuleArgs']]]]:
|
|
93
|
-
"""
|
|
94
|
-
A rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) (documented below).
|
|
95
|
-
"""
|
|
96
93
|
return pulumi.get(self, "cors_rules")
|
|
97
94
|
|
|
98
95
|
@cors_rules.setter
|
|
@@ -103,7 +100,7 @@ class ObjectBucketArgs:
|
|
|
103
100
|
@pulumi.getter(name="forceDestroy")
|
|
104
101
|
def force_destroy(self) -> Optional[pulumi.Input[bool]]:
|
|
105
102
|
"""
|
|
106
|
-
Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and **not** recoverable
|
|
103
|
+
Enable deletion of objects in the bucket before destroying, locked objects or under legal hold are also deleted and **not** recoverable
|
|
107
104
|
"""
|
|
108
105
|
return pulumi.get(self, "force_destroy")
|
|
109
106
|
|
|
@@ -152,9 +149,6 @@ class ObjectBucketArgs:
|
|
|
152
149
|
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
153
150
|
"""
|
|
154
151
|
`project_id`) The ID of the project the bucket is associated with.
|
|
155
|
-
|
|
156
|
-
The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation.
|
|
157
|
-
Please check the [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation for supported values.
|
|
158
152
|
"""
|
|
159
153
|
return pulumi.get(self, "project_id")
|
|
160
154
|
|
|
@@ -166,7 +160,7 @@ class ObjectBucketArgs:
|
|
|
166
160
|
@pulumi.getter
|
|
167
161
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
168
162
|
"""
|
|
169
|
-
The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket
|
|
163
|
+
The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket will be created.
|
|
170
164
|
"""
|
|
171
165
|
return pulumi.get(self, "region")
|
|
172
166
|
|
|
@@ -178,10 +172,10 @@ class ObjectBucketArgs:
|
|
|
178
172
|
@pulumi.getter
|
|
179
173
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
180
174
|
"""
|
|
181
|
-
A list of tags (key
|
|
175
|
+
A list of tags (key/value) for the bucket.
|
|
182
176
|
|
|
183
177
|
* > **Important:** The Scaleway console does not support `key/value` tags yet, so only the tags' values will be displayed.
|
|
184
|
-
|
|
178
|
+
If you make any change to your bucket's tags using the console, it will overwrite them with the format `value/value`.
|
|
185
179
|
"""
|
|
186
180
|
return pulumi.get(self, "tags")
|
|
187
181
|
|
|
@@ -193,7 +187,7 @@ class ObjectBucketArgs:
|
|
|
193
187
|
@pulumi.getter
|
|
194
188
|
def versioning(self) -> Optional[pulumi.Input['ObjectBucketVersioningArgs']]:
|
|
195
189
|
"""
|
|
196
|
-
|
|
190
|
+
Allow multiple versions of an object in the same bucket
|
|
197
191
|
"""
|
|
198
192
|
return pulumi.get(self, "versioning")
|
|
199
193
|
|
|
@@ -220,23 +214,21 @@ class _ObjectBucketState:
|
|
|
220
214
|
"""
|
|
221
215
|
Input properties used for looking up and filtering ObjectBucket resources.
|
|
222
216
|
:param pulumi.Input[str] acl: (Deprecated) The canned ACL you want to apply to the bucket.
|
|
217
|
+
|
|
218
|
+
> **Note:** The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation. Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
223
219
|
:param pulumi.Input[str] api_endpoint: API URL of the bucket
|
|
224
|
-
:param pulumi.Input[
|
|
225
|
-
:param pulumi.Input[
|
|
226
|
-
:param pulumi.Input[bool] force_destroy: Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and **not** recoverable
|
|
220
|
+
:param pulumi.Input[str] endpoint: The endpoint URL of the bucket.
|
|
221
|
+
:param pulumi.Input[bool] force_destroy: Enable deletion of objects in the bucket before destroying, locked objects or under legal hold are also deleted and **not** recoverable
|
|
227
222
|
:param pulumi.Input[Sequence[pulumi.Input['ObjectBucketLifecycleRuleArgs']]] lifecycle_rules: Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
|
|
228
223
|
:param pulumi.Input[str] name: The name of the bucket.
|
|
229
224
|
:param pulumi.Input[bool] object_lock_enabled: Enable object lock
|
|
230
225
|
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the bucket is associated with.
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
Please check the [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation for supported values.
|
|
234
|
-
:param pulumi.Input[str] region: The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket should be created.
|
|
235
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A list of tags (key / value) for the bucket.
|
|
226
|
+
:param pulumi.Input[str] region: The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket will be created.
|
|
227
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A list of tags (key/value) for the bucket.
|
|
236
228
|
|
|
237
229
|
* > **Important:** The Scaleway console does not support `key/value` tags yet, so only the tags' values will be displayed.
|
|
238
|
-
|
|
239
|
-
:param pulumi.Input['ObjectBucketVersioningArgs'] versioning:
|
|
230
|
+
If you make any change to your bucket's tags using the console, it will overwrite them with the format `value/value`.
|
|
231
|
+
:param pulumi.Input['ObjectBucketVersioningArgs'] versioning: Allow multiple versions of an object in the same bucket
|
|
240
232
|
"""
|
|
241
233
|
if acl is not None:
|
|
242
234
|
warnings.warn("""ACL attribute is deprecated. Please use the resource ObjectBucketAcl instead.""", DeprecationWarning)
|
|
@@ -272,6 +264,8 @@ class _ObjectBucketState:
|
|
|
272
264
|
def acl(self) -> Optional[pulumi.Input[str]]:
|
|
273
265
|
"""
|
|
274
266
|
(Deprecated) The canned ACL you want to apply to the bucket.
|
|
267
|
+
|
|
268
|
+
> **Note:** The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation. Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
275
269
|
"""
|
|
276
270
|
return pulumi.get(self, "acl")
|
|
277
271
|
|
|
@@ -294,9 +288,6 @@ class _ObjectBucketState:
|
|
|
294
288
|
@property
|
|
295
289
|
@pulumi.getter(name="corsRules")
|
|
296
290
|
def cors_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ObjectBucketCorsRuleArgs']]]]:
|
|
297
|
-
"""
|
|
298
|
-
A rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) (documented below).
|
|
299
|
-
"""
|
|
300
291
|
return pulumi.get(self, "cors_rules")
|
|
301
292
|
|
|
302
293
|
@cors_rules.setter
|
|
@@ -307,7 +298,7 @@ class _ObjectBucketState:
|
|
|
307
298
|
@pulumi.getter
|
|
308
299
|
def endpoint(self) -> Optional[pulumi.Input[str]]:
|
|
309
300
|
"""
|
|
310
|
-
The endpoint URL of the bucket
|
|
301
|
+
The endpoint URL of the bucket.
|
|
311
302
|
"""
|
|
312
303
|
return pulumi.get(self, "endpoint")
|
|
313
304
|
|
|
@@ -319,7 +310,7 @@ class _ObjectBucketState:
|
|
|
319
310
|
@pulumi.getter(name="forceDestroy")
|
|
320
311
|
def force_destroy(self) -> Optional[pulumi.Input[bool]]:
|
|
321
312
|
"""
|
|
322
|
-
Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and **not** recoverable
|
|
313
|
+
Enable deletion of objects in the bucket before destroying, locked objects or under legal hold are also deleted and **not** recoverable
|
|
323
314
|
"""
|
|
324
315
|
return pulumi.get(self, "force_destroy")
|
|
325
316
|
|
|
@@ -368,9 +359,6 @@ class _ObjectBucketState:
|
|
|
368
359
|
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
369
360
|
"""
|
|
370
361
|
`project_id`) The ID of the project the bucket is associated with.
|
|
371
|
-
|
|
372
|
-
The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation.
|
|
373
|
-
Please check the [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation for supported values.
|
|
374
362
|
"""
|
|
375
363
|
return pulumi.get(self, "project_id")
|
|
376
364
|
|
|
@@ -382,7 +370,7 @@ class _ObjectBucketState:
|
|
|
382
370
|
@pulumi.getter
|
|
383
371
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
384
372
|
"""
|
|
385
|
-
The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket
|
|
373
|
+
The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket will be created.
|
|
386
374
|
"""
|
|
387
375
|
return pulumi.get(self, "region")
|
|
388
376
|
|
|
@@ -394,10 +382,10 @@ class _ObjectBucketState:
|
|
|
394
382
|
@pulumi.getter
|
|
395
383
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
396
384
|
"""
|
|
397
|
-
A list of tags (key
|
|
385
|
+
A list of tags (key/value) for the bucket.
|
|
398
386
|
|
|
399
387
|
* > **Important:** The Scaleway console does not support `key/value` tags yet, so only the tags' values will be displayed.
|
|
400
|
-
|
|
388
|
+
If you make any change to your bucket's tags using the console, it will overwrite them with the format `value/value`.
|
|
401
389
|
"""
|
|
402
390
|
return pulumi.get(self, "tags")
|
|
403
391
|
|
|
@@ -409,7 +397,7 @@ class _ObjectBucketState:
|
|
|
409
397
|
@pulumi.getter
|
|
410
398
|
def versioning(self) -> Optional[pulumi.Input['ObjectBucketVersioningArgs']]:
|
|
411
399
|
"""
|
|
412
|
-
|
|
400
|
+
Allow multiple versions of an object in the same bucket
|
|
413
401
|
"""
|
|
414
402
|
return pulumi.get(self, "versioning")
|
|
415
403
|
|
|
@@ -435,8 +423,9 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
435
423
|
versioning: Optional[pulumi.Input[Union['ObjectBucketVersioningArgs', 'ObjectBucketVersioningArgsDict']]] = None,
|
|
436
424
|
__props__=None):
|
|
437
425
|
"""
|
|
438
|
-
|
|
439
|
-
|
|
426
|
+
The `ObjectBucket` resource allows you to create and manage buckets for [Scaleway Object storage](https://www.scaleway.com/en/docs/storage/object/).
|
|
427
|
+
|
|
428
|
+
Refer to the [dedicated documentation](https://www.scaleway.com/en/docs/storage/object/how-to/create-a-bucket/) for more information on Object Storage buckets.
|
|
440
429
|
|
|
441
430
|
## Example Usage
|
|
442
431
|
|
|
@@ -524,7 +513,7 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
524
513
|
|
|
525
514
|
## Import
|
|
526
515
|
|
|
527
|
-
Buckets can be imported using the `{region}/{bucketName}` identifier,
|
|
516
|
+
Buckets can be imported using the `{region}/{bucketName}` identifier, as shown below:
|
|
528
517
|
|
|
529
518
|
bash
|
|
530
519
|
|
|
@@ -532,7 +521,9 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
532
521
|
$ pulumi import scaleway:index/objectBucket:ObjectBucket some_bucket fr-par/some-bucket
|
|
533
522
|
```
|
|
534
523
|
|
|
535
|
-
|
|
524
|
+
~> **Important:** The `project_id` attribute has a particular behavior with s3 products because the s3 API is scoped by project.
|
|
525
|
+
|
|
526
|
+
If you are using a project different from the default one, you have to specify the project ID at the end of the import command.
|
|
536
527
|
|
|
537
528
|
bash
|
|
538
529
|
|
|
@@ -543,21 +534,19 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
543
534
|
:param str resource_name: The name of the resource.
|
|
544
535
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
545
536
|
:param pulumi.Input[str] acl: (Deprecated) The canned ACL you want to apply to the bucket.
|
|
546
|
-
|
|
547
|
-
|
|
537
|
+
|
|
538
|
+
> **Note:** The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation. Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
539
|
+
:param pulumi.Input[bool] force_destroy: Enable deletion of objects in the bucket before destroying, locked objects or under legal hold are also deleted and **not** recoverable
|
|
548
540
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ObjectBucketLifecycleRuleArgs', 'ObjectBucketLifecycleRuleArgsDict']]]] lifecycle_rules: Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
|
|
549
541
|
:param pulumi.Input[str] name: The name of the bucket.
|
|
550
542
|
:param pulumi.Input[bool] object_lock_enabled: Enable object lock
|
|
551
543
|
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the bucket is associated with.
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
Please check the [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation for supported values.
|
|
555
|
-
:param pulumi.Input[str] region: The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket should be created.
|
|
556
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A list of tags (key / value) for the bucket.
|
|
544
|
+
:param pulumi.Input[str] region: The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket will be created.
|
|
545
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A list of tags (key/value) for the bucket.
|
|
557
546
|
|
|
558
547
|
* > **Important:** The Scaleway console does not support `key/value` tags yet, so only the tags' values will be displayed.
|
|
559
|
-
|
|
560
|
-
:param pulumi.Input[Union['ObjectBucketVersioningArgs', 'ObjectBucketVersioningArgsDict']] versioning:
|
|
548
|
+
If you make any change to your bucket's tags using the console, it will overwrite them with the format `value/value`.
|
|
549
|
+
:param pulumi.Input[Union['ObjectBucketVersioningArgs', 'ObjectBucketVersioningArgsDict']] versioning: Allow multiple versions of an object in the same bucket
|
|
561
550
|
"""
|
|
562
551
|
...
|
|
563
552
|
@overload
|
|
@@ -566,8 +555,9 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
566
555
|
args: Optional[ObjectBucketArgs] = None,
|
|
567
556
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
568
557
|
"""
|
|
569
|
-
|
|
570
|
-
|
|
558
|
+
The `ObjectBucket` resource allows you to create and manage buckets for [Scaleway Object storage](https://www.scaleway.com/en/docs/storage/object/).
|
|
559
|
+
|
|
560
|
+
Refer to the [dedicated documentation](https://www.scaleway.com/en/docs/storage/object/how-to/create-a-bucket/) for more information on Object Storage buckets.
|
|
571
561
|
|
|
572
562
|
## Example Usage
|
|
573
563
|
|
|
@@ -655,7 +645,7 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
655
645
|
|
|
656
646
|
## Import
|
|
657
647
|
|
|
658
|
-
Buckets can be imported using the `{region}/{bucketName}` identifier,
|
|
648
|
+
Buckets can be imported using the `{region}/{bucketName}` identifier, as shown below:
|
|
659
649
|
|
|
660
650
|
bash
|
|
661
651
|
|
|
@@ -663,7 +653,9 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
663
653
|
$ pulumi import scaleway:index/objectBucket:ObjectBucket some_bucket fr-par/some-bucket
|
|
664
654
|
```
|
|
665
655
|
|
|
666
|
-
|
|
656
|
+
~> **Important:** The `project_id` attribute has a particular behavior with s3 products because the s3 API is scoped by project.
|
|
657
|
+
|
|
658
|
+
If you are using a project different from the default one, you have to specify the project ID at the end of the import command.
|
|
667
659
|
|
|
668
660
|
bash
|
|
669
661
|
|
|
@@ -747,23 +739,21 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
747
739
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
748
740
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
749
741
|
:param pulumi.Input[str] acl: (Deprecated) The canned ACL you want to apply to the bucket.
|
|
742
|
+
|
|
743
|
+
> **Note:** The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation. Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
750
744
|
:param pulumi.Input[str] api_endpoint: API URL of the bucket
|
|
751
|
-
:param pulumi.Input[
|
|
752
|
-
:param pulumi.Input[
|
|
753
|
-
:param pulumi.Input[bool] force_destroy: Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and **not** recoverable
|
|
745
|
+
:param pulumi.Input[str] endpoint: The endpoint URL of the bucket.
|
|
746
|
+
:param pulumi.Input[bool] force_destroy: Enable deletion of objects in the bucket before destroying, locked objects or under legal hold are also deleted and **not** recoverable
|
|
754
747
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ObjectBucketLifecycleRuleArgs', 'ObjectBucketLifecycleRuleArgsDict']]]] lifecycle_rules: Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
|
|
755
748
|
:param pulumi.Input[str] name: The name of the bucket.
|
|
756
749
|
:param pulumi.Input[bool] object_lock_enabled: Enable object lock
|
|
757
750
|
:param pulumi.Input[str] project_id: `project_id`) The ID of the project the bucket is associated with.
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
Please check the [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation for supported values.
|
|
761
|
-
:param pulumi.Input[str] region: The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket should be created.
|
|
762
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A list of tags (key / value) for the bucket.
|
|
751
|
+
:param pulumi.Input[str] region: The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket will be created.
|
|
752
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A list of tags (key/value) for the bucket.
|
|
763
753
|
|
|
764
754
|
* > **Important:** The Scaleway console does not support `key/value` tags yet, so only the tags' values will be displayed.
|
|
765
|
-
|
|
766
|
-
:param pulumi.Input[Union['ObjectBucketVersioningArgs', 'ObjectBucketVersioningArgsDict']] versioning:
|
|
755
|
+
If you make any change to your bucket's tags using the console, it will overwrite them with the format `value/value`.
|
|
756
|
+
:param pulumi.Input[Union['ObjectBucketVersioningArgs', 'ObjectBucketVersioningArgsDict']] versioning: Allow multiple versions of an object in the same bucket
|
|
767
757
|
"""
|
|
768
758
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
769
759
|
|
|
@@ -789,6 +779,8 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
789
779
|
def acl(self) -> pulumi.Output[Optional[str]]:
|
|
790
780
|
"""
|
|
791
781
|
(Deprecated) The canned ACL you want to apply to the bucket.
|
|
782
|
+
|
|
783
|
+
> **Note:** The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation. Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
792
784
|
"""
|
|
793
785
|
return pulumi.get(self, "acl")
|
|
794
786
|
|
|
@@ -803,16 +795,13 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
803
795
|
@property
|
|
804
796
|
@pulumi.getter(name="corsRules")
|
|
805
797
|
def cors_rules(self) -> pulumi.Output[Optional[Sequence['outputs.ObjectBucketCorsRule']]]:
|
|
806
|
-
"""
|
|
807
|
-
A rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) (documented below).
|
|
808
|
-
"""
|
|
809
798
|
return pulumi.get(self, "cors_rules")
|
|
810
799
|
|
|
811
800
|
@property
|
|
812
801
|
@pulumi.getter
|
|
813
802
|
def endpoint(self) -> pulumi.Output[str]:
|
|
814
803
|
"""
|
|
815
|
-
The endpoint URL of the bucket
|
|
804
|
+
The endpoint URL of the bucket.
|
|
816
805
|
"""
|
|
817
806
|
return pulumi.get(self, "endpoint")
|
|
818
807
|
|
|
@@ -820,7 +809,7 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
820
809
|
@pulumi.getter(name="forceDestroy")
|
|
821
810
|
def force_destroy(self) -> pulumi.Output[Optional[bool]]:
|
|
822
811
|
"""
|
|
823
|
-
Enable deletion of objects in bucket before destroying, locked objects or under legal hold are also deleted and **not** recoverable
|
|
812
|
+
Enable deletion of objects in the bucket before destroying, locked objects or under legal hold are also deleted and **not** recoverable
|
|
824
813
|
"""
|
|
825
814
|
return pulumi.get(self, "force_destroy")
|
|
826
815
|
|
|
@@ -853,9 +842,6 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
853
842
|
def project_id(self) -> pulumi.Output[str]:
|
|
854
843
|
"""
|
|
855
844
|
`project_id`) The ID of the project the bucket is associated with.
|
|
856
|
-
|
|
857
|
-
The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation.
|
|
858
|
-
Please check the [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation for supported values.
|
|
859
845
|
"""
|
|
860
846
|
return pulumi.get(self, "project_id")
|
|
861
847
|
|
|
@@ -863,7 +849,7 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
863
849
|
@pulumi.getter
|
|
864
850
|
def region(self) -> pulumi.Output[str]:
|
|
865
851
|
"""
|
|
866
|
-
The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket
|
|
852
|
+
The [region](https://www.scaleway.com/en/developers/api/#region-definition) in which the bucket will be created.
|
|
867
853
|
"""
|
|
868
854
|
return pulumi.get(self, "region")
|
|
869
855
|
|
|
@@ -871,10 +857,10 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
871
857
|
@pulumi.getter
|
|
872
858
|
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
873
859
|
"""
|
|
874
|
-
A list of tags (key
|
|
860
|
+
A list of tags (key/value) for the bucket.
|
|
875
861
|
|
|
876
862
|
* > **Important:** The Scaleway console does not support `key/value` tags yet, so only the tags' values will be displayed.
|
|
877
|
-
|
|
863
|
+
If you make any change to your bucket's tags using the console, it will overwrite them with the format `value/value`.
|
|
878
864
|
"""
|
|
879
865
|
return pulumi.get(self, "tags")
|
|
880
866
|
|
|
@@ -882,7 +868,7 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
882
868
|
@pulumi.getter
|
|
883
869
|
def versioning(self) -> pulumi.Output['outputs.ObjectBucketVersioning']:
|
|
884
870
|
"""
|
|
885
|
-
|
|
871
|
+
Allow multiple versions of an object in the same bucket
|
|
886
872
|
"""
|
|
887
873
|
return pulumi.get(self, "versioning")
|
|
888
874
|
|
|
@@ -31,7 +31,7 @@ class ObjectBucketAclArgs:
|
|
|
31
31
|
The set of arguments for constructing a ObjectBucketAcl resource.
|
|
32
32
|
:param pulumi.Input[str] bucket: The bucket's name or regional ID.
|
|
33
33
|
:param pulumi.Input['ObjectBucketAclAccessControlPolicyArgs'] access_control_policy: A configuration block that sets the ACL permissions for an object per grantee documented below.
|
|
34
|
-
:param pulumi.Input[str] acl: The canned ACL you want to apply to the bucket.
|
|
34
|
+
:param pulumi.Input[str] acl: The canned ACL you want to apply to the bucket. Refer to the [AWS Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation page to find a list of all the supported canned ACLs.
|
|
35
35
|
:param pulumi.Input[str] expected_bucket_owner: The project ID of the expected bucket owner.
|
|
36
36
|
:param pulumi.Input[str] project_id: The project_id you want to attach the resource to
|
|
37
37
|
:param pulumi.Input[str] region: The [region](https://www.scaleway.com/en/developers/api/#regions-and-zones) in which the bucket should be created.
|
|
@@ -76,7 +76,7 @@ class ObjectBucketAclArgs:
|
|
|
76
76
|
@pulumi.getter
|
|
77
77
|
def acl(self) -> Optional[pulumi.Input[str]]:
|
|
78
78
|
"""
|
|
79
|
-
The canned ACL you want to apply to the bucket.
|
|
79
|
+
The canned ACL you want to apply to the bucket. Refer to the [AWS Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation page to find a list of all the supported canned ACLs.
|
|
80
80
|
"""
|
|
81
81
|
return pulumi.get(self, "acl")
|
|
82
82
|
|
|
@@ -133,7 +133,7 @@ class _ObjectBucketAclState:
|
|
|
133
133
|
"""
|
|
134
134
|
Input properties used for looking up and filtering ObjectBucketAcl resources.
|
|
135
135
|
:param pulumi.Input['ObjectBucketAclAccessControlPolicyArgs'] access_control_policy: A configuration block that sets the ACL permissions for an object per grantee documented below.
|
|
136
|
-
:param pulumi.Input[str] acl: The canned ACL you want to apply to the bucket.
|
|
136
|
+
:param pulumi.Input[str] acl: The canned ACL you want to apply to the bucket. Refer to the [AWS Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation page to find a list of all the supported canned ACLs.
|
|
137
137
|
:param pulumi.Input[str] bucket: The bucket's name or regional ID.
|
|
138
138
|
:param pulumi.Input[str] expected_bucket_owner: The project ID of the expected bucket owner.
|
|
139
139
|
:param pulumi.Input[str] project_id: The project_id you want to attach the resource to
|
|
@@ -168,7 +168,7 @@ class _ObjectBucketAclState:
|
|
|
168
168
|
@pulumi.getter
|
|
169
169
|
def acl(self) -> Optional[pulumi.Input[str]]:
|
|
170
170
|
"""
|
|
171
|
-
The canned ACL you want to apply to the bucket.
|
|
171
|
+
The canned ACL you want to apply to the bucket. Refer to the [AWS Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation page to find a list of all the supported canned ACLs.
|
|
172
172
|
"""
|
|
173
173
|
return pulumi.get(self, "acl")
|
|
174
174
|
|
|
@@ -244,12 +244,14 @@ class ObjectBucketAcl(pulumi.CustomResource):
|
|
|
244
244
|
import pulumi
|
|
245
245
|
import pulumiverse_scaleway as scaleway
|
|
246
246
|
|
|
247
|
-
some_bucket = scaleway.ObjectBucket("some_bucket", name="
|
|
247
|
+
some_bucket = scaleway.ObjectBucket("some_bucket", name="unique-name")
|
|
248
248
|
main = scaleway.ObjectBucketAcl("main",
|
|
249
249
|
bucket=main_scaleway_object_bucket["id"],
|
|
250
250
|
acl="private")
|
|
251
251
|
```
|
|
252
252
|
|
|
253
|
+
For more information, refer to the [PutBucketAcl API call documentation](https://www.scaleway.com/en/docs/storage/object/api-cli/bucket-operations/#putbucketacl).
|
|
254
|
+
|
|
253
255
|
### With Grants
|
|
254
256
|
|
|
255
257
|
```python
|
|
@@ -284,16 +286,16 @@ class ObjectBucketAcl(pulumi.CustomResource):
|
|
|
284
286
|
|
|
285
287
|
## The ACL
|
|
286
288
|
|
|
287
|
-
|
|
289
|
+
Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
288
290
|
|
|
289
|
-
## The
|
|
291
|
+
## The access control policy
|
|
290
292
|
|
|
291
293
|
The `access_control_policy` configuration block supports the following arguments:
|
|
292
294
|
|
|
293
295
|
* `grant` - (Required) Set of grant configuration blocks documented below.
|
|
294
296
|
* `owner` - (Required) Configuration block of the bucket owner's display name and ID documented below.
|
|
295
297
|
|
|
296
|
-
## The
|
|
298
|
+
## The grant
|
|
297
299
|
|
|
298
300
|
The `grant` configuration block supports the following arguments:
|
|
299
301
|
|
|
@@ -324,7 +326,7 @@ class ObjectBucketAcl(pulumi.CustomResource):
|
|
|
324
326
|
|
|
325
327
|
## Import
|
|
326
328
|
|
|
327
|
-
Bucket ACLs can be imported using the `{region}/{bucketName}/{acl}` identifier,
|
|
329
|
+
Bucket ACLs can be imported using the `{region}/{bucketName}/{acl}` identifier, as shown below:
|
|
328
330
|
|
|
329
331
|
bash
|
|
330
332
|
|
|
@@ -345,7 +347,7 @@ class ObjectBucketAcl(pulumi.CustomResource):
|
|
|
345
347
|
:param str resource_name: The name of the resource.
|
|
346
348
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
347
349
|
:param pulumi.Input[Union['ObjectBucketAclAccessControlPolicyArgs', 'ObjectBucketAclAccessControlPolicyArgsDict']] access_control_policy: A configuration block that sets the ACL permissions for an object per grantee documented below.
|
|
348
|
-
:param pulumi.Input[str] acl: The canned ACL you want to apply to the bucket.
|
|
350
|
+
:param pulumi.Input[str] acl: The canned ACL you want to apply to the bucket. Refer to the [AWS Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation page to find a list of all the supported canned ACLs.
|
|
349
351
|
:param pulumi.Input[str] bucket: The bucket's name or regional ID.
|
|
350
352
|
:param pulumi.Input[str] expected_bucket_owner: The project ID of the expected bucket owner.
|
|
351
353
|
:param pulumi.Input[str] project_id: The project_id you want to attach the resource to
|
|
@@ -364,12 +366,14 @@ class ObjectBucketAcl(pulumi.CustomResource):
|
|
|
364
366
|
import pulumi
|
|
365
367
|
import pulumiverse_scaleway as scaleway
|
|
366
368
|
|
|
367
|
-
some_bucket = scaleway.ObjectBucket("some_bucket", name="
|
|
369
|
+
some_bucket = scaleway.ObjectBucket("some_bucket", name="unique-name")
|
|
368
370
|
main = scaleway.ObjectBucketAcl("main",
|
|
369
371
|
bucket=main_scaleway_object_bucket["id"],
|
|
370
372
|
acl="private")
|
|
371
373
|
```
|
|
372
374
|
|
|
375
|
+
For more information, refer to the [PutBucketAcl API call documentation](https://www.scaleway.com/en/docs/storage/object/api-cli/bucket-operations/#putbucketacl).
|
|
376
|
+
|
|
373
377
|
### With Grants
|
|
374
378
|
|
|
375
379
|
```python
|
|
@@ -404,16 +408,16 @@ class ObjectBucketAcl(pulumi.CustomResource):
|
|
|
404
408
|
|
|
405
409
|
## The ACL
|
|
406
410
|
|
|
407
|
-
|
|
411
|
+
Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
408
412
|
|
|
409
|
-
## The
|
|
413
|
+
## The access control policy
|
|
410
414
|
|
|
411
415
|
The `access_control_policy` configuration block supports the following arguments:
|
|
412
416
|
|
|
413
417
|
* `grant` - (Required) Set of grant configuration blocks documented below.
|
|
414
418
|
* `owner` - (Required) Configuration block of the bucket owner's display name and ID documented below.
|
|
415
419
|
|
|
416
|
-
## The
|
|
420
|
+
## The grant
|
|
417
421
|
|
|
418
422
|
The `grant` configuration block supports the following arguments:
|
|
419
423
|
|
|
@@ -444,7 +448,7 @@ class ObjectBucketAcl(pulumi.CustomResource):
|
|
|
444
448
|
|
|
445
449
|
## Import
|
|
446
450
|
|
|
447
|
-
Bucket ACLs can be imported using the `{region}/{bucketName}/{acl}` identifier,
|
|
451
|
+
Bucket ACLs can be imported using the `{region}/{bucketName}/{acl}` identifier, as shown below:
|
|
448
452
|
|
|
449
453
|
bash
|
|
450
454
|
|
|
@@ -524,7 +528,7 @@ class ObjectBucketAcl(pulumi.CustomResource):
|
|
|
524
528
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
525
529
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
526
530
|
:param pulumi.Input[Union['ObjectBucketAclAccessControlPolicyArgs', 'ObjectBucketAclAccessControlPolicyArgsDict']] access_control_policy: A configuration block that sets the ACL permissions for an object per grantee documented below.
|
|
527
|
-
:param pulumi.Input[str] acl: The canned ACL you want to apply to the bucket.
|
|
531
|
+
:param pulumi.Input[str] acl: The canned ACL you want to apply to the bucket. Refer to the [AWS Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation page to find a list of all the supported canned ACLs.
|
|
528
532
|
:param pulumi.Input[str] bucket: The bucket's name or regional ID.
|
|
529
533
|
:param pulumi.Input[str] expected_bucket_owner: The project ID of the expected bucket owner.
|
|
530
534
|
:param pulumi.Input[str] project_id: The project_id you want to attach the resource to
|
|
@@ -554,7 +558,7 @@ class ObjectBucketAcl(pulumi.CustomResource):
|
|
|
554
558
|
@pulumi.getter
|
|
555
559
|
def acl(self) -> pulumi.Output[Optional[str]]:
|
|
556
560
|
"""
|
|
557
|
-
The canned ACL you want to apply to the bucket.
|
|
561
|
+
The canned ACL you want to apply to the bucket. Refer to the [AWS Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) documentation page to find a list of all the supported canned ACLs.
|
|
558
562
|
"""
|
|
559
563
|
return pulumi.get(self, "acl")
|
|
560
564
|
|