pulumiverse-scaleway 1.23.0a1736837529__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 +1065 -0
- pulumiverse_scaleway/_inputs.py +8688 -0
- pulumiverse_scaleway/_utilities.py +327 -0
- pulumiverse_scaleway/account_project.py +316 -0
- pulumiverse_scaleway/account_ssh_key.py +454 -0
- pulumiverse_scaleway/apple_silicon_server.py +564 -0
- pulumiverse_scaleway/baremetal_server.py +1579 -0
- pulumiverse_scaleway/block_snapshot.py +401 -0
- pulumiverse_scaleway/block_volume.py +527 -0
- pulumiverse_scaleway/cockpit.py +314 -0
- pulumiverse_scaleway/cockpit_alert_manager.py +401 -0
- pulumiverse_scaleway/cockpit_grafana_user.py +362 -0
- pulumiverse_scaleway/cockpit_source.py +567 -0
- pulumiverse_scaleway/cockpit_token.py +479 -0
- pulumiverse_scaleway/config/__init__.py +8 -0
- pulumiverse_scaleway/config/__init__.pyi +56 -0
- pulumiverse_scaleway/config/vars.py +78 -0
- pulumiverse_scaleway/container.py +1373 -0
- pulumiverse_scaleway/container_cron.py +458 -0
- pulumiverse_scaleway/container_domain.py +406 -0
- pulumiverse_scaleway/container_namespace.py +636 -0
- pulumiverse_scaleway/container_token.py +452 -0
- pulumiverse_scaleway/container_trigger.py +480 -0
- pulumiverse_scaleway/database.py +407 -0
- pulumiverse_scaleway/database_acl.py +332 -0
- pulumiverse_scaleway/database_backup.py +574 -0
- pulumiverse_scaleway/database_instance.py +1641 -0
- pulumiverse_scaleway/database_privilege.py +422 -0
- pulumiverse_scaleway/database_read_replica.py +528 -0
- pulumiverse_scaleway/database_user.py +446 -0
- pulumiverse_scaleway/domain_record.py +1116 -0
- pulumiverse_scaleway/domain_zone.py +430 -0
- pulumiverse_scaleway/flexible_ip.py +702 -0
- pulumiverse_scaleway/flexible_ip_mac_address.py +510 -0
- pulumiverse_scaleway/function.py +1103 -0
- pulumiverse_scaleway/function_cron.py +462 -0
- pulumiverse_scaleway/function_domain.py +370 -0
- pulumiverse_scaleway/function_namespace.py +580 -0
- pulumiverse_scaleway/function_token.py +460 -0
- pulumiverse_scaleway/function_trigger.py +480 -0
- pulumiverse_scaleway/get_account_project.py +170 -0
- pulumiverse_scaleway/get_account_ssh_key.py +205 -0
- pulumiverse_scaleway/get_availability_zones.py +139 -0
- pulumiverse_scaleway/get_baremetal_offer.py +245 -0
- pulumiverse_scaleway/get_baremetal_option.py +168 -0
- pulumiverse_scaleway/get_baremetal_os.py +174 -0
- pulumiverse_scaleway/get_baremetal_server.py +422 -0
- pulumiverse_scaleway/get_billing_consumptions.py +134 -0
- pulumiverse_scaleway/get_billing_invoices.py +154 -0
- pulumiverse_scaleway/get_block_snapshot.py +174 -0
- pulumiverse_scaleway/get_block_volume.py +188 -0
- pulumiverse_scaleway/get_cockpit.py +204 -0
- pulumiverse_scaleway/get_cockpit_plan.py +125 -0
- pulumiverse_scaleway/get_cockpit_source.py +262 -0
- pulumiverse_scaleway/get_config.py +180 -0
- pulumiverse_scaleway/get_container.py +522 -0
- pulumiverse_scaleway/get_container_namespace.py +283 -0
- pulumiverse_scaleway/get_database.py +187 -0
- pulumiverse_scaleway/get_database_acl.py +143 -0
- pulumiverse_scaleway/get_database_backup.py +253 -0
- pulumiverse_scaleway/get_database_instance.py +404 -0
- pulumiverse_scaleway/get_database_privilege.py +181 -0
- pulumiverse_scaleway/get_domain_record.py +340 -0
- pulumiverse_scaleway/get_domain_zone.py +201 -0
- pulumiverse_scaleway/get_flexible_ip.py +247 -0
- pulumiverse_scaleway/get_flexible_ips.py +240 -0
- pulumiverse_scaleway/get_function.py +365 -0
- pulumiverse_scaleway/get_function_namespace.py +238 -0
- pulumiverse_scaleway/get_iam_api_key.py +210 -0
- pulumiverse_scaleway/get_iam_application.py +210 -0
- pulumiverse_scaleway/get_iam_group.py +236 -0
- pulumiverse_scaleway/get_iam_ssh_key.py +212 -0
- pulumiverse_scaleway/get_iam_user.py +177 -0
- pulumiverse_scaleway/get_instance_image.py +305 -0
- pulumiverse_scaleway/get_instance_ip.py +204 -0
- pulumiverse_scaleway/get_instance_placement_group.py +212 -0
- pulumiverse_scaleway/get_instance_private_nic.py +226 -0
- pulumiverse_scaleway/get_instance_security_group.py +268 -0
- pulumiverse_scaleway/get_instance_server.py +502 -0
- pulumiverse_scaleway/get_instance_servers.py +187 -0
- pulumiverse_scaleway/get_instance_snapshot.py +248 -0
- pulumiverse_scaleway/get_instance_volume.py +215 -0
- pulumiverse_scaleway/get_iot_device.py +257 -0
- pulumiverse_scaleway/get_iot_hub.py +322 -0
- pulumiverse_scaleway/get_ipam_ip.py +419 -0
- pulumiverse_scaleway/get_ipam_ips.py +358 -0
- pulumiverse_scaleway/get_k8s_version.py +196 -0
- pulumiverse_scaleway/get_kubernetes_cluster.py +417 -0
- pulumiverse_scaleway/get_kubernetes_node_pool.py +436 -0
- pulumiverse_scaleway/get_lb_acls.py +198 -0
- pulumiverse_scaleway/get_lb_backend.py +486 -0
- pulumiverse_scaleway/get_lb_backends.py +196 -0
- pulumiverse_scaleway/get_lb_frontend.py +274 -0
- pulumiverse_scaleway/get_lb_frontends.py +196 -0
- pulumiverse_scaleway/get_lb_ips.py +198 -0
- pulumiverse_scaleway/get_lb_route.py +217 -0
- pulumiverse_scaleway/get_lb_routes.py +179 -0
- pulumiverse_scaleway/get_lbs.py +187 -0
- pulumiverse_scaleway/get_loadbalancer.py +339 -0
- pulumiverse_scaleway/get_loadbalancer_certificate.py +230 -0
- pulumiverse_scaleway/get_loadbalancer_ip.py +228 -0
- pulumiverse_scaleway/get_marketplace_image.py +147 -0
- pulumiverse_scaleway/get_mnq_sns.py +150 -0
- pulumiverse_scaleway/get_mnq_sqs.py +150 -0
- pulumiverse_scaleway/get_mongo_db_instance.py +324 -0
- pulumiverse_scaleway/get_object_bucket.py +290 -0
- pulumiverse_scaleway/get_object_bucket_policy.py +163 -0
- pulumiverse_scaleway/get_redis_cluster.py +347 -0
- pulumiverse_scaleway/get_registry_image.py +239 -0
- pulumiverse_scaleway/get_registry_image_tag.py +229 -0
- pulumiverse_scaleway/get_registry_namespace.py +199 -0
- pulumiverse_scaleway/get_secret.py +338 -0
- pulumiverse_scaleway/get_secret_version.py +340 -0
- pulumiverse_scaleway/get_tem_domain.py +378 -0
- pulumiverse_scaleway/get_vpc.py +246 -0
- pulumiverse_scaleway/get_vpc_gateway_network.py +287 -0
- pulumiverse_scaleway/get_vpc_private_network.py +282 -0
- pulumiverse_scaleway/get_vpc_public_gateway.py +304 -0
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp.py +305 -0
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp_reservation.py +382 -0
- pulumiverse_scaleway/get_vpc_public_gateway_ip.py +199 -0
- pulumiverse_scaleway/get_vpc_public_pat_rule.py +313 -0
- pulumiverse_scaleway/get_vpc_routes.py +208 -0
- pulumiverse_scaleway/get_vpcs.py +174 -0
- pulumiverse_scaleway/get_web_host_offer.py +192 -0
- pulumiverse_scaleway/get_webhosting.py +332 -0
- pulumiverse_scaleway/iam_api_key.py +620 -0
- pulumiverse_scaleway/iam_application.py +417 -0
- pulumiverse_scaleway/iam_group.py +566 -0
- pulumiverse_scaleway/iam_group_membership.py +323 -0
- pulumiverse_scaleway/iam_policy.py +773 -0
- pulumiverse_scaleway/iam_ssh_key.py +455 -0
- pulumiverse_scaleway/iam_user.py +513 -0
- pulumiverse_scaleway/inference_deployment.py +822 -0
- pulumiverse_scaleway/instance_image.py +750 -0
- pulumiverse_scaleway/instance_ip.py +483 -0
- pulumiverse_scaleway/instance_ip_reverse_dns.py +308 -0
- pulumiverse_scaleway/instance_placement_group.py +479 -0
- pulumiverse_scaleway/instance_private_nic.py +555 -0
- pulumiverse_scaleway/instance_security_group.py +720 -0
- pulumiverse_scaleway/instance_security_group_rules.py +439 -0
- pulumiverse_scaleway/instance_server.py +2006 -0
- pulumiverse_scaleway/instance_snapshot.py +669 -0
- pulumiverse_scaleway/instance_user_data.py +435 -0
- pulumiverse_scaleway/instance_volume.py +535 -0
- pulumiverse_scaleway/iot_device.py +750 -0
- pulumiverse_scaleway/iot_hub.py +896 -0
- pulumiverse_scaleway/iot_network.py +472 -0
- pulumiverse_scaleway/iot_route.py +660 -0
- pulumiverse_scaleway/ipam_ip.py +757 -0
- pulumiverse_scaleway/ipam_ip_reverse_dns.py +318 -0
- pulumiverse_scaleway/job_definition.py +692 -0
- pulumiverse_scaleway/kubernetes_cluster.py +1538 -0
- pulumiverse_scaleway/kubernetes_node_pool.py +1255 -0
- pulumiverse_scaleway/loadbalancer.py +1061 -0
- pulumiverse_scaleway/loadbalancer_acl.py +520 -0
- pulumiverse_scaleway/loadbalancer_backend.py +1588 -0
- pulumiverse_scaleway/loadbalancer_certificate.py +460 -0
- pulumiverse_scaleway/loadbalancer_frontend.py +829 -0
- pulumiverse_scaleway/loadbalancer_ip.py +514 -0
- pulumiverse_scaleway/loadbalancer_route.py +523 -0
- pulumiverse_scaleway/mnq_nats_account.py +334 -0
- pulumiverse_scaleway/mnq_nats_credentials.py +330 -0
- pulumiverse_scaleway/mnq_sns.py +306 -0
- pulumiverse_scaleway/mnq_sns_credentials.py +413 -0
- pulumiverse_scaleway/mnq_sns_topic.py +659 -0
- pulumiverse_scaleway/mnq_sns_topic_subscription.py +699 -0
- pulumiverse_scaleway/mnq_sqs.py +304 -0
- pulumiverse_scaleway/mnq_sqs_credentials.py +413 -0
- pulumiverse_scaleway/mnq_sqs_queue.py +800 -0
- pulumiverse_scaleway/mongo_db_instance.py +907 -0
- pulumiverse_scaleway/mongo_db_snapshot.py +521 -0
- pulumiverse_scaleway/object_bucket.py +874 -0
- pulumiverse_scaleway/object_bucket_acl.py +596 -0
- pulumiverse_scaleway/object_bucket_lock_configuration.py +395 -0
- pulumiverse_scaleway/object_bucket_policy.py +673 -0
- pulumiverse_scaleway/object_bucket_website_configuration.py +534 -0
- pulumiverse_scaleway/object_item.py +776 -0
- pulumiverse_scaleway/outputs.py +11808 -0
- pulumiverse_scaleway/provider.py +327 -0
- pulumiverse_scaleway/pulumi-plugin.json +6 -0
- pulumiverse_scaleway/py.typed +0 -0
- pulumiverse_scaleway/redis_cluster.py +1201 -0
- pulumiverse_scaleway/registry_namespace.py +458 -0
- pulumiverse_scaleway/sdb_database.py +432 -0
- pulumiverse_scaleway/secret.py +663 -0
- pulumiverse_scaleway/secret_version.py +487 -0
- pulumiverse_scaleway/tem_domain.py +1030 -0
- pulumiverse_scaleway/tem_domain_validation.py +303 -0
- pulumiverse_scaleway/tem_webhook.py +640 -0
- pulumiverse_scaleway/vpc.py +536 -0
- pulumiverse_scaleway/vpc_gateway_network.py +866 -0
- pulumiverse_scaleway/vpc_private_network.py +734 -0
- pulumiverse_scaleway/vpc_public_gateway.py +789 -0
- pulumiverse_scaleway/vpc_public_gateway_dhcp.py +933 -0
- pulumiverse_scaleway/vpc_public_gateway_dhcp_reservation.py +514 -0
- pulumiverse_scaleway/vpc_public_gateway_ip.py +457 -0
- pulumiverse_scaleway/vpc_public_gateway_ip_reverse_dns.py +306 -0
- pulumiverse_scaleway/vpc_public_gateway_pat_rule.py +591 -0
- pulumiverse_scaleway/vpc_route.py +577 -0
- pulumiverse_scaleway/webhosting.py +805 -0
- pulumiverse_scaleway-1.23.0a1736837529.dist-info/METADATA +77 -0
- pulumiverse_scaleway-1.23.0a1736837529.dist-info/RECORD +205 -0
- pulumiverse_scaleway-1.23.0a1736837529.dist-info/WHEEL +5 -0
- pulumiverse_scaleway-1.23.0a1736837529.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,673 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = ['ObjectBucketPolicyArgs', 'ObjectBucketPolicy']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class ObjectBucketPolicyArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
bucket: pulumi.Input[str],
|
|
23
|
+
policy: pulumi.Input[str],
|
|
24
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
25
|
+
region: Optional[pulumi.Input[str]] = None):
|
|
26
|
+
"""
|
|
27
|
+
The set of arguments for constructing a ObjectBucketPolicy resource.
|
|
28
|
+
:param pulumi.Input[str] bucket: The bucket's name or regional ID.
|
|
29
|
+
:param pulumi.Input[str] policy: The text of the policy.
|
|
30
|
+
:param pulumi.Input[str] project_id: The project_id you want to attach the resource to
|
|
31
|
+
:param pulumi.Input[str] region: The Scaleway region this bucket resides in.
|
|
32
|
+
"""
|
|
33
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
34
|
+
pulumi.set(__self__, "policy", policy)
|
|
35
|
+
if project_id is not None:
|
|
36
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
37
|
+
if region is not None:
|
|
38
|
+
pulumi.set(__self__, "region", region)
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
@pulumi.getter
|
|
42
|
+
def bucket(self) -> pulumi.Input[str]:
|
|
43
|
+
"""
|
|
44
|
+
The bucket's name or regional ID.
|
|
45
|
+
"""
|
|
46
|
+
return pulumi.get(self, "bucket")
|
|
47
|
+
|
|
48
|
+
@bucket.setter
|
|
49
|
+
def bucket(self, value: pulumi.Input[str]):
|
|
50
|
+
pulumi.set(self, "bucket", value)
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
@pulumi.getter
|
|
54
|
+
def policy(self) -> pulumi.Input[str]:
|
|
55
|
+
"""
|
|
56
|
+
The text of the policy.
|
|
57
|
+
"""
|
|
58
|
+
return pulumi.get(self, "policy")
|
|
59
|
+
|
|
60
|
+
@policy.setter
|
|
61
|
+
def policy(self, value: pulumi.Input[str]):
|
|
62
|
+
pulumi.set(self, "policy", value)
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
@pulumi.getter(name="projectId")
|
|
66
|
+
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
67
|
+
"""
|
|
68
|
+
The project_id you want to attach the resource to
|
|
69
|
+
"""
|
|
70
|
+
return pulumi.get(self, "project_id")
|
|
71
|
+
|
|
72
|
+
@project_id.setter
|
|
73
|
+
def project_id(self, value: Optional[pulumi.Input[str]]):
|
|
74
|
+
pulumi.set(self, "project_id", value)
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
@pulumi.getter
|
|
78
|
+
def region(self) -> Optional[pulumi.Input[str]]:
|
|
79
|
+
"""
|
|
80
|
+
The Scaleway region this bucket resides in.
|
|
81
|
+
"""
|
|
82
|
+
return pulumi.get(self, "region")
|
|
83
|
+
|
|
84
|
+
@region.setter
|
|
85
|
+
def region(self, value: Optional[pulumi.Input[str]]):
|
|
86
|
+
pulumi.set(self, "region", value)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
@pulumi.input_type
|
|
90
|
+
class _ObjectBucketPolicyState:
|
|
91
|
+
def __init__(__self__, *,
|
|
92
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
93
|
+
policy: Optional[pulumi.Input[str]] = None,
|
|
94
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
95
|
+
region: Optional[pulumi.Input[str]] = None):
|
|
96
|
+
"""
|
|
97
|
+
Input properties used for looking up and filtering ObjectBucketPolicy resources.
|
|
98
|
+
:param pulumi.Input[str] bucket: The bucket's name or regional ID.
|
|
99
|
+
:param pulumi.Input[str] policy: The text of the policy.
|
|
100
|
+
:param pulumi.Input[str] project_id: The project_id you want to attach the resource to
|
|
101
|
+
:param pulumi.Input[str] region: The Scaleway region this bucket resides in.
|
|
102
|
+
"""
|
|
103
|
+
if bucket is not None:
|
|
104
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
105
|
+
if policy is not None:
|
|
106
|
+
pulumi.set(__self__, "policy", policy)
|
|
107
|
+
if project_id is not None:
|
|
108
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
109
|
+
if region is not None:
|
|
110
|
+
pulumi.set(__self__, "region", region)
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
@pulumi.getter
|
|
114
|
+
def bucket(self) -> Optional[pulumi.Input[str]]:
|
|
115
|
+
"""
|
|
116
|
+
The bucket's name or regional ID.
|
|
117
|
+
"""
|
|
118
|
+
return pulumi.get(self, "bucket")
|
|
119
|
+
|
|
120
|
+
@bucket.setter
|
|
121
|
+
def bucket(self, value: Optional[pulumi.Input[str]]):
|
|
122
|
+
pulumi.set(self, "bucket", value)
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
@pulumi.getter
|
|
126
|
+
def policy(self) -> Optional[pulumi.Input[str]]:
|
|
127
|
+
"""
|
|
128
|
+
The text of the policy.
|
|
129
|
+
"""
|
|
130
|
+
return pulumi.get(self, "policy")
|
|
131
|
+
|
|
132
|
+
@policy.setter
|
|
133
|
+
def policy(self, value: Optional[pulumi.Input[str]]):
|
|
134
|
+
pulumi.set(self, "policy", value)
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
@pulumi.getter(name="projectId")
|
|
138
|
+
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
139
|
+
"""
|
|
140
|
+
The project_id you want to attach the resource to
|
|
141
|
+
"""
|
|
142
|
+
return pulumi.get(self, "project_id")
|
|
143
|
+
|
|
144
|
+
@project_id.setter
|
|
145
|
+
def project_id(self, value: Optional[pulumi.Input[str]]):
|
|
146
|
+
pulumi.set(self, "project_id", value)
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
@pulumi.getter
|
|
150
|
+
def region(self) -> Optional[pulumi.Input[str]]:
|
|
151
|
+
"""
|
|
152
|
+
The Scaleway region this bucket resides in.
|
|
153
|
+
"""
|
|
154
|
+
return pulumi.get(self, "region")
|
|
155
|
+
|
|
156
|
+
@region.setter
|
|
157
|
+
def region(self, value: Optional[pulumi.Input[str]]):
|
|
158
|
+
pulumi.set(self, "region", value)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
class ObjectBucketPolicy(pulumi.CustomResource):
|
|
162
|
+
@overload
|
|
163
|
+
def __init__(__self__,
|
|
164
|
+
resource_name: str,
|
|
165
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
166
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
167
|
+
policy: Optional[pulumi.Input[str]] = None,
|
|
168
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
169
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
170
|
+
__props__=None):
|
|
171
|
+
"""
|
|
172
|
+
The `ObjectBucketPolicy` resource allows you to create and manage bucket policies for [Scaleway Object storage](https://www.scaleway.com/en/docs/storage/object/).
|
|
173
|
+
|
|
174
|
+
Refer to the [dedicated documentation](https://www.scaleway.com/en/docs/storage/object/api-cli/bucket-policy/) for more information on Object Storage bucket policies.
|
|
175
|
+
|
|
176
|
+
## Example Usage
|
|
177
|
+
|
|
178
|
+
### Example Usage with an IAM user
|
|
179
|
+
|
|
180
|
+
```python
|
|
181
|
+
import pulumi
|
|
182
|
+
import json
|
|
183
|
+
import pulumi_scaleway as scaleway
|
|
184
|
+
import pulumiverse_scaleway as scaleway
|
|
185
|
+
|
|
186
|
+
# Project ID
|
|
187
|
+
default = scaleway.get_account_project(name="default")
|
|
188
|
+
# IAM configuration
|
|
189
|
+
user = scaleway.get_iam_user(email="user@scaleway.com")
|
|
190
|
+
policy = scaleway.IamPolicy("policy",
|
|
191
|
+
name="object-storage-policy",
|
|
192
|
+
user_id=user.id,
|
|
193
|
+
rules=[{
|
|
194
|
+
"project_ids": [default.id],
|
|
195
|
+
"permission_set_names": ["ObjectStorageFullAccess"],
|
|
196
|
+
}])
|
|
197
|
+
# Object storage configuration
|
|
198
|
+
bucket = scaleway.ObjectBucket("bucket", name="some-unique-name")
|
|
199
|
+
policy_object_bucket_policy = scaleway.ObjectBucketPolicy("policy",
|
|
200
|
+
bucket=bucket.name,
|
|
201
|
+
policy=pulumi.Output.json_dumps({
|
|
202
|
+
"Version": "2023-04-17",
|
|
203
|
+
"Id": "MyBucketPolicy",
|
|
204
|
+
"Statement": [{
|
|
205
|
+
"Effect": "Allow",
|
|
206
|
+
"Action": ["s3:*"],
|
|
207
|
+
"Principal": {
|
|
208
|
+
"SCW": f"user_id:{user.id}",
|
|
209
|
+
},
|
|
210
|
+
"Resource": [
|
|
211
|
+
bucket.name,
|
|
212
|
+
bucket.name.apply(lambda name: f"{name}/*"),
|
|
213
|
+
],
|
|
214
|
+
}],
|
|
215
|
+
}))
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Example with an IAM application
|
|
219
|
+
|
|
220
|
+
### Creating a bucket and delegating read access to an application
|
|
221
|
+
|
|
222
|
+
```python
|
|
223
|
+
import pulumi
|
|
224
|
+
import json
|
|
225
|
+
import pulumi_scaleway as scaleway
|
|
226
|
+
import pulumiverse_scaleway as scaleway
|
|
227
|
+
|
|
228
|
+
# Project ID
|
|
229
|
+
default = scaleway.get_account_project(name="default")
|
|
230
|
+
# IAM configuration
|
|
231
|
+
reading_app = scaleway.IamApplication("reading-app", name="reading-app")
|
|
232
|
+
policy = scaleway.IamPolicy("policy",
|
|
233
|
+
name="object-storage-policy",
|
|
234
|
+
application_id=reading_app.id,
|
|
235
|
+
rules=[{
|
|
236
|
+
"project_ids": [default.id],
|
|
237
|
+
"permission_set_names": ["ObjectStorageBucketsRead"],
|
|
238
|
+
}])
|
|
239
|
+
# Object storage configuration
|
|
240
|
+
bucket = scaleway.ObjectBucket("bucket", name="some-unique-name")
|
|
241
|
+
policy_object_bucket_policy = scaleway.ObjectBucketPolicy("policy",
|
|
242
|
+
bucket=bucket.id,
|
|
243
|
+
policy=pulumi.Output.json_dumps({
|
|
244
|
+
"Version": "2023-04-17",
|
|
245
|
+
"Statement": [{
|
|
246
|
+
"Sid": "Delegate read access",
|
|
247
|
+
"Effect": "Allow",
|
|
248
|
+
"Principal": {
|
|
249
|
+
"SCW": reading_app.id.apply(lambda id: f"application_id:{id}"),
|
|
250
|
+
},
|
|
251
|
+
"Action": [
|
|
252
|
+
"s3:ListBucket",
|
|
253
|
+
"s3:GetObject",
|
|
254
|
+
],
|
|
255
|
+
"Resource": [
|
|
256
|
+
bucket.name,
|
|
257
|
+
bucket.name.apply(lambda name: f"{name}/*"),
|
|
258
|
+
],
|
|
259
|
+
}],
|
|
260
|
+
}))
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Reading the bucket with the application
|
|
264
|
+
|
|
265
|
+
```python
|
|
266
|
+
import pulumi
|
|
267
|
+
import pulumi_scaleway as scaleway
|
|
268
|
+
import pulumiverse_scaleway as scaleway
|
|
269
|
+
|
|
270
|
+
reading_app = scaleway.get_iam_application(name="reading-app")
|
|
271
|
+
reading_api_key = scaleway.IamApiKey("reading-api-key", application_id=reading_app.id)
|
|
272
|
+
bucket = scaleway.get_object_bucket(name="some-unique-name")
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### Example with AWS provider
|
|
276
|
+
|
|
277
|
+
```python
|
|
278
|
+
import pulumi
|
|
279
|
+
import pulumi_aws as aws
|
|
280
|
+
import pulumi_scaleway as scaleway
|
|
281
|
+
import pulumiverse_scaleway as scaleway
|
|
282
|
+
|
|
283
|
+
# Scaleway project ID
|
|
284
|
+
default = scaleway.get_account_project(name="default")
|
|
285
|
+
# Object storage configuration
|
|
286
|
+
bucket = scaleway.ObjectBucket("bucket", name="some-unique-name")
|
|
287
|
+
# AWS data source
|
|
288
|
+
policy = aws.iam.get_policy_document_output(version="2012-10-17",
|
|
289
|
+
statements=[{
|
|
290
|
+
"sid": "Delegate access",
|
|
291
|
+
"effect": "Allow",
|
|
292
|
+
"principals": [{
|
|
293
|
+
"type": "SCW",
|
|
294
|
+
"identifiers": [f"project_id:{default.id}"],
|
|
295
|
+
}],
|
|
296
|
+
"actions": ["s3:ListBucket"],
|
|
297
|
+
"resources": [
|
|
298
|
+
bucket.name,
|
|
299
|
+
bucket.name.apply(lambda name: f"{name}/*"),
|
|
300
|
+
],
|
|
301
|
+
}])
|
|
302
|
+
main = scaleway.ObjectBucketPolicy("main",
|
|
303
|
+
bucket=bucket.id,
|
|
304
|
+
policy=policy.json)
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
### Example with deprecated version 2012-10-17
|
|
308
|
+
|
|
309
|
+
```python
|
|
310
|
+
import pulumi
|
|
311
|
+
import json
|
|
312
|
+
import pulumi_scaleway as scaleway
|
|
313
|
+
import pulumiverse_scaleway as scaleway
|
|
314
|
+
|
|
315
|
+
# Project ID
|
|
316
|
+
default = scaleway.get_account_project(name="default")
|
|
317
|
+
# Object storage configuration
|
|
318
|
+
bucket = scaleway.ObjectBucket("bucket",
|
|
319
|
+
name="mia-cross-crash-tests",
|
|
320
|
+
region="fr-par")
|
|
321
|
+
policy = scaleway.ObjectBucketPolicy("policy",
|
|
322
|
+
bucket=bucket.name,
|
|
323
|
+
policy=pulumi.Output.json_dumps({
|
|
324
|
+
"Version": "2012-10-17",
|
|
325
|
+
"Statement": [{
|
|
326
|
+
"Effect": "Allow",
|
|
327
|
+
"Action": [
|
|
328
|
+
"s3:ListBucket",
|
|
329
|
+
"s3:GetObjectTagging",
|
|
330
|
+
],
|
|
331
|
+
"Principal": {
|
|
332
|
+
"SCW": f"project_id:{default.id}",
|
|
333
|
+
},
|
|
334
|
+
"Resource": [
|
|
335
|
+
bucket.name,
|
|
336
|
+
bucket.name.apply(lambda name: f"{name}/*"),
|
|
337
|
+
],
|
|
338
|
+
}],
|
|
339
|
+
}))
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
**NB:** To configure the AWS provider with Scaleway credentials, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/storage/object/api-cli/object-storage-aws-cli/).
|
|
343
|
+
|
|
344
|
+
## Import
|
|
345
|
+
|
|
346
|
+
Bucket policies can be imported using the `{region}/{bucketName}` identifier, as shown below:
|
|
347
|
+
|
|
348
|
+
bash
|
|
349
|
+
|
|
350
|
+
```sh
|
|
351
|
+
$ pulumi import scaleway:index/objectBucketPolicy:ObjectBucketPolicy some_bucket fr-par/some-bucket
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
~> **Important:** The `project_id` attribute has a particular behavior with s3 products because the s3 API is scoped by project.
|
|
355
|
+
|
|
356
|
+
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.
|
|
357
|
+
|
|
358
|
+
bash
|
|
359
|
+
|
|
360
|
+
```sh
|
|
361
|
+
$ pulumi import scaleway:index/objectBucketPolicy:ObjectBucketPolicy some_bucket fr-par/some-bucket@xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
:param str resource_name: The name of the resource.
|
|
365
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
366
|
+
:param pulumi.Input[str] bucket: The bucket's name or regional ID.
|
|
367
|
+
:param pulumi.Input[str] policy: The text of the policy.
|
|
368
|
+
:param pulumi.Input[str] project_id: The project_id you want to attach the resource to
|
|
369
|
+
:param pulumi.Input[str] region: The Scaleway region this bucket resides in.
|
|
370
|
+
"""
|
|
371
|
+
...
|
|
372
|
+
@overload
|
|
373
|
+
def __init__(__self__,
|
|
374
|
+
resource_name: str,
|
|
375
|
+
args: ObjectBucketPolicyArgs,
|
|
376
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
377
|
+
"""
|
|
378
|
+
The `ObjectBucketPolicy` resource allows you to create and manage bucket policies for [Scaleway Object storage](https://www.scaleway.com/en/docs/storage/object/).
|
|
379
|
+
|
|
380
|
+
Refer to the [dedicated documentation](https://www.scaleway.com/en/docs/storage/object/api-cli/bucket-policy/) for more information on Object Storage bucket policies.
|
|
381
|
+
|
|
382
|
+
## Example Usage
|
|
383
|
+
|
|
384
|
+
### Example Usage with an IAM user
|
|
385
|
+
|
|
386
|
+
```python
|
|
387
|
+
import pulumi
|
|
388
|
+
import json
|
|
389
|
+
import pulumi_scaleway as scaleway
|
|
390
|
+
import pulumiverse_scaleway as scaleway
|
|
391
|
+
|
|
392
|
+
# Project ID
|
|
393
|
+
default = scaleway.get_account_project(name="default")
|
|
394
|
+
# IAM configuration
|
|
395
|
+
user = scaleway.get_iam_user(email="user@scaleway.com")
|
|
396
|
+
policy = scaleway.IamPolicy("policy",
|
|
397
|
+
name="object-storage-policy",
|
|
398
|
+
user_id=user.id,
|
|
399
|
+
rules=[{
|
|
400
|
+
"project_ids": [default.id],
|
|
401
|
+
"permission_set_names": ["ObjectStorageFullAccess"],
|
|
402
|
+
}])
|
|
403
|
+
# Object storage configuration
|
|
404
|
+
bucket = scaleway.ObjectBucket("bucket", name="some-unique-name")
|
|
405
|
+
policy_object_bucket_policy = scaleway.ObjectBucketPolicy("policy",
|
|
406
|
+
bucket=bucket.name,
|
|
407
|
+
policy=pulumi.Output.json_dumps({
|
|
408
|
+
"Version": "2023-04-17",
|
|
409
|
+
"Id": "MyBucketPolicy",
|
|
410
|
+
"Statement": [{
|
|
411
|
+
"Effect": "Allow",
|
|
412
|
+
"Action": ["s3:*"],
|
|
413
|
+
"Principal": {
|
|
414
|
+
"SCW": f"user_id:{user.id}",
|
|
415
|
+
},
|
|
416
|
+
"Resource": [
|
|
417
|
+
bucket.name,
|
|
418
|
+
bucket.name.apply(lambda name: f"{name}/*"),
|
|
419
|
+
],
|
|
420
|
+
}],
|
|
421
|
+
}))
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
### Example with an IAM application
|
|
425
|
+
|
|
426
|
+
### Creating a bucket and delegating read access to an application
|
|
427
|
+
|
|
428
|
+
```python
|
|
429
|
+
import pulumi
|
|
430
|
+
import json
|
|
431
|
+
import pulumi_scaleway as scaleway
|
|
432
|
+
import pulumiverse_scaleway as scaleway
|
|
433
|
+
|
|
434
|
+
# Project ID
|
|
435
|
+
default = scaleway.get_account_project(name="default")
|
|
436
|
+
# IAM configuration
|
|
437
|
+
reading_app = scaleway.IamApplication("reading-app", name="reading-app")
|
|
438
|
+
policy = scaleway.IamPolicy("policy",
|
|
439
|
+
name="object-storage-policy",
|
|
440
|
+
application_id=reading_app.id,
|
|
441
|
+
rules=[{
|
|
442
|
+
"project_ids": [default.id],
|
|
443
|
+
"permission_set_names": ["ObjectStorageBucketsRead"],
|
|
444
|
+
}])
|
|
445
|
+
# Object storage configuration
|
|
446
|
+
bucket = scaleway.ObjectBucket("bucket", name="some-unique-name")
|
|
447
|
+
policy_object_bucket_policy = scaleway.ObjectBucketPolicy("policy",
|
|
448
|
+
bucket=bucket.id,
|
|
449
|
+
policy=pulumi.Output.json_dumps({
|
|
450
|
+
"Version": "2023-04-17",
|
|
451
|
+
"Statement": [{
|
|
452
|
+
"Sid": "Delegate read access",
|
|
453
|
+
"Effect": "Allow",
|
|
454
|
+
"Principal": {
|
|
455
|
+
"SCW": reading_app.id.apply(lambda id: f"application_id:{id}"),
|
|
456
|
+
},
|
|
457
|
+
"Action": [
|
|
458
|
+
"s3:ListBucket",
|
|
459
|
+
"s3:GetObject",
|
|
460
|
+
],
|
|
461
|
+
"Resource": [
|
|
462
|
+
bucket.name,
|
|
463
|
+
bucket.name.apply(lambda name: f"{name}/*"),
|
|
464
|
+
],
|
|
465
|
+
}],
|
|
466
|
+
}))
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
### Reading the bucket with the application
|
|
470
|
+
|
|
471
|
+
```python
|
|
472
|
+
import pulumi
|
|
473
|
+
import pulumi_scaleway as scaleway
|
|
474
|
+
import pulumiverse_scaleway as scaleway
|
|
475
|
+
|
|
476
|
+
reading_app = scaleway.get_iam_application(name="reading-app")
|
|
477
|
+
reading_api_key = scaleway.IamApiKey("reading-api-key", application_id=reading_app.id)
|
|
478
|
+
bucket = scaleway.get_object_bucket(name="some-unique-name")
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
### Example with AWS provider
|
|
482
|
+
|
|
483
|
+
```python
|
|
484
|
+
import pulumi
|
|
485
|
+
import pulumi_aws as aws
|
|
486
|
+
import pulumi_scaleway as scaleway
|
|
487
|
+
import pulumiverse_scaleway as scaleway
|
|
488
|
+
|
|
489
|
+
# Scaleway project ID
|
|
490
|
+
default = scaleway.get_account_project(name="default")
|
|
491
|
+
# Object storage configuration
|
|
492
|
+
bucket = scaleway.ObjectBucket("bucket", name="some-unique-name")
|
|
493
|
+
# AWS data source
|
|
494
|
+
policy = aws.iam.get_policy_document_output(version="2012-10-17",
|
|
495
|
+
statements=[{
|
|
496
|
+
"sid": "Delegate access",
|
|
497
|
+
"effect": "Allow",
|
|
498
|
+
"principals": [{
|
|
499
|
+
"type": "SCW",
|
|
500
|
+
"identifiers": [f"project_id:{default.id}"],
|
|
501
|
+
}],
|
|
502
|
+
"actions": ["s3:ListBucket"],
|
|
503
|
+
"resources": [
|
|
504
|
+
bucket.name,
|
|
505
|
+
bucket.name.apply(lambda name: f"{name}/*"),
|
|
506
|
+
],
|
|
507
|
+
}])
|
|
508
|
+
main = scaleway.ObjectBucketPolicy("main",
|
|
509
|
+
bucket=bucket.id,
|
|
510
|
+
policy=policy.json)
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
### Example with deprecated version 2012-10-17
|
|
514
|
+
|
|
515
|
+
```python
|
|
516
|
+
import pulumi
|
|
517
|
+
import json
|
|
518
|
+
import pulumi_scaleway as scaleway
|
|
519
|
+
import pulumiverse_scaleway as scaleway
|
|
520
|
+
|
|
521
|
+
# Project ID
|
|
522
|
+
default = scaleway.get_account_project(name="default")
|
|
523
|
+
# Object storage configuration
|
|
524
|
+
bucket = scaleway.ObjectBucket("bucket",
|
|
525
|
+
name="mia-cross-crash-tests",
|
|
526
|
+
region="fr-par")
|
|
527
|
+
policy = scaleway.ObjectBucketPolicy("policy",
|
|
528
|
+
bucket=bucket.name,
|
|
529
|
+
policy=pulumi.Output.json_dumps({
|
|
530
|
+
"Version": "2012-10-17",
|
|
531
|
+
"Statement": [{
|
|
532
|
+
"Effect": "Allow",
|
|
533
|
+
"Action": [
|
|
534
|
+
"s3:ListBucket",
|
|
535
|
+
"s3:GetObjectTagging",
|
|
536
|
+
],
|
|
537
|
+
"Principal": {
|
|
538
|
+
"SCW": f"project_id:{default.id}",
|
|
539
|
+
},
|
|
540
|
+
"Resource": [
|
|
541
|
+
bucket.name,
|
|
542
|
+
bucket.name.apply(lambda name: f"{name}/*"),
|
|
543
|
+
],
|
|
544
|
+
}],
|
|
545
|
+
}))
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
**NB:** To configure the AWS provider with Scaleway credentials, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/storage/object/api-cli/object-storage-aws-cli/).
|
|
549
|
+
|
|
550
|
+
## Import
|
|
551
|
+
|
|
552
|
+
Bucket policies can be imported using the `{region}/{bucketName}` identifier, as shown below:
|
|
553
|
+
|
|
554
|
+
bash
|
|
555
|
+
|
|
556
|
+
```sh
|
|
557
|
+
$ pulumi import scaleway:index/objectBucketPolicy:ObjectBucketPolicy some_bucket fr-par/some-bucket
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
~> **Important:** The `project_id` attribute has a particular behavior with s3 products because the s3 API is scoped by project.
|
|
561
|
+
|
|
562
|
+
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.
|
|
563
|
+
|
|
564
|
+
bash
|
|
565
|
+
|
|
566
|
+
```sh
|
|
567
|
+
$ pulumi import scaleway:index/objectBucketPolicy:ObjectBucketPolicy some_bucket fr-par/some-bucket@xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
:param str resource_name: The name of the resource.
|
|
571
|
+
:param ObjectBucketPolicyArgs args: The arguments to use to populate this resource's properties.
|
|
572
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
573
|
+
"""
|
|
574
|
+
...
|
|
575
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
576
|
+
resource_args, opts = _utilities.get_resource_args_opts(ObjectBucketPolicyArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
577
|
+
if resource_args is not None:
|
|
578
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
579
|
+
else:
|
|
580
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
581
|
+
|
|
582
|
+
def _internal_init(__self__,
|
|
583
|
+
resource_name: str,
|
|
584
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
585
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
586
|
+
policy: Optional[pulumi.Input[str]] = None,
|
|
587
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
588
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
589
|
+
__props__=None):
|
|
590
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
591
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
592
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
593
|
+
if opts.id is None:
|
|
594
|
+
if __props__ is not None:
|
|
595
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
596
|
+
__props__ = ObjectBucketPolicyArgs.__new__(ObjectBucketPolicyArgs)
|
|
597
|
+
|
|
598
|
+
if bucket is None and not opts.urn:
|
|
599
|
+
raise TypeError("Missing required property 'bucket'")
|
|
600
|
+
__props__.__dict__["bucket"] = bucket
|
|
601
|
+
if policy is None and not opts.urn:
|
|
602
|
+
raise TypeError("Missing required property 'policy'")
|
|
603
|
+
__props__.__dict__["policy"] = policy
|
|
604
|
+
__props__.__dict__["project_id"] = project_id
|
|
605
|
+
__props__.__dict__["region"] = region
|
|
606
|
+
super(ObjectBucketPolicy, __self__).__init__(
|
|
607
|
+
'scaleway:index/objectBucketPolicy:ObjectBucketPolicy',
|
|
608
|
+
resource_name,
|
|
609
|
+
__props__,
|
|
610
|
+
opts)
|
|
611
|
+
|
|
612
|
+
@staticmethod
|
|
613
|
+
def get(resource_name: str,
|
|
614
|
+
id: pulumi.Input[str],
|
|
615
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
616
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
617
|
+
policy: Optional[pulumi.Input[str]] = None,
|
|
618
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
619
|
+
region: Optional[pulumi.Input[str]] = None) -> 'ObjectBucketPolicy':
|
|
620
|
+
"""
|
|
621
|
+
Get an existing ObjectBucketPolicy resource's state with the given name, id, and optional extra
|
|
622
|
+
properties used to qualify the lookup.
|
|
623
|
+
|
|
624
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
625
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
626
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
627
|
+
:param pulumi.Input[str] bucket: The bucket's name or regional ID.
|
|
628
|
+
:param pulumi.Input[str] policy: The text of the policy.
|
|
629
|
+
:param pulumi.Input[str] project_id: The project_id you want to attach the resource to
|
|
630
|
+
:param pulumi.Input[str] region: The Scaleway region this bucket resides in.
|
|
631
|
+
"""
|
|
632
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
633
|
+
|
|
634
|
+
__props__ = _ObjectBucketPolicyState.__new__(_ObjectBucketPolicyState)
|
|
635
|
+
|
|
636
|
+
__props__.__dict__["bucket"] = bucket
|
|
637
|
+
__props__.__dict__["policy"] = policy
|
|
638
|
+
__props__.__dict__["project_id"] = project_id
|
|
639
|
+
__props__.__dict__["region"] = region
|
|
640
|
+
return ObjectBucketPolicy(resource_name, opts=opts, __props__=__props__)
|
|
641
|
+
|
|
642
|
+
@property
|
|
643
|
+
@pulumi.getter
|
|
644
|
+
def bucket(self) -> pulumi.Output[str]:
|
|
645
|
+
"""
|
|
646
|
+
The bucket's name or regional ID.
|
|
647
|
+
"""
|
|
648
|
+
return pulumi.get(self, "bucket")
|
|
649
|
+
|
|
650
|
+
@property
|
|
651
|
+
@pulumi.getter
|
|
652
|
+
def policy(self) -> pulumi.Output[str]:
|
|
653
|
+
"""
|
|
654
|
+
The text of the policy.
|
|
655
|
+
"""
|
|
656
|
+
return pulumi.get(self, "policy")
|
|
657
|
+
|
|
658
|
+
@property
|
|
659
|
+
@pulumi.getter(name="projectId")
|
|
660
|
+
def project_id(self) -> pulumi.Output[str]:
|
|
661
|
+
"""
|
|
662
|
+
The project_id you want to attach the resource to
|
|
663
|
+
"""
|
|
664
|
+
return pulumi.get(self, "project_id")
|
|
665
|
+
|
|
666
|
+
@property
|
|
667
|
+
@pulumi.getter
|
|
668
|
+
def region(self) -> pulumi.Output[str]:
|
|
669
|
+
"""
|
|
670
|
+
The Scaleway region this bucket resides in.
|
|
671
|
+
"""
|
|
672
|
+
return pulumi.get(self, "region")
|
|
673
|
+
|