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,324 @@
|
|
|
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
|
+
'GetMongoDbInstanceResult',
|
|
20
|
+
'AwaitableGetMongoDbInstanceResult',
|
|
21
|
+
'get_mongo_db_instance',
|
|
22
|
+
'get_mongo_db_instance_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetMongoDbInstanceResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getMongoDbInstance.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, created_at=None, id=None, instance_id=None, name=None, node_number=None, node_type=None, password=None, project_id=None, public_networks=None, region=None, settings=None, snapshot_id=None, tags=None, updated_at=None, user_name=None, version=None, volume_size_in_gb=None, volume_type=None):
|
|
31
|
+
if created_at and not isinstance(created_at, str):
|
|
32
|
+
raise TypeError("Expected argument 'created_at' to be a str")
|
|
33
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
34
|
+
if id and not isinstance(id, str):
|
|
35
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "id", id)
|
|
37
|
+
if instance_id and not isinstance(instance_id, str):
|
|
38
|
+
raise TypeError("Expected argument 'instance_id' to be a str")
|
|
39
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
|
40
|
+
if name and not isinstance(name, str):
|
|
41
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
42
|
+
pulumi.set(__self__, "name", name)
|
|
43
|
+
if node_number and not isinstance(node_number, int):
|
|
44
|
+
raise TypeError("Expected argument 'node_number' to be a int")
|
|
45
|
+
pulumi.set(__self__, "node_number", node_number)
|
|
46
|
+
if node_type and not isinstance(node_type, str):
|
|
47
|
+
raise TypeError("Expected argument 'node_type' to be a str")
|
|
48
|
+
pulumi.set(__self__, "node_type", node_type)
|
|
49
|
+
if password and not isinstance(password, str):
|
|
50
|
+
raise TypeError("Expected argument 'password' to be a str")
|
|
51
|
+
pulumi.set(__self__, "password", password)
|
|
52
|
+
if project_id and not isinstance(project_id, str):
|
|
53
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
54
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
55
|
+
if public_networks and not isinstance(public_networks, list):
|
|
56
|
+
raise TypeError("Expected argument 'public_networks' to be a list")
|
|
57
|
+
pulumi.set(__self__, "public_networks", public_networks)
|
|
58
|
+
if region and not isinstance(region, str):
|
|
59
|
+
raise TypeError("Expected argument 'region' to be a str")
|
|
60
|
+
pulumi.set(__self__, "region", region)
|
|
61
|
+
if settings and not isinstance(settings, dict):
|
|
62
|
+
raise TypeError("Expected argument 'settings' to be a dict")
|
|
63
|
+
pulumi.set(__self__, "settings", settings)
|
|
64
|
+
if snapshot_id and not isinstance(snapshot_id, str):
|
|
65
|
+
raise TypeError("Expected argument 'snapshot_id' to be a str")
|
|
66
|
+
pulumi.set(__self__, "snapshot_id", snapshot_id)
|
|
67
|
+
if tags and not isinstance(tags, list):
|
|
68
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
69
|
+
pulumi.set(__self__, "tags", tags)
|
|
70
|
+
if updated_at and not isinstance(updated_at, str):
|
|
71
|
+
raise TypeError("Expected argument 'updated_at' to be a str")
|
|
72
|
+
pulumi.set(__self__, "updated_at", updated_at)
|
|
73
|
+
if user_name and not isinstance(user_name, str):
|
|
74
|
+
raise TypeError("Expected argument 'user_name' to be a str")
|
|
75
|
+
pulumi.set(__self__, "user_name", user_name)
|
|
76
|
+
if version and not isinstance(version, str):
|
|
77
|
+
raise TypeError("Expected argument 'version' to be a str")
|
|
78
|
+
pulumi.set(__self__, "version", version)
|
|
79
|
+
if volume_size_in_gb and not isinstance(volume_size_in_gb, int):
|
|
80
|
+
raise TypeError("Expected argument 'volume_size_in_gb' to be a int")
|
|
81
|
+
pulumi.set(__self__, "volume_size_in_gb", volume_size_in_gb)
|
|
82
|
+
if volume_type and not isinstance(volume_type, str):
|
|
83
|
+
raise TypeError("Expected argument 'volume_type' to be a str")
|
|
84
|
+
pulumi.set(__self__, "volume_type", volume_type)
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
@pulumi.getter(name="createdAt")
|
|
88
|
+
def created_at(self) -> str:
|
|
89
|
+
"""
|
|
90
|
+
The date and time the MongoDB® instance was created.
|
|
91
|
+
"""
|
|
92
|
+
return pulumi.get(self, "created_at")
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
@pulumi.getter
|
|
96
|
+
def id(self) -> str:
|
|
97
|
+
"""
|
|
98
|
+
The provider-assigned unique ID for this managed resource.
|
|
99
|
+
"""
|
|
100
|
+
return pulumi.get(self, "id")
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
@pulumi.getter(name="instanceId")
|
|
104
|
+
def instance_id(self) -> Optional[str]:
|
|
105
|
+
return pulumi.get(self, "instance_id")
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
@pulumi.getter
|
|
109
|
+
def name(self) -> Optional[str]:
|
|
110
|
+
"""
|
|
111
|
+
The name of the MongoDB® instance.
|
|
112
|
+
"""
|
|
113
|
+
return pulumi.get(self, "name")
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
@pulumi.getter(name="nodeNumber")
|
|
117
|
+
def node_number(self) -> int:
|
|
118
|
+
"""
|
|
119
|
+
The number of nodes in the MongoDB® cluster.
|
|
120
|
+
"""
|
|
121
|
+
return pulumi.get(self, "node_number")
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
@pulumi.getter(name="nodeType")
|
|
125
|
+
def node_type(self) -> str:
|
|
126
|
+
"""
|
|
127
|
+
The type of MongoDB® node.
|
|
128
|
+
"""
|
|
129
|
+
return pulumi.get(self, "node_type")
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
@pulumi.getter
|
|
133
|
+
def password(self) -> str:
|
|
134
|
+
return pulumi.get(self, "password")
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
@pulumi.getter(name="projectId")
|
|
138
|
+
def project_id(self) -> Optional[str]:
|
|
139
|
+
"""
|
|
140
|
+
The ID of the project the instance belongs to.
|
|
141
|
+
"""
|
|
142
|
+
return pulumi.get(self, "project_id")
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
@pulumi.getter(name="publicNetworks")
|
|
146
|
+
def public_networks(self) -> Sequence['outputs.GetMongoDbInstancePublicNetworkResult']:
|
|
147
|
+
"""
|
|
148
|
+
The details of the public network configuration, if applicable.
|
|
149
|
+
"""
|
|
150
|
+
return pulumi.get(self, "public_networks")
|
|
151
|
+
|
|
152
|
+
@property
|
|
153
|
+
@pulumi.getter
|
|
154
|
+
def region(self) -> Optional[str]:
|
|
155
|
+
return pulumi.get(self, "region")
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
@pulumi.getter
|
|
159
|
+
def settings(self) -> Mapping[str, str]:
|
|
160
|
+
return pulumi.get(self, "settings")
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
@pulumi.getter(name="snapshotId")
|
|
164
|
+
def snapshot_id(self) -> str:
|
|
165
|
+
return pulumi.get(self, "snapshot_id")
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
@pulumi.getter
|
|
169
|
+
def tags(self) -> Sequence[str]:
|
|
170
|
+
"""
|
|
171
|
+
A list of tags attached to the MongoDB® instance.
|
|
172
|
+
"""
|
|
173
|
+
return pulumi.get(self, "tags")
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
@pulumi.getter(name="updatedAt")
|
|
177
|
+
def updated_at(self) -> str:
|
|
178
|
+
return pulumi.get(self, "updated_at")
|
|
179
|
+
|
|
180
|
+
@property
|
|
181
|
+
@pulumi.getter(name="userName")
|
|
182
|
+
def user_name(self) -> str:
|
|
183
|
+
return pulumi.get(self, "user_name")
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
@pulumi.getter
|
|
187
|
+
def version(self) -> str:
|
|
188
|
+
"""
|
|
189
|
+
The version of MongoDB® running on the instance.
|
|
190
|
+
"""
|
|
191
|
+
return pulumi.get(self, "version")
|
|
192
|
+
|
|
193
|
+
@property
|
|
194
|
+
@pulumi.getter(name="volumeSizeInGb")
|
|
195
|
+
def volume_size_in_gb(self) -> int:
|
|
196
|
+
"""
|
|
197
|
+
The size of the attached volume, in GB.
|
|
198
|
+
"""
|
|
199
|
+
return pulumi.get(self, "volume_size_in_gb")
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
@pulumi.getter(name="volumeType")
|
|
203
|
+
def volume_type(self) -> str:
|
|
204
|
+
"""
|
|
205
|
+
The type of volume attached to the MongoDB® instance.
|
|
206
|
+
"""
|
|
207
|
+
return pulumi.get(self, "volume_type")
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
class AwaitableGetMongoDbInstanceResult(GetMongoDbInstanceResult):
|
|
211
|
+
# pylint: disable=using-constant-test
|
|
212
|
+
def __await__(self):
|
|
213
|
+
if False:
|
|
214
|
+
yield self
|
|
215
|
+
return GetMongoDbInstanceResult(
|
|
216
|
+
created_at=self.created_at,
|
|
217
|
+
id=self.id,
|
|
218
|
+
instance_id=self.instance_id,
|
|
219
|
+
name=self.name,
|
|
220
|
+
node_number=self.node_number,
|
|
221
|
+
node_type=self.node_type,
|
|
222
|
+
password=self.password,
|
|
223
|
+
project_id=self.project_id,
|
|
224
|
+
public_networks=self.public_networks,
|
|
225
|
+
region=self.region,
|
|
226
|
+
settings=self.settings,
|
|
227
|
+
snapshot_id=self.snapshot_id,
|
|
228
|
+
tags=self.tags,
|
|
229
|
+
updated_at=self.updated_at,
|
|
230
|
+
user_name=self.user_name,
|
|
231
|
+
version=self.version,
|
|
232
|
+
volume_size_in_gb=self.volume_size_in_gb,
|
|
233
|
+
volume_type=self.volume_type)
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def get_mongo_db_instance(instance_id: Optional[str] = None,
|
|
237
|
+
name: Optional[str] = None,
|
|
238
|
+
project_id: Optional[str] = None,
|
|
239
|
+
region: Optional[str] = None,
|
|
240
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMongoDbInstanceResult:
|
|
241
|
+
"""
|
|
242
|
+
Gets information about a MongoDB® Instance.
|
|
243
|
+
|
|
244
|
+
For further information refer to the Managed Databases for MongoDB® [API documentation](https://developers.scaleway.com/en/products/mongodb/api/)
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
:param str instance_id: The MongoDB® instance ID.
|
|
248
|
+
|
|
249
|
+
> **Note** You must specify at least one: `name` or `instance_id`.
|
|
250
|
+
:param str name: The name of the MongoDB® instance.
|
|
251
|
+
:param str project_id: The ID of the project the MongoDB® instance is in. Can be used to filter instances when using `name`.
|
|
252
|
+
:param str region: `region`) The region in which the MongoDB® Instance exists.
|
|
253
|
+
"""
|
|
254
|
+
__args__ = dict()
|
|
255
|
+
__args__['instanceId'] = instance_id
|
|
256
|
+
__args__['name'] = name
|
|
257
|
+
__args__['projectId'] = project_id
|
|
258
|
+
__args__['region'] = region
|
|
259
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
260
|
+
__ret__ = pulumi.runtime.invoke('scaleway:index/getMongoDbInstance:getMongoDbInstance', __args__, opts=opts, typ=GetMongoDbInstanceResult).value
|
|
261
|
+
|
|
262
|
+
return AwaitableGetMongoDbInstanceResult(
|
|
263
|
+
created_at=pulumi.get(__ret__, 'created_at'),
|
|
264
|
+
id=pulumi.get(__ret__, 'id'),
|
|
265
|
+
instance_id=pulumi.get(__ret__, 'instance_id'),
|
|
266
|
+
name=pulumi.get(__ret__, 'name'),
|
|
267
|
+
node_number=pulumi.get(__ret__, 'node_number'),
|
|
268
|
+
node_type=pulumi.get(__ret__, 'node_type'),
|
|
269
|
+
password=pulumi.get(__ret__, 'password'),
|
|
270
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
271
|
+
public_networks=pulumi.get(__ret__, 'public_networks'),
|
|
272
|
+
region=pulumi.get(__ret__, 'region'),
|
|
273
|
+
settings=pulumi.get(__ret__, 'settings'),
|
|
274
|
+
snapshot_id=pulumi.get(__ret__, 'snapshot_id'),
|
|
275
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
276
|
+
updated_at=pulumi.get(__ret__, 'updated_at'),
|
|
277
|
+
user_name=pulumi.get(__ret__, 'user_name'),
|
|
278
|
+
version=pulumi.get(__ret__, 'version'),
|
|
279
|
+
volume_size_in_gb=pulumi.get(__ret__, 'volume_size_in_gb'),
|
|
280
|
+
volume_type=pulumi.get(__ret__, 'volume_type'))
|
|
281
|
+
def get_mongo_db_instance_output(instance_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
282
|
+
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
283
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
284
|
+
region: Optional[pulumi.Input[Optional[str]]] = None,
|
|
285
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetMongoDbInstanceResult]:
|
|
286
|
+
"""
|
|
287
|
+
Gets information about a MongoDB® Instance.
|
|
288
|
+
|
|
289
|
+
For further information refer to the Managed Databases for MongoDB® [API documentation](https://developers.scaleway.com/en/products/mongodb/api/)
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
:param str instance_id: The MongoDB® instance ID.
|
|
293
|
+
|
|
294
|
+
> **Note** You must specify at least one: `name` or `instance_id`.
|
|
295
|
+
:param str name: The name of the MongoDB® instance.
|
|
296
|
+
:param str project_id: The ID of the project the MongoDB® instance is in. Can be used to filter instances when using `name`.
|
|
297
|
+
:param str region: `region`) The region in which the MongoDB® Instance exists.
|
|
298
|
+
"""
|
|
299
|
+
__args__ = dict()
|
|
300
|
+
__args__['instanceId'] = instance_id
|
|
301
|
+
__args__['name'] = name
|
|
302
|
+
__args__['projectId'] = project_id
|
|
303
|
+
__args__['region'] = region
|
|
304
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
305
|
+
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getMongoDbInstance:getMongoDbInstance', __args__, opts=opts, typ=GetMongoDbInstanceResult)
|
|
306
|
+
return __ret__.apply(lambda __response__: GetMongoDbInstanceResult(
|
|
307
|
+
created_at=pulumi.get(__response__, 'created_at'),
|
|
308
|
+
id=pulumi.get(__response__, 'id'),
|
|
309
|
+
instance_id=pulumi.get(__response__, 'instance_id'),
|
|
310
|
+
name=pulumi.get(__response__, 'name'),
|
|
311
|
+
node_number=pulumi.get(__response__, 'node_number'),
|
|
312
|
+
node_type=pulumi.get(__response__, 'node_type'),
|
|
313
|
+
password=pulumi.get(__response__, 'password'),
|
|
314
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
315
|
+
public_networks=pulumi.get(__response__, 'public_networks'),
|
|
316
|
+
region=pulumi.get(__response__, 'region'),
|
|
317
|
+
settings=pulumi.get(__response__, 'settings'),
|
|
318
|
+
snapshot_id=pulumi.get(__response__, 'snapshot_id'),
|
|
319
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
320
|
+
updated_at=pulumi.get(__response__, 'updated_at'),
|
|
321
|
+
user_name=pulumi.get(__response__, 'user_name'),
|
|
322
|
+
version=pulumi.get(__response__, 'version'),
|
|
323
|
+
volume_size_in_gb=pulumi.get(__response__, 'volume_size_in_gb'),
|
|
324
|
+
volume_type=pulumi.get(__response__, 'volume_type')))
|
|
@@ -0,0 +1,290 @@
|
|
|
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
|
+
The `ObjectBucket` data source is used to retrieve information about an Object Storage bucket.
|
|
170
|
+
|
|
171
|
+
Refer to the Object Storage [documentation](https://www.scaleway.com/en/docs/storage/object/how-to/create-a-bucket/) for more information.
|
|
172
|
+
|
|
173
|
+
## Retrieve an Object Storage bucket
|
|
174
|
+
|
|
175
|
+
The following commands allow you to:
|
|
176
|
+
|
|
177
|
+
- retrieve a bucket by its name
|
|
178
|
+
- retrieve a bucket by its ID
|
|
179
|
+
|
|
180
|
+
```python
|
|
181
|
+
import pulumi
|
|
182
|
+
import pulumi_scaleway as scaleway
|
|
183
|
+
import pulumiverse_scaleway as scaleway
|
|
184
|
+
|
|
185
|
+
main = scaleway.ObjectBucket("main",
|
|
186
|
+
name="bucket.test.com",
|
|
187
|
+
tags={
|
|
188
|
+
"foo": "bar",
|
|
189
|
+
})
|
|
190
|
+
selected = scaleway.get_object_bucket_output(name=main.id)
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Retrieve a bucket from a specific project
|
|
194
|
+
|
|
195
|
+
```python
|
|
196
|
+
import pulumi
|
|
197
|
+
import pulumi_scaleway as scaleway
|
|
198
|
+
|
|
199
|
+
selected = scaleway.get_object_bucket(name="bucket.test.com",
|
|
200
|
+
project_id="11111111-1111-1111-1111-111111111111")
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
:param str project_id: `project_id`) The ID of the project with which the bucket is associated.
|
|
205
|
+
:param str region: `region`) The region in which the bucket exists.
|
|
206
|
+
"""
|
|
207
|
+
__args__ = dict()
|
|
208
|
+
__args__['name'] = name
|
|
209
|
+
__args__['projectId'] = project_id
|
|
210
|
+
__args__['region'] = region
|
|
211
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
212
|
+
__ret__ = pulumi.runtime.invoke('scaleway:index/getObjectBucket:getObjectBucket', __args__, opts=opts, typ=GetObjectBucketResult).value
|
|
213
|
+
|
|
214
|
+
return AwaitableGetObjectBucketResult(
|
|
215
|
+
acl=pulumi.get(__ret__, 'acl'),
|
|
216
|
+
api_endpoint=pulumi.get(__ret__, 'api_endpoint'),
|
|
217
|
+
cors_rules=pulumi.get(__ret__, 'cors_rules'),
|
|
218
|
+
endpoint=pulumi.get(__ret__, 'endpoint'),
|
|
219
|
+
force_destroy=pulumi.get(__ret__, 'force_destroy'),
|
|
220
|
+
id=pulumi.get(__ret__, 'id'),
|
|
221
|
+
lifecycle_rules=pulumi.get(__ret__, 'lifecycle_rules'),
|
|
222
|
+
name=pulumi.get(__ret__, 'name'),
|
|
223
|
+
object_lock_enabled=pulumi.get(__ret__, 'object_lock_enabled'),
|
|
224
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
225
|
+
region=pulumi.get(__ret__, 'region'),
|
|
226
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
227
|
+
versionings=pulumi.get(__ret__, 'versionings'))
|
|
228
|
+
def get_object_bucket_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
229
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
230
|
+
region: Optional[pulumi.Input[Optional[str]]] = None,
|
|
231
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetObjectBucketResult]:
|
|
232
|
+
"""
|
|
233
|
+
The `ObjectBucket` data source is used to retrieve information about an Object Storage bucket.
|
|
234
|
+
|
|
235
|
+
Refer to the Object Storage [documentation](https://www.scaleway.com/en/docs/storage/object/how-to/create-a-bucket/) for more information.
|
|
236
|
+
|
|
237
|
+
## Retrieve an Object Storage bucket
|
|
238
|
+
|
|
239
|
+
The following commands allow you to:
|
|
240
|
+
|
|
241
|
+
- retrieve a bucket by its name
|
|
242
|
+
- retrieve a bucket by its ID
|
|
243
|
+
|
|
244
|
+
```python
|
|
245
|
+
import pulumi
|
|
246
|
+
import pulumi_scaleway as scaleway
|
|
247
|
+
import pulumiverse_scaleway as scaleway
|
|
248
|
+
|
|
249
|
+
main = scaleway.ObjectBucket("main",
|
|
250
|
+
name="bucket.test.com",
|
|
251
|
+
tags={
|
|
252
|
+
"foo": "bar",
|
|
253
|
+
})
|
|
254
|
+
selected = scaleway.get_object_bucket_output(name=main.id)
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
## Retrieve a bucket from a specific project
|
|
258
|
+
|
|
259
|
+
```python
|
|
260
|
+
import pulumi
|
|
261
|
+
import pulumi_scaleway as scaleway
|
|
262
|
+
|
|
263
|
+
selected = scaleway.get_object_bucket(name="bucket.test.com",
|
|
264
|
+
project_id="11111111-1111-1111-1111-111111111111")
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
:param str project_id: `project_id`) The ID of the project with which the bucket is associated.
|
|
269
|
+
:param str region: `region`) The region in which the bucket exists.
|
|
270
|
+
"""
|
|
271
|
+
__args__ = dict()
|
|
272
|
+
__args__['name'] = name
|
|
273
|
+
__args__['projectId'] = project_id
|
|
274
|
+
__args__['region'] = region
|
|
275
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
276
|
+
__ret__ = pulumi.runtime.invoke_output('scaleway:index/getObjectBucket:getObjectBucket', __args__, opts=opts, typ=GetObjectBucketResult)
|
|
277
|
+
return __ret__.apply(lambda __response__: GetObjectBucketResult(
|
|
278
|
+
acl=pulumi.get(__response__, 'acl'),
|
|
279
|
+
api_endpoint=pulumi.get(__response__, 'api_endpoint'),
|
|
280
|
+
cors_rules=pulumi.get(__response__, 'cors_rules'),
|
|
281
|
+
endpoint=pulumi.get(__response__, 'endpoint'),
|
|
282
|
+
force_destroy=pulumi.get(__response__, 'force_destroy'),
|
|
283
|
+
id=pulumi.get(__response__, 'id'),
|
|
284
|
+
lifecycle_rules=pulumi.get(__response__, 'lifecycle_rules'),
|
|
285
|
+
name=pulumi.get(__response__, 'name'),
|
|
286
|
+
object_lock_enabled=pulumi.get(__response__, 'object_lock_enabled'),
|
|
287
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
288
|
+
region=pulumi.get(__response__, 'region'),
|
|
289
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
290
|
+
versionings=pulumi.get(__response__, 'versionings')))
|