pulumiverse-scaleway 1.16.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 +1073 -0
- pulumiverse_scaleway/_inputs.py +8665 -0
- pulumiverse_scaleway/_utilities.py +327 -0
- pulumiverse_scaleway/account_project.py +316 -0
- pulumiverse_scaleway/account_ssh_key.py +450 -0
- pulumiverse_scaleway/apple_silicon_server.py +564 -0
- pulumiverse_scaleway/baremetal_server.py +1390 -0
- pulumiverse_scaleway/block_snapshot.py +391 -0
- pulumiverse_scaleway/block_volume.py +521 -0
- pulumiverse_scaleway/cockpit.py +299 -0
- pulumiverse_scaleway/cockpit_alert_manager.py +345 -0
- pulumiverse_scaleway/cockpit_grafana_user.py +326 -0
- pulumiverse_scaleway/cockpit_source.py +481 -0
- pulumiverse_scaleway/cockpit_token.py +461 -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 +1387 -0
- pulumiverse_scaleway/container_cron.py +493 -0
- pulumiverse_scaleway/container_domain.py +400 -0
- pulumiverse_scaleway/container_namespace.py +589 -0
- pulumiverse_scaleway/container_token.py +454 -0
- pulumiverse_scaleway/container_trigger.py +478 -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 +1636 -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/documentdb_database.py +450 -0
- pulumiverse_scaleway/documentdb_instance.py +812 -0
- pulumiverse_scaleway/documentdb_private_network_endpoint.py +352 -0
- pulumiverse_scaleway/documentdb_privilege.py +402 -0
- pulumiverse_scaleway/documentdb_read_replica.py +405 -0
- pulumiverse_scaleway/documentdb_user.py +442 -0
- pulumiverse_scaleway/domain_record.py +1074 -0
- pulumiverse_scaleway/domain_zone.py +458 -0
- pulumiverse_scaleway/flexible_ip.py +702 -0
- pulumiverse_scaleway/flexible_ip_mac_address.py +510 -0
- pulumiverse_scaleway/function.py +1145 -0
- pulumiverse_scaleway/function_cron.py +480 -0
- pulumiverse_scaleway/function_domain.py +361 -0
- pulumiverse_scaleway/function_namespace.py +533 -0
- pulumiverse_scaleway/function_token.py +462 -0
- pulumiverse_scaleway/function_trigger.py +478 -0
- pulumiverse_scaleway/get_account_project.py +164 -0
- pulumiverse_scaleway/get_account_ssh_key.py +201 -0
- pulumiverse_scaleway/get_availability_zones.py +131 -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 +411 -0
- pulumiverse_scaleway/get_billing_consumptions.py +134 -0
- pulumiverse_scaleway/get_billing_invoices.py +154 -0
- pulumiverse_scaleway/get_block_snapshot.py +170 -0
- pulumiverse_scaleway/get_block_volume.py +186 -0
- pulumiverse_scaleway/get_cockpit.py +179 -0
- pulumiverse_scaleway/get_cockpit_plan.py +113 -0
- pulumiverse_scaleway/get_config.py +180 -0
- pulumiverse_scaleway/get_container.py +502 -0
- pulumiverse_scaleway/get_container_namespace.py +262 -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_documentdb_database.py +198 -0
- pulumiverse_scaleway/get_documentdb_instance.py +245 -0
- pulumiverse_scaleway/get_documentdb_load_balancer_endpoint.py +198 -0
- pulumiverse_scaleway/get_domain_record.py +334 -0
- pulumiverse_scaleway/get_domain_zone.py +225 -0
- pulumiverse_scaleway/get_flexible_ip.py +247 -0
- pulumiverse_scaleway/get_flexible_ips.py +240 -0
- pulumiverse_scaleway/get_function.py +357 -0
- pulumiverse_scaleway/get_function_namespace.py +227 -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 +157 -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 +215 -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 +222 -0
- pulumiverse_scaleway/get_marketplace_image.py +147 -0
- pulumiverse_scaleway/get_mnq_sqs.py +150 -0
- pulumiverse_scaleway/get_object_bucket.py +278 -0
- pulumiverse_scaleway/get_object_bucket_policy.py +157 -0
- pulumiverse_scaleway/get_redis_cluster.py +347 -0
- pulumiverse_scaleway/get_registry_image.py +239 -0
- pulumiverse_scaleway/get_registry_namespace.py +199 -0
- pulumiverse_scaleway/get_secret.py +290 -0
- pulumiverse_scaleway/get_secret_version.py +303 -0
- pulumiverse_scaleway/get_tem_domain.py +367 -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 +727 -0
- pulumiverse_scaleway/iam_ssh_key.py +455 -0
- pulumiverse_scaleway/iam_user.py +466 -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 +454 -0
- pulumiverse_scaleway/instance_security_group.py +720 -0
- pulumiverse_scaleway/instance_security_group_rules.py +439 -0
- pulumiverse_scaleway/instance_server.py +1907 -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 +425 -0
- pulumiverse_scaleway/iot_route.py +660 -0
- pulumiverse_scaleway/ipam_ip.py +666 -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 +1095 -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 +328 -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/object_bucket.py +888 -0
- pulumiverse_scaleway/object_bucket_acl.py +592 -0
- pulumiverse_scaleway/object_bucket_lock_configuration.py +393 -0
- pulumiverse_scaleway/object_bucket_policy.py +671 -0
- pulumiverse_scaleway/object_bucket_website_configuration.py +532 -0
- pulumiverse_scaleway/object_item.py +711 -0
- pulumiverse_scaleway/outputs.py +11663 -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 +1166 -0
- pulumiverse_scaleway/registry_namespace.py +458 -0
- pulumiverse_scaleway/sdb_database.py +428 -0
- pulumiverse_scaleway/secret.py +560 -0
- pulumiverse_scaleway/secret_version.py +482 -0
- pulumiverse_scaleway/tem_domain.py +950 -0
- pulumiverse_scaleway/tem_domain_validation.py +303 -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/webhosting.py +805 -0
- pulumiverse_scaleway-1.16.0.dist-info/METADATA +69 -0
- pulumiverse_scaleway-1.16.0.dist-info/RECORD +205 -0
- pulumiverse_scaleway-1.16.0.dist-info/WHEEL +5 -0
- pulumiverse_scaleway-1.16.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,278 @@
|
|
|
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
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetObjectBucketResult',
|
|
20
|
+
'AwaitableGetObjectBucketResult',
|
|
21
|
+
'get_object_bucket',
|
|
22
|
+
'get_object_bucket_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetObjectBucketResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getObjectBucket.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, acl=None, api_endpoint=None, cors_rules=None, endpoint=None, force_destroy=None, id=None, lifecycle_rules=None, name=None, object_lock_enabled=None, project_id=None, region=None, tags=None, versionings=None):
|
|
31
|
+
if acl and not isinstance(acl, str):
|
|
32
|
+
raise TypeError("Expected argument 'acl' to be a str")
|
|
33
|
+
pulumi.set(__self__, "acl", acl)
|
|
34
|
+
if api_endpoint and not isinstance(api_endpoint, str):
|
|
35
|
+
raise TypeError("Expected argument 'api_endpoint' to be a str")
|
|
36
|
+
pulumi.set(__self__, "api_endpoint", api_endpoint)
|
|
37
|
+
if cors_rules and not isinstance(cors_rules, list):
|
|
38
|
+
raise TypeError("Expected argument 'cors_rules' to be a list")
|
|
39
|
+
pulumi.set(__self__, "cors_rules", cors_rules)
|
|
40
|
+
if endpoint and not isinstance(endpoint, str):
|
|
41
|
+
raise TypeError("Expected argument 'endpoint' to be a str")
|
|
42
|
+
pulumi.set(__self__, "endpoint", endpoint)
|
|
43
|
+
if force_destroy and not isinstance(force_destroy, bool):
|
|
44
|
+
raise TypeError("Expected argument 'force_destroy' to be a bool")
|
|
45
|
+
pulumi.set(__self__, "force_destroy", force_destroy)
|
|
46
|
+
if id and not isinstance(id, str):
|
|
47
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
48
|
+
pulumi.set(__self__, "id", id)
|
|
49
|
+
if lifecycle_rules and not isinstance(lifecycle_rules, list):
|
|
50
|
+
raise TypeError("Expected argument 'lifecycle_rules' to be a list")
|
|
51
|
+
pulumi.set(__self__, "lifecycle_rules", lifecycle_rules)
|
|
52
|
+
if name and not isinstance(name, str):
|
|
53
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
54
|
+
pulumi.set(__self__, "name", name)
|
|
55
|
+
if object_lock_enabled and not isinstance(object_lock_enabled, bool):
|
|
56
|
+
raise TypeError("Expected argument 'object_lock_enabled' to be a bool")
|
|
57
|
+
pulumi.set(__self__, "object_lock_enabled", object_lock_enabled)
|
|
58
|
+
if project_id and not isinstance(project_id, str):
|
|
59
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
60
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
61
|
+
if region and not isinstance(region, str):
|
|
62
|
+
raise TypeError("Expected argument 'region' to be a str")
|
|
63
|
+
pulumi.set(__self__, "region", region)
|
|
64
|
+
if tags and not isinstance(tags, dict):
|
|
65
|
+
raise TypeError("Expected argument 'tags' to be a dict")
|
|
66
|
+
pulumi.set(__self__, "tags", tags)
|
|
67
|
+
if versionings and not isinstance(versionings, list):
|
|
68
|
+
raise TypeError("Expected argument 'versionings' to be a list")
|
|
69
|
+
pulumi.set(__self__, "versionings", versionings)
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
@pulumi.getter
|
|
73
|
+
def acl(self) -> str:
|
|
74
|
+
return pulumi.get(self, "acl")
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
@pulumi.getter(name="apiEndpoint")
|
|
78
|
+
def api_endpoint(self) -> str:
|
|
79
|
+
return pulumi.get(self, "api_endpoint")
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
@pulumi.getter(name="corsRules")
|
|
83
|
+
def cors_rules(self) -> Sequence['outputs.GetObjectBucketCorsRuleResult']:
|
|
84
|
+
return pulumi.get(self, "cors_rules")
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
@pulumi.getter
|
|
88
|
+
def endpoint(self) -> str:
|
|
89
|
+
"""
|
|
90
|
+
The endpoint URL of the bucket
|
|
91
|
+
"""
|
|
92
|
+
return pulumi.get(self, "endpoint")
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
@pulumi.getter(name="forceDestroy")
|
|
96
|
+
def force_destroy(self) -> bool:
|
|
97
|
+
return pulumi.get(self, "force_destroy")
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
@pulumi.getter
|
|
101
|
+
def id(self) -> str:
|
|
102
|
+
"""
|
|
103
|
+
The provider-assigned unique ID for this managed resource.
|
|
104
|
+
"""
|
|
105
|
+
return pulumi.get(self, "id")
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
@pulumi.getter(name="lifecycleRules")
|
|
109
|
+
def lifecycle_rules(self) -> Sequence['outputs.GetObjectBucketLifecycleRuleResult']:
|
|
110
|
+
return pulumi.get(self, "lifecycle_rules")
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
@pulumi.getter
|
|
114
|
+
def name(self) -> Optional[str]:
|
|
115
|
+
return pulumi.get(self, "name")
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
@pulumi.getter(name="objectLockEnabled")
|
|
119
|
+
def object_lock_enabled(self) -> bool:
|
|
120
|
+
return pulumi.get(self, "object_lock_enabled")
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
@pulumi.getter(name="projectId")
|
|
124
|
+
def project_id(self) -> Optional[str]:
|
|
125
|
+
return pulumi.get(self, "project_id")
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
@pulumi.getter
|
|
129
|
+
def region(self) -> Optional[str]:
|
|
130
|
+
return pulumi.get(self, "region")
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
@pulumi.getter
|
|
134
|
+
def tags(self) -> Mapping[str, str]:
|
|
135
|
+
return pulumi.get(self, "tags")
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
@pulumi.getter
|
|
139
|
+
def versionings(self) -> Sequence['outputs.GetObjectBucketVersioningResult']:
|
|
140
|
+
return pulumi.get(self, "versionings")
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
class AwaitableGetObjectBucketResult(GetObjectBucketResult):
|
|
144
|
+
# pylint: disable=using-constant-test
|
|
145
|
+
def __await__(self):
|
|
146
|
+
if False:
|
|
147
|
+
yield self
|
|
148
|
+
return GetObjectBucketResult(
|
|
149
|
+
acl=self.acl,
|
|
150
|
+
api_endpoint=self.api_endpoint,
|
|
151
|
+
cors_rules=self.cors_rules,
|
|
152
|
+
endpoint=self.endpoint,
|
|
153
|
+
force_destroy=self.force_destroy,
|
|
154
|
+
id=self.id,
|
|
155
|
+
lifecycle_rules=self.lifecycle_rules,
|
|
156
|
+
name=self.name,
|
|
157
|
+
object_lock_enabled=self.object_lock_enabled,
|
|
158
|
+
project_id=self.project_id,
|
|
159
|
+
region=self.region,
|
|
160
|
+
tags=self.tags,
|
|
161
|
+
versionings=self.versionings)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
def get_object_bucket(name: Optional[str] = None,
|
|
165
|
+
project_id: Optional[str] = None,
|
|
166
|
+
region: Optional[str] = None,
|
|
167
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetObjectBucketResult:
|
|
168
|
+
"""
|
|
169
|
+
Gets information about the Bucket.
|
|
170
|
+
For more information, see [the documentation](https://www.scaleway.com/en/docs/object-storage-feature/).
|
|
171
|
+
|
|
172
|
+
## Example Usage
|
|
173
|
+
|
|
174
|
+
```python
|
|
175
|
+
import pulumi
|
|
176
|
+
import pulumi_scaleway as scaleway
|
|
177
|
+
import pulumiverse_scaleway as scaleway
|
|
178
|
+
|
|
179
|
+
main = scaleway.ObjectBucket("main",
|
|
180
|
+
name="bucket.test.com",
|
|
181
|
+
tags={
|
|
182
|
+
"foo": "bar",
|
|
183
|
+
})
|
|
184
|
+
selected = scaleway.get_object_bucket_output(name=main.id)
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Fetching the bucket from a specific project
|
|
188
|
+
|
|
189
|
+
```python
|
|
190
|
+
import pulumi
|
|
191
|
+
import pulumi_scaleway as scaleway
|
|
192
|
+
|
|
193
|
+
selected = scaleway.get_object_bucket(name="bucket.test.com",
|
|
194
|
+
project_id="11111111-1111-1111-1111-111111111111")
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
:param str project_id: `project_id`) The ID of the project the bucket is associated with.
|
|
199
|
+
:param str region: `region`) The region in which the bucket exists.
|
|
200
|
+
"""
|
|
201
|
+
__args__ = dict()
|
|
202
|
+
__args__['name'] = name
|
|
203
|
+
__args__['projectId'] = project_id
|
|
204
|
+
__args__['region'] = region
|
|
205
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
206
|
+
__ret__ = pulumi.runtime.invoke('scaleway:index/getObjectBucket:getObjectBucket', __args__, opts=opts, typ=GetObjectBucketResult).value
|
|
207
|
+
|
|
208
|
+
return AwaitableGetObjectBucketResult(
|
|
209
|
+
acl=pulumi.get(__ret__, 'acl'),
|
|
210
|
+
api_endpoint=pulumi.get(__ret__, 'api_endpoint'),
|
|
211
|
+
cors_rules=pulumi.get(__ret__, 'cors_rules'),
|
|
212
|
+
endpoint=pulumi.get(__ret__, 'endpoint'),
|
|
213
|
+
force_destroy=pulumi.get(__ret__, 'force_destroy'),
|
|
214
|
+
id=pulumi.get(__ret__, 'id'),
|
|
215
|
+
lifecycle_rules=pulumi.get(__ret__, 'lifecycle_rules'),
|
|
216
|
+
name=pulumi.get(__ret__, 'name'),
|
|
217
|
+
object_lock_enabled=pulumi.get(__ret__, 'object_lock_enabled'),
|
|
218
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
219
|
+
region=pulumi.get(__ret__, 'region'),
|
|
220
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
221
|
+
versionings=pulumi.get(__ret__, 'versionings'))
|
|
222
|
+
def get_object_bucket_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
223
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
224
|
+
region: Optional[pulumi.Input[Optional[str]]] = None,
|
|
225
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetObjectBucketResult]:
|
|
226
|
+
"""
|
|
227
|
+
Gets information about the Bucket.
|
|
228
|
+
For more information, see [the documentation](https://www.scaleway.com/en/docs/object-storage-feature/).
|
|
229
|
+
|
|
230
|
+
## Example Usage
|
|
231
|
+
|
|
232
|
+
```python
|
|
233
|
+
import pulumi
|
|
234
|
+
import pulumi_scaleway as scaleway
|
|
235
|
+
import pulumiverse_scaleway as scaleway
|
|
236
|
+
|
|
237
|
+
main = scaleway.ObjectBucket("main",
|
|
238
|
+
name="bucket.test.com",
|
|
239
|
+
tags={
|
|
240
|
+
"foo": "bar",
|
|
241
|
+
})
|
|
242
|
+
selected = scaleway.get_object_bucket_output(name=main.id)
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Fetching the bucket from a specific project
|
|
246
|
+
|
|
247
|
+
```python
|
|
248
|
+
import pulumi
|
|
249
|
+
import pulumi_scaleway as scaleway
|
|
250
|
+
|
|
251
|
+
selected = scaleway.get_object_bucket(name="bucket.test.com",
|
|
252
|
+
project_id="11111111-1111-1111-1111-111111111111")
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
:param str project_id: `project_id`) The ID of the project the bucket is associated with.
|
|
257
|
+
:param str region: `region`) The region in which the bucket exists.
|
|
258
|
+
"""
|
|
259
|
+
__args__ = dict()
|
|
260
|
+
__args__['name'] = name
|
|
261
|
+
__args__['projectId'] = project_id
|
|
262
|
+
__args__['region'] = region
|
|
263
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
264
|
+
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getObjectBucket:getObjectBucket', __args__, opts=opts, typ=GetObjectBucketResult)
|
|
265
|
+
return __ret__.apply(lambda __response__: GetObjectBucketResult(
|
|
266
|
+
acl=pulumi.get(__response__, 'acl'),
|
|
267
|
+
api_endpoint=pulumi.get(__response__, 'api_endpoint'),
|
|
268
|
+
cors_rules=pulumi.get(__response__, 'cors_rules'),
|
|
269
|
+
endpoint=pulumi.get(__response__, 'endpoint'),
|
|
270
|
+
force_destroy=pulumi.get(__response__, 'force_destroy'),
|
|
271
|
+
id=pulumi.get(__response__, 'id'),
|
|
272
|
+
lifecycle_rules=pulumi.get(__response__, 'lifecycle_rules'),
|
|
273
|
+
name=pulumi.get(__response__, 'name'),
|
|
274
|
+
object_lock_enabled=pulumi.get(__response__, 'object_lock_enabled'),
|
|
275
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
276
|
+
region=pulumi.get(__response__, 'region'),
|
|
277
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
278
|
+
versionings=pulumi.get(__response__, 'versionings')))
|
|
@@ -0,0 +1,157 @@
|
|
|
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__ = [
|
|
18
|
+
'GetObjectBucketPolicyResult',
|
|
19
|
+
'AwaitableGetObjectBucketPolicyResult',
|
|
20
|
+
'get_object_bucket_policy',
|
|
21
|
+
'get_object_bucket_policy_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class GetObjectBucketPolicyResult:
|
|
26
|
+
"""
|
|
27
|
+
A collection of values returned by getObjectBucketPolicy.
|
|
28
|
+
"""
|
|
29
|
+
def __init__(__self__, bucket=None, id=None, policy=None, project_id=None, region=None):
|
|
30
|
+
if bucket and not isinstance(bucket, str):
|
|
31
|
+
raise TypeError("Expected argument 'bucket' to be a str")
|
|
32
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
33
|
+
if id and not isinstance(id, str):
|
|
34
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
35
|
+
pulumi.set(__self__, "id", id)
|
|
36
|
+
if policy and not isinstance(policy, str):
|
|
37
|
+
raise TypeError("Expected argument 'policy' to be a str")
|
|
38
|
+
pulumi.set(__self__, "policy", policy)
|
|
39
|
+
if project_id and not isinstance(project_id, str):
|
|
40
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
41
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
42
|
+
if region and not isinstance(region, str):
|
|
43
|
+
raise TypeError("Expected argument 'region' to be a str")
|
|
44
|
+
pulumi.set(__self__, "region", region)
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
@pulumi.getter
|
|
48
|
+
def bucket(self) -> str:
|
|
49
|
+
return pulumi.get(self, "bucket")
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
@pulumi.getter
|
|
53
|
+
def id(self) -> str:
|
|
54
|
+
"""
|
|
55
|
+
The provider-assigned unique ID for this managed resource.
|
|
56
|
+
"""
|
|
57
|
+
return pulumi.get(self, "id")
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
@pulumi.getter
|
|
61
|
+
def policy(self) -> str:
|
|
62
|
+
"""
|
|
63
|
+
The bucket's policy in JSON format.
|
|
64
|
+
"""
|
|
65
|
+
return pulumi.get(self, "policy")
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
@pulumi.getter(name="projectId")
|
|
69
|
+
def project_id(self) -> Optional[str]:
|
|
70
|
+
return pulumi.get(self, "project_id")
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
@pulumi.getter
|
|
74
|
+
def region(self) -> Optional[str]:
|
|
75
|
+
return pulumi.get(self, "region")
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class AwaitableGetObjectBucketPolicyResult(GetObjectBucketPolicyResult):
|
|
79
|
+
# pylint: disable=using-constant-test
|
|
80
|
+
def __await__(self):
|
|
81
|
+
if False:
|
|
82
|
+
yield self
|
|
83
|
+
return GetObjectBucketPolicyResult(
|
|
84
|
+
bucket=self.bucket,
|
|
85
|
+
id=self.id,
|
|
86
|
+
policy=self.policy,
|
|
87
|
+
project_id=self.project_id,
|
|
88
|
+
region=self.region)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def get_object_bucket_policy(bucket: Optional[str] = None,
|
|
92
|
+
project_id: Optional[str] = None,
|
|
93
|
+
region: Optional[str] = None,
|
|
94
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetObjectBucketPolicyResult:
|
|
95
|
+
"""
|
|
96
|
+
Gets information about the Bucket's policy.
|
|
97
|
+
For more information, see [the documentation](https://www.scaleway.com/en/docs/object-storage-feature/).
|
|
98
|
+
|
|
99
|
+
## Example Usage
|
|
100
|
+
|
|
101
|
+
```python
|
|
102
|
+
import pulumi
|
|
103
|
+
import pulumi_scaleway as scaleway
|
|
104
|
+
|
|
105
|
+
main = scaleway.get_object_bucket_policy(bucket="bucket.test.com")
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param str bucket: The bucket name.
|
|
110
|
+
:param str region: `region`) The region in which the Object Storage exists.
|
|
111
|
+
"""
|
|
112
|
+
__args__ = dict()
|
|
113
|
+
__args__['bucket'] = bucket
|
|
114
|
+
__args__['projectId'] = project_id
|
|
115
|
+
__args__['region'] = region
|
|
116
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
117
|
+
__ret__ = pulumi.runtime.invoke('scaleway:index/getObjectBucketPolicy:getObjectBucketPolicy', __args__, opts=opts, typ=GetObjectBucketPolicyResult).value
|
|
118
|
+
|
|
119
|
+
return AwaitableGetObjectBucketPolicyResult(
|
|
120
|
+
bucket=pulumi.get(__ret__, 'bucket'),
|
|
121
|
+
id=pulumi.get(__ret__, 'id'),
|
|
122
|
+
policy=pulumi.get(__ret__, 'policy'),
|
|
123
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
124
|
+
region=pulumi.get(__ret__, 'region'))
|
|
125
|
+
def get_object_bucket_policy_output(bucket: Optional[pulumi.Input[str]] = None,
|
|
126
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
127
|
+
region: Optional[pulumi.Input[Optional[str]]] = None,
|
|
128
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetObjectBucketPolicyResult]:
|
|
129
|
+
"""
|
|
130
|
+
Gets information about the Bucket's policy.
|
|
131
|
+
For more information, see [the documentation](https://www.scaleway.com/en/docs/object-storage-feature/).
|
|
132
|
+
|
|
133
|
+
## Example Usage
|
|
134
|
+
|
|
135
|
+
```python
|
|
136
|
+
import pulumi
|
|
137
|
+
import pulumi_scaleway as scaleway
|
|
138
|
+
|
|
139
|
+
main = scaleway.get_object_bucket_policy(bucket="bucket.test.com")
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
:param str bucket: The bucket name.
|
|
144
|
+
:param str region: `region`) The region in which the Object Storage exists.
|
|
145
|
+
"""
|
|
146
|
+
__args__ = dict()
|
|
147
|
+
__args__['bucket'] = bucket
|
|
148
|
+
__args__['projectId'] = project_id
|
|
149
|
+
__args__['region'] = region
|
|
150
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
151
|
+
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getObjectBucketPolicy:getObjectBucketPolicy', __args__, opts=opts, typ=GetObjectBucketPolicyResult)
|
|
152
|
+
return __ret__.apply(lambda __response__: GetObjectBucketPolicyResult(
|
|
153
|
+
bucket=pulumi.get(__response__, 'bucket'),
|
|
154
|
+
id=pulumi.get(__response__, 'id'),
|
|
155
|
+
policy=pulumi.get(__response__, 'policy'),
|
|
156
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
157
|
+
region=pulumi.get(__response__, 'region')))
|