pulumiverse-scaleway 1.20.0a1730699372__py3-none-any.whl → 1.20.0a1730719023__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 +28 -0
- pulumiverse_scaleway/_inputs.py +335 -0
- pulumiverse_scaleway/baremetal_server.py +94 -12
- pulumiverse_scaleway/get_mongo_db_instance.py +324 -0
- pulumiverse_scaleway/inference_deployment.py +822 -0
- pulumiverse_scaleway/instance_server.py +21 -7
- pulumiverse_scaleway/iot_network.py +47 -0
- pulumiverse_scaleway/iot_route.py +2 -2
- pulumiverse_scaleway/ipam_ip.py +91 -0
- pulumiverse_scaleway/mongo_db_instance.py +907 -0
- pulumiverse_scaleway/mongo_db_snapshot.py +521 -0
- pulumiverse_scaleway/object_bucket.py +9 -9
- pulumiverse_scaleway/outputs.py +325 -4
- pulumiverse_scaleway/pulumi-plugin.json +1 -1
- {pulumiverse_scaleway-1.20.0a1730699372.dist-info → pulumiverse_scaleway-1.20.0a1730719023.dist-info}/METADATA +1 -1
- {pulumiverse_scaleway-1.20.0a1730699372.dist-info → pulumiverse_scaleway-1.20.0a1730719023.dist-info}/RECORD +18 -14
- {pulumiverse_scaleway-1.20.0a1730699372.dist-info → pulumiverse_scaleway-1.20.0a1730719023.dist-info}/WHEEL +0 -0
- {pulumiverse_scaleway-1.20.0a1730699372.dist-info → pulumiverse_scaleway-1.20.0a1730719023.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,521 @@
|
|
|
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__ = ['MongoDbSnapshotArgs', 'MongoDbSnapshot']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class MongoDbSnapshotArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
expires_at: pulumi.Input[str],
|
|
23
|
+
instance_id: pulumi.Input[str],
|
|
24
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
25
|
+
region: Optional[pulumi.Input[str]] = None):
|
|
26
|
+
"""
|
|
27
|
+
The set of arguments for constructing a MongoDbSnapshot resource.
|
|
28
|
+
:param pulumi.Input[str] expires_at: The expiration date of the MongoDB® snapshot in ISO 8601 format (e.g. `2024-12-31T23:59:59Z`).
|
|
29
|
+
|
|
30
|
+
> **Important:** Once set, `expires_at` cannot be removed.
|
|
31
|
+
:param pulumi.Input[str] instance_id: The ID of the MongoDB® instance from which the snapshot was created.
|
|
32
|
+
:param pulumi.Input[str] name: The name of the MongoDB® snapshot.
|
|
33
|
+
:param pulumi.Input[str] region: `region`) The region in which the MongoDB® snapshot should be created.
|
|
34
|
+
"""
|
|
35
|
+
pulumi.set(__self__, "expires_at", expires_at)
|
|
36
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
|
37
|
+
if name is not None:
|
|
38
|
+
pulumi.set(__self__, "name", name)
|
|
39
|
+
if region is not None:
|
|
40
|
+
pulumi.set(__self__, "region", region)
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
@pulumi.getter(name="expiresAt")
|
|
44
|
+
def expires_at(self) -> pulumi.Input[str]:
|
|
45
|
+
"""
|
|
46
|
+
The expiration date of the MongoDB® snapshot in ISO 8601 format (e.g. `2024-12-31T23:59:59Z`).
|
|
47
|
+
|
|
48
|
+
> **Important:** Once set, `expires_at` cannot be removed.
|
|
49
|
+
"""
|
|
50
|
+
return pulumi.get(self, "expires_at")
|
|
51
|
+
|
|
52
|
+
@expires_at.setter
|
|
53
|
+
def expires_at(self, value: pulumi.Input[str]):
|
|
54
|
+
pulumi.set(self, "expires_at", value)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter(name="instanceId")
|
|
58
|
+
def instance_id(self) -> pulumi.Input[str]:
|
|
59
|
+
"""
|
|
60
|
+
The ID of the MongoDB® instance from which the snapshot was created.
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "instance_id")
|
|
63
|
+
|
|
64
|
+
@instance_id.setter
|
|
65
|
+
def instance_id(self, value: pulumi.Input[str]):
|
|
66
|
+
pulumi.set(self, "instance_id", value)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
@pulumi.getter
|
|
70
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
71
|
+
"""
|
|
72
|
+
The name of the MongoDB® snapshot.
|
|
73
|
+
"""
|
|
74
|
+
return pulumi.get(self, "name")
|
|
75
|
+
|
|
76
|
+
@name.setter
|
|
77
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
78
|
+
pulumi.set(self, "name", value)
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
@pulumi.getter
|
|
82
|
+
def region(self) -> Optional[pulumi.Input[str]]:
|
|
83
|
+
"""
|
|
84
|
+
`region`) The region in which the MongoDB® snapshot should be created.
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "region")
|
|
87
|
+
|
|
88
|
+
@region.setter
|
|
89
|
+
def region(self, value: Optional[pulumi.Input[str]]):
|
|
90
|
+
pulumi.set(self, "region", value)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
@pulumi.input_type
|
|
94
|
+
class _MongoDbSnapshotState:
|
|
95
|
+
def __init__(__self__, *,
|
|
96
|
+
created_at: Optional[pulumi.Input[str]] = None,
|
|
97
|
+
expires_at: Optional[pulumi.Input[str]] = None,
|
|
98
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
99
|
+
instance_name: Optional[pulumi.Input[str]] = None,
|
|
100
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
101
|
+
node_type: Optional[pulumi.Input[str]] = None,
|
|
102
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
103
|
+
size: Optional[pulumi.Input[int]] = None,
|
|
104
|
+
updated_at: Optional[pulumi.Input[str]] = None,
|
|
105
|
+
volume_type: Optional[pulumi.Input[str]] = None):
|
|
106
|
+
"""
|
|
107
|
+
Input properties used for looking up and filtering MongoDbSnapshot resources.
|
|
108
|
+
:param pulumi.Input[str] created_at: The date and time when the MongoDB® snapshot was created.
|
|
109
|
+
:param pulumi.Input[str] expires_at: The expiration date of the MongoDB® snapshot in ISO 8601 format (e.g. `2024-12-31T23:59:59Z`).
|
|
110
|
+
|
|
111
|
+
> **Important:** Once set, `expires_at` cannot be removed.
|
|
112
|
+
:param pulumi.Input[str] instance_id: The ID of the MongoDB® instance from which the snapshot was created.
|
|
113
|
+
:param pulumi.Input[str] instance_name: The name of the MongoDB® instance from which the snapshot was created.
|
|
114
|
+
:param pulumi.Input[str] name: The name of the MongoDB® snapshot.
|
|
115
|
+
:param pulumi.Input[str] node_type: The type of node associated with the MongoDB® snapshot.
|
|
116
|
+
:param pulumi.Input[str] region: `region`) The region in which the MongoDB® snapshot should be created.
|
|
117
|
+
:param pulumi.Input[int] size: The size of the MongoDB® snapshot in bytes.
|
|
118
|
+
:param pulumi.Input[str] updated_at: The date and time of the last update of the MongoDB® snapshot.
|
|
119
|
+
:param pulumi.Input[str] volume_type: The type of volume used for the MongoDB® snapshot.
|
|
120
|
+
"""
|
|
121
|
+
if created_at is not None:
|
|
122
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
123
|
+
if expires_at is not None:
|
|
124
|
+
pulumi.set(__self__, "expires_at", expires_at)
|
|
125
|
+
if instance_id is not None:
|
|
126
|
+
pulumi.set(__self__, "instance_id", instance_id)
|
|
127
|
+
if instance_name is not None:
|
|
128
|
+
pulumi.set(__self__, "instance_name", instance_name)
|
|
129
|
+
if name is not None:
|
|
130
|
+
pulumi.set(__self__, "name", name)
|
|
131
|
+
if node_type is not None:
|
|
132
|
+
pulumi.set(__self__, "node_type", node_type)
|
|
133
|
+
if region is not None:
|
|
134
|
+
pulumi.set(__self__, "region", region)
|
|
135
|
+
if size is not None:
|
|
136
|
+
pulumi.set(__self__, "size", size)
|
|
137
|
+
if updated_at is not None:
|
|
138
|
+
pulumi.set(__self__, "updated_at", updated_at)
|
|
139
|
+
if volume_type is not None:
|
|
140
|
+
pulumi.set(__self__, "volume_type", volume_type)
|
|
141
|
+
|
|
142
|
+
@property
|
|
143
|
+
@pulumi.getter(name="createdAt")
|
|
144
|
+
def created_at(self) -> Optional[pulumi.Input[str]]:
|
|
145
|
+
"""
|
|
146
|
+
The date and time when the MongoDB® snapshot was created.
|
|
147
|
+
"""
|
|
148
|
+
return pulumi.get(self, "created_at")
|
|
149
|
+
|
|
150
|
+
@created_at.setter
|
|
151
|
+
def created_at(self, value: Optional[pulumi.Input[str]]):
|
|
152
|
+
pulumi.set(self, "created_at", value)
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
@pulumi.getter(name="expiresAt")
|
|
156
|
+
def expires_at(self) -> Optional[pulumi.Input[str]]:
|
|
157
|
+
"""
|
|
158
|
+
The expiration date of the MongoDB® snapshot in ISO 8601 format (e.g. `2024-12-31T23:59:59Z`).
|
|
159
|
+
|
|
160
|
+
> **Important:** Once set, `expires_at` cannot be removed.
|
|
161
|
+
"""
|
|
162
|
+
return pulumi.get(self, "expires_at")
|
|
163
|
+
|
|
164
|
+
@expires_at.setter
|
|
165
|
+
def expires_at(self, value: Optional[pulumi.Input[str]]):
|
|
166
|
+
pulumi.set(self, "expires_at", value)
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
@pulumi.getter(name="instanceId")
|
|
170
|
+
def instance_id(self) -> Optional[pulumi.Input[str]]:
|
|
171
|
+
"""
|
|
172
|
+
The ID of the MongoDB® instance from which the snapshot was created.
|
|
173
|
+
"""
|
|
174
|
+
return pulumi.get(self, "instance_id")
|
|
175
|
+
|
|
176
|
+
@instance_id.setter
|
|
177
|
+
def instance_id(self, value: Optional[pulumi.Input[str]]):
|
|
178
|
+
pulumi.set(self, "instance_id", value)
|
|
179
|
+
|
|
180
|
+
@property
|
|
181
|
+
@pulumi.getter(name="instanceName")
|
|
182
|
+
def instance_name(self) -> Optional[pulumi.Input[str]]:
|
|
183
|
+
"""
|
|
184
|
+
The name of the MongoDB® instance from which the snapshot was created.
|
|
185
|
+
"""
|
|
186
|
+
return pulumi.get(self, "instance_name")
|
|
187
|
+
|
|
188
|
+
@instance_name.setter
|
|
189
|
+
def instance_name(self, value: Optional[pulumi.Input[str]]):
|
|
190
|
+
pulumi.set(self, "instance_name", value)
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
@pulumi.getter
|
|
194
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
195
|
+
"""
|
|
196
|
+
The name of the MongoDB® snapshot.
|
|
197
|
+
"""
|
|
198
|
+
return pulumi.get(self, "name")
|
|
199
|
+
|
|
200
|
+
@name.setter
|
|
201
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
202
|
+
pulumi.set(self, "name", value)
|
|
203
|
+
|
|
204
|
+
@property
|
|
205
|
+
@pulumi.getter(name="nodeType")
|
|
206
|
+
def node_type(self) -> Optional[pulumi.Input[str]]:
|
|
207
|
+
"""
|
|
208
|
+
The type of node associated with the MongoDB® snapshot.
|
|
209
|
+
"""
|
|
210
|
+
return pulumi.get(self, "node_type")
|
|
211
|
+
|
|
212
|
+
@node_type.setter
|
|
213
|
+
def node_type(self, value: Optional[pulumi.Input[str]]):
|
|
214
|
+
pulumi.set(self, "node_type", value)
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
@pulumi.getter
|
|
218
|
+
def region(self) -> Optional[pulumi.Input[str]]:
|
|
219
|
+
"""
|
|
220
|
+
`region`) The region in which the MongoDB® snapshot should be created.
|
|
221
|
+
"""
|
|
222
|
+
return pulumi.get(self, "region")
|
|
223
|
+
|
|
224
|
+
@region.setter
|
|
225
|
+
def region(self, value: Optional[pulumi.Input[str]]):
|
|
226
|
+
pulumi.set(self, "region", value)
|
|
227
|
+
|
|
228
|
+
@property
|
|
229
|
+
@pulumi.getter
|
|
230
|
+
def size(self) -> Optional[pulumi.Input[int]]:
|
|
231
|
+
"""
|
|
232
|
+
The size of the MongoDB® snapshot in bytes.
|
|
233
|
+
"""
|
|
234
|
+
return pulumi.get(self, "size")
|
|
235
|
+
|
|
236
|
+
@size.setter
|
|
237
|
+
def size(self, value: Optional[pulumi.Input[int]]):
|
|
238
|
+
pulumi.set(self, "size", value)
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
@pulumi.getter(name="updatedAt")
|
|
242
|
+
def updated_at(self) -> Optional[pulumi.Input[str]]:
|
|
243
|
+
"""
|
|
244
|
+
The date and time of the last update of the MongoDB® snapshot.
|
|
245
|
+
"""
|
|
246
|
+
return pulumi.get(self, "updated_at")
|
|
247
|
+
|
|
248
|
+
@updated_at.setter
|
|
249
|
+
def updated_at(self, value: Optional[pulumi.Input[str]]):
|
|
250
|
+
pulumi.set(self, "updated_at", value)
|
|
251
|
+
|
|
252
|
+
@property
|
|
253
|
+
@pulumi.getter(name="volumeType")
|
|
254
|
+
def volume_type(self) -> Optional[pulumi.Input[str]]:
|
|
255
|
+
"""
|
|
256
|
+
The type of volume used for the MongoDB® snapshot.
|
|
257
|
+
"""
|
|
258
|
+
return pulumi.get(self, "volume_type")
|
|
259
|
+
|
|
260
|
+
@volume_type.setter
|
|
261
|
+
def volume_type(self, value: Optional[pulumi.Input[str]]):
|
|
262
|
+
pulumi.set(self, "volume_type", value)
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
class MongoDbSnapshot(pulumi.CustomResource):
|
|
266
|
+
@overload
|
|
267
|
+
def __init__(__self__,
|
|
268
|
+
resource_name: str,
|
|
269
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
270
|
+
expires_at: Optional[pulumi.Input[str]] = None,
|
|
271
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
272
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
273
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
274
|
+
__props__=None):
|
|
275
|
+
"""
|
|
276
|
+
Creates and manages Scaleway MongoDB® snapshots.
|
|
277
|
+
For more information refer to [the API documentation](https://www.scaleway.com/en/docs/managed-databases/mongodb/).
|
|
278
|
+
|
|
279
|
+
## Example Usage
|
|
280
|
+
|
|
281
|
+
```python
|
|
282
|
+
import pulumi
|
|
283
|
+
import pulumiverse_scaleway as scaleway
|
|
284
|
+
|
|
285
|
+
main = scaleway.MongoDbSnapshot("main",
|
|
286
|
+
instance_id=main_scaleway_mongodb_instance["id"],
|
|
287
|
+
name="name-snapshot",
|
|
288
|
+
expires_at="2024-12-31T23:59:59Z")
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
## Import
|
|
292
|
+
|
|
293
|
+
MongoDB® snapshots can be imported using the `{region}/{id}`, e.g.
|
|
294
|
+
|
|
295
|
+
bash
|
|
296
|
+
|
|
297
|
+
```sh
|
|
298
|
+
$ pulumi import scaleway:index/mongoDbSnapshot:MongoDbSnapshot main fr-par-1/11111111-1111-1111-1111-111111111111
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
:param str resource_name: The name of the resource.
|
|
302
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
303
|
+
:param pulumi.Input[str] expires_at: The expiration date of the MongoDB® snapshot in ISO 8601 format (e.g. `2024-12-31T23:59:59Z`).
|
|
304
|
+
|
|
305
|
+
> **Important:** Once set, `expires_at` cannot be removed.
|
|
306
|
+
:param pulumi.Input[str] instance_id: The ID of the MongoDB® instance from which the snapshot was created.
|
|
307
|
+
:param pulumi.Input[str] name: The name of the MongoDB® snapshot.
|
|
308
|
+
:param pulumi.Input[str] region: `region`) The region in which the MongoDB® snapshot should be created.
|
|
309
|
+
"""
|
|
310
|
+
...
|
|
311
|
+
@overload
|
|
312
|
+
def __init__(__self__,
|
|
313
|
+
resource_name: str,
|
|
314
|
+
args: MongoDbSnapshotArgs,
|
|
315
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
316
|
+
"""
|
|
317
|
+
Creates and manages Scaleway MongoDB® snapshots.
|
|
318
|
+
For more information refer to [the API documentation](https://www.scaleway.com/en/docs/managed-databases/mongodb/).
|
|
319
|
+
|
|
320
|
+
## Example Usage
|
|
321
|
+
|
|
322
|
+
```python
|
|
323
|
+
import pulumi
|
|
324
|
+
import pulumiverse_scaleway as scaleway
|
|
325
|
+
|
|
326
|
+
main = scaleway.MongoDbSnapshot("main",
|
|
327
|
+
instance_id=main_scaleway_mongodb_instance["id"],
|
|
328
|
+
name="name-snapshot",
|
|
329
|
+
expires_at="2024-12-31T23:59:59Z")
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
## Import
|
|
333
|
+
|
|
334
|
+
MongoDB® snapshots can be imported using the `{region}/{id}`, e.g.
|
|
335
|
+
|
|
336
|
+
bash
|
|
337
|
+
|
|
338
|
+
```sh
|
|
339
|
+
$ pulumi import scaleway:index/mongoDbSnapshot:MongoDbSnapshot main fr-par-1/11111111-1111-1111-1111-111111111111
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
:param str resource_name: The name of the resource.
|
|
343
|
+
:param MongoDbSnapshotArgs args: The arguments to use to populate this resource's properties.
|
|
344
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
345
|
+
"""
|
|
346
|
+
...
|
|
347
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
348
|
+
resource_args, opts = _utilities.get_resource_args_opts(MongoDbSnapshotArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
349
|
+
if resource_args is not None:
|
|
350
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
351
|
+
else:
|
|
352
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
353
|
+
|
|
354
|
+
def _internal_init(__self__,
|
|
355
|
+
resource_name: str,
|
|
356
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
357
|
+
expires_at: Optional[pulumi.Input[str]] = None,
|
|
358
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
359
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
360
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
361
|
+
__props__=None):
|
|
362
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
363
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
364
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
365
|
+
if opts.id is None:
|
|
366
|
+
if __props__ is not None:
|
|
367
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
368
|
+
__props__ = MongoDbSnapshotArgs.__new__(MongoDbSnapshotArgs)
|
|
369
|
+
|
|
370
|
+
if expires_at is None and not opts.urn:
|
|
371
|
+
raise TypeError("Missing required property 'expires_at'")
|
|
372
|
+
__props__.__dict__["expires_at"] = expires_at
|
|
373
|
+
if instance_id is None and not opts.urn:
|
|
374
|
+
raise TypeError("Missing required property 'instance_id'")
|
|
375
|
+
__props__.__dict__["instance_id"] = instance_id
|
|
376
|
+
__props__.__dict__["name"] = name
|
|
377
|
+
__props__.__dict__["region"] = region
|
|
378
|
+
__props__.__dict__["created_at"] = None
|
|
379
|
+
__props__.__dict__["instance_name"] = None
|
|
380
|
+
__props__.__dict__["node_type"] = None
|
|
381
|
+
__props__.__dict__["size"] = None
|
|
382
|
+
__props__.__dict__["updated_at"] = None
|
|
383
|
+
__props__.__dict__["volume_type"] = None
|
|
384
|
+
super(MongoDbSnapshot, __self__).__init__(
|
|
385
|
+
'scaleway:index/mongoDbSnapshot:MongoDbSnapshot',
|
|
386
|
+
resource_name,
|
|
387
|
+
__props__,
|
|
388
|
+
opts)
|
|
389
|
+
|
|
390
|
+
@staticmethod
|
|
391
|
+
def get(resource_name: str,
|
|
392
|
+
id: pulumi.Input[str],
|
|
393
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
394
|
+
created_at: Optional[pulumi.Input[str]] = None,
|
|
395
|
+
expires_at: Optional[pulumi.Input[str]] = None,
|
|
396
|
+
instance_id: Optional[pulumi.Input[str]] = None,
|
|
397
|
+
instance_name: Optional[pulumi.Input[str]] = None,
|
|
398
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
399
|
+
node_type: Optional[pulumi.Input[str]] = None,
|
|
400
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
401
|
+
size: Optional[pulumi.Input[int]] = None,
|
|
402
|
+
updated_at: Optional[pulumi.Input[str]] = None,
|
|
403
|
+
volume_type: Optional[pulumi.Input[str]] = None) -> 'MongoDbSnapshot':
|
|
404
|
+
"""
|
|
405
|
+
Get an existing MongoDbSnapshot resource's state with the given name, id, and optional extra
|
|
406
|
+
properties used to qualify the lookup.
|
|
407
|
+
|
|
408
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
409
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
410
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
411
|
+
:param pulumi.Input[str] created_at: The date and time when the MongoDB® snapshot was created.
|
|
412
|
+
:param pulumi.Input[str] expires_at: The expiration date of the MongoDB® snapshot in ISO 8601 format (e.g. `2024-12-31T23:59:59Z`).
|
|
413
|
+
|
|
414
|
+
> **Important:** Once set, `expires_at` cannot be removed.
|
|
415
|
+
:param pulumi.Input[str] instance_id: The ID of the MongoDB® instance from which the snapshot was created.
|
|
416
|
+
:param pulumi.Input[str] instance_name: The name of the MongoDB® instance from which the snapshot was created.
|
|
417
|
+
:param pulumi.Input[str] name: The name of the MongoDB® snapshot.
|
|
418
|
+
:param pulumi.Input[str] node_type: The type of node associated with the MongoDB® snapshot.
|
|
419
|
+
:param pulumi.Input[str] region: `region`) The region in which the MongoDB® snapshot should be created.
|
|
420
|
+
:param pulumi.Input[int] size: The size of the MongoDB® snapshot in bytes.
|
|
421
|
+
:param pulumi.Input[str] updated_at: The date and time of the last update of the MongoDB® snapshot.
|
|
422
|
+
:param pulumi.Input[str] volume_type: The type of volume used for the MongoDB® snapshot.
|
|
423
|
+
"""
|
|
424
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
425
|
+
|
|
426
|
+
__props__ = _MongoDbSnapshotState.__new__(_MongoDbSnapshotState)
|
|
427
|
+
|
|
428
|
+
__props__.__dict__["created_at"] = created_at
|
|
429
|
+
__props__.__dict__["expires_at"] = expires_at
|
|
430
|
+
__props__.__dict__["instance_id"] = instance_id
|
|
431
|
+
__props__.__dict__["instance_name"] = instance_name
|
|
432
|
+
__props__.__dict__["name"] = name
|
|
433
|
+
__props__.__dict__["node_type"] = node_type
|
|
434
|
+
__props__.__dict__["region"] = region
|
|
435
|
+
__props__.__dict__["size"] = size
|
|
436
|
+
__props__.__dict__["updated_at"] = updated_at
|
|
437
|
+
__props__.__dict__["volume_type"] = volume_type
|
|
438
|
+
return MongoDbSnapshot(resource_name, opts=opts, __props__=__props__)
|
|
439
|
+
|
|
440
|
+
@property
|
|
441
|
+
@pulumi.getter(name="createdAt")
|
|
442
|
+
def created_at(self) -> pulumi.Output[str]:
|
|
443
|
+
"""
|
|
444
|
+
The date and time when the MongoDB® snapshot was created.
|
|
445
|
+
"""
|
|
446
|
+
return pulumi.get(self, "created_at")
|
|
447
|
+
|
|
448
|
+
@property
|
|
449
|
+
@pulumi.getter(name="expiresAt")
|
|
450
|
+
def expires_at(self) -> pulumi.Output[str]:
|
|
451
|
+
"""
|
|
452
|
+
The expiration date of the MongoDB® snapshot in ISO 8601 format (e.g. `2024-12-31T23:59:59Z`).
|
|
453
|
+
|
|
454
|
+
> **Important:** Once set, `expires_at` cannot be removed.
|
|
455
|
+
"""
|
|
456
|
+
return pulumi.get(self, "expires_at")
|
|
457
|
+
|
|
458
|
+
@property
|
|
459
|
+
@pulumi.getter(name="instanceId")
|
|
460
|
+
def instance_id(self) -> pulumi.Output[str]:
|
|
461
|
+
"""
|
|
462
|
+
The ID of the MongoDB® instance from which the snapshot was created.
|
|
463
|
+
"""
|
|
464
|
+
return pulumi.get(self, "instance_id")
|
|
465
|
+
|
|
466
|
+
@property
|
|
467
|
+
@pulumi.getter(name="instanceName")
|
|
468
|
+
def instance_name(self) -> pulumi.Output[str]:
|
|
469
|
+
"""
|
|
470
|
+
The name of the MongoDB® instance from which the snapshot was created.
|
|
471
|
+
"""
|
|
472
|
+
return pulumi.get(self, "instance_name")
|
|
473
|
+
|
|
474
|
+
@property
|
|
475
|
+
@pulumi.getter
|
|
476
|
+
def name(self) -> pulumi.Output[str]:
|
|
477
|
+
"""
|
|
478
|
+
The name of the MongoDB® snapshot.
|
|
479
|
+
"""
|
|
480
|
+
return pulumi.get(self, "name")
|
|
481
|
+
|
|
482
|
+
@property
|
|
483
|
+
@pulumi.getter(name="nodeType")
|
|
484
|
+
def node_type(self) -> pulumi.Output[str]:
|
|
485
|
+
"""
|
|
486
|
+
The type of node associated with the MongoDB® snapshot.
|
|
487
|
+
"""
|
|
488
|
+
return pulumi.get(self, "node_type")
|
|
489
|
+
|
|
490
|
+
@property
|
|
491
|
+
@pulumi.getter
|
|
492
|
+
def region(self) -> pulumi.Output[str]:
|
|
493
|
+
"""
|
|
494
|
+
`region`) The region in which the MongoDB® snapshot should be created.
|
|
495
|
+
"""
|
|
496
|
+
return pulumi.get(self, "region")
|
|
497
|
+
|
|
498
|
+
@property
|
|
499
|
+
@pulumi.getter
|
|
500
|
+
def size(self) -> pulumi.Output[int]:
|
|
501
|
+
"""
|
|
502
|
+
The size of the MongoDB® snapshot in bytes.
|
|
503
|
+
"""
|
|
504
|
+
return pulumi.get(self, "size")
|
|
505
|
+
|
|
506
|
+
@property
|
|
507
|
+
@pulumi.getter(name="updatedAt")
|
|
508
|
+
def updated_at(self) -> pulumi.Output[str]:
|
|
509
|
+
"""
|
|
510
|
+
The date and time of the last update of the MongoDB® snapshot.
|
|
511
|
+
"""
|
|
512
|
+
return pulumi.get(self, "updated_at")
|
|
513
|
+
|
|
514
|
+
@property
|
|
515
|
+
@pulumi.getter(name="volumeType")
|
|
516
|
+
def volume_type(self) -> pulumi.Output[str]:
|
|
517
|
+
"""
|
|
518
|
+
The type of volume used for the MongoDB® snapshot.
|
|
519
|
+
"""
|
|
520
|
+
return pulumi.get(self, "volume_type")
|
|
521
|
+
|
|
@@ -36,7 +36,7 @@ class ObjectBucketArgs:
|
|
|
36
36
|
:param pulumi.Input[str] acl: (Deprecated) The canned ACL you want to apply to the bucket.
|
|
37
37
|
|
|
38
38
|
> **Note:** The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation. Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
39
|
-
:param pulumi.Input[bool] force_destroy:
|
|
39
|
+
:param pulumi.Input[bool] force_destroy: Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has object lock enabled.
|
|
40
40
|
:param pulumi.Input[Sequence[pulumi.Input['ObjectBucketLifecycleRuleArgs']]] lifecycle_rules: Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
|
|
41
41
|
:param pulumi.Input[str] name: The name of the bucket.
|
|
42
42
|
:param pulumi.Input[bool] object_lock_enabled: Enable object lock
|
|
@@ -100,7 +100,7 @@ class ObjectBucketArgs:
|
|
|
100
100
|
@pulumi.getter(name="forceDestroy")
|
|
101
101
|
def force_destroy(self) -> Optional[pulumi.Input[bool]]:
|
|
102
102
|
"""
|
|
103
|
-
|
|
103
|
+
Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has object lock enabled.
|
|
104
104
|
"""
|
|
105
105
|
return pulumi.get(self, "force_destroy")
|
|
106
106
|
|
|
@@ -218,7 +218,7 @@ class _ObjectBucketState:
|
|
|
218
218
|
> **Note:** The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation. Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
219
219
|
:param pulumi.Input[str] api_endpoint: API URL of the bucket
|
|
220
220
|
:param pulumi.Input[str] endpoint: The endpoint URL of the bucket.
|
|
221
|
-
:param pulumi.Input[bool] force_destroy:
|
|
221
|
+
:param pulumi.Input[bool] force_destroy: Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has object lock enabled.
|
|
222
222
|
:param pulumi.Input[Sequence[pulumi.Input['ObjectBucketLifecycleRuleArgs']]] lifecycle_rules: Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
|
|
223
223
|
:param pulumi.Input[str] name: The name of the bucket.
|
|
224
224
|
:param pulumi.Input[bool] object_lock_enabled: Enable object lock
|
|
@@ -310,7 +310,7 @@ class _ObjectBucketState:
|
|
|
310
310
|
@pulumi.getter(name="forceDestroy")
|
|
311
311
|
def force_destroy(self) -> Optional[pulumi.Input[bool]]:
|
|
312
312
|
"""
|
|
313
|
-
|
|
313
|
+
Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has object lock enabled.
|
|
314
314
|
"""
|
|
315
315
|
return pulumi.get(self, "force_destroy")
|
|
316
316
|
|
|
@@ -486,7 +486,7 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
486
486
|
"prefix": "path3/",
|
|
487
487
|
"enabled": False,
|
|
488
488
|
"tags": {
|
|
489
|
-
"
|
|
489
|
+
"tagKey": "tagValue",
|
|
490
490
|
"terraform": "hashicorp",
|
|
491
491
|
},
|
|
492
492
|
"expiration": {
|
|
@@ -536,7 +536,7 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
536
536
|
:param pulumi.Input[str] acl: (Deprecated) The canned ACL you want to apply to the bucket.
|
|
537
537
|
|
|
538
538
|
> **Note:** The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation. Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
539
|
-
:param pulumi.Input[bool] force_destroy:
|
|
539
|
+
:param pulumi.Input[bool] force_destroy: Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has object lock enabled.
|
|
540
540
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ObjectBucketLifecycleRuleArgs', 'ObjectBucketLifecycleRuleArgsDict']]]] lifecycle_rules: Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
|
|
541
541
|
:param pulumi.Input[str] name: The name of the bucket.
|
|
542
542
|
:param pulumi.Input[bool] object_lock_enabled: Enable object lock
|
|
@@ -618,7 +618,7 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
618
618
|
"prefix": "path3/",
|
|
619
619
|
"enabled": False,
|
|
620
620
|
"tags": {
|
|
621
|
-
"
|
|
621
|
+
"tagKey": "tagValue",
|
|
622
622
|
"terraform": "hashicorp",
|
|
623
623
|
},
|
|
624
624
|
"expiration": {
|
|
@@ -743,7 +743,7 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
743
743
|
> **Note:** The `acl` attribute is deprecated. See ObjectBucketAcl resource documentation. Refer to the [official canned ACL documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl_overview.html#canned-acl) for more information on the different roles.
|
|
744
744
|
:param pulumi.Input[str] api_endpoint: API URL of the bucket
|
|
745
745
|
:param pulumi.Input[str] endpoint: The endpoint URL of the bucket.
|
|
746
|
-
:param pulumi.Input[bool] force_destroy:
|
|
746
|
+
:param pulumi.Input[bool] force_destroy: Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has object lock enabled.
|
|
747
747
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ObjectBucketLifecycleRuleArgs', 'ObjectBucketLifecycleRuleArgsDict']]]] lifecycle_rules: Lifecycle configuration is a set of rules that define actions that Scaleway Object Storage applies to a group of objects
|
|
748
748
|
:param pulumi.Input[str] name: The name of the bucket.
|
|
749
749
|
:param pulumi.Input[bool] object_lock_enabled: Enable object lock
|
|
@@ -809,7 +809,7 @@ class ObjectBucket(pulumi.CustomResource):
|
|
|
809
809
|
@pulumi.getter(name="forceDestroy")
|
|
810
810
|
def force_destroy(self) -> pulumi.Output[Optional[bool]]:
|
|
811
811
|
"""
|
|
812
|
-
|
|
812
|
+
Whether to allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has object lock enabled.
|
|
813
813
|
"""
|
|
814
814
|
return pulumi.get(self, "force_destroy")
|
|
815
815
|
|