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