pulumiverse-scaleway 1.20.0__py3-none-any.whl → 1.20.0a1730626307__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.

@@ -1,324 +0,0 @@
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[pulumi.InvokeOptions] = 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.InvokeOptions.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')))