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,352 +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
- from ._inputs import *
18
-
19
- __all__ = ['DocumentdbPrivateNetworkEndpointArgs', 'DocumentdbPrivateNetworkEndpoint']
20
-
21
- @pulumi.input_type
22
- class DocumentdbPrivateNetworkEndpointArgs:
23
- def __init__(__self__, *,
24
- instance_id: pulumi.Input[str],
25
- private_network: Optional[pulumi.Input['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs']] = None,
26
- region: Optional[pulumi.Input[str]] = None):
27
- """
28
- The set of arguments for constructing a DocumentdbPrivateNetworkEndpoint resource.
29
- :param pulumi.Input[str] instance_id: UUID of the documentdb instance.
30
- :param pulumi.Input['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs'] private_network: The private network specs details. This is a list with maximum one element and supports the following attributes:
31
- :param pulumi.Input[str] region: The region of the endpoint.
32
-
33
-
34
- > **NOTE:** Please calculate your host IP.
35
- using cirhost. Otherwise, lets IPAM service
36
- handle the host IP on the network.
37
- """
38
- pulumi.set(__self__, "instance_id", instance_id)
39
- if private_network is not None:
40
- pulumi.set(__self__, "private_network", private_network)
41
- if region is not None:
42
- pulumi.set(__self__, "region", region)
43
-
44
- @property
45
- @pulumi.getter(name="instanceId")
46
- def instance_id(self) -> pulumi.Input[str]:
47
- """
48
- UUID of the documentdb instance.
49
- """
50
- return pulumi.get(self, "instance_id")
51
-
52
- @instance_id.setter
53
- def instance_id(self, value: pulumi.Input[str]):
54
- pulumi.set(self, "instance_id", value)
55
-
56
- @property
57
- @pulumi.getter(name="privateNetwork")
58
- def private_network(self) -> Optional[pulumi.Input['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs']]:
59
- """
60
- The private network specs details. This is a list with maximum one element and supports the following attributes:
61
- """
62
- return pulumi.get(self, "private_network")
63
-
64
- @private_network.setter
65
- def private_network(self, value: Optional[pulumi.Input['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs']]):
66
- pulumi.set(self, "private_network", value)
67
-
68
- @property
69
- @pulumi.getter
70
- def region(self) -> Optional[pulumi.Input[str]]:
71
- """
72
- The region of the endpoint.
73
-
74
-
75
- > **NOTE:** Please calculate your host IP.
76
- using cirhost. Otherwise, lets IPAM service
77
- handle the host IP on the network.
78
- """
79
- return pulumi.get(self, "region")
80
-
81
- @region.setter
82
- def region(self, value: Optional[pulumi.Input[str]]):
83
- pulumi.set(self, "region", value)
84
-
85
-
86
- @pulumi.input_type
87
- class _DocumentdbPrivateNetworkEndpointState:
88
- def __init__(__self__, *,
89
- instance_id: Optional[pulumi.Input[str]] = None,
90
- private_network: Optional[pulumi.Input['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs']] = None,
91
- region: Optional[pulumi.Input[str]] = None):
92
- """
93
- Input properties used for looking up and filtering DocumentdbPrivateNetworkEndpoint resources.
94
- :param pulumi.Input[str] instance_id: UUID of the documentdb instance.
95
- :param pulumi.Input['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs'] private_network: The private network specs details. This is a list with maximum one element and supports the following attributes:
96
- :param pulumi.Input[str] region: The region of the endpoint.
97
-
98
-
99
- > **NOTE:** Please calculate your host IP.
100
- using cirhost. Otherwise, lets IPAM service
101
- handle the host IP on the network.
102
- """
103
- if instance_id is not None:
104
- pulumi.set(__self__, "instance_id", instance_id)
105
- if private_network is not None:
106
- pulumi.set(__self__, "private_network", private_network)
107
- if region is not None:
108
- pulumi.set(__self__, "region", region)
109
-
110
- @property
111
- @pulumi.getter(name="instanceId")
112
- def instance_id(self) -> Optional[pulumi.Input[str]]:
113
- """
114
- UUID of the documentdb instance.
115
- """
116
- return pulumi.get(self, "instance_id")
117
-
118
- @instance_id.setter
119
- def instance_id(self, value: Optional[pulumi.Input[str]]):
120
- pulumi.set(self, "instance_id", value)
121
-
122
- @property
123
- @pulumi.getter(name="privateNetwork")
124
- def private_network(self) -> Optional[pulumi.Input['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs']]:
125
- """
126
- The private network specs details. This is a list with maximum one element and supports the following attributes:
127
- """
128
- return pulumi.get(self, "private_network")
129
-
130
- @private_network.setter
131
- def private_network(self, value: Optional[pulumi.Input['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs']]):
132
- pulumi.set(self, "private_network", value)
133
-
134
- @property
135
- @pulumi.getter
136
- def region(self) -> Optional[pulumi.Input[str]]:
137
- """
138
- The region of the endpoint.
139
-
140
-
141
- > **NOTE:** Please calculate your host IP.
142
- using cirhost. Otherwise, lets IPAM service
143
- handle the host IP on the network.
144
- """
145
- return pulumi.get(self, "region")
146
-
147
- @region.setter
148
- def region(self, value: Optional[pulumi.Input[str]]):
149
- pulumi.set(self, "region", value)
150
-
151
-
152
- class DocumentdbPrivateNetworkEndpoint(pulumi.CustomResource):
153
- @overload
154
- def __init__(__self__,
155
- resource_name: str,
156
- opts: Optional[pulumi.ResourceOptions] = None,
157
- instance_id: Optional[pulumi.Input[str]] = None,
158
- private_network: Optional[pulumi.Input[Union['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs', 'DocumentdbPrivateNetworkEndpointPrivateNetworkArgsDict']]] = None,
159
- region: Optional[pulumi.Input[str]] = None,
160
- __props__=None):
161
- """
162
- Creates and manages Scaleway Database Private Network Endpoint.
163
-
164
- ## Example Usage
165
-
166
- ### Example Basic
167
-
168
- ```python
169
- import pulumi
170
- import pulumiverse_scaleway as scaleway
171
-
172
- pn = scaleway.VpcPrivateNetwork("pn", name="my_private_network")
173
- instance = scaleway.DocumentdbInstance("instance",
174
- name="test-document_db-basic",
175
- node_type="docdb-play2-pico",
176
- engine="FerretDB-1",
177
- user_name="my_initial_user",
178
- password="thiZ_is_v&ry_s3cret",
179
- volume_size_in_gb=20)
180
- main = scaleway.DocumentdbPrivateNetworkEndpoint("main",
181
- instance_id=instance.id,
182
- private_network={
183
- "ip_net": "172.16.32.3/22",
184
- "id": pn.id,
185
- },
186
- opts = pulumi.ResourceOptions(depends_on=[pn]))
187
- ```
188
-
189
- ## Import
190
-
191
- Database Instance Endpoint can be imported using the `{region}/{endpoint_id}`, e.g.
192
-
193
- bash
194
-
195
- ```sh
196
- $ pulumi import scaleway:index/documentdbPrivateNetworkEndpoint:DocumentdbPrivateNetworkEndpoint end fr-par/11111111-1111-1111-1111-111111111111
197
- ```
198
-
199
- :param str resource_name: The name of the resource.
200
- :param pulumi.ResourceOptions opts: Options for the resource.
201
- :param pulumi.Input[str] instance_id: UUID of the documentdb instance.
202
- :param pulumi.Input[Union['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs', 'DocumentdbPrivateNetworkEndpointPrivateNetworkArgsDict']] private_network: The private network specs details. This is a list with maximum one element and supports the following attributes:
203
- :param pulumi.Input[str] region: The region of the endpoint.
204
-
205
-
206
- > **NOTE:** Please calculate your host IP.
207
- using cirhost. Otherwise, lets IPAM service
208
- handle the host IP on the network.
209
- """
210
- ...
211
- @overload
212
- def __init__(__self__,
213
- resource_name: str,
214
- args: DocumentdbPrivateNetworkEndpointArgs,
215
- opts: Optional[pulumi.ResourceOptions] = None):
216
- """
217
- Creates and manages Scaleway Database Private Network Endpoint.
218
-
219
- ## Example Usage
220
-
221
- ### Example Basic
222
-
223
- ```python
224
- import pulumi
225
- import pulumiverse_scaleway as scaleway
226
-
227
- pn = scaleway.VpcPrivateNetwork("pn", name="my_private_network")
228
- instance = scaleway.DocumentdbInstance("instance",
229
- name="test-document_db-basic",
230
- node_type="docdb-play2-pico",
231
- engine="FerretDB-1",
232
- user_name="my_initial_user",
233
- password="thiZ_is_v&ry_s3cret",
234
- volume_size_in_gb=20)
235
- main = scaleway.DocumentdbPrivateNetworkEndpoint("main",
236
- instance_id=instance.id,
237
- private_network={
238
- "ip_net": "172.16.32.3/22",
239
- "id": pn.id,
240
- },
241
- opts = pulumi.ResourceOptions(depends_on=[pn]))
242
- ```
243
-
244
- ## Import
245
-
246
- Database Instance Endpoint can be imported using the `{region}/{endpoint_id}`, e.g.
247
-
248
- bash
249
-
250
- ```sh
251
- $ pulumi import scaleway:index/documentdbPrivateNetworkEndpoint:DocumentdbPrivateNetworkEndpoint end fr-par/11111111-1111-1111-1111-111111111111
252
- ```
253
-
254
- :param str resource_name: The name of the resource.
255
- :param DocumentdbPrivateNetworkEndpointArgs args: The arguments to use to populate this resource's properties.
256
- :param pulumi.ResourceOptions opts: Options for the resource.
257
- """
258
- ...
259
- def __init__(__self__, resource_name: str, *args, **kwargs):
260
- resource_args, opts = _utilities.get_resource_args_opts(DocumentdbPrivateNetworkEndpointArgs, pulumi.ResourceOptions, *args, **kwargs)
261
- if resource_args is not None:
262
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
263
- else:
264
- __self__._internal_init(resource_name, *args, **kwargs)
265
-
266
- def _internal_init(__self__,
267
- resource_name: str,
268
- opts: Optional[pulumi.ResourceOptions] = None,
269
- instance_id: Optional[pulumi.Input[str]] = None,
270
- private_network: Optional[pulumi.Input[Union['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs', 'DocumentdbPrivateNetworkEndpointPrivateNetworkArgsDict']]] = None,
271
- region: Optional[pulumi.Input[str]] = None,
272
- __props__=None):
273
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
274
- if not isinstance(opts, pulumi.ResourceOptions):
275
- raise TypeError('Expected resource options to be a ResourceOptions instance')
276
- if opts.id is None:
277
- if __props__ is not None:
278
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
279
- __props__ = DocumentdbPrivateNetworkEndpointArgs.__new__(DocumentdbPrivateNetworkEndpointArgs)
280
-
281
- if instance_id is None and not opts.urn:
282
- raise TypeError("Missing required property 'instance_id'")
283
- __props__.__dict__["instance_id"] = instance_id
284
- __props__.__dict__["private_network"] = private_network
285
- __props__.__dict__["region"] = region
286
- super(DocumentdbPrivateNetworkEndpoint, __self__).__init__(
287
- 'scaleway:index/documentdbPrivateNetworkEndpoint:DocumentdbPrivateNetworkEndpoint',
288
- resource_name,
289
- __props__,
290
- opts)
291
-
292
- @staticmethod
293
- def get(resource_name: str,
294
- id: pulumi.Input[str],
295
- opts: Optional[pulumi.ResourceOptions] = None,
296
- instance_id: Optional[pulumi.Input[str]] = None,
297
- private_network: Optional[pulumi.Input[Union['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs', 'DocumentdbPrivateNetworkEndpointPrivateNetworkArgsDict']]] = None,
298
- region: Optional[pulumi.Input[str]] = None) -> 'DocumentdbPrivateNetworkEndpoint':
299
- """
300
- Get an existing DocumentdbPrivateNetworkEndpoint resource's state with the given name, id, and optional extra
301
- properties used to qualify the lookup.
302
-
303
- :param str resource_name: The unique name of the resulting resource.
304
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
305
- :param pulumi.ResourceOptions opts: Options for the resource.
306
- :param pulumi.Input[str] instance_id: UUID of the documentdb instance.
307
- :param pulumi.Input[Union['DocumentdbPrivateNetworkEndpointPrivateNetworkArgs', 'DocumentdbPrivateNetworkEndpointPrivateNetworkArgsDict']] private_network: The private network specs details. This is a list with maximum one element and supports the following attributes:
308
- :param pulumi.Input[str] region: The region of the endpoint.
309
-
310
-
311
- > **NOTE:** Please calculate your host IP.
312
- using cirhost. Otherwise, lets IPAM service
313
- handle the host IP on the network.
314
- """
315
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
316
-
317
- __props__ = _DocumentdbPrivateNetworkEndpointState.__new__(_DocumentdbPrivateNetworkEndpointState)
318
-
319
- __props__.__dict__["instance_id"] = instance_id
320
- __props__.__dict__["private_network"] = private_network
321
- __props__.__dict__["region"] = region
322
- return DocumentdbPrivateNetworkEndpoint(resource_name, opts=opts, __props__=__props__)
323
-
324
- @property
325
- @pulumi.getter(name="instanceId")
326
- def instance_id(self) -> pulumi.Output[str]:
327
- """
328
- UUID of the documentdb instance.
329
- """
330
- return pulumi.get(self, "instance_id")
331
-
332
- @property
333
- @pulumi.getter(name="privateNetwork")
334
- def private_network(self) -> pulumi.Output[Optional['outputs.DocumentdbPrivateNetworkEndpointPrivateNetwork']]:
335
- """
336
- The private network specs details. This is a list with maximum one element and supports the following attributes:
337
- """
338
- return pulumi.get(self, "private_network")
339
-
340
- @property
341
- @pulumi.getter
342
- def region(self) -> pulumi.Output[str]:
343
- """
344
- The region of the endpoint.
345
-
346
-
347
- > **NOTE:** Please calculate your host IP.
348
- using cirhost. Otherwise, lets IPAM service
349
- handle the host IP on the network.
350
- """
351
- return pulumi.get(self, "region")
352
-