pulumi-digitalocean 4.33.0a1726834781__py3-none-any.whl → 4.33.0a1727374775__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.

@@ -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
+
@@ -107,6 +107,7 @@ __all__ = [
107
107
  'DatabasePostgresqlConfigTimescaledb',
108
108
  'DatabaseUserSetting',
109
109
  'DatabaseUserSettingAcl',
110
+ 'DatabaseUserSettingOpensearchAcl',
110
111
  'FirewallInboundRule',
111
112
  'FirewallOutboundRule',
112
113
  'FirewallPendingChange',
@@ -6549,8 +6550,26 @@ class DatabasePostgresqlConfigTimescaledb(dict):
6549
6550
 
6550
6551
  @pulumi.output_type
6551
6552
  class DatabaseUserSetting(dict):
6553
+ @staticmethod
6554
+ def __key_warning(key: str):
6555
+ suggest = None
6556
+ if key == "opensearchAcls":
6557
+ suggest = "opensearch_acls"
6558
+
6559
+ if suggest:
6560
+ pulumi.log.warn(f"Key '{key}' not found in DatabaseUserSetting. Access the value via the '{suggest}' property getter instead.")
6561
+
6562
+ def __getitem__(self, key: str) -> Any:
6563
+ DatabaseUserSetting.__key_warning(key)
6564
+ return super().__getitem__(key)
6565
+
6566
+ def get(self, key: str, default = None) -> Any:
6567
+ DatabaseUserSetting.__key_warning(key)
6568
+ return super().get(key, default)
6569
+
6552
6570
  def __init__(__self__, *,
6553
- acls: Optional[Sequence['outputs.DatabaseUserSettingAcl']] = None):
6571
+ acls: Optional[Sequence['outputs.DatabaseUserSettingAcl']] = None,
6572
+ opensearch_acls: Optional[Sequence['outputs.DatabaseUserSettingOpensearchAcl']] = None):
6554
6573
  """
6555
6574
  :param Sequence['DatabaseUserSettingAclArgs'] acls: A set of ACLs (Access Control Lists) specifying permission on topics with a Kafka cluster. The properties of an individual ACL are described below:
6556
6575
 
@@ -6558,6 +6577,8 @@ class DatabaseUserSetting(dict):
6558
6577
  """
6559
6578
  if acls is not None:
6560
6579
  pulumi.set(__self__, "acls", acls)
6580
+ if opensearch_acls is not None:
6581
+ pulumi.set(__self__, "opensearch_acls", opensearch_acls)
6561
6582
 
6562
6583
  @property
6563
6584
  @pulumi.getter
@@ -6569,6 +6590,11 @@ class DatabaseUserSetting(dict):
6569
6590
  """
6570
6591
  return pulumi.get(self, "acls")
6571
6592
 
6593
+ @property
6594
+ @pulumi.getter(name="opensearchAcls")
6595
+ def opensearch_acls(self) -> Optional[Sequence['outputs.DatabaseUserSettingOpensearchAcl']]:
6596
+ return pulumi.get(self, "opensearch_acls")
6597
+
6572
6598
 
6573
6599
  @pulumi.output_type
6574
6600
  class DatabaseUserSettingAcl(dict):
@@ -6611,6 +6637,31 @@ class DatabaseUserSettingAcl(dict):
6611
6637
  return pulumi.get(self, "id")
6612
6638
 
6613
6639
 
6640
+ @pulumi.output_type
6641
+ class DatabaseUserSettingOpensearchAcl(dict):
6642
+ def __init__(__self__, *,
6643
+ index: str,
6644
+ permission: str):
6645
+ """
6646
+ :param str permission: The permission level applied to the ACL. This includes "admin", "consume", "produce", and "produceconsume". "admin" allows for producing and consuming as well as add/delete/update permission for topics. "consume" allows only for reading topic messages. "produce" allows only for writing topic messages. "produceconsume" allows for both reading and writing topic messages.
6647
+ """
6648
+ pulumi.set(__self__, "index", index)
6649
+ pulumi.set(__self__, "permission", permission)
6650
+
6651
+ @property
6652
+ @pulumi.getter
6653
+ def index(self) -> str:
6654
+ return pulumi.get(self, "index")
6655
+
6656
+ @property
6657
+ @pulumi.getter
6658
+ def permission(self) -> str:
6659
+ """
6660
+ The permission level applied to the ACL. This includes "admin", "consume", "produce", and "produceconsume". "admin" allows for producing and consuming as well as add/delete/update permission for topics. "consume" allows only for reading topic messages. "produce" allows only for writing topic messages. "produceconsume" allows for both reading and writing topic messages.
6661
+ """
6662
+ return pulumi.get(self, "permission")
6663
+
6664
+
6614
6665
  @pulumi.output_type
6615
6666
  class FirewallInboundRule(dict):
6616
6667
  @staticmethod
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "digitalocean",
4
- "version": "4.33.0-alpha.1726834781"
4
+ "version": "4.33.0-alpha.1727374775"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_digitalocean
3
- Version: 4.33.0a1726834781
3
+ Version: 4.33.0a1727374775
4
4
  Summary: A Pulumi package for creating and managing DigitalOcean cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -1,6 +1,6 @@
1
- pulumi_digitalocean/__init__.py,sha256=mktQwsF3BbyKJQIR1AlP0oTpc6ldvR__RjLoxvQdZDg,11549
1
+ pulumi_digitalocean/__init__.py,sha256=3rv2UqtU2icHCmxtzF9jPhngrJCyoJWJJ45UUls10gM,12049
2
2
  pulumi_digitalocean/_enums.py,sha256=PnoXofiMQYEU6D3sTDy_obPc_9X7o9csON9rpKN1k7M,5272
3
- pulumi_digitalocean/_inputs.py,sha256=wnHyCNuiPIfnm3KyuN1i5zMGiir2JnrdmUbSOXFHzTw,433825
3
+ pulumi_digitalocean/_inputs.py,sha256=19xK2O2URZyFkfRogFgBdxORLVLm0bBRl2zjjhNgVM8,436147
4
4
  pulumi_digitalocean/_utilities.py,sha256=aNnnaO6zRha3FhNHonuabR4fJLWGXANtK5dlh1Mz95k,10506
5
5
  pulumi_digitalocean/app.py,sha256=U6jomjrKaf5u-VS6yvfJlREjZwCBMxkys7H7R5ds8zU,24268
6
6
  pulumi_digitalocean/cdn.py,sha256=M3L-ildGPtRneA2N78DlNmj-CgDXrB_74-ApvfdBFk8,21615
@@ -12,7 +12,9 @@ pulumi_digitalocean/database_cluster.py,sha256=lcY7v-vTxfNnMXP6L0v23HHS_GtzNJWWh
12
12
  pulumi_digitalocean/database_connection_pool.py,sha256=cdAZHL5du2hFKCt0kB_JwClPCKVu_Z-0OPPQ2gT3wLA,25181
13
13
  pulumi_digitalocean/database_db.py,sha256=7SnOB8-pDotWO1Va0hvM3dj8PQE6CF8LBzk2vG0ODQw,9500
14
14
  pulumi_digitalocean/database_firewall.py,sha256=HR1kwv_6b7m8JT3lTBiOKPuu8eaCzk9_2y2-S3phteA,15390
15
+ pulumi_digitalocean/database_kafka_config.py,sha256=1G8jlBN-VrIaEVmikeRjdtqA8NIZQsk36wl7Ors_7ls,59941
15
16
  pulumi_digitalocean/database_kafka_topic.py,sha256=kYh4W_weEzMxI1elD82Tlvha9ErKAvXradWSYiAOM3c,21903
17
+ pulumi_digitalocean/database_mongodb_config.py,sha256=mnlLjjJi4DxQfPRvS7Tz4arkoyvfsXLfB8iBHSkU1Kk,32676
16
18
  pulumi_digitalocean/database_mysql_config.py,sha256=pdezDJMRKXC-DNkZCQVp3ZHzlo8Ml8b5Umsf5ZCTM_g,82058
17
19
  pulumi_digitalocean/database_postgresql_config.py,sha256=IZfsC_1xlvVoor8qoDbVKJcpnkThQCVaEDU1YBhsgzk,161155
18
20
  pulumi_digitalocean/database_redis_config.py,sha256=3JDEgbA2Lw7Ib5jt7tt0MerhS9SsRp8fWGBH71_x3k0,38079
@@ -70,11 +72,11 @@ pulumi_digitalocean/kubernetes_cluster.py,sha256=X9zqIkb0-ua8zLQTqFazzJAdnAuwzyT
70
72
  pulumi_digitalocean/kubernetes_node_pool.py,sha256=NtvCIqnKU4XeCw6bWCGsr11eJ7NDtRh_w5rbjdxeeYg,37587
71
73
  pulumi_digitalocean/load_balancer.py,sha256=rWndgzU5-hboZLS_r-IeP-UuIrnMPvhWpuHUIn70kCY,78178
72
74
  pulumi_digitalocean/monitor_alert.py,sha256=lsWeQ8U_SUnTNyLOgyNk7sdHE-uBG4KToUcoBJnBk6A,37290
73
- pulumi_digitalocean/outputs.py,sha256=bARyH4VG54bmavXHtfTKTZMFpVNZjW5ZHfXprVRGg-U,632703
75
+ pulumi_digitalocean/outputs.py,sha256=Mo5rj0a2gzLQpn6NQG1U-YCvd-SWHnKArC3Hi3O4I3w,635056
74
76
  pulumi_digitalocean/project.py,sha256=8UO1pMgLyjnOpbHqEIg-DV-073_TQfmW-7PtzFm91No,24448
75
77
  pulumi_digitalocean/project_resources.py,sha256=PaqfDyS8yuP1y78Y0tb32gVjMM3ZqfNsoZsStIw4SdI,10271
76
78
  pulumi_digitalocean/provider.py,sha256=jyrlf821aiTGilsy1pomMx_3ueAlDxJ-zzFBByAVSy8,14459
77
- pulumi_digitalocean/pulumi-plugin.json,sha256=M_5N-QmiYKFjXkfs8iWIpEjlW31lgWkCYbYni_3YF1Q,89
79
+ pulumi_digitalocean/pulumi-plugin.json,sha256=NxD2T-fkyPVh5fpDHcyt5ZGnRIomCMGSWtxFq4CR98o,89
78
80
  pulumi_digitalocean/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
79
81
  pulumi_digitalocean/reserved_ip.py,sha256=t0Nl708Vu3zM--CFcYaa2TR_0MMRAHvFJuLnbrIHSno,12659
80
82
  pulumi_digitalocean/reserved_ip_assignment.py,sha256=w4rPyzOvv4WKXkUs-6uECLxyCzBfPW2t0Be3Jp31a4Y,10183
@@ -94,7 +96,7 @@ pulumi_digitalocean/vpc_peering.py,sha256=hQSpYSA1H1uiWS2_MwVMkK-sA-knen1QUcgeYn
94
96
  pulumi_digitalocean/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
95
97
  pulumi_digitalocean/config/__init__.pyi,sha256=mOcX528kloQX4grC61mM9t0dkWIuJplgcjOwMpO2-p4,1144
96
98
  pulumi_digitalocean/config/vars.py,sha256=9eJyHt4CXIMf8k8_Y706-k_1ViDDeJgMHKy-aAtojzk,2332
97
- pulumi_digitalocean-4.33.0a1726834781.dist-info/METADATA,sha256=OZ9LxaT3LJpv3Ko1BJZ5bRKoYy7PZmQXN4QkzcE5ivw,3786
98
- pulumi_digitalocean-4.33.0a1726834781.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
99
- pulumi_digitalocean-4.33.0a1726834781.dist-info/top_level.txt,sha256=XKSLMAXl7fDVTPZg8SJT7Hf8IqOk5hUr_uZtGCtKg8w,20
100
- pulumi_digitalocean-4.33.0a1726834781.dist-info/RECORD,,
99
+ pulumi_digitalocean-4.33.0a1727374775.dist-info/METADATA,sha256=xib9U7MO3CPCXlyG5Lj-2BBWZGJCQa-87FT9ZmrIlrE,3786
100
+ pulumi_digitalocean-4.33.0a1727374775.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
101
+ pulumi_digitalocean-4.33.0a1727374775.dist-info/top_level.txt,sha256=XKSLMAXl7fDVTPZg8SJT7Hf8IqOk5hUr_uZtGCtKg8w,20
102
+ pulumi_digitalocean-4.33.0a1727374775.dist-info/RECORD,,