pulumi-digitalocean 4.27.0a1710332933__py3-none-any.whl → 4.39.0a1736849637__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.

Files changed (107) hide show
  1. pulumi_digitalocean/__init__.py +75 -0
  2. pulumi_digitalocean/_enums.py +131 -52
  3. pulumi_digitalocean/_inputs.py +5767 -399
  4. pulumi_digitalocean/_utilities.py +41 -5
  5. pulumi_digitalocean/app.py +199 -67
  6. pulumi_digitalocean/cdn.py +20 -23
  7. pulumi_digitalocean/certificate.py +45 -42
  8. pulumi_digitalocean/config/__init__.pyi +5 -0
  9. pulumi_digitalocean/config/vars.py +5 -0
  10. pulumi_digitalocean/container_registry.py +11 -6
  11. pulumi_digitalocean/container_registry_docker_credentials.py +53 -12
  12. pulumi_digitalocean/custom_image.py +13 -8
  13. pulumi_digitalocean/database_cluster.py +298 -120
  14. pulumi_digitalocean/database_connection_pool.py +15 -10
  15. pulumi_digitalocean/database_db.py +19 -12
  16. pulumi_digitalocean/database_firewall.py +78 -75
  17. pulumi_digitalocean/database_kafka_config.py +1040 -0
  18. pulumi_digitalocean/database_kafka_topic.py +66 -61
  19. pulumi_digitalocean/database_mongodb_config.py +452 -0
  20. pulumi_digitalocean/database_mysql_config.py +15 -12
  21. pulumi_digitalocean/database_opensearch_config.py +2069 -0
  22. pulumi_digitalocean/database_postgresql_config.py +2614 -0
  23. pulumi_digitalocean/database_redis_config.py +29 -12
  24. pulumi_digitalocean/database_replica.py +29 -24
  25. pulumi_digitalocean/database_user.py +90 -75
  26. pulumi_digitalocean/dns_record.py +13 -8
  27. pulumi_digitalocean/domain.py +7 -6
  28. pulumi_digitalocean/droplet.py +89 -31
  29. pulumi_digitalocean/droplet_autoscale.py +474 -0
  30. pulumi_digitalocean/droplet_snapshot.py +23 -14
  31. pulumi_digitalocean/firewall.py +118 -106
  32. pulumi_digitalocean/floating_ip.py +19 -16
  33. pulumi_digitalocean/floating_ip_assignment.py +19 -16
  34. pulumi_digitalocean/get_account.py +18 -9
  35. pulumi_digitalocean/get_app.py +57 -10
  36. pulumi_digitalocean/get_certificate.py +19 -9
  37. pulumi_digitalocean/get_container_registry.py +19 -9
  38. pulumi_digitalocean/get_database_ca.py +14 -9
  39. pulumi_digitalocean/get_database_cluster.py +119 -11
  40. pulumi_digitalocean/get_database_connection_pool.py +25 -9
  41. pulumi_digitalocean/get_database_replica.py +29 -9
  42. pulumi_digitalocean/get_database_user.py +21 -9
  43. pulumi_digitalocean/get_domain.py +16 -9
  44. pulumi_digitalocean/get_domains.py +34 -27
  45. pulumi_digitalocean/get_droplet.py +66 -23
  46. pulumi_digitalocean/get_droplet_autoscale.py +197 -0
  47. pulumi_digitalocean/get_droplet_snapshot.py +36 -23
  48. pulumi_digitalocean/get_droplets.py +80 -54
  49. pulumi_digitalocean/get_firewall.py +29 -13
  50. pulumi_digitalocean/get_floating_ip.py +16 -9
  51. pulumi_digitalocean/get_image.py +42 -27
  52. pulumi_digitalocean/get_images.py +56 -53
  53. pulumi_digitalocean/get_kubernetes_cluster.py +53 -6
  54. pulumi_digitalocean/get_kubernetes_versions.py +43 -41
  55. pulumi_digitalocean/get_load_balancer.py +81 -17
  56. pulumi_digitalocean/get_project.py +23 -9
  57. pulumi_digitalocean/get_projects.py +56 -53
  58. pulumi_digitalocean/get_record.py +23 -9
  59. pulumi_digitalocean/get_records.py +62 -13
  60. pulumi_digitalocean/get_region.py +17 -9
  61. pulumi_digitalocean/get_regions.py +56 -53
  62. pulumi_digitalocean/get_reserved_ip.py +16 -9
  63. pulumi_digitalocean/get_reserved_ipv6.py +118 -0
  64. pulumi_digitalocean/get_sizes.py +24 -13
  65. pulumi_digitalocean/get_spaces_bucket.py +18 -9
  66. pulumi_digitalocean/get_spaces_bucket_object.py +41 -14
  67. pulumi_digitalocean/get_spaces_bucket_objects.py +26 -5
  68. pulumi_digitalocean/get_spaces_buckets.py +48 -45
  69. pulumi_digitalocean/get_ssh_key.py +27 -19
  70. pulumi_digitalocean/get_ssh_keys.py +40 -37
  71. pulumi_digitalocean/get_tag.py +31 -19
  72. pulumi_digitalocean/get_tags.py +32 -25
  73. pulumi_digitalocean/get_volume.py +35 -23
  74. pulumi_digitalocean/get_volume_snapshot.py +35 -21
  75. pulumi_digitalocean/get_vpc.py +33 -23
  76. pulumi_digitalocean/get_vpc_peering.py +244 -0
  77. pulumi_digitalocean/kubernetes_cluster.py +86 -35
  78. pulumi_digitalocean/kubernetes_node_pool.py +46 -43
  79. pulumi_digitalocean/load_balancer.py +320 -157
  80. pulumi_digitalocean/monitor_alert.py +17 -12
  81. pulumi_digitalocean/outputs.py +3419 -344
  82. pulumi_digitalocean/project.py +19 -16
  83. pulumi_digitalocean/project_resources.py +11 -8
  84. pulumi_digitalocean/provider.py +5 -0
  85. pulumi_digitalocean/pulumi-plugin.json +2 -1
  86. pulumi_digitalocean/reserved_ip.py +19 -16
  87. pulumi_digitalocean/reserved_ip_assignment.py +19 -16
  88. pulumi_digitalocean/reserved_ipv6.py +232 -0
  89. pulumi_digitalocean/reserved_ipv6_assignment.py +171 -0
  90. pulumi_digitalocean/spaces_bucket.py +70 -79
  91. pulumi_digitalocean/spaces_bucket_cors_configuration.py +30 -25
  92. pulumi_digitalocean/spaces_bucket_object.py +11 -12
  93. pulumi_digitalocean/spaces_bucket_policy.py +21 -16
  94. pulumi_digitalocean/ssh_key.py +19 -10
  95. pulumi_digitalocean/tag.py +13 -10
  96. pulumi_digitalocean/uptime_alert.py +10 -5
  97. pulumi_digitalocean/uptime_check.py +5 -0
  98. pulumi_digitalocean/volume.py +47 -50
  99. pulumi_digitalocean/volume_attachment.py +25 -20
  100. pulumi_digitalocean/volume_snapshot.py +17 -10
  101. pulumi_digitalocean/vpc.py +27 -22
  102. pulumi_digitalocean/vpc_peering.py +378 -0
  103. {pulumi_digitalocean-4.27.0a1710332933.dist-info → pulumi_digitalocean-4.39.0a1736849637.dist-info}/METADATA +7 -6
  104. pulumi_digitalocean-4.39.0a1736849637.dist-info/RECORD +108 -0
  105. {pulumi_digitalocean-4.27.0a1710332933.dist-info → pulumi_digitalocean-4.39.0a1736849637.dist-info}/WHEEL +1 -1
  106. pulumi_digitalocean-4.27.0a1710332933.dist-info/RECORD +0 -97
  107. {pulumi_digitalocean-4.27.0a1710332933.dist-info → pulumi_digitalocean-4.39.0a1736849637.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,452 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+
17
+ __all__ = ['DatabaseMongodbConfigArgs', 'DatabaseMongodbConfig']
18
+
19
+ @pulumi.input_type
20
+ class DatabaseMongodbConfigArgs:
21
+ def __init__(__self__, *,
22
+ cluster_id: pulumi.Input[str],
23
+ default_read_concern: Optional[pulumi.Input[str]] = None,
24
+ default_write_concern: Optional[pulumi.Input[str]] = None,
25
+ slow_op_threshold_ms: Optional[pulumi.Input[int]] = None,
26
+ transaction_lifetime_limit_seconds: Optional[pulumi.Input[int]] = None,
27
+ verbosity: Optional[pulumi.Input[int]] = None):
28
+ """
29
+ The set of arguments for constructing a DatabaseMongodbConfig resource.
30
+ :param pulumi.Input[str] cluster_id: The ID of the target MongoDB cluster.
31
+ :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/).
32
+ :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/).
33
+ :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).
34
+ :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).
35
+ :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).
36
+ """
37
+ pulumi.set(__self__, "cluster_id", cluster_id)
38
+ if default_read_concern is not None:
39
+ pulumi.set(__self__, "default_read_concern", default_read_concern)
40
+ if default_write_concern is not None:
41
+ pulumi.set(__self__, "default_write_concern", default_write_concern)
42
+ if slow_op_threshold_ms is not None:
43
+ pulumi.set(__self__, "slow_op_threshold_ms", slow_op_threshold_ms)
44
+ if transaction_lifetime_limit_seconds is not None:
45
+ pulumi.set(__self__, "transaction_lifetime_limit_seconds", transaction_lifetime_limit_seconds)
46
+ if verbosity is not None:
47
+ pulumi.set(__self__, "verbosity", verbosity)
48
+
49
+ @property
50
+ @pulumi.getter(name="clusterId")
51
+ def cluster_id(self) -> pulumi.Input[str]:
52
+ """
53
+ The ID of the target MongoDB cluster.
54
+ """
55
+ return pulumi.get(self, "cluster_id")
56
+
57
+ @cluster_id.setter
58
+ def cluster_id(self, value: pulumi.Input[str]):
59
+ pulumi.set(self, "cluster_id", value)
60
+
61
+ @property
62
+ @pulumi.getter(name="defaultReadConcern")
63
+ def default_read_concern(self) -> Optional[pulumi.Input[str]]:
64
+ """
65
+ 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/).
66
+ """
67
+ return pulumi.get(self, "default_read_concern")
68
+
69
+ @default_read_concern.setter
70
+ def default_read_concern(self, value: Optional[pulumi.Input[str]]):
71
+ pulumi.set(self, "default_read_concern", value)
72
+
73
+ @property
74
+ @pulumi.getter(name="defaultWriteConcern")
75
+ def default_write_concern(self) -> Optional[pulumi.Input[str]]:
76
+ """
77
+ 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/).
78
+ """
79
+ return pulumi.get(self, "default_write_concern")
80
+
81
+ @default_write_concern.setter
82
+ def default_write_concern(self, value: Optional[pulumi.Input[str]]):
83
+ pulumi.set(self, "default_write_concern", value)
84
+
85
+ @property
86
+ @pulumi.getter(name="slowOpThresholdMs")
87
+ def slow_op_threshold_ms(self) -> Optional[pulumi.Input[int]]:
88
+ """
89
+ 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).
90
+ """
91
+ return pulumi.get(self, "slow_op_threshold_ms")
92
+
93
+ @slow_op_threshold_ms.setter
94
+ def slow_op_threshold_ms(self, value: Optional[pulumi.Input[int]]):
95
+ pulumi.set(self, "slow_op_threshold_ms", value)
96
+
97
+ @property
98
+ @pulumi.getter(name="transactionLifetimeLimitSeconds")
99
+ def transaction_lifetime_limit_seconds(self) -> Optional[pulumi.Input[int]]:
100
+ """
101
+ 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).
102
+ """
103
+ return pulumi.get(self, "transaction_lifetime_limit_seconds")
104
+
105
+ @transaction_lifetime_limit_seconds.setter
106
+ def transaction_lifetime_limit_seconds(self, value: Optional[pulumi.Input[int]]):
107
+ pulumi.set(self, "transaction_lifetime_limit_seconds", value)
108
+
109
+ @property
110
+ @pulumi.getter
111
+ def verbosity(self) -> Optional[pulumi.Input[int]]:
112
+ """
113
+ 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).
114
+ """
115
+ return pulumi.get(self, "verbosity")
116
+
117
+ @verbosity.setter
118
+ def verbosity(self, value: Optional[pulumi.Input[int]]):
119
+ pulumi.set(self, "verbosity", value)
120
+
121
+
122
+ @pulumi.input_type
123
+ class _DatabaseMongodbConfigState:
124
+ def __init__(__self__, *,
125
+ cluster_id: Optional[pulumi.Input[str]] = None,
126
+ default_read_concern: Optional[pulumi.Input[str]] = None,
127
+ default_write_concern: Optional[pulumi.Input[str]] = None,
128
+ slow_op_threshold_ms: Optional[pulumi.Input[int]] = None,
129
+ transaction_lifetime_limit_seconds: Optional[pulumi.Input[int]] = None,
130
+ verbosity: Optional[pulumi.Input[int]] = None):
131
+ """
132
+ Input properties used for looking up and filtering DatabaseMongodbConfig resources.
133
+ :param pulumi.Input[str] cluster_id: The ID of the target MongoDB cluster.
134
+ :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/).
135
+ :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/).
136
+ :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).
137
+ :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).
138
+ :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).
139
+ """
140
+ if cluster_id is not None:
141
+ pulumi.set(__self__, "cluster_id", cluster_id)
142
+ if default_read_concern is not None:
143
+ pulumi.set(__self__, "default_read_concern", default_read_concern)
144
+ if default_write_concern is not None:
145
+ pulumi.set(__self__, "default_write_concern", default_write_concern)
146
+ if slow_op_threshold_ms is not None:
147
+ pulumi.set(__self__, "slow_op_threshold_ms", slow_op_threshold_ms)
148
+ if transaction_lifetime_limit_seconds is not None:
149
+ pulumi.set(__self__, "transaction_lifetime_limit_seconds", transaction_lifetime_limit_seconds)
150
+ if verbosity is not None:
151
+ pulumi.set(__self__, "verbosity", verbosity)
152
+
153
+ @property
154
+ @pulumi.getter(name="clusterId")
155
+ def cluster_id(self) -> Optional[pulumi.Input[str]]:
156
+ """
157
+ The ID of the target MongoDB cluster.
158
+ """
159
+ return pulumi.get(self, "cluster_id")
160
+
161
+ @cluster_id.setter
162
+ def cluster_id(self, value: Optional[pulumi.Input[str]]):
163
+ pulumi.set(self, "cluster_id", value)
164
+
165
+ @property
166
+ @pulumi.getter(name="defaultReadConcern")
167
+ def default_read_concern(self) -> Optional[pulumi.Input[str]]:
168
+ """
169
+ 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/).
170
+ """
171
+ return pulumi.get(self, "default_read_concern")
172
+
173
+ @default_read_concern.setter
174
+ def default_read_concern(self, value: Optional[pulumi.Input[str]]):
175
+ pulumi.set(self, "default_read_concern", value)
176
+
177
+ @property
178
+ @pulumi.getter(name="defaultWriteConcern")
179
+ def default_write_concern(self) -> Optional[pulumi.Input[str]]:
180
+ """
181
+ 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/).
182
+ """
183
+ return pulumi.get(self, "default_write_concern")
184
+
185
+ @default_write_concern.setter
186
+ def default_write_concern(self, value: Optional[pulumi.Input[str]]):
187
+ pulumi.set(self, "default_write_concern", value)
188
+
189
+ @property
190
+ @pulumi.getter(name="slowOpThresholdMs")
191
+ def slow_op_threshold_ms(self) -> Optional[pulumi.Input[int]]:
192
+ """
193
+ 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).
194
+ """
195
+ return pulumi.get(self, "slow_op_threshold_ms")
196
+
197
+ @slow_op_threshold_ms.setter
198
+ def slow_op_threshold_ms(self, value: Optional[pulumi.Input[int]]):
199
+ pulumi.set(self, "slow_op_threshold_ms", value)
200
+
201
+ @property
202
+ @pulumi.getter(name="transactionLifetimeLimitSeconds")
203
+ def transaction_lifetime_limit_seconds(self) -> Optional[pulumi.Input[int]]:
204
+ """
205
+ 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).
206
+ """
207
+ return pulumi.get(self, "transaction_lifetime_limit_seconds")
208
+
209
+ @transaction_lifetime_limit_seconds.setter
210
+ def transaction_lifetime_limit_seconds(self, value: Optional[pulumi.Input[int]]):
211
+ pulumi.set(self, "transaction_lifetime_limit_seconds", value)
212
+
213
+ @property
214
+ @pulumi.getter
215
+ def verbosity(self) -> Optional[pulumi.Input[int]]:
216
+ """
217
+ 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).
218
+ """
219
+ return pulumi.get(self, "verbosity")
220
+
221
+ @verbosity.setter
222
+ def verbosity(self, value: Optional[pulumi.Input[int]]):
223
+ pulumi.set(self, "verbosity", value)
224
+
225
+
226
+ class DatabaseMongodbConfig(pulumi.CustomResource):
227
+ @overload
228
+ def __init__(__self__,
229
+ resource_name: str,
230
+ opts: Optional[pulumi.ResourceOptions] = None,
231
+ cluster_id: Optional[pulumi.Input[str]] = None,
232
+ default_read_concern: Optional[pulumi.Input[str]] = None,
233
+ default_write_concern: Optional[pulumi.Input[str]] = None,
234
+ slow_op_threshold_ms: Optional[pulumi.Input[int]] = None,
235
+ transaction_lifetime_limit_seconds: Optional[pulumi.Input[int]] = None,
236
+ verbosity: Optional[pulumi.Input[int]] = None,
237
+ __props__=None):
238
+ """
239
+ Provides a virtual resource that can be used to change advanced configuration
240
+ options for a DigitalOcean managed MongoDB database cluster.
241
+
242
+ > **Note** MongoDB configurations are only removed from state when destroyed. The remote configuration is not unset.
243
+
244
+ ## Example Usage
245
+
246
+ ```python
247
+ import pulumi
248
+ import pulumi_digitalocean as digitalocean
249
+
250
+ example_database_cluster = digitalocean.DatabaseCluster("example",
251
+ name="example-mongodb-cluster",
252
+ engine="mongodb",
253
+ version="7",
254
+ size=digitalocean.DatabaseSlug.D_B_1_VPCU1_GB,
255
+ region=digitalocean.Region.NYC3,
256
+ node_count=1)
257
+ example = digitalocean.DatabaseMongodbConfig("example",
258
+ cluster_id=example_database_cluster.id,
259
+ default_read_concern="majority",
260
+ default_write_concern="majority",
261
+ transaction_lifetime_limit_seconds=100,
262
+ slow_op_threshold_ms=100,
263
+ verbosity=3)
264
+ ```
265
+
266
+ ## Import
267
+
268
+ A MongoDB database cluster's configuration can be imported using the `id` the parent cluster, e.g.
269
+
270
+ ```sh
271
+ $ pulumi import digitalocean:index/databaseMongodbConfig:DatabaseMongodbConfig example 4b62829a-9c42-465b-aaa3-84051048e712
272
+ ```
273
+
274
+ :param str resource_name: The name of the resource.
275
+ :param pulumi.ResourceOptions opts: Options for the resource.
276
+ :param pulumi.Input[str] cluster_id: The ID of the target MongoDB cluster.
277
+ :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/).
278
+ :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/).
279
+ :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).
280
+ :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).
281
+ :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).
282
+ """
283
+ ...
284
+ @overload
285
+ def __init__(__self__,
286
+ resource_name: str,
287
+ args: DatabaseMongodbConfigArgs,
288
+ opts: Optional[pulumi.ResourceOptions] = None):
289
+ """
290
+ Provides a virtual resource that can be used to change advanced configuration
291
+ options for a DigitalOcean managed MongoDB database cluster.
292
+
293
+ > **Note** MongoDB configurations are only removed from state when destroyed. The remote configuration is not unset.
294
+
295
+ ## Example Usage
296
+
297
+ ```python
298
+ import pulumi
299
+ import pulumi_digitalocean as digitalocean
300
+
301
+ example_database_cluster = digitalocean.DatabaseCluster("example",
302
+ name="example-mongodb-cluster",
303
+ engine="mongodb",
304
+ version="7",
305
+ size=digitalocean.DatabaseSlug.D_B_1_VPCU1_GB,
306
+ region=digitalocean.Region.NYC3,
307
+ node_count=1)
308
+ example = digitalocean.DatabaseMongodbConfig("example",
309
+ cluster_id=example_database_cluster.id,
310
+ default_read_concern="majority",
311
+ default_write_concern="majority",
312
+ transaction_lifetime_limit_seconds=100,
313
+ slow_op_threshold_ms=100,
314
+ verbosity=3)
315
+ ```
316
+
317
+ ## Import
318
+
319
+ A MongoDB database cluster's configuration can be imported using the `id` the parent cluster, e.g.
320
+
321
+ ```sh
322
+ $ pulumi import digitalocean:index/databaseMongodbConfig:DatabaseMongodbConfig example 4b62829a-9c42-465b-aaa3-84051048e712
323
+ ```
324
+
325
+ :param str resource_name: The name of the resource.
326
+ :param DatabaseMongodbConfigArgs args: The arguments to use to populate this resource's properties.
327
+ :param pulumi.ResourceOptions opts: Options for the resource.
328
+ """
329
+ ...
330
+ def __init__(__self__, resource_name: str, *args, **kwargs):
331
+ resource_args, opts = _utilities.get_resource_args_opts(DatabaseMongodbConfigArgs, pulumi.ResourceOptions, *args, **kwargs)
332
+ if resource_args is not None:
333
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
334
+ else:
335
+ __self__._internal_init(resource_name, *args, **kwargs)
336
+
337
+ def _internal_init(__self__,
338
+ resource_name: str,
339
+ opts: Optional[pulumi.ResourceOptions] = None,
340
+ cluster_id: Optional[pulumi.Input[str]] = None,
341
+ default_read_concern: Optional[pulumi.Input[str]] = None,
342
+ default_write_concern: Optional[pulumi.Input[str]] = None,
343
+ slow_op_threshold_ms: Optional[pulumi.Input[int]] = None,
344
+ transaction_lifetime_limit_seconds: Optional[pulumi.Input[int]] = None,
345
+ verbosity: Optional[pulumi.Input[int]] = None,
346
+ __props__=None):
347
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
348
+ if not isinstance(opts, pulumi.ResourceOptions):
349
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
350
+ if opts.id is None:
351
+ if __props__ is not None:
352
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
353
+ __props__ = DatabaseMongodbConfigArgs.__new__(DatabaseMongodbConfigArgs)
354
+
355
+ if cluster_id is None and not opts.urn:
356
+ raise TypeError("Missing required property 'cluster_id'")
357
+ __props__.__dict__["cluster_id"] = cluster_id
358
+ __props__.__dict__["default_read_concern"] = default_read_concern
359
+ __props__.__dict__["default_write_concern"] = default_write_concern
360
+ __props__.__dict__["slow_op_threshold_ms"] = slow_op_threshold_ms
361
+ __props__.__dict__["transaction_lifetime_limit_seconds"] = transaction_lifetime_limit_seconds
362
+ __props__.__dict__["verbosity"] = verbosity
363
+ super(DatabaseMongodbConfig, __self__).__init__(
364
+ 'digitalocean:index/databaseMongodbConfig:DatabaseMongodbConfig',
365
+ resource_name,
366
+ __props__,
367
+ opts)
368
+
369
+ @staticmethod
370
+ def get(resource_name: str,
371
+ id: pulumi.Input[str],
372
+ opts: Optional[pulumi.ResourceOptions] = None,
373
+ cluster_id: Optional[pulumi.Input[str]] = None,
374
+ default_read_concern: Optional[pulumi.Input[str]] = None,
375
+ default_write_concern: Optional[pulumi.Input[str]] = None,
376
+ slow_op_threshold_ms: Optional[pulumi.Input[int]] = None,
377
+ transaction_lifetime_limit_seconds: Optional[pulumi.Input[int]] = None,
378
+ verbosity: Optional[pulumi.Input[int]] = None) -> 'DatabaseMongodbConfig':
379
+ """
380
+ Get an existing DatabaseMongodbConfig resource's state with the given name, id, and optional extra
381
+ properties used to qualify the lookup.
382
+
383
+ :param str resource_name: The unique name of the resulting resource.
384
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
385
+ :param pulumi.ResourceOptions opts: Options for the resource.
386
+ :param pulumi.Input[str] cluster_id: The ID of the target MongoDB cluster.
387
+ :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/).
388
+ :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/).
389
+ :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).
390
+ :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).
391
+ :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).
392
+ """
393
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
394
+
395
+ __props__ = _DatabaseMongodbConfigState.__new__(_DatabaseMongodbConfigState)
396
+
397
+ __props__.__dict__["cluster_id"] = cluster_id
398
+ __props__.__dict__["default_read_concern"] = default_read_concern
399
+ __props__.__dict__["default_write_concern"] = default_write_concern
400
+ __props__.__dict__["slow_op_threshold_ms"] = slow_op_threshold_ms
401
+ __props__.__dict__["transaction_lifetime_limit_seconds"] = transaction_lifetime_limit_seconds
402
+ __props__.__dict__["verbosity"] = verbosity
403
+ return DatabaseMongodbConfig(resource_name, opts=opts, __props__=__props__)
404
+
405
+ @property
406
+ @pulumi.getter(name="clusterId")
407
+ def cluster_id(self) -> pulumi.Output[str]:
408
+ """
409
+ The ID of the target MongoDB cluster.
410
+ """
411
+ return pulumi.get(self, "cluster_id")
412
+
413
+ @property
414
+ @pulumi.getter(name="defaultReadConcern")
415
+ def default_read_concern(self) -> pulumi.Output[str]:
416
+ """
417
+ 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/).
418
+ """
419
+ return pulumi.get(self, "default_read_concern")
420
+
421
+ @property
422
+ @pulumi.getter(name="defaultWriteConcern")
423
+ def default_write_concern(self) -> pulumi.Output[str]:
424
+ """
425
+ 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/).
426
+ """
427
+ return pulumi.get(self, "default_write_concern")
428
+
429
+ @property
430
+ @pulumi.getter(name="slowOpThresholdMs")
431
+ def slow_op_threshold_ms(self) -> pulumi.Output[int]:
432
+ """
433
+ 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).
434
+ """
435
+ return pulumi.get(self, "slow_op_threshold_ms")
436
+
437
+ @property
438
+ @pulumi.getter(name="transactionLifetimeLimitSeconds")
439
+ def transaction_lifetime_limit_seconds(self) -> pulumi.Output[int]:
440
+ """
441
+ 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).
442
+ """
443
+ return pulumi.get(self, "transaction_lifetime_limit_seconds")
444
+
445
+ @property
446
+ @pulumi.getter
447
+ def verbosity(self) -> pulumi.Output[int]:
448
+ """
449
+ 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).
450
+ """
451
+ return pulumi.get(self, "verbosity")
452
+
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['DatabaseMysqlConfigArgs', 'DatabaseMysqlConfig']
@@ -964,23 +969,22 @@ class DatabaseMysqlConfig(pulumi.CustomResource):
964
969
 
965
970
  ## Example Usage
966
971
 
967
- <!--Start PulumiCodeChooser -->
968
972
  ```python
969
973
  import pulumi
970
974
  import pulumi_digitalocean as digitalocean
971
975
 
972
- example_database_cluster = digitalocean.DatabaseCluster("exampleDatabaseCluster",
976
+ example_database_cluster = digitalocean.DatabaseCluster("example",
977
+ name="example-mysql-cluster",
973
978
  engine="mysql",
974
979
  version="8",
975
- size="db-s-1vcpu-1gb",
976
- region="nyc1",
980
+ size=digitalocean.DatabaseSlug.D_B_1_VPCU1_GB,
981
+ region=digitalocean.Region.NYC1,
977
982
  node_count=1)
978
- example_database_mysql_config = digitalocean.DatabaseMysqlConfig("exampleDatabaseMysqlConfig",
983
+ example = digitalocean.DatabaseMysqlConfig("example",
979
984
  cluster_id=example_database_cluster.id,
980
985
  connect_timeout=10,
981
986
  default_time_zone="UTC")
982
987
  ```
983
- <!--End PulumiCodeChooser -->
984
988
 
985
989
  ## Import
986
990
 
@@ -1035,23 +1039,22 @@ class DatabaseMysqlConfig(pulumi.CustomResource):
1035
1039
 
1036
1040
  ## Example Usage
1037
1041
 
1038
- <!--Start PulumiCodeChooser -->
1039
1042
  ```python
1040
1043
  import pulumi
1041
1044
  import pulumi_digitalocean as digitalocean
1042
1045
 
1043
- example_database_cluster = digitalocean.DatabaseCluster("exampleDatabaseCluster",
1046
+ example_database_cluster = digitalocean.DatabaseCluster("example",
1047
+ name="example-mysql-cluster",
1044
1048
  engine="mysql",
1045
1049
  version="8",
1046
- size="db-s-1vcpu-1gb",
1047
- region="nyc1",
1050
+ size=digitalocean.DatabaseSlug.D_B_1_VPCU1_GB,
1051
+ region=digitalocean.Region.NYC1,
1048
1052
  node_count=1)
1049
- example_database_mysql_config = digitalocean.DatabaseMysqlConfig("exampleDatabaseMysqlConfig",
1053
+ example = digitalocean.DatabaseMysqlConfig("example",
1050
1054
  cluster_id=example_database_cluster.id,
1051
1055
  connect_timeout=10,
1052
1056
  default_time_zone="UTC")
1053
1057
  ```
1054
- <!--End PulumiCodeChooser -->
1055
1058
 
1056
1059
  ## Import
1057
1060