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.

Files changed (205) hide show
  1. pulumiverse_scaleway/__init__.py +1065 -0
  2. pulumiverse_scaleway/_inputs.py +8688 -0
  3. pulumiverse_scaleway/_utilities.py +327 -0
  4. pulumiverse_scaleway/account_project.py +316 -0
  5. pulumiverse_scaleway/account_ssh_key.py +454 -0
  6. pulumiverse_scaleway/apple_silicon_server.py +564 -0
  7. pulumiverse_scaleway/baremetal_server.py +1579 -0
  8. pulumiverse_scaleway/block_snapshot.py +401 -0
  9. pulumiverse_scaleway/block_volume.py +527 -0
  10. pulumiverse_scaleway/cockpit.py +314 -0
  11. pulumiverse_scaleway/cockpit_alert_manager.py +401 -0
  12. pulumiverse_scaleway/cockpit_grafana_user.py +362 -0
  13. pulumiverse_scaleway/cockpit_source.py +567 -0
  14. pulumiverse_scaleway/cockpit_token.py +479 -0
  15. pulumiverse_scaleway/config/__init__.py +8 -0
  16. pulumiverse_scaleway/config/__init__.pyi +56 -0
  17. pulumiverse_scaleway/config/vars.py +78 -0
  18. pulumiverse_scaleway/container.py +1373 -0
  19. pulumiverse_scaleway/container_cron.py +458 -0
  20. pulumiverse_scaleway/container_domain.py +406 -0
  21. pulumiverse_scaleway/container_namespace.py +636 -0
  22. pulumiverse_scaleway/container_token.py +452 -0
  23. pulumiverse_scaleway/container_trigger.py +480 -0
  24. pulumiverse_scaleway/database.py +407 -0
  25. pulumiverse_scaleway/database_acl.py +332 -0
  26. pulumiverse_scaleway/database_backup.py +574 -0
  27. pulumiverse_scaleway/database_instance.py +1641 -0
  28. pulumiverse_scaleway/database_privilege.py +422 -0
  29. pulumiverse_scaleway/database_read_replica.py +528 -0
  30. pulumiverse_scaleway/database_user.py +446 -0
  31. pulumiverse_scaleway/domain_record.py +1116 -0
  32. pulumiverse_scaleway/domain_zone.py +430 -0
  33. pulumiverse_scaleway/flexible_ip.py +702 -0
  34. pulumiverse_scaleway/flexible_ip_mac_address.py +510 -0
  35. pulumiverse_scaleway/function.py +1103 -0
  36. pulumiverse_scaleway/function_cron.py +462 -0
  37. pulumiverse_scaleway/function_domain.py +370 -0
  38. pulumiverse_scaleway/function_namespace.py +580 -0
  39. pulumiverse_scaleway/function_token.py +460 -0
  40. pulumiverse_scaleway/function_trigger.py +480 -0
  41. pulumiverse_scaleway/get_account_project.py +170 -0
  42. pulumiverse_scaleway/get_account_ssh_key.py +205 -0
  43. pulumiverse_scaleway/get_availability_zones.py +139 -0
  44. pulumiverse_scaleway/get_baremetal_offer.py +245 -0
  45. pulumiverse_scaleway/get_baremetal_option.py +168 -0
  46. pulumiverse_scaleway/get_baremetal_os.py +174 -0
  47. pulumiverse_scaleway/get_baremetal_server.py +422 -0
  48. pulumiverse_scaleway/get_billing_consumptions.py +134 -0
  49. pulumiverse_scaleway/get_billing_invoices.py +154 -0
  50. pulumiverse_scaleway/get_block_snapshot.py +174 -0
  51. pulumiverse_scaleway/get_block_volume.py +188 -0
  52. pulumiverse_scaleway/get_cockpit.py +204 -0
  53. pulumiverse_scaleway/get_cockpit_plan.py +125 -0
  54. pulumiverse_scaleway/get_cockpit_source.py +262 -0
  55. pulumiverse_scaleway/get_config.py +180 -0
  56. pulumiverse_scaleway/get_container.py +522 -0
  57. pulumiverse_scaleway/get_container_namespace.py +283 -0
  58. pulumiverse_scaleway/get_database.py +187 -0
  59. pulumiverse_scaleway/get_database_acl.py +143 -0
  60. pulumiverse_scaleway/get_database_backup.py +253 -0
  61. pulumiverse_scaleway/get_database_instance.py +404 -0
  62. pulumiverse_scaleway/get_database_privilege.py +181 -0
  63. pulumiverse_scaleway/get_domain_record.py +340 -0
  64. pulumiverse_scaleway/get_domain_zone.py +201 -0
  65. pulumiverse_scaleway/get_flexible_ip.py +247 -0
  66. pulumiverse_scaleway/get_flexible_ips.py +240 -0
  67. pulumiverse_scaleway/get_function.py +365 -0
  68. pulumiverse_scaleway/get_function_namespace.py +238 -0
  69. pulumiverse_scaleway/get_iam_api_key.py +210 -0
  70. pulumiverse_scaleway/get_iam_application.py +210 -0
  71. pulumiverse_scaleway/get_iam_group.py +236 -0
  72. pulumiverse_scaleway/get_iam_ssh_key.py +212 -0
  73. pulumiverse_scaleway/get_iam_user.py +177 -0
  74. pulumiverse_scaleway/get_instance_image.py +305 -0
  75. pulumiverse_scaleway/get_instance_ip.py +204 -0
  76. pulumiverse_scaleway/get_instance_placement_group.py +212 -0
  77. pulumiverse_scaleway/get_instance_private_nic.py +226 -0
  78. pulumiverse_scaleway/get_instance_security_group.py +268 -0
  79. pulumiverse_scaleway/get_instance_server.py +502 -0
  80. pulumiverse_scaleway/get_instance_servers.py +187 -0
  81. pulumiverse_scaleway/get_instance_snapshot.py +248 -0
  82. pulumiverse_scaleway/get_instance_volume.py +215 -0
  83. pulumiverse_scaleway/get_iot_device.py +257 -0
  84. pulumiverse_scaleway/get_iot_hub.py +322 -0
  85. pulumiverse_scaleway/get_ipam_ip.py +419 -0
  86. pulumiverse_scaleway/get_ipam_ips.py +358 -0
  87. pulumiverse_scaleway/get_k8s_version.py +196 -0
  88. pulumiverse_scaleway/get_kubernetes_cluster.py +417 -0
  89. pulumiverse_scaleway/get_kubernetes_node_pool.py +436 -0
  90. pulumiverse_scaleway/get_lb_acls.py +198 -0
  91. pulumiverse_scaleway/get_lb_backend.py +486 -0
  92. pulumiverse_scaleway/get_lb_backends.py +196 -0
  93. pulumiverse_scaleway/get_lb_frontend.py +274 -0
  94. pulumiverse_scaleway/get_lb_frontends.py +196 -0
  95. pulumiverse_scaleway/get_lb_ips.py +198 -0
  96. pulumiverse_scaleway/get_lb_route.py +217 -0
  97. pulumiverse_scaleway/get_lb_routes.py +179 -0
  98. pulumiverse_scaleway/get_lbs.py +187 -0
  99. pulumiverse_scaleway/get_loadbalancer.py +339 -0
  100. pulumiverse_scaleway/get_loadbalancer_certificate.py +230 -0
  101. pulumiverse_scaleway/get_loadbalancer_ip.py +228 -0
  102. pulumiverse_scaleway/get_marketplace_image.py +147 -0
  103. pulumiverse_scaleway/get_mnq_sns.py +150 -0
  104. pulumiverse_scaleway/get_mnq_sqs.py +150 -0
  105. pulumiverse_scaleway/get_mongo_db_instance.py +324 -0
  106. pulumiverse_scaleway/get_object_bucket.py +290 -0
  107. pulumiverse_scaleway/get_object_bucket_policy.py +163 -0
  108. pulumiverse_scaleway/get_redis_cluster.py +347 -0
  109. pulumiverse_scaleway/get_registry_image.py +239 -0
  110. pulumiverse_scaleway/get_registry_image_tag.py +229 -0
  111. pulumiverse_scaleway/get_registry_namespace.py +199 -0
  112. pulumiverse_scaleway/get_secret.py +338 -0
  113. pulumiverse_scaleway/get_secret_version.py +340 -0
  114. pulumiverse_scaleway/get_tem_domain.py +378 -0
  115. pulumiverse_scaleway/get_vpc.py +246 -0
  116. pulumiverse_scaleway/get_vpc_gateway_network.py +287 -0
  117. pulumiverse_scaleway/get_vpc_private_network.py +282 -0
  118. pulumiverse_scaleway/get_vpc_public_gateway.py +304 -0
  119. pulumiverse_scaleway/get_vpc_public_gateway_dhcp.py +305 -0
  120. pulumiverse_scaleway/get_vpc_public_gateway_dhcp_reservation.py +382 -0
  121. pulumiverse_scaleway/get_vpc_public_gateway_ip.py +199 -0
  122. pulumiverse_scaleway/get_vpc_public_pat_rule.py +313 -0
  123. pulumiverse_scaleway/get_vpc_routes.py +208 -0
  124. pulumiverse_scaleway/get_vpcs.py +174 -0
  125. pulumiverse_scaleway/get_web_host_offer.py +192 -0
  126. pulumiverse_scaleway/get_webhosting.py +332 -0
  127. pulumiverse_scaleway/iam_api_key.py +620 -0
  128. pulumiverse_scaleway/iam_application.py +417 -0
  129. pulumiverse_scaleway/iam_group.py +566 -0
  130. pulumiverse_scaleway/iam_group_membership.py +323 -0
  131. pulumiverse_scaleway/iam_policy.py +773 -0
  132. pulumiverse_scaleway/iam_ssh_key.py +455 -0
  133. pulumiverse_scaleway/iam_user.py +513 -0
  134. pulumiverse_scaleway/inference_deployment.py +822 -0
  135. pulumiverse_scaleway/instance_image.py +750 -0
  136. pulumiverse_scaleway/instance_ip.py +483 -0
  137. pulumiverse_scaleway/instance_ip_reverse_dns.py +308 -0
  138. pulumiverse_scaleway/instance_placement_group.py +479 -0
  139. pulumiverse_scaleway/instance_private_nic.py +555 -0
  140. pulumiverse_scaleway/instance_security_group.py +720 -0
  141. pulumiverse_scaleway/instance_security_group_rules.py +439 -0
  142. pulumiverse_scaleway/instance_server.py +2006 -0
  143. pulumiverse_scaleway/instance_snapshot.py +669 -0
  144. pulumiverse_scaleway/instance_user_data.py +435 -0
  145. pulumiverse_scaleway/instance_volume.py +535 -0
  146. pulumiverse_scaleway/iot_device.py +750 -0
  147. pulumiverse_scaleway/iot_hub.py +896 -0
  148. pulumiverse_scaleway/iot_network.py +472 -0
  149. pulumiverse_scaleway/iot_route.py +660 -0
  150. pulumiverse_scaleway/ipam_ip.py +757 -0
  151. pulumiverse_scaleway/ipam_ip_reverse_dns.py +318 -0
  152. pulumiverse_scaleway/job_definition.py +692 -0
  153. pulumiverse_scaleway/kubernetes_cluster.py +1538 -0
  154. pulumiverse_scaleway/kubernetes_node_pool.py +1255 -0
  155. pulumiverse_scaleway/loadbalancer.py +1061 -0
  156. pulumiverse_scaleway/loadbalancer_acl.py +520 -0
  157. pulumiverse_scaleway/loadbalancer_backend.py +1588 -0
  158. pulumiverse_scaleway/loadbalancer_certificate.py +460 -0
  159. pulumiverse_scaleway/loadbalancer_frontend.py +829 -0
  160. pulumiverse_scaleway/loadbalancer_ip.py +514 -0
  161. pulumiverse_scaleway/loadbalancer_route.py +523 -0
  162. pulumiverse_scaleway/mnq_nats_account.py +334 -0
  163. pulumiverse_scaleway/mnq_nats_credentials.py +330 -0
  164. pulumiverse_scaleway/mnq_sns.py +306 -0
  165. pulumiverse_scaleway/mnq_sns_credentials.py +413 -0
  166. pulumiverse_scaleway/mnq_sns_topic.py +659 -0
  167. pulumiverse_scaleway/mnq_sns_topic_subscription.py +699 -0
  168. pulumiverse_scaleway/mnq_sqs.py +304 -0
  169. pulumiverse_scaleway/mnq_sqs_credentials.py +413 -0
  170. pulumiverse_scaleway/mnq_sqs_queue.py +800 -0
  171. pulumiverse_scaleway/mongo_db_instance.py +907 -0
  172. pulumiverse_scaleway/mongo_db_snapshot.py +521 -0
  173. pulumiverse_scaleway/object_bucket.py +874 -0
  174. pulumiverse_scaleway/object_bucket_acl.py +596 -0
  175. pulumiverse_scaleway/object_bucket_lock_configuration.py +395 -0
  176. pulumiverse_scaleway/object_bucket_policy.py +673 -0
  177. pulumiverse_scaleway/object_bucket_website_configuration.py +534 -0
  178. pulumiverse_scaleway/object_item.py +776 -0
  179. pulumiverse_scaleway/outputs.py +11808 -0
  180. pulumiverse_scaleway/provider.py +327 -0
  181. pulumiverse_scaleway/pulumi-plugin.json +6 -0
  182. pulumiverse_scaleway/py.typed +0 -0
  183. pulumiverse_scaleway/redis_cluster.py +1201 -0
  184. pulumiverse_scaleway/registry_namespace.py +458 -0
  185. pulumiverse_scaleway/sdb_database.py +432 -0
  186. pulumiverse_scaleway/secret.py +663 -0
  187. pulumiverse_scaleway/secret_version.py +487 -0
  188. pulumiverse_scaleway/tem_domain.py +1030 -0
  189. pulumiverse_scaleway/tem_domain_validation.py +303 -0
  190. pulumiverse_scaleway/tem_webhook.py +640 -0
  191. pulumiverse_scaleway/vpc.py +536 -0
  192. pulumiverse_scaleway/vpc_gateway_network.py +866 -0
  193. pulumiverse_scaleway/vpc_private_network.py +734 -0
  194. pulumiverse_scaleway/vpc_public_gateway.py +789 -0
  195. pulumiverse_scaleway/vpc_public_gateway_dhcp.py +933 -0
  196. pulumiverse_scaleway/vpc_public_gateway_dhcp_reservation.py +514 -0
  197. pulumiverse_scaleway/vpc_public_gateway_ip.py +457 -0
  198. pulumiverse_scaleway/vpc_public_gateway_ip_reverse_dns.py +306 -0
  199. pulumiverse_scaleway/vpc_public_gateway_pat_rule.py +591 -0
  200. pulumiverse_scaleway/vpc_route.py +577 -0
  201. pulumiverse_scaleway/webhosting.py +805 -0
  202. pulumiverse_scaleway-1.23.0a1736837529.dist-info/METADATA +77 -0
  203. pulumiverse_scaleway-1.23.0a1736837529.dist-info/RECORD +205 -0
  204. pulumiverse_scaleway-1.23.0a1736837529.dist-info/WHEEL +5 -0
  205. pulumiverse_scaleway-1.23.0a1736837529.dist-info/top_level.txt +1 -0
@@ -0,0 +1,283 @@
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
+ 'GetContainerNamespaceResult',
19
+ 'AwaitableGetContainerNamespaceResult',
20
+ 'get_container_namespace',
21
+ 'get_container_namespace_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetContainerNamespaceResult:
26
+ """
27
+ A collection of values returned by getContainerNamespace.
28
+ """
29
+ def __init__(__self__, description=None, destroy_registry=None, environment_variables=None, id=None, name=None, namespace_id=None, organization_id=None, project_id=None, region=None, registry_endpoint=None, registry_namespace_id=None, secret_environment_variables=None, tags=None):
30
+ if description and not isinstance(description, str):
31
+ raise TypeError("Expected argument 'description' to be a str")
32
+ pulumi.set(__self__, "description", description)
33
+ if destroy_registry and not isinstance(destroy_registry, bool):
34
+ raise TypeError("Expected argument 'destroy_registry' to be a bool")
35
+ pulumi.set(__self__, "destroy_registry", destroy_registry)
36
+ if environment_variables and not isinstance(environment_variables, dict):
37
+ raise TypeError("Expected argument 'environment_variables' to be a dict")
38
+ pulumi.set(__self__, "environment_variables", environment_variables)
39
+ if id and not isinstance(id, str):
40
+ raise TypeError("Expected argument 'id' to be a str")
41
+ pulumi.set(__self__, "id", id)
42
+ if name and not isinstance(name, str):
43
+ raise TypeError("Expected argument 'name' to be a str")
44
+ pulumi.set(__self__, "name", name)
45
+ if namespace_id and not isinstance(namespace_id, str):
46
+ raise TypeError("Expected argument 'namespace_id' to be a str")
47
+ pulumi.set(__self__, "namespace_id", namespace_id)
48
+ if organization_id and not isinstance(organization_id, str):
49
+ raise TypeError("Expected argument 'organization_id' to be a str")
50
+ pulumi.set(__self__, "organization_id", organization_id)
51
+ if project_id and not isinstance(project_id, str):
52
+ raise TypeError("Expected argument 'project_id' to be a str")
53
+ pulumi.set(__self__, "project_id", project_id)
54
+ if region and not isinstance(region, str):
55
+ raise TypeError("Expected argument 'region' to be a str")
56
+ pulumi.set(__self__, "region", region)
57
+ if registry_endpoint and not isinstance(registry_endpoint, str):
58
+ raise TypeError("Expected argument 'registry_endpoint' to be a str")
59
+ pulumi.set(__self__, "registry_endpoint", registry_endpoint)
60
+ if registry_namespace_id and not isinstance(registry_namespace_id, str):
61
+ raise TypeError("Expected argument 'registry_namespace_id' to be a str")
62
+ pulumi.set(__self__, "registry_namespace_id", registry_namespace_id)
63
+ if secret_environment_variables and not isinstance(secret_environment_variables, dict):
64
+ raise TypeError("Expected argument 'secret_environment_variables' to be a dict")
65
+ pulumi.set(__self__, "secret_environment_variables", secret_environment_variables)
66
+ if tags and not isinstance(tags, list):
67
+ raise TypeError("Expected argument 'tags' to be a list")
68
+ pulumi.set(__self__, "tags", tags)
69
+
70
+ @property
71
+ @pulumi.getter
72
+ def description(self) -> str:
73
+ """
74
+ The description of the namespace.
75
+ """
76
+ return pulumi.get(self, "description")
77
+
78
+ @property
79
+ @pulumi.getter(name="destroyRegistry")
80
+ def destroy_registry(self) -> bool:
81
+ return pulumi.get(self, "destroy_registry")
82
+
83
+ @property
84
+ @pulumi.getter(name="environmentVariables")
85
+ def environment_variables(self) -> Mapping[str, str]:
86
+ """
87
+ The environment variables of the namespace.
88
+ """
89
+ return pulumi.get(self, "environment_variables")
90
+
91
+ @property
92
+ @pulumi.getter
93
+ def id(self) -> str:
94
+ """
95
+ The provider-assigned unique ID for this managed resource.
96
+ """
97
+ return pulumi.get(self, "id")
98
+
99
+ @property
100
+ @pulumi.getter
101
+ def name(self) -> Optional[str]:
102
+ return pulumi.get(self, "name")
103
+
104
+ @property
105
+ @pulumi.getter(name="namespaceId")
106
+ def namespace_id(self) -> Optional[str]:
107
+ return pulumi.get(self, "namespace_id")
108
+
109
+ @property
110
+ @pulumi.getter(name="organizationId")
111
+ def organization_id(self) -> str:
112
+ """
113
+ The unique identifier of the organization with which the namespace is associated.
114
+ """
115
+ return pulumi.get(self, "organization_id")
116
+
117
+ @property
118
+ @pulumi.getter(name="projectId")
119
+ def project_id(self) -> Optional[str]:
120
+ return pulumi.get(self, "project_id")
121
+
122
+ @property
123
+ @pulumi.getter
124
+ def region(self) -> Optional[str]:
125
+ return pulumi.get(self, "region")
126
+
127
+ @property
128
+ @pulumi.getter(name="registryEndpoint")
129
+ def registry_endpoint(self) -> str:
130
+ """
131
+ The registry endpoint of the namespace.
132
+ """
133
+ return pulumi.get(self, "registry_endpoint")
134
+
135
+ @property
136
+ @pulumi.getter(name="registryNamespaceId")
137
+ def registry_namespace_id(self) -> str:
138
+ """
139
+ The unique identifier of the registry namespace of the Serverless Containers namespace.
140
+ """
141
+ return pulumi.get(self, "registry_namespace_id")
142
+
143
+ @property
144
+ @pulumi.getter(name="secretEnvironmentVariables")
145
+ def secret_environment_variables(self) -> Mapping[str, str]:
146
+ return pulumi.get(self, "secret_environment_variables")
147
+
148
+ @property
149
+ @pulumi.getter
150
+ def tags(self) -> Sequence[str]:
151
+ return pulumi.get(self, "tags")
152
+
153
+
154
+ class AwaitableGetContainerNamespaceResult(GetContainerNamespaceResult):
155
+ # pylint: disable=using-constant-test
156
+ def __await__(self):
157
+ if False:
158
+ yield self
159
+ return GetContainerNamespaceResult(
160
+ description=self.description,
161
+ destroy_registry=self.destroy_registry,
162
+ environment_variables=self.environment_variables,
163
+ id=self.id,
164
+ name=self.name,
165
+ namespace_id=self.namespace_id,
166
+ organization_id=self.organization_id,
167
+ project_id=self.project_id,
168
+ region=self.region,
169
+ registry_endpoint=self.registry_endpoint,
170
+ registry_namespace_id=self.registry_namespace_id,
171
+ secret_environment_variables=self.secret_environment_variables,
172
+ tags=self.tags)
173
+
174
+
175
+ def get_container_namespace(name: Optional[str] = None,
176
+ namespace_id: Optional[str] = None,
177
+ project_id: Optional[str] = None,
178
+ region: Optional[str] = None,
179
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetContainerNamespaceResult:
180
+ """
181
+ The `ContainerNamespace` data source is used to retrieve information about a Serverless Containers namespace.
182
+
183
+ Refer to the Serverless Containers [product documentation](https://www.scaleway.com/en/docs/serverless/containers/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/) for more information.
184
+
185
+ ## Retrieve a Serverless Containers namespace
186
+
187
+ The following commands allow you to:
188
+
189
+ - retrieve a namespace by its name
190
+ - retrieve a namespace by its ID
191
+
192
+ ```python
193
+ import pulumi
194
+ import pulumi_scaleway as scaleway
195
+
196
+ # Get info by namespace name
197
+ by_name = scaleway.get_container_namespace(name="my-namespace-name")
198
+ # Get info by namespace ID
199
+ by_id = scaleway.get_container_namespace(namespace_id="11111111-1111-1111-1111-111111111111")
200
+ ```
201
+
202
+
203
+ :param str name: The name of the namespace. Only one of `name` and `namespace_id` should be specified.
204
+ :param str namespace_id: The unique identifier of the namespace. Only one of `name` and `namespace_id` should be specified.
205
+ :param str project_id: `project_id`) The unique identifier of the project with which the namespace is associated.
206
+ :param str region: `region`) The region in which the namespace exists.
207
+ """
208
+ __args__ = dict()
209
+ __args__['name'] = name
210
+ __args__['namespaceId'] = namespace_id
211
+ __args__['projectId'] = project_id
212
+ __args__['region'] = region
213
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
214
+ __ret__ = pulumi.runtime.invoke('scaleway:index/getContainerNamespace:getContainerNamespace', __args__, opts=opts, typ=GetContainerNamespaceResult).value
215
+
216
+ return AwaitableGetContainerNamespaceResult(
217
+ description=pulumi.get(__ret__, 'description'),
218
+ destroy_registry=pulumi.get(__ret__, 'destroy_registry'),
219
+ environment_variables=pulumi.get(__ret__, 'environment_variables'),
220
+ id=pulumi.get(__ret__, 'id'),
221
+ name=pulumi.get(__ret__, 'name'),
222
+ namespace_id=pulumi.get(__ret__, 'namespace_id'),
223
+ organization_id=pulumi.get(__ret__, 'organization_id'),
224
+ project_id=pulumi.get(__ret__, 'project_id'),
225
+ region=pulumi.get(__ret__, 'region'),
226
+ registry_endpoint=pulumi.get(__ret__, 'registry_endpoint'),
227
+ registry_namespace_id=pulumi.get(__ret__, 'registry_namespace_id'),
228
+ secret_environment_variables=pulumi.get(__ret__, 'secret_environment_variables'),
229
+ tags=pulumi.get(__ret__, 'tags'))
230
+ def get_container_namespace_output(name: Optional[pulumi.Input[Optional[str]]] = None,
231
+ namespace_id: Optional[pulumi.Input[Optional[str]]] = None,
232
+ project_id: Optional[pulumi.Input[Optional[str]]] = None,
233
+ region: Optional[pulumi.Input[Optional[str]]] = None,
234
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetContainerNamespaceResult]:
235
+ """
236
+ The `ContainerNamespace` data source is used to retrieve information about a Serverless Containers namespace.
237
+
238
+ Refer to the Serverless Containers [product documentation](https://www.scaleway.com/en/docs/serverless/containers/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/) for more information.
239
+
240
+ ## Retrieve a Serverless Containers namespace
241
+
242
+ The following commands allow you to:
243
+
244
+ - retrieve a namespace by its name
245
+ - retrieve a namespace by its ID
246
+
247
+ ```python
248
+ import pulumi
249
+ import pulumi_scaleway as scaleway
250
+
251
+ # Get info by namespace name
252
+ by_name = scaleway.get_container_namespace(name="my-namespace-name")
253
+ # Get info by namespace ID
254
+ by_id = scaleway.get_container_namespace(namespace_id="11111111-1111-1111-1111-111111111111")
255
+ ```
256
+
257
+
258
+ :param str name: The name of the namespace. Only one of `name` and `namespace_id` should be specified.
259
+ :param str namespace_id: The unique identifier of the namespace. Only one of `name` and `namespace_id` should be specified.
260
+ :param str project_id: `project_id`) The unique identifier of the project with which the namespace is associated.
261
+ :param str region: `region`) The region in which the namespace exists.
262
+ """
263
+ __args__ = dict()
264
+ __args__['name'] = name
265
+ __args__['namespaceId'] = namespace_id
266
+ __args__['projectId'] = project_id
267
+ __args__['region'] = region
268
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
269
+ __ret__ = pulumi.runtime.invoke_output('scaleway:index/getContainerNamespace:getContainerNamespace', __args__, opts=opts, typ=GetContainerNamespaceResult)
270
+ return __ret__.apply(lambda __response__: GetContainerNamespaceResult(
271
+ description=pulumi.get(__response__, 'description'),
272
+ destroy_registry=pulumi.get(__response__, 'destroy_registry'),
273
+ environment_variables=pulumi.get(__response__, 'environment_variables'),
274
+ id=pulumi.get(__response__, 'id'),
275
+ name=pulumi.get(__response__, 'name'),
276
+ namespace_id=pulumi.get(__response__, 'namespace_id'),
277
+ organization_id=pulumi.get(__response__, 'organization_id'),
278
+ project_id=pulumi.get(__response__, 'project_id'),
279
+ region=pulumi.get(__response__, 'region'),
280
+ registry_endpoint=pulumi.get(__response__, 'registry_endpoint'),
281
+ registry_namespace_id=pulumi.get(__response__, 'registry_namespace_id'),
282
+ secret_environment_variables=pulumi.get(__response__, 'secret_environment_variables'),
283
+ tags=pulumi.get(__response__, 'tags')))
@@ -0,0 +1,187 @@
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
+ 'GetDatabaseResult',
19
+ 'AwaitableGetDatabaseResult',
20
+ 'get_database',
21
+ 'get_database_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetDatabaseResult:
26
+ """
27
+ A collection of values returned by getDatabase.
28
+ """
29
+ def __init__(__self__, id=None, instance_id=None, managed=None, name=None, owner=None, region=None, size=None):
30
+ if id and not isinstance(id, str):
31
+ raise TypeError("Expected argument 'id' to be a str")
32
+ pulumi.set(__self__, "id", id)
33
+ if instance_id and not isinstance(instance_id, str):
34
+ raise TypeError("Expected argument 'instance_id' to be a str")
35
+ pulumi.set(__self__, "instance_id", instance_id)
36
+ if managed and not isinstance(managed, bool):
37
+ raise TypeError("Expected argument 'managed' to be a bool")
38
+ pulumi.set(__self__, "managed", managed)
39
+ if name and not isinstance(name, str):
40
+ raise TypeError("Expected argument 'name' to be a str")
41
+ pulumi.set(__self__, "name", name)
42
+ if owner and not isinstance(owner, str):
43
+ raise TypeError("Expected argument 'owner' to be a str")
44
+ pulumi.set(__self__, "owner", owner)
45
+ if region and not isinstance(region, str):
46
+ raise TypeError("Expected argument 'region' to be a str")
47
+ pulumi.set(__self__, "region", region)
48
+ if size and not isinstance(size, str):
49
+ raise TypeError("Expected argument 'size' to be a str")
50
+ pulumi.set(__self__, "size", size)
51
+
52
+ @property
53
+ @pulumi.getter
54
+ def id(self) -> str:
55
+ """
56
+ The provider-assigned unique ID for this managed resource.
57
+ """
58
+ return pulumi.get(self, "id")
59
+
60
+ @property
61
+ @pulumi.getter(name="instanceId")
62
+ def instance_id(self) -> str:
63
+ return pulumi.get(self, "instance_id")
64
+
65
+ @property
66
+ @pulumi.getter
67
+ def managed(self) -> bool:
68
+ """
69
+ Whether the database is managed or not.
70
+ """
71
+ return pulumi.get(self, "managed")
72
+
73
+ @property
74
+ @pulumi.getter
75
+ def name(self) -> str:
76
+ return pulumi.get(self, "name")
77
+
78
+ @property
79
+ @pulumi.getter
80
+ def owner(self) -> str:
81
+ """
82
+ The name of the owner of the database.
83
+ """
84
+ return pulumi.get(self, "owner")
85
+
86
+ @property
87
+ @pulumi.getter
88
+ def region(self) -> Optional[str]:
89
+ return pulumi.get(self, "region")
90
+
91
+ @property
92
+ @pulumi.getter
93
+ def size(self) -> str:
94
+ """
95
+ Size of the database (in bytes).
96
+ """
97
+ return pulumi.get(self, "size")
98
+
99
+
100
+ class AwaitableGetDatabaseResult(GetDatabaseResult):
101
+ # pylint: disable=using-constant-test
102
+ def __await__(self):
103
+ if False:
104
+ yield self
105
+ return GetDatabaseResult(
106
+ id=self.id,
107
+ instance_id=self.instance_id,
108
+ managed=self.managed,
109
+ name=self.name,
110
+ owner=self.owner,
111
+ region=self.region,
112
+ size=self.size)
113
+
114
+
115
+ def get_database(instance_id: Optional[str] = None,
116
+ name: Optional[str] = None,
117
+ region: Optional[str] = None,
118
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseResult:
119
+ """
120
+ Gets information about a database.
121
+
122
+ ## Example Usage
123
+
124
+ ```python
125
+ import pulumi
126
+ import pulumi_scaleway as scaleway
127
+
128
+ # Get the database foobar hosted on instance id 11111111-1111-1111-1111-111111111111
129
+ my_db = scaleway.get_database(instance_id="11111111-1111-1111-1111-111111111111",
130
+ name="foobar")
131
+ ```
132
+
133
+
134
+ :param str instance_id: The RDB instance ID.
135
+ :param str name: The name of the RDB instance.
136
+ """
137
+ __args__ = dict()
138
+ __args__['instanceId'] = instance_id
139
+ __args__['name'] = name
140
+ __args__['region'] = region
141
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
142
+ __ret__ = pulumi.runtime.invoke('scaleway:index/getDatabase:getDatabase', __args__, opts=opts, typ=GetDatabaseResult).value
143
+
144
+ return AwaitableGetDatabaseResult(
145
+ id=pulumi.get(__ret__, 'id'),
146
+ instance_id=pulumi.get(__ret__, 'instance_id'),
147
+ managed=pulumi.get(__ret__, 'managed'),
148
+ name=pulumi.get(__ret__, 'name'),
149
+ owner=pulumi.get(__ret__, 'owner'),
150
+ region=pulumi.get(__ret__, 'region'),
151
+ size=pulumi.get(__ret__, 'size'))
152
+ def get_database_output(instance_id: Optional[pulumi.Input[str]] = None,
153
+ name: Optional[pulumi.Input[str]] = None,
154
+ region: Optional[pulumi.Input[Optional[str]]] = None,
155
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatabaseResult]:
156
+ """
157
+ Gets information about a database.
158
+
159
+ ## Example Usage
160
+
161
+ ```python
162
+ import pulumi
163
+ import pulumi_scaleway as scaleway
164
+
165
+ # Get the database foobar hosted on instance id 11111111-1111-1111-1111-111111111111
166
+ my_db = scaleway.get_database(instance_id="11111111-1111-1111-1111-111111111111",
167
+ name="foobar")
168
+ ```
169
+
170
+
171
+ :param str instance_id: The RDB instance ID.
172
+ :param str name: The name of the RDB instance.
173
+ """
174
+ __args__ = dict()
175
+ __args__['instanceId'] = instance_id
176
+ __args__['name'] = name
177
+ __args__['region'] = region
178
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
179
+ __ret__ = pulumi.runtime.invoke_output('scaleway:index/getDatabase:getDatabase', __args__, opts=opts, typ=GetDatabaseResult)
180
+ return __ret__.apply(lambda __response__: GetDatabaseResult(
181
+ id=pulumi.get(__response__, 'id'),
182
+ instance_id=pulumi.get(__response__, 'instance_id'),
183
+ managed=pulumi.get(__response__, 'managed'),
184
+ name=pulumi.get(__response__, 'name'),
185
+ owner=pulumi.get(__response__, 'owner'),
186
+ region=pulumi.get(__response__, 'region'),
187
+ size=pulumi.get(__response__, 'size')))
@@ -0,0 +1,143 @@
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
+ 'GetDatabaseAclResult',
20
+ 'AwaitableGetDatabaseAclResult',
21
+ 'get_database_acl',
22
+ 'get_database_acl_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetDatabaseAclResult:
27
+ """
28
+ A collection of values returned by getDatabaseAcl.
29
+ """
30
+ def __init__(__self__, acl_rules=None, id=None, instance_id=None, region=None):
31
+ if acl_rules and not isinstance(acl_rules, list):
32
+ raise TypeError("Expected argument 'acl_rules' to be a list")
33
+ pulumi.set(__self__, "acl_rules", acl_rules)
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 region and not isinstance(region, str):
41
+ raise TypeError("Expected argument 'region' to be a str")
42
+ pulumi.set(__self__, "region", region)
43
+
44
+ @property
45
+ @pulumi.getter(name="aclRules")
46
+ def acl_rules(self) -> Sequence['outputs.GetDatabaseAclAclRuleResult']:
47
+ """
48
+ A list of ACLs rules (structure is described below)
49
+ """
50
+ return pulumi.get(self, "acl_rules")
51
+
52
+ @property
53
+ @pulumi.getter
54
+ def id(self) -> str:
55
+ """
56
+ The provider-assigned unique ID for this managed resource.
57
+ """
58
+ return pulumi.get(self, "id")
59
+
60
+ @property
61
+ @pulumi.getter(name="instanceId")
62
+ def instance_id(self) -> str:
63
+ return pulumi.get(self, "instance_id")
64
+
65
+ @property
66
+ @pulumi.getter
67
+ def region(self) -> Optional[str]:
68
+ return pulumi.get(self, "region")
69
+
70
+
71
+ class AwaitableGetDatabaseAclResult(GetDatabaseAclResult):
72
+ # pylint: disable=using-constant-test
73
+ def __await__(self):
74
+ if False:
75
+ yield self
76
+ return GetDatabaseAclResult(
77
+ acl_rules=self.acl_rules,
78
+ id=self.id,
79
+ instance_id=self.instance_id,
80
+ region=self.region)
81
+
82
+
83
+ def get_database_acl(instance_id: Optional[str] = None,
84
+ region: Optional[str] = None,
85
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseAclResult:
86
+ """
87
+ Gets information about the Database Instance network Access Control List.
88
+
89
+ ## Example Usage
90
+
91
+ ```python
92
+ import pulumi
93
+ import pulumi_scaleway as scaleway
94
+
95
+ # Get the database ACL for the instance id 11111111-1111-1111-1111-111111111111 located in the default region e.g: fr-par
96
+ my_acl = scaleway.get_database_acl(instance_id="11111111-1111-1111-1111-111111111111")
97
+ ```
98
+
99
+
100
+ :param str instance_id: The RDB instance ID.
101
+ :param str region: `region`) The region in which the Database Instance should be created.
102
+ """
103
+ __args__ = dict()
104
+ __args__['instanceId'] = instance_id
105
+ __args__['region'] = region
106
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
107
+ __ret__ = pulumi.runtime.invoke('scaleway:index/getDatabaseAcl:getDatabaseAcl', __args__, opts=opts, typ=GetDatabaseAclResult).value
108
+
109
+ return AwaitableGetDatabaseAclResult(
110
+ acl_rules=pulumi.get(__ret__, 'acl_rules'),
111
+ id=pulumi.get(__ret__, 'id'),
112
+ instance_id=pulumi.get(__ret__, 'instance_id'),
113
+ region=pulumi.get(__ret__, 'region'))
114
+ def get_database_acl_output(instance_id: Optional[pulumi.Input[str]] = None,
115
+ region: Optional[pulumi.Input[Optional[str]]] = None,
116
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatabaseAclResult]:
117
+ """
118
+ Gets information about the Database Instance network Access Control List.
119
+
120
+ ## Example Usage
121
+
122
+ ```python
123
+ import pulumi
124
+ import pulumi_scaleway as scaleway
125
+
126
+ # Get the database ACL for the instance id 11111111-1111-1111-1111-111111111111 located in the default region e.g: fr-par
127
+ my_acl = scaleway.get_database_acl(instance_id="11111111-1111-1111-1111-111111111111")
128
+ ```
129
+
130
+
131
+ :param str instance_id: The RDB instance ID.
132
+ :param str region: `region`) The region in which the Database Instance should be created.
133
+ """
134
+ __args__ = dict()
135
+ __args__['instanceId'] = instance_id
136
+ __args__['region'] = region
137
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
138
+ __ret__ = pulumi.runtime.invoke_output('scaleway:index/getDatabaseAcl:getDatabaseAcl', __args__, opts=opts, typ=GetDatabaseAclResult)
139
+ return __ret__.apply(lambda __response__: GetDatabaseAclResult(
140
+ acl_rules=pulumi.get(__response__, 'acl_rules'),
141
+ id=pulumi.get(__response__, 'id'),
142
+ instance_id=pulumi.get(__response__, 'instance_id'),
143
+ region=pulumi.get(__response__, 'region')))