pulumi-digitalocean 4.32.0a1726292068__py3-none-any.whl → 4.33.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 pulumi-digitalocean might be problematic. Click here for more details.
- pulumi_digitalocean/__init__.py +18 -0
- pulumi_digitalocean/_inputs.py +590 -58
- pulumi_digitalocean/app.py +90 -4
- pulumi_digitalocean/database_cluster.py +28 -0
- pulumi_digitalocean/database_kafka_config.py +1035 -0
- pulumi_digitalocean/database_mongodb_config.py +447 -0
- pulumi_digitalocean/get_app.py +14 -1
- pulumi_digitalocean/outputs.py +1061 -71
- pulumi_digitalocean/pulumi-plugin.json +1 -1
- {pulumi_digitalocean-4.32.0a1726292068.dist-info → pulumi_digitalocean-4.33.0.dist-info}/METADATA +1 -1
- {pulumi_digitalocean-4.32.0a1726292068.dist-info → pulumi_digitalocean-4.33.0.dist-info}/RECORD +13 -11
- {pulumi_digitalocean-4.32.0a1726292068.dist-info → pulumi_digitalocean-4.33.0.dist-info}/WHEEL +1 -1
- {pulumi_digitalocean-4.32.0a1726292068.dist-info → pulumi_digitalocean-4.33.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,447 @@
|
|
|
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 pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from . import _utilities
|
|
11
|
+
|
|
12
|
+
__all__ = ['DatabaseMongodbConfigArgs', 'DatabaseMongodbConfig']
|
|
13
|
+
|
|
14
|
+
@pulumi.input_type
|
|
15
|
+
class DatabaseMongodbConfigArgs:
|
|
16
|
+
def __init__(__self__, *,
|
|
17
|
+
cluster_id: pulumi.Input[str],
|
|
18
|
+
default_read_concern: Optional[pulumi.Input[str]] = None,
|
|
19
|
+
default_write_concern: Optional[pulumi.Input[str]] = None,
|
|
20
|
+
slow_op_threshold_ms: Optional[pulumi.Input[int]] = None,
|
|
21
|
+
transaction_lifetime_limit_seconds: Optional[pulumi.Input[int]] = None,
|
|
22
|
+
verbosity: Optional[pulumi.Input[int]] = None):
|
|
23
|
+
"""
|
|
24
|
+
The set of arguments for constructing a DatabaseMongodbConfig resource.
|
|
25
|
+
:param pulumi.Input[str] cluster_id: The ID of the target MongoDB cluster.
|
|
26
|
+
:param pulumi.Input[str] default_read_concern: Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more [here](https://www.mongodb.com/docs/manual/reference/read-concern/).
|
|
27
|
+
:param pulumi.Input[str] default_write_concern: Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either `majority` or a number`0...n` which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to `0` will request no acknowledgement of the write operation. Learn more [here](https://www.mongodb.com/docs/manual/reference/write-concern/).
|
|
28
|
+
:param pulumi.Input[int] slow_op_threshold_ms: Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-operationProfiling.slowOpThresholdMs).
|
|
29
|
+
:param pulumi.Input[int] transaction_lifetime_limit_seconds: Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every `transactionLifetimeLimitSeconds/2 seconds` or at least once every 60 seconds. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/parameters/#mongodb-parameter-param.transactionLifetimeLimitSeconds).
|
|
30
|
+
:param pulumi.Input[int] verbosity: The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-systemLog.verbosity).
|
|
31
|
+
"""
|
|
32
|
+
pulumi.set(__self__, "cluster_id", cluster_id)
|
|
33
|
+
if default_read_concern is not None:
|
|
34
|
+
pulumi.set(__self__, "default_read_concern", default_read_concern)
|
|
35
|
+
if default_write_concern is not None:
|
|
36
|
+
pulumi.set(__self__, "default_write_concern", default_write_concern)
|
|
37
|
+
if slow_op_threshold_ms is not None:
|
|
38
|
+
pulumi.set(__self__, "slow_op_threshold_ms", slow_op_threshold_ms)
|
|
39
|
+
if transaction_lifetime_limit_seconds is not None:
|
|
40
|
+
pulumi.set(__self__, "transaction_lifetime_limit_seconds", transaction_lifetime_limit_seconds)
|
|
41
|
+
if verbosity is not None:
|
|
42
|
+
pulumi.set(__self__, "verbosity", verbosity)
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
@pulumi.getter(name="clusterId")
|
|
46
|
+
def cluster_id(self) -> pulumi.Input[str]:
|
|
47
|
+
"""
|
|
48
|
+
The ID of the target MongoDB cluster.
|
|
49
|
+
"""
|
|
50
|
+
return pulumi.get(self, "cluster_id")
|
|
51
|
+
|
|
52
|
+
@cluster_id.setter
|
|
53
|
+
def cluster_id(self, value: pulumi.Input[str]):
|
|
54
|
+
pulumi.set(self, "cluster_id", value)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter(name="defaultReadConcern")
|
|
58
|
+
def default_read_concern(self) -> Optional[pulumi.Input[str]]:
|
|
59
|
+
"""
|
|
60
|
+
Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more [here](https://www.mongodb.com/docs/manual/reference/read-concern/).
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "default_read_concern")
|
|
63
|
+
|
|
64
|
+
@default_read_concern.setter
|
|
65
|
+
def default_read_concern(self, value: Optional[pulumi.Input[str]]):
|
|
66
|
+
pulumi.set(self, "default_read_concern", value)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
@pulumi.getter(name="defaultWriteConcern")
|
|
70
|
+
def default_write_concern(self) -> Optional[pulumi.Input[str]]:
|
|
71
|
+
"""
|
|
72
|
+
Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either `majority` or a number`0...n` which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to `0` will request no acknowledgement of the write operation. Learn more [here](https://www.mongodb.com/docs/manual/reference/write-concern/).
|
|
73
|
+
"""
|
|
74
|
+
return pulumi.get(self, "default_write_concern")
|
|
75
|
+
|
|
76
|
+
@default_write_concern.setter
|
|
77
|
+
def default_write_concern(self, value: Optional[pulumi.Input[str]]):
|
|
78
|
+
pulumi.set(self, "default_write_concern", value)
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
@pulumi.getter(name="slowOpThresholdMs")
|
|
82
|
+
def slow_op_threshold_ms(self) -> Optional[pulumi.Input[int]]:
|
|
83
|
+
"""
|
|
84
|
+
Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-operationProfiling.slowOpThresholdMs).
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "slow_op_threshold_ms")
|
|
87
|
+
|
|
88
|
+
@slow_op_threshold_ms.setter
|
|
89
|
+
def slow_op_threshold_ms(self, value: Optional[pulumi.Input[int]]):
|
|
90
|
+
pulumi.set(self, "slow_op_threshold_ms", value)
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
@pulumi.getter(name="transactionLifetimeLimitSeconds")
|
|
94
|
+
def transaction_lifetime_limit_seconds(self) -> Optional[pulumi.Input[int]]:
|
|
95
|
+
"""
|
|
96
|
+
Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every `transactionLifetimeLimitSeconds/2 seconds` or at least once every 60 seconds. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/parameters/#mongodb-parameter-param.transactionLifetimeLimitSeconds).
|
|
97
|
+
"""
|
|
98
|
+
return pulumi.get(self, "transaction_lifetime_limit_seconds")
|
|
99
|
+
|
|
100
|
+
@transaction_lifetime_limit_seconds.setter
|
|
101
|
+
def transaction_lifetime_limit_seconds(self, value: Optional[pulumi.Input[int]]):
|
|
102
|
+
pulumi.set(self, "transaction_lifetime_limit_seconds", value)
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
@pulumi.getter
|
|
106
|
+
def verbosity(self) -> Optional[pulumi.Input[int]]:
|
|
107
|
+
"""
|
|
108
|
+
The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-systemLog.verbosity).
|
|
109
|
+
"""
|
|
110
|
+
return pulumi.get(self, "verbosity")
|
|
111
|
+
|
|
112
|
+
@verbosity.setter
|
|
113
|
+
def verbosity(self, value: Optional[pulumi.Input[int]]):
|
|
114
|
+
pulumi.set(self, "verbosity", value)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
@pulumi.input_type
|
|
118
|
+
class _DatabaseMongodbConfigState:
|
|
119
|
+
def __init__(__self__, *,
|
|
120
|
+
cluster_id: Optional[pulumi.Input[str]] = None,
|
|
121
|
+
default_read_concern: Optional[pulumi.Input[str]] = None,
|
|
122
|
+
default_write_concern: Optional[pulumi.Input[str]] = None,
|
|
123
|
+
slow_op_threshold_ms: Optional[pulumi.Input[int]] = None,
|
|
124
|
+
transaction_lifetime_limit_seconds: Optional[pulumi.Input[int]] = None,
|
|
125
|
+
verbosity: Optional[pulumi.Input[int]] = None):
|
|
126
|
+
"""
|
|
127
|
+
Input properties used for looking up and filtering DatabaseMongodbConfig resources.
|
|
128
|
+
:param pulumi.Input[str] cluster_id: The ID of the target MongoDB cluster.
|
|
129
|
+
:param pulumi.Input[str] default_read_concern: Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more [here](https://www.mongodb.com/docs/manual/reference/read-concern/).
|
|
130
|
+
:param pulumi.Input[str] default_write_concern: Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either `majority` or a number`0...n` which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to `0` will request no acknowledgement of the write operation. Learn more [here](https://www.mongodb.com/docs/manual/reference/write-concern/).
|
|
131
|
+
:param pulumi.Input[int] slow_op_threshold_ms: Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-operationProfiling.slowOpThresholdMs).
|
|
132
|
+
:param pulumi.Input[int] transaction_lifetime_limit_seconds: Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every `transactionLifetimeLimitSeconds/2 seconds` or at least once every 60 seconds. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/parameters/#mongodb-parameter-param.transactionLifetimeLimitSeconds).
|
|
133
|
+
:param pulumi.Input[int] verbosity: The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-systemLog.verbosity).
|
|
134
|
+
"""
|
|
135
|
+
if cluster_id is not None:
|
|
136
|
+
pulumi.set(__self__, "cluster_id", cluster_id)
|
|
137
|
+
if default_read_concern is not None:
|
|
138
|
+
pulumi.set(__self__, "default_read_concern", default_read_concern)
|
|
139
|
+
if default_write_concern is not None:
|
|
140
|
+
pulumi.set(__self__, "default_write_concern", default_write_concern)
|
|
141
|
+
if slow_op_threshold_ms is not None:
|
|
142
|
+
pulumi.set(__self__, "slow_op_threshold_ms", slow_op_threshold_ms)
|
|
143
|
+
if transaction_lifetime_limit_seconds is not None:
|
|
144
|
+
pulumi.set(__self__, "transaction_lifetime_limit_seconds", transaction_lifetime_limit_seconds)
|
|
145
|
+
if verbosity is not None:
|
|
146
|
+
pulumi.set(__self__, "verbosity", verbosity)
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
@pulumi.getter(name="clusterId")
|
|
150
|
+
def cluster_id(self) -> Optional[pulumi.Input[str]]:
|
|
151
|
+
"""
|
|
152
|
+
The ID of the target MongoDB cluster.
|
|
153
|
+
"""
|
|
154
|
+
return pulumi.get(self, "cluster_id")
|
|
155
|
+
|
|
156
|
+
@cluster_id.setter
|
|
157
|
+
def cluster_id(self, value: Optional[pulumi.Input[str]]):
|
|
158
|
+
pulumi.set(self, "cluster_id", value)
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
@pulumi.getter(name="defaultReadConcern")
|
|
162
|
+
def default_read_concern(self) -> Optional[pulumi.Input[str]]:
|
|
163
|
+
"""
|
|
164
|
+
Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more [here](https://www.mongodb.com/docs/manual/reference/read-concern/).
|
|
165
|
+
"""
|
|
166
|
+
return pulumi.get(self, "default_read_concern")
|
|
167
|
+
|
|
168
|
+
@default_read_concern.setter
|
|
169
|
+
def default_read_concern(self, value: Optional[pulumi.Input[str]]):
|
|
170
|
+
pulumi.set(self, "default_read_concern", value)
|
|
171
|
+
|
|
172
|
+
@property
|
|
173
|
+
@pulumi.getter(name="defaultWriteConcern")
|
|
174
|
+
def default_write_concern(self) -> Optional[pulumi.Input[str]]:
|
|
175
|
+
"""
|
|
176
|
+
Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either `majority` or a number`0...n` which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to `0` will request no acknowledgement of the write operation. Learn more [here](https://www.mongodb.com/docs/manual/reference/write-concern/).
|
|
177
|
+
"""
|
|
178
|
+
return pulumi.get(self, "default_write_concern")
|
|
179
|
+
|
|
180
|
+
@default_write_concern.setter
|
|
181
|
+
def default_write_concern(self, value: Optional[pulumi.Input[str]]):
|
|
182
|
+
pulumi.set(self, "default_write_concern", value)
|
|
183
|
+
|
|
184
|
+
@property
|
|
185
|
+
@pulumi.getter(name="slowOpThresholdMs")
|
|
186
|
+
def slow_op_threshold_ms(self) -> Optional[pulumi.Input[int]]:
|
|
187
|
+
"""
|
|
188
|
+
Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-operationProfiling.slowOpThresholdMs).
|
|
189
|
+
"""
|
|
190
|
+
return pulumi.get(self, "slow_op_threshold_ms")
|
|
191
|
+
|
|
192
|
+
@slow_op_threshold_ms.setter
|
|
193
|
+
def slow_op_threshold_ms(self, value: Optional[pulumi.Input[int]]):
|
|
194
|
+
pulumi.set(self, "slow_op_threshold_ms", value)
|
|
195
|
+
|
|
196
|
+
@property
|
|
197
|
+
@pulumi.getter(name="transactionLifetimeLimitSeconds")
|
|
198
|
+
def transaction_lifetime_limit_seconds(self) -> Optional[pulumi.Input[int]]:
|
|
199
|
+
"""
|
|
200
|
+
Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every `transactionLifetimeLimitSeconds/2 seconds` or at least once every 60 seconds. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/parameters/#mongodb-parameter-param.transactionLifetimeLimitSeconds).
|
|
201
|
+
"""
|
|
202
|
+
return pulumi.get(self, "transaction_lifetime_limit_seconds")
|
|
203
|
+
|
|
204
|
+
@transaction_lifetime_limit_seconds.setter
|
|
205
|
+
def transaction_lifetime_limit_seconds(self, value: Optional[pulumi.Input[int]]):
|
|
206
|
+
pulumi.set(self, "transaction_lifetime_limit_seconds", value)
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
@pulumi.getter
|
|
210
|
+
def verbosity(self) -> Optional[pulumi.Input[int]]:
|
|
211
|
+
"""
|
|
212
|
+
The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-systemLog.verbosity).
|
|
213
|
+
"""
|
|
214
|
+
return pulumi.get(self, "verbosity")
|
|
215
|
+
|
|
216
|
+
@verbosity.setter
|
|
217
|
+
def verbosity(self, value: Optional[pulumi.Input[int]]):
|
|
218
|
+
pulumi.set(self, "verbosity", value)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
class DatabaseMongodbConfig(pulumi.CustomResource):
|
|
222
|
+
@overload
|
|
223
|
+
def __init__(__self__,
|
|
224
|
+
resource_name: str,
|
|
225
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
226
|
+
cluster_id: Optional[pulumi.Input[str]] = None,
|
|
227
|
+
default_read_concern: Optional[pulumi.Input[str]] = None,
|
|
228
|
+
default_write_concern: Optional[pulumi.Input[str]] = None,
|
|
229
|
+
slow_op_threshold_ms: Optional[pulumi.Input[int]] = None,
|
|
230
|
+
transaction_lifetime_limit_seconds: Optional[pulumi.Input[int]] = None,
|
|
231
|
+
verbosity: Optional[pulumi.Input[int]] = None,
|
|
232
|
+
__props__=None):
|
|
233
|
+
"""
|
|
234
|
+
Provides a virtual resource that can be used to change advanced configuration
|
|
235
|
+
options for a DigitalOcean managed MongoDB database cluster.
|
|
236
|
+
|
|
237
|
+
> **Note** MongoDB configurations are only removed from state when destroyed. The remote configuration is not unset.
|
|
238
|
+
|
|
239
|
+
## Example Usage
|
|
240
|
+
|
|
241
|
+
```python
|
|
242
|
+
import pulumi
|
|
243
|
+
import pulumi_digitalocean as digitalocean
|
|
244
|
+
|
|
245
|
+
example_database_cluster = digitalocean.DatabaseCluster("example",
|
|
246
|
+
name="example-mongodb-cluster",
|
|
247
|
+
engine="mongodb",
|
|
248
|
+
version="7",
|
|
249
|
+
size=digitalocean.DatabaseSlug.D_B_1_VPCU1_GB,
|
|
250
|
+
region=digitalocean.Region.NYC3,
|
|
251
|
+
node_count=1)
|
|
252
|
+
example = digitalocean.DatabaseMongodbConfig("example",
|
|
253
|
+
cluster_id=example_database_cluster.id,
|
|
254
|
+
default_read_concern="majority",
|
|
255
|
+
default_write_concern="majority",
|
|
256
|
+
transaction_lifetime_limit_seconds=100,
|
|
257
|
+
slow_op_threshold_ms=100,
|
|
258
|
+
verbosity=3)
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
## Import
|
|
262
|
+
|
|
263
|
+
A MongoDB database cluster's configuration can be imported using the `id` the parent cluster, e.g.
|
|
264
|
+
|
|
265
|
+
```sh
|
|
266
|
+
$ pulumi import digitalocean:index/databaseMongodbConfig:DatabaseMongodbConfig example 4b62829a-9c42-465b-aaa3-84051048e712
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
:param str resource_name: The name of the resource.
|
|
270
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
271
|
+
:param pulumi.Input[str] cluster_id: The ID of the target MongoDB cluster.
|
|
272
|
+
:param pulumi.Input[str] default_read_concern: Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more [here](https://www.mongodb.com/docs/manual/reference/read-concern/).
|
|
273
|
+
:param pulumi.Input[str] default_write_concern: Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either `majority` or a number`0...n` which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to `0` will request no acknowledgement of the write operation. Learn more [here](https://www.mongodb.com/docs/manual/reference/write-concern/).
|
|
274
|
+
:param pulumi.Input[int] slow_op_threshold_ms: Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-operationProfiling.slowOpThresholdMs).
|
|
275
|
+
:param pulumi.Input[int] transaction_lifetime_limit_seconds: Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every `transactionLifetimeLimitSeconds/2 seconds` or at least once every 60 seconds. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/parameters/#mongodb-parameter-param.transactionLifetimeLimitSeconds).
|
|
276
|
+
:param pulumi.Input[int] verbosity: The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-systemLog.verbosity).
|
|
277
|
+
"""
|
|
278
|
+
...
|
|
279
|
+
@overload
|
|
280
|
+
def __init__(__self__,
|
|
281
|
+
resource_name: str,
|
|
282
|
+
args: DatabaseMongodbConfigArgs,
|
|
283
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
284
|
+
"""
|
|
285
|
+
Provides a virtual resource that can be used to change advanced configuration
|
|
286
|
+
options for a DigitalOcean managed MongoDB database cluster.
|
|
287
|
+
|
|
288
|
+
> **Note** MongoDB configurations are only removed from state when destroyed. The remote configuration is not unset.
|
|
289
|
+
|
|
290
|
+
## Example Usage
|
|
291
|
+
|
|
292
|
+
```python
|
|
293
|
+
import pulumi
|
|
294
|
+
import pulumi_digitalocean as digitalocean
|
|
295
|
+
|
|
296
|
+
example_database_cluster = digitalocean.DatabaseCluster("example",
|
|
297
|
+
name="example-mongodb-cluster",
|
|
298
|
+
engine="mongodb",
|
|
299
|
+
version="7",
|
|
300
|
+
size=digitalocean.DatabaseSlug.D_B_1_VPCU1_GB,
|
|
301
|
+
region=digitalocean.Region.NYC3,
|
|
302
|
+
node_count=1)
|
|
303
|
+
example = digitalocean.DatabaseMongodbConfig("example",
|
|
304
|
+
cluster_id=example_database_cluster.id,
|
|
305
|
+
default_read_concern="majority",
|
|
306
|
+
default_write_concern="majority",
|
|
307
|
+
transaction_lifetime_limit_seconds=100,
|
|
308
|
+
slow_op_threshold_ms=100,
|
|
309
|
+
verbosity=3)
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
## Import
|
|
313
|
+
|
|
314
|
+
A MongoDB database cluster's configuration can be imported using the `id` the parent cluster, e.g.
|
|
315
|
+
|
|
316
|
+
```sh
|
|
317
|
+
$ pulumi import digitalocean:index/databaseMongodbConfig:DatabaseMongodbConfig example 4b62829a-9c42-465b-aaa3-84051048e712
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
:param str resource_name: The name of the resource.
|
|
321
|
+
:param DatabaseMongodbConfigArgs args: The arguments to use to populate this resource's properties.
|
|
322
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
323
|
+
"""
|
|
324
|
+
...
|
|
325
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
326
|
+
resource_args, opts = _utilities.get_resource_args_opts(DatabaseMongodbConfigArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
327
|
+
if resource_args is not None:
|
|
328
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
329
|
+
else:
|
|
330
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
331
|
+
|
|
332
|
+
def _internal_init(__self__,
|
|
333
|
+
resource_name: str,
|
|
334
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
335
|
+
cluster_id: Optional[pulumi.Input[str]] = None,
|
|
336
|
+
default_read_concern: Optional[pulumi.Input[str]] = None,
|
|
337
|
+
default_write_concern: Optional[pulumi.Input[str]] = None,
|
|
338
|
+
slow_op_threshold_ms: Optional[pulumi.Input[int]] = None,
|
|
339
|
+
transaction_lifetime_limit_seconds: Optional[pulumi.Input[int]] = None,
|
|
340
|
+
verbosity: Optional[pulumi.Input[int]] = None,
|
|
341
|
+
__props__=None):
|
|
342
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
343
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
344
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
345
|
+
if opts.id is None:
|
|
346
|
+
if __props__ is not None:
|
|
347
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
348
|
+
__props__ = DatabaseMongodbConfigArgs.__new__(DatabaseMongodbConfigArgs)
|
|
349
|
+
|
|
350
|
+
if cluster_id is None and not opts.urn:
|
|
351
|
+
raise TypeError("Missing required property 'cluster_id'")
|
|
352
|
+
__props__.__dict__["cluster_id"] = cluster_id
|
|
353
|
+
__props__.__dict__["default_read_concern"] = default_read_concern
|
|
354
|
+
__props__.__dict__["default_write_concern"] = default_write_concern
|
|
355
|
+
__props__.__dict__["slow_op_threshold_ms"] = slow_op_threshold_ms
|
|
356
|
+
__props__.__dict__["transaction_lifetime_limit_seconds"] = transaction_lifetime_limit_seconds
|
|
357
|
+
__props__.__dict__["verbosity"] = verbosity
|
|
358
|
+
super(DatabaseMongodbConfig, __self__).__init__(
|
|
359
|
+
'digitalocean:index/databaseMongodbConfig:DatabaseMongodbConfig',
|
|
360
|
+
resource_name,
|
|
361
|
+
__props__,
|
|
362
|
+
opts)
|
|
363
|
+
|
|
364
|
+
@staticmethod
|
|
365
|
+
def get(resource_name: str,
|
|
366
|
+
id: pulumi.Input[str],
|
|
367
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
368
|
+
cluster_id: Optional[pulumi.Input[str]] = None,
|
|
369
|
+
default_read_concern: Optional[pulumi.Input[str]] = None,
|
|
370
|
+
default_write_concern: Optional[pulumi.Input[str]] = None,
|
|
371
|
+
slow_op_threshold_ms: Optional[pulumi.Input[int]] = None,
|
|
372
|
+
transaction_lifetime_limit_seconds: Optional[pulumi.Input[int]] = None,
|
|
373
|
+
verbosity: Optional[pulumi.Input[int]] = None) -> 'DatabaseMongodbConfig':
|
|
374
|
+
"""
|
|
375
|
+
Get an existing DatabaseMongodbConfig resource's state with the given name, id, and optional extra
|
|
376
|
+
properties used to qualify the lookup.
|
|
377
|
+
|
|
378
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
379
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
380
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
381
|
+
:param pulumi.Input[str] cluster_id: The ID of the target MongoDB cluster.
|
|
382
|
+
:param pulumi.Input[str] default_read_concern: Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more [here](https://www.mongodb.com/docs/manual/reference/read-concern/).
|
|
383
|
+
:param pulumi.Input[str] default_write_concern: Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either `majority` or a number`0...n` which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to `0` will request no acknowledgement of the write operation. Learn more [here](https://www.mongodb.com/docs/manual/reference/write-concern/).
|
|
384
|
+
:param pulumi.Input[int] slow_op_threshold_ms: Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-operationProfiling.slowOpThresholdMs).
|
|
385
|
+
:param pulumi.Input[int] transaction_lifetime_limit_seconds: Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every `transactionLifetimeLimitSeconds/2 seconds` or at least once every 60 seconds. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/parameters/#mongodb-parameter-param.transactionLifetimeLimitSeconds).
|
|
386
|
+
:param pulumi.Input[int] verbosity: The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-systemLog.verbosity).
|
|
387
|
+
"""
|
|
388
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
389
|
+
|
|
390
|
+
__props__ = _DatabaseMongodbConfigState.__new__(_DatabaseMongodbConfigState)
|
|
391
|
+
|
|
392
|
+
__props__.__dict__["cluster_id"] = cluster_id
|
|
393
|
+
__props__.__dict__["default_read_concern"] = default_read_concern
|
|
394
|
+
__props__.__dict__["default_write_concern"] = default_write_concern
|
|
395
|
+
__props__.__dict__["slow_op_threshold_ms"] = slow_op_threshold_ms
|
|
396
|
+
__props__.__dict__["transaction_lifetime_limit_seconds"] = transaction_lifetime_limit_seconds
|
|
397
|
+
__props__.__dict__["verbosity"] = verbosity
|
|
398
|
+
return DatabaseMongodbConfig(resource_name, opts=opts, __props__=__props__)
|
|
399
|
+
|
|
400
|
+
@property
|
|
401
|
+
@pulumi.getter(name="clusterId")
|
|
402
|
+
def cluster_id(self) -> pulumi.Output[str]:
|
|
403
|
+
"""
|
|
404
|
+
The ID of the target MongoDB cluster.
|
|
405
|
+
"""
|
|
406
|
+
return pulumi.get(self, "cluster_id")
|
|
407
|
+
|
|
408
|
+
@property
|
|
409
|
+
@pulumi.getter(name="defaultReadConcern")
|
|
410
|
+
def default_read_concern(self) -> pulumi.Output[str]:
|
|
411
|
+
"""
|
|
412
|
+
Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more [here](https://www.mongodb.com/docs/manual/reference/read-concern/).
|
|
413
|
+
"""
|
|
414
|
+
return pulumi.get(self, "default_read_concern")
|
|
415
|
+
|
|
416
|
+
@property
|
|
417
|
+
@pulumi.getter(name="defaultWriteConcern")
|
|
418
|
+
def default_write_concern(self) -> pulumi.Output[str]:
|
|
419
|
+
"""
|
|
420
|
+
Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either `majority` or a number`0...n` which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to `0` will request no acknowledgement of the write operation. Learn more [here](https://www.mongodb.com/docs/manual/reference/write-concern/).
|
|
421
|
+
"""
|
|
422
|
+
return pulumi.get(self, "default_write_concern")
|
|
423
|
+
|
|
424
|
+
@property
|
|
425
|
+
@pulumi.getter(name="slowOpThresholdMs")
|
|
426
|
+
def slow_op_threshold_ms(self) -> pulumi.Output[int]:
|
|
427
|
+
"""
|
|
428
|
+
Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-operationProfiling.slowOpThresholdMs).
|
|
429
|
+
"""
|
|
430
|
+
return pulumi.get(self, "slow_op_threshold_ms")
|
|
431
|
+
|
|
432
|
+
@property
|
|
433
|
+
@pulumi.getter(name="transactionLifetimeLimitSeconds")
|
|
434
|
+
def transaction_lifetime_limit_seconds(self) -> pulumi.Output[int]:
|
|
435
|
+
"""
|
|
436
|
+
Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every `transactionLifetimeLimitSeconds/2 seconds` or at least once every 60 seconds. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/parameters/#mongodb-parameter-param.transactionLifetimeLimitSeconds).
|
|
437
|
+
"""
|
|
438
|
+
return pulumi.get(self, "transaction_lifetime_limit_seconds")
|
|
439
|
+
|
|
440
|
+
@property
|
|
441
|
+
@pulumi.getter
|
|
442
|
+
def verbosity(self) -> pulumi.Output[int]:
|
|
443
|
+
"""
|
|
444
|
+
The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. <em>Changing this parameter will lead to a restart of the MongoDB service.</em> Learn more [here](https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-systemLog.verbosity).
|
|
445
|
+
"""
|
|
446
|
+
return pulumi.get(self, "verbosity")
|
|
447
|
+
|
pulumi_digitalocean/get_app.py
CHANGED
|
@@ -23,7 +23,7 @@ class GetAppResult:
|
|
|
23
23
|
"""
|
|
24
24
|
A collection of values returned by getApp.
|
|
25
25
|
"""
|
|
26
|
-
def __init__(__self__, active_deployment_id=None, app_id=None, created_at=None, dedicated_ips=None, default_ingress=None, id=None, live_url=None, project_id=None, specs=None, updated_at=None, urn=None):
|
|
26
|
+
def __init__(__self__, active_deployment_id=None, app_id=None, created_at=None, dedicated_ips=None, default_ingress=None, id=None, live_domain=None, live_url=None, project_id=None, specs=None, updated_at=None, urn=None):
|
|
27
27
|
if active_deployment_id and not isinstance(active_deployment_id, str):
|
|
28
28
|
raise TypeError("Expected argument 'active_deployment_id' to be a str")
|
|
29
29
|
pulumi.set(__self__, "active_deployment_id", active_deployment_id)
|
|
@@ -42,6 +42,9 @@ class GetAppResult:
|
|
|
42
42
|
if id and not isinstance(id, str):
|
|
43
43
|
raise TypeError("Expected argument 'id' to be a str")
|
|
44
44
|
pulumi.set(__self__, "id", id)
|
|
45
|
+
if live_domain and not isinstance(live_domain, str):
|
|
46
|
+
raise TypeError("Expected argument 'live_domain' to be a str")
|
|
47
|
+
pulumi.set(__self__, "live_domain", live_domain)
|
|
45
48
|
if live_url and not isinstance(live_url, str):
|
|
46
49
|
raise TypeError("Expected argument 'live_url' to be a str")
|
|
47
50
|
pulumi.set(__self__, "live_url", live_url)
|
|
@@ -103,6 +106,14 @@ class GetAppResult:
|
|
|
103
106
|
"""
|
|
104
107
|
return pulumi.get(self, "id")
|
|
105
108
|
|
|
109
|
+
@property
|
|
110
|
+
@pulumi.getter(name="liveDomain")
|
|
111
|
+
def live_domain(self) -> str:
|
|
112
|
+
"""
|
|
113
|
+
The live domain of the app.
|
|
114
|
+
"""
|
|
115
|
+
return pulumi.get(self, "live_domain")
|
|
116
|
+
|
|
106
117
|
@property
|
|
107
118
|
@pulumi.getter(name="liveUrl")
|
|
108
119
|
def live_url(self) -> str:
|
|
@@ -156,6 +167,7 @@ class AwaitableGetAppResult(GetAppResult):
|
|
|
156
167
|
dedicated_ips=self.dedicated_ips,
|
|
157
168
|
default_ingress=self.default_ingress,
|
|
158
169
|
id=self.id,
|
|
170
|
+
live_domain=self.live_domain,
|
|
159
171
|
live_url=self.live_url,
|
|
160
172
|
project_id=self.project_id,
|
|
161
173
|
specs=self.specs,
|
|
@@ -198,6 +210,7 @@ def get_app(app_id: Optional[str] = None,
|
|
|
198
210
|
dedicated_ips=pulumi.get(__ret__, 'dedicated_ips'),
|
|
199
211
|
default_ingress=pulumi.get(__ret__, 'default_ingress'),
|
|
200
212
|
id=pulumi.get(__ret__, 'id'),
|
|
213
|
+
live_domain=pulumi.get(__ret__, 'live_domain'),
|
|
201
214
|
live_url=pulumi.get(__ret__, 'live_url'),
|
|
202
215
|
project_id=pulumi.get(__ret__, 'project_id'),
|
|
203
216
|
specs=pulumi.get(__ret__, 'specs'),
|