pulumiverse-scaleway 1.18.0a1730280133__py3-none-any.whl → 1.19.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.

@@ -1,450 +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
-
17
- __all__ = ['DocumentdbDatabaseArgs', 'DocumentdbDatabase']
18
-
19
- @pulumi.input_type
20
- class DocumentdbDatabaseArgs:
21
- def __init__(__self__, *,
22
- instance_id: pulumi.Input[str],
23
- name: Optional[pulumi.Input[str]] = None,
24
- project_id: Optional[pulumi.Input[str]] = None,
25
- region: Optional[pulumi.Input[str]] = None):
26
- """
27
- The set of arguments for constructing a DocumentdbDatabase resource.
28
- :param pulumi.Input[str] instance_id: UUID of the documentdb instance.
29
-
30
- > **Important:** Updates to `instance_id` will recreate the Database.
31
- :param pulumi.Input[str] name: Name of the database (e.g. `my-new-database`).
32
- :param pulumi.Input[str] project_id: The project_id you want to attach the resource to
33
- :param pulumi.Input[str] region: `region`) The region in which the resource exists.
34
- """
35
- pulumi.set(__self__, "instance_id", instance_id)
36
- if name is not None:
37
- pulumi.set(__self__, "name", name)
38
- if project_id is not None:
39
- pulumi.set(__self__, "project_id", project_id)
40
- if region is not None:
41
- pulumi.set(__self__, "region", region)
42
-
43
- @property
44
- @pulumi.getter(name="instanceId")
45
- def instance_id(self) -> pulumi.Input[str]:
46
- """
47
- UUID of the documentdb instance.
48
-
49
- > **Important:** Updates to `instance_id` will recreate the Database.
50
- """
51
- return pulumi.get(self, "instance_id")
52
-
53
- @instance_id.setter
54
- def instance_id(self, value: pulumi.Input[str]):
55
- pulumi.set(self, "instance_id", value)
56
-
57
- @property
58
- @pulumi.getter
59
- def name(self) -> Optional[pulumi.Input[str]]:
60
- """
61
- Name of the database (e.g. `my-new-database`).
62
- """
63
- return pulumi.get(self, "name")
64
-
65
- @name.setter
66
- def name(self, value: Optional[pulumi.Input[str]]):
67
- pulumi.set(self, "name", value)
68
-
69
- @property
70
- @pulumi.getter(name="projectId")
71
- def project_id(self) -> Optional[pulumi.Input[str]]:
72
- """
73
- The project_id you want to attach the resource to
74
- """
75
- return pulumi.get(self, "project_id")
76
-
77
- @project_id.setter
78
- def project_id(self, value: Optional[pulumi.Input[str]]):
79
- pulumi.set(self, "project_id", value)
80
-
81
- @property
82
- @pulumi.getter
83
- def region(self) -> Optional[pulumi.Input[str]]:
84
- """
85
- `region`) The region in which the resource exists.
86
- """
87
- return pulumi.get(self, "region")
88
-
89
- @region.setter
90
- def region(self, value: Optional[pulumi.Input[str]]):
91
- pulumi.set(self, "region", value)
92
-
93
-
94
- @pulumi.input_type
95
- class _DocumentdbDatabaseState:
96
- def __init__(__self__, *,
97
- instance_id: Optional[pulumi.Input[str]] = None,
98
- managed: Optional[pulumi.Input[bool]] = None,
99
- name: Optional[pulumi.Input[str]] = None,
100
- owner: Optional[pulumi.Input[str]] = None,
101
- project_id: Optional[pulumi.Input[str]] = None,
102
- region: Optional[pulumi.Input[str]] = None,
103
- size: Optional[pulumi.Input[str]] = None):
104
- """
105
- Input properties used for looking up and filtering DocumentdbDatabase resources.
106
- :param pulumi.Input[str] instance_id: UUID of the documentdb instance.
107
-
108
- > **Important:** Updates to `instance_id` will recreate the Database.
109
- :param pulumi.Input[bool] managed: Whether the database is managed or not.
110
- :param pulumi.Input[str] name: Name of the database (e.g. `my-new-database`).
111
- :param pulumi.Input[str] owner: The name of the owner of the database.
112
- :param pulumi.Input[str] project_id: The project_id you want to attach the resource to
113
- :param pulumi.Input[str] region: `region`) The region in which the resource exists.
114
- :param pulumi.Input[str] size: Size in gigabytes of the database.
115
- """
116
- if instance_id is not None:
117
- pulumi.set(__self__, "instance_id", instance_id)
118
- if managed is not None:
119
- pulumi.set(__self__, "managed", managed)
120
- if name is not None:
121
- pulumi.set(__self__, "name", name)
122
- if owner is not None:
123
- pulumi.set(__self__, "owner", owner)
124
- if project_id is not None:
125
- pulumi.set(__self__, "project_id", project_id)
126
- if region is not None:
127
- pulumi.set(__self__, "region", region)
128
- if size is not None:
129
- pulumi.set(__self__, "size", size)
130
-
131
- @property
132
- @pulumi.getter(name="instanceId")
133
- def instance_id(self) -> Optional[pulumi.Input[str]]:
134
- """
135
- UUID of the documentdb instance.
136
-
137
- > **Important:** Updates to `instance_id` will recreate the Database.
138
- """
139
- return pulumi.get(self, "instance_id")
140
-
141
- @instance_id.setter
142
- def instance_id(self, value: Optional[pulumi.Input[str]]):
143
- pulumi.set(self, "instance_id", value)
144
-
145
- @property
146
- @pulumi.getter
147
- def managed(self) -> Optional[pulumi.Input[bool]]:
148
- """
149
- Whether the database is managed or not.
150
- """
151
- return pulumi.get(self, "managed")
152
-
153
- @managed.setter
154
- def managed(self, value: Optional[pulumi.Input[bool]]):
155
- pulumi.set(self, "managed", value)
156
-
157
- @property
158
- @pulumi.getter
159
- def name(self) -> Optional[pulumi.Input[str]]:
160
- """
161
- Name of the database (e.g. `my-new-database`).
162
- """
163
- return pulumi.get(self, "name")
164
-
165
- @name.setter
166
- def name(self, value: Optional[pulumi.Input[str]]):
167
- pulumi.set(self, "name", value)
168
-
169
- @property
170
- @pulumi.getter
171
- def owner(self) -> Optional[pulumi.Input[str]]:
172
- """
173
- The name of the owner of the database.
174
- """
175
- return pulumi.get(self, "owner")
176
-
177
- @owner.setter
178
- def owner(self, value: Optional[pulumi.Input[str]]):
179
- pulumi.set(self, "owner", value)
180
-
181
- @property
182
- @pulumi.getter(name="projectId")
183
- def project_id(self) -> Optional[pulumi.Input[str]]:
184
- """
185
- The project_id you want to attach the resource to
186
- """
187
- return pulumi.get(self, "project_id")
188
-
189
- @project_id.setter
190
- def project_id(self, value: Optional[pulumi.Input[str]]):
191
- pulumi.set(self, "project_id", value)
192
-
193
- @property
194
- @pulumi.getter
195
- def region(self) -> Optional[pulumi.Input[str]]:
196
- """
197
- `region`) The region in which the resource exists.
198
- """
199
- return pulumi.get(self, "region")
200
-
201
- @region.setter
202
- def region(self, value: Optional[pulumi.Input[str]]):
203
- pulumi.set(self, "region", value)
204
-
205
- @property
206
- @pulumi.getter
207
- def size(self) -> Optional[pulumi.Input[str]]:
208
- """
209
- Size in gigabytes of the database.
210
- """
211
- return pulumi.get(self, "size")
212
-
213
- @size.setter
214
- def size(self, value: Optional[pulumi.Input[str]]):
215
- pulumi.set(self, "size", value)
216
-
217
-
218
- class DocumentdbDatabase(pulumi.CustomResource):
219
- @overload
220
- def __init__(__self__,
221
- resource_name: str,
222
- opts: Optional[pulumi.ResourceOptions] = None,
223
- instance_id: Optional[pulumi.Input[str]] = None,
224
- name: Optional[pulumi.Input[str]] = None,
225
- project_id: Optional[pulumi.Input[str]] = None,
226
- region: Optional[pulumi.Input[str]] = None,
227
- __props__=None):
228
- """
229
- Creates and manages Scaleway DocumentDB database.
230
-
231
- ## Example Usage
232
-
233
- ### Basic
234
-
235
- ```python
236
- import pulumi
237
- import pulumiverse_scaleway as scaleway
238
-
239
- instance = scaleway.DocumentdbInstance("instance",
240
- name="test-document_db-basic",
241
- node_type="docdb-play2-pico",
242
- engine="FerretDB-1",
243
- user_name="my_initial_user",
244
- password="thiZ_is_v&ry_s3cret",
245
- volume_size_in_gb=20)
246
- main = scaleway.DocumentdbDatabase("main",
247
- instance_id=instance.id,
248
- name="my-new-database")
249
- ```
250
-
251
- ## Import
252
-
253
- DocumentDB Database can be imported using the `{region}/{id}/{DBNAME}`, e.g.
254
-
255
- bash
256
-
257
- ```sh
258
- $ pulumi import scaleway:index/documentdbDatabase:DocumentdbDatabase mydb fr-par/11111111-1111-1111-1111-111111111111/mydb
259
- ```
260
-
261
- :param str resource_name: The name of the resource.
262
- :param pulumi.ResourceOptions opts: Options for the resource.
263
- :param pulumi.Input[str] instance_id: UUID of the documentdb instance.
264
-
265
- > **Important:** Updates to `instance_id` will recreate the Database.
266
- :param pulumi.Input[str] name: Name of the database (e.g. `my-new-database`).
267
- :param pulumi.Input[str] project_id: The project_id you want to attach the resource to
268
- :param pulumi.Input[str] region: `region`) The region in which the resource exists.
269
- """
270
- ...
271
- @overload
272
- def __init__(__self__,
273
- resource_name: str,
274
- args: DocumentdbDatabaseArgs,
275
- opts: Optional[pulumi.ResourceOptions] = None):
276
- """
277
- Creates and manages Scaleway DocumentDB database.
278
-
279
- ## Example Usage
280
-
281
- ### Basic
282
-
283
- ```python
284
- import pulumi
285
- import pulumiverse_scaleway as scaleway
286
-
287
- instance = scaleway.DocumentdbInstance("instance",
288
- name="test-document_db-basic",
289
- node_type="docdb-play2-pico",
290
- engine="FerretDB-1",
291
- user_name="my_initial_user",
292
- password="thiZ_is_v&ry_s3cret",
293
- volume_size_in_gb=20)
294
- main = scaleway.DocumentdbDatabase("main",
295
- instance_id=instance.id,
296
- name="my-new-database")
297
- ```
298
-
299
- ## Import
300
-
301
- DocumentDB Database can be imported using the `{region}/{id}/{DBNAME}`, e.g.
302
-
303
- bash
304
-
305
- ```sh
306
- $ pulumi import scaleway:index/documentdbDatabase:DocumentdbDatabase mydb fr-par/11111111-1111-1111-1111-111111111111/mydb
307
- ```
308
-
309
- :param str resource_name: The name of the resource.
310
- :param DocumentdbDatabaseArgs args: The arguments to use to populate this resource's properties.
311
- :param pulumi.ResourceOptions opts: Options for the resource.
312
- """
313
- ...
314
- def __init__(__self__, resource_name: str, *args, **kwargs):
315
- resource_args, opts = _utilities.get_resource_args_opts(DocumentdbDatabaseArgs, pulumi.ResourceOptions, *args, **kwargs)
316
- if resource_args is not None:
317
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
318
- else:
319
- __self__._internal_init(resource_name, *args, **kwargs)
320
-
321
- def _internal_init(__self__,
322
- resource_name: str,
323
- opts: Optional[pulumi.ResourceOptions] = None,
324
- instance_id: Optional[pulumi.Input[str]] = None,
325
- name: Optional[pulumi.Input[str]] = None,
326
- project_id: Optional[pulumi.Input[str]] = None,
327
- region: Optional[pulumi.Input[str]] = None,
328
- __props__=None):
329
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
330
- if not isinstance(opts, pulumi.ResourceOptions):
331
- raise TypeError('Expected resource options to be a ResourceOptions instance')
332
- if opts.id is None:
333
- if __props__ is not None:
334
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
335
- __props__ = DocumentdbDatabaseArgs.__new__(DocumentdbDatabaseArgs)
336
-
337
- if instance_id is None and not opts.urn:
338
- raise TypeError("Missing required property 'instance_id'")
339
- __props__.__dict__["instance_id"] = instance_id
340
- __props__.__dict__["name"] = name
341
- __props__.__dict__["project_id"] = project_id
342
- __props__.__dict__["region"] = region
343
- __props__.__dict__["managed"] = None
344
- __props__.__dict__["owner"] = None
345
- __props__.__dict__["size"] = None
346
- super(DocumentdbDatabase, __self__).__init__(
347
- 'scaleway:index/documentdbDatabase:DocumentdbDatabase',
348
- resource_name,
349
- __props__,
350
- opts)
351
-
352
- @staticmethod
353
- def get(resource_name: str,
354
- id: pulumi.Input[str],
355
- opts: Optional[pulumi.ResourceOptions] = None,
356
- instance_id: Optional[pulumi.Input[str]] = None,
357
- managed: Optional[pulumi.Input[bool]] = None,
358
- name: Optional[pulumi.Input[str]] = None,
359
- owner: Optional[pulumi.Input[str]] = None,
360
- project_id: Optional[pulumi.Input[str]] = None,
361
- region: Optional[pulumi.Input[str]] = None,
362
- size: Optional[pulumi.Input[str]] = None) -> 'DocumentdbDatabase':
363
- """
364
- Get an existing DocumentdbDatabase resource's state with the given name, id, and optional extra
365
- properties used to qualify the lookup.
366
-
367
- :param str resource_name: The unique name of the resulting resource.
368
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
369
- :param pulumi.ResourceOptions opts: Options for the resource.
370
- :param pulumi.Input[str] instance_id: UUID of the documentdb instance.
371
-
372
- > **Important:** Updates to `instance_id` will recreate the Database.
373
- :param pulumi.Input[bool] managed: Whether the database is managed or not.
374
- :param pulumi.Input[str] name: Name of the database (e.g. `my-new-database`).
375
- :param pulumi.Input[str] owner: The name of the owner of the database.
376
- :param pulumi.Input[str] project_id: The project_id you want to attach the resource to
377
- :param pulumi.Input[str] region: `region`) The region in which the resource exists.
378
- :param pulumi.Input[str] size: Size in gigabytes of the database.
379
- """
380
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
381
-
382
- __props__ = _DocumentdbDatabaseState.__new__(_DocumentdbDatabaseState)
383
-
384
- __props__.__dict__["instance_id"] = instance_id
385
- __props__.__dict__["managed"] = managed
386
- __props__.__dict__["name"] = name
387
- __props__.__dict__["owner"] = owner
388
- __props__.__dict__["project_id"] = project_id
389
- __props__.__dict__["region"] = region
390
- __props__.__dict__["size"] = size
391
- return DocumentdbDatabase(resource_name, opts=opts, __props__=__props__)
392
-
393
- @property
394
- @pulumi.getter(name="instanceId")
395
- def instance_id(self) -> pulumi.Output[str]:
396
- """
397
- UUID of the documentdb instance.
398
-
399
- > **Important:** Updates to `instance_id` will recreate the Database.
400
- """
401
- return pulumi.get(self, "instance_id")
402
-
403
- @property
404
- @pulumi.getter
405
- def managed(self) -> pulumi.Output[bool]:
406
- """
407
- Whether the database is managed or not.
408
- """
409
- return pulumi.get(self, "managed")
410
-
411
- @property
412
- @pulumi.getter
413
- def name(self) -> pulumi.Output[str]:
414
- """
415
- Name of the database (e.g. `my-new-database`).
416
- """
417
- return pulumi.get(self, "name")
418
-
419
- @property
420
- @pulumi.getter
421
- def owner(self) -> pulumi.Output[str]:
422
- """
423
- The name of the owner of the database.
424
- """
425
- return pulumi.get(self, "owner")
426
-
427
- @property
428
- @pulumi.getter(name="projectId")
429
- def project_id(self) -> pulumi.Output[str]:
430
- """
431
- The project_id you want to attach the resource to
432
- """
433
- return pulumi.get(self, "project_id")
434
-
435
- @property
436
- @pulumi.getter
437
- def region(self) -> pulumi.Output[str]:
438
- """
439
- `region`) The region in which the resource exists.
440
- """
441
- return pulumi.get(self, "region")
442
-
443
- @property
444
- @pulumi.getter
445
- def size(self) -> pulumi.Output[str]:
446
- """
447
- Size in gigabytes of the database.
448
- """
449
- return pulumi.get(self, "size")
450
-