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