pulumi-aiven 6.13.0a1709702245__py3-none-any.whl → 6.31.0a1736831339__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-aiven might be problematic. Click here for more details.
- pulumi_aiven/__init__.py +127 -0
- pulumi_aiven/_inputs.py +32826 -13922
- pulumi_aiven/_utilities.py +41 -5
- pulumi_aiven/account.py +34 -43
- pulumi_aiven/account_authentication.py +24 -9
- pulumi_aiven/account_team.py +37 -12
- pulumi_aiven/account_team_member.py +48 -35
- pulumi_aiven/account_team_project.py +42 -25
- pulumi_aiven/alloydbomni.py +1335 -0
- pulumi_aiven/alloydbomni_database.py +347 -0
- pulumi_aiven/alloydbomni_user.py +433 -0
- pulumi_aiven/aws_privatelink.py +44 -39
- pulumi_aiven/aws_vpc_peering_connection.py +72 -57
- pulumi_aiven/azure_privatelink.py +54 -49
- pulumi_aiven/azure_privatelink_connection_approval.py +136 -33
- pulumi_aiven/azure_vpc_peering_connection.py +86 -73
- pulumi_aiven/billing_group.py +33 -30
- pulumi_aiven/cassandra.py +145 -122
- pulumi_aiven/cassandra_user.py +59 -54
- pulumi_aiven/clickhouse.py +133 -110
- pulumi_aiven/clickhouse_database.py +58 -58
- pulumi_aiven/clickhouse_grant.py +135 -130
- pulumi_aiven/clickhouse_role.py +36 -45
- pulumi_aiven/clickhouse_user.py +50 -45
- pulumi_aiven/config/__init__.pyi +5 -0
- pulumi_aiven/config/vars.py +5 -0
- pulumi_aiven/connection_pool.py +67 -62
- pulumi_aiven/dragonfly.py +1256 -0
- pulumi_aiven/flink.py +104 -100
- pulumi_aiven/flink_application.py +58 -51
- pulumi_aiven/flink_application_deployment.py +178 -73
- pulumi_aiven/flink_application_version.py +179 -96
- pulumi_aiven/gcp_privatelink.py +69 -42
- pulumi_aiven/gcp_privatelink_connection_approval.py +78 -49
- pulumi_aiven/gcp_vpc_peering_connection.py +49 -44
- pulumi_aiven/get_account.py +20 -5
- pulumi_aiven/get_account_authentication.py +31 -5
- pulumi_aiven/get_account_team.py +18 -5
- pulumi_aiven/get_account_team_member.py +29 -14
- pulumi_aiven/get_account_team_project.py +19 -6
- pulumi_aiven/get_alloydbomni.py +499 -0
- pulumi_aiven/get_alloydbomni_database.py +168 -0
- pulumi_aiven/get_alloydbomni_user.py +210 -0
- pulumi_aiven/get_aws_privatelink.py +33 -20
- pulumi_aiven/get_aws_vpc_peering_connection.py +56 -29
- pulumi_aiven/get_azure_privatelink.py +37 -22
- pulumi_aiven/get_azure_vpc_peering_connection.py +77 -28
- pulumi_aiven/get_billing_group.py +31 -8
- pulumi_aiven/get_cassanda.py +55 -19
- pulumi_aiven/get_cassandra.py +55 -19
- pulumi_aiven/get_cassandra_user.py +42 -26
- pulumi_aiven/get_clickhouse.py +55 -19
- pulumi_aiven/get_clickhouse_database.py +35 -22
- pulumi_aiven/get_clickhouse_user.py +40 -25
- pulumi_aiven/get_connection_pool.py +43 -26
- pulumi_aiven/get_dragonfly.py +499 -0
- pulumi_aiven/get_external_identity.py +160 -0
- pulumi_aiven/get_flink.py +55 -19
- pulumi_aiven/get_flink_application.py +44 -27
- pulumi_aiven/get_flink_application_version.py +55 -33
- pulumi_aiven/get_gcp_privatelink.py +63 -7
- pulumi_aiven/get_gcp_vpc_peering_connection.py +39 -24
- pulumi_aiven/get_grafana.py +55 -19
- pulumi_aiven/get_influx_db.py +41 -5
- pulumi_aiven/get_influxdb_database.py +18 -5
- pulumi_aiven/get_influxdb_user.py +21 -5
- pulumi_aiven/get_kafka.py +59 -21
- pulumi_aiven/get_kafka_acl.py +50 -33
- pulumi_aiven/get_kafka_connect.py +54 -32
- pulumi_aiven/get_kafka_connector.py +44 -24
- pulumi_aiven/get_kafka_mirror_maker.py +50 -28
- pulumi_aiven/get_kafka_schema.py +35 -19
- pulumi_aiven/get_kafka_schema_configuration.py +32 -17
- pulumi_aiven/get_kafka_schema_registry_acl.py +37 -20
- pulumi_aiven/get_kafka_topic.py +70 -25
- pulumi_aiven/get_kafka_user.py +42 -26
- pulumi_aiven/get_m3_aggregator.py +51 -15
- pulumi_aiven/get_m3_db.py +55 -19
- pulumi_aiven/get_m3db_user.py +38 -24
- pulumi_aiven/get_mirror_maker_replication_flow.py +86 -21
- pulumi_aiven/get_my_sql.py +50 -14
- pulumi_aiven/get_mysql_database.py +31 -18
- pulumi_aiven/get_mysql_user.py +36 -19
- pulumi_aiven/get_open_search.py +50 -14
- pulumi_aiven/get_open_search_acl_config.py +27 -15
- pulumi_aiven/get_open_search_acl_rule.py +37 -21
- pulumi_aiven/get_opensearch_security_plugin_config.py +29 -15
- pulumi_aiven/get_opensearch_user.py +32 -18
- pulumi_aiven/get_organization.py +25 -13
- pulumi_aiven/get_organization_application_user.py +176 -0
- pulumi_aiven/get_organization_user.py +18 -5
- pulumi_aiven/get_organization_user_group.py +48 -14
- pulumi_aiven/get_organization_user_list.py +121 -0
- pulumi_aiven/get_organizational_unit.py +26 -14
- pulumi_aiven/get_pg.py +55 -19
- pulumi_aiven/get_pg_database.py +39 -24
- pulumi_aiven/get_pg_user.py +44 -27
- pulumi_aiven/get_project.py +43 -22
- pulumi_aiven/get_project_user.py +27 -15
- pulumi_aiven/get_project_vpc.py +31 -19
- pulumi_aiven/get_redis.py +50 -14
- pulumi_aiven/get_redis_user.py +40 -22
- pulumi_aiven/get_service_component.py +40 -18
- pulumi_aiven/get_service_integration.py +163 -49
- pulumi_aiven/get_service_integration_endpoint.py +128 -33
- pulumi_aiven/get_thanos.py +499 -0
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +35 -18
- pulumi_aiven/get_valkey.py +499 -0
- pulumi_aiven/get_valkey_user.py +218 -0
- pulumi_aiven/grafana.py +188 -318
- pulumi_aiven/influx_db.py +127 -90
- pulumi_aiven/influxdb_database.py +40 -55
- pulumi_aiven/influxdb_user.py +47 -42
- pulumi_aiven/kafka.py +157 -140
- pulumi_aiven/kafka_acl.py +64 -53
- pulumi_aiven/kafka_connect.py +201 -328
- pulumi_aiven/kafka_connector.py +67 -56
- pulumi_aiven/kafka_mirror_maker.py +139 -318
- pulumi_aiven/kafka_native_acl.py +588 -0
- pulumi_aiven/kafka_schema.py +65 -56
- pulumi_aiven/kafka_schema_configuration.py +25 -20
- pulumi_aiven/kafka_schema_registry_acl.py +80 -35
- pulumi_aiven/kafka_topic.py +184 -65
- pulumi_aiven/kafka_user.py +59 -54
- pulumi_aiven/m3_aggregator.py +176 -308
- pulumi_aiven/m3_db.py +190 -322
- pulumi_aiven/m3db_user.py +51 -46
- pulumi_aiven/mirror_maker_replication_flow.py +217 -53
- pulumi_aiven/my_sql.py +190 -322
- pulumi_aiven/mysql_database.py +32 -47
- pulumi_aiven/mysql_user.py +37 -32
- pulumi_aiven/open_search.py +128 -105
- pulumi_aiven/open_search_acl_config.py +33 -32
- pulumi_aiven/open_search_acl_rule.py +55 -50
- pulumi_aiven/opensearch_security_plugin_config.py +69 -16
- pulumi_aiven/opensearch_user.py +30 -25
- pulumi_aiven/organization.py +18 -13
- pulumi_aiven/organization_application_user.py +345 -0
- pulumi_aiven/organization_application_user_token.py +711 -0
- pulumi_aiven/organization_group_project.py +349 -0
- pulumi_aiven/organization_permission.py +421 -0
- pulumi_aiven/organization_user.py +25 -46
- pulumi_aiven/organization_user_group.py +64 -23
- pulumi_aiven/organization_user_group_member.py +359 -0
- pulumi_aiven/organizational_unit.py +41 -32
- pulumi_aiven/outputs.py +38509 -21612
- pulumi_aiven/pg.py +92 -88
- pulumi_aiven/pg_database.py +52 -67
- pulumi_aiven/pg_user.py +80 -61
- pulumi_aiven/project.py +111 -102
- pulumi_aiven/project_user.py +44 -31
- pulumi_aiven/project_vpc.py +58 -29
- pulumi_aiven/provider.py +5 -0
- pulumi_aiven/pulumi-plugin.json +2 -1
- pulumi_aiven/redis.py +163 -295
- pulumi_aiven/redis_user.py +58 -53
- pulumi_aiven/service_integration.py +511 -161
- pulumi_aiven/service_integration_endpoint.py +466 -158
- pulumi_aiven/static_ip.py +21 -16
- pulumi_aiven/thanos.py +1262 -0
- pulumi_aiven/transit_gateway_vpc_attachment.py +44 -54
- pulumi_aiven/valkey.py +1256 -0
- pulumi_aiven/valkey_user.py +606 -0
- {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/METADATA +7 -6
- pulumi_aiven-6.31.0a1736831339.dist-info/RECORD +169 -0
- {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/WHEEL +1 -1
- pulumi_aiven-6.13.0a1709702245.dist-info/RECORD +0 -146
- {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/top_level.txt +0 -0
pulumi_aiven/mysql_database.py
CHANGED
|
@@ -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__ = ['MysqlDatabaseArgs', 'MysqlDatabase']
|
|
@@ -20,11 +25,9 @@ class MysqlDatabaseArgs:
|
|
|
20
25
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
21
26
|
"""
|
|
22
27
|
The set of arguments for constructing a MysqlDatabase resource.
|
|
23
|
-
:param pulumi.Input[str] database_name: The name of the service database.
|
|
24
|
-
:param pulumi.Input[str] project:
|
|
25
|
-
:param pulumi.Input[str] service_name:
|
|
26
|
-
:param pulumi.Input[bool] termination_protection: It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
|
|
27
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
28
|
+
:param pulumi.Input[str] database_name: The name of the service database. Changing this property forces recreation of the resource.
|
|
29
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
30
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
28
31
|
"""
|
|
29
32
|
pulumi.set(__self__, "database_name", database_name)
|
|
30
33
|
pulumi.set(__self__, "project", project)
|
|
@@ -36,7 +39,7 @@ class MysqlDatabaseArgs:
|
|
|
36
39
|
@pulumi.getter(name="databaseName")
|
|
37
40
|
def database_name(self) -> pulumi.Input[str]:
|
|
38
41
|
"""
|
|
39
|
-
The name of the service database.
|
|
42
|
+
The name of the service database. Changing this property forces recreation of the resource.
|
|
40
43
|
"""
|
|
41
44
|
return pulumi.get(self, "database_name")
|
|
42
45
|
|
|
@@ -48,7 +51,7 @@ class MysqlDatabaseArgs:
|
|
|
48
51
|
@pulumi.getter
|
|
49
52
|
def project(self) -> pulumi.Input[str]:
|
|
50
53
|
"""
|
|
51
|
-
|
|
54
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
52
55
|
"""
|
|
53
56
|
return pulumi.get(self, "project")
|
|
54
57
|
|
|
@@ -60,7 +63,7 @@ class MysqlDatabaseArgs:
|
|
|
60
63
|
@pulumi.getter(name="serviceName")
|
|
61
64
|
def service_name(self) -> pulumi.Input[str]:
|
|
62
65
|
"""
|
|
63
|
-
|
|
66
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
64
67
|
"""
|
|
65
68
|
return pulumi.get(self, "service_name")
|
|
66
69
|
|
|
@@ -71,10 +74,6 @@ class MysqlDatabaseArgs:
|
|
|
71
74
|
@property
|
|
72
75
|
@pulumi.getter(name="terminationProtection")
|
|
73
76
|
def termination_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
74
|
-
"""
|
|
75
|
-
It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
|
|
76
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
77
|
-
"""
|
|
78
77
|
return pulumi.get(self, "termination_protection")
|
|
79
78
|
|
|
80
79
|
@termination_protection.setter
|
|
@@ -91,11 +90,9 @@ class _MysqlDatabaseState:
|
|
|
91
90
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
92
91
|
"""
|
|
93
92
|
Input properties used for looking up and filtering MysqlDatabase resources.
|
|
94
|
-
:param pulumi.Input[str] database_name: The name of the service database.
|
|
95
|
-
:param pulumi.Input[str] project:
|
|
96
|
-
:param pulumi.Input[str] service_name:
|
|
97
|
-
:param pulumi.Input[bool] termination_protection: It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
|
|
98
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
93
|
+
:param pulumi.Input[str] database_name: The name of the service database. Changing this property forces recreation of the resource.
|
|
94
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
95
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
99
96
|
"""
|
|
100
97
|
if database_name is not None:
|
|
101
98
|
pulumi.set(__self__, "database_name", database_name)
|
|
@@ -110,7 +107,7 @@ class _MysqlDatabaseState:
|
|
|
110
107
|
@pulumi.getter(name="databaseName")
|
|
111
108
|
def database_name(self) -> Optional[pulumi.Input[str]]:
|
|
112
109
|
"""
|
|
113
|
-
The name of the service database.
|
|
110
|
+
The name of the service database. Changing this property forces recreation of the resource.
|
|
114
111
|
"""
|
|
115
112
|
return pulumi.get(self, "database_name")
|
|
116
113
|
|
|
@@ -122,7 +119,7 @@ class _MysqlDatabaseState:
|
|
|
122
119
|
@pulumi.getter
|
|
123
120
|
def project(self) -> Optional[pulumi.Input[str]]:
|
|
124
121
|
"""
|
|
125
|
-
|
|
122
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
126
123
|
"""
|
|
127
124
|
return pulumi.get(self, "project")
|
|
128
125
|
|
|
@@ -134,7 +131,7 @@ class _MysqlDatabaseState:
|
|
|
134
131
|
@pulumi.getter(name="serviceName")
|
|
135
132
|
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
136
133
|
"""
|
|
137
|
-
|
|
134
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
138
135
|
"""
|
|
139
136
|
return pulumi.get(self, "service_name")
|
|
140
137
|
|
|
@@ -145,10 +142,6 @@ class _MysqlDatabaseState:
|
|
|
145
142
|
@property
|
|
146
143
|
@pulumi.getter(name="terminationProtection")
|
|
147
144
|
def termination_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
148
|
-
"""
|
|
149
|
-
It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
|
|
150
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
151
|
-
"""
|
|
152
145
|
return pulumi.get(self, "termination_protection")
|
|
153
146
|
|
|
154
147
|
@termination_protection.setter
|
|
@@ -176,24 +169,22 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
176
169
|
import pulumi_aiven as aiven
|
|
177
170
|
|
|
178
171
|
mydatabase = aiven.MysqlDatabase("mydatabase",
|
|
179
|
-
project=
|
|
180
|
-
service_name=
|
|
172
|
+
project=myproject["project"],
|
|
173
|
+
service_name=mymysql["serviceName"],
|
|
181
174
|
database_name="<DATABASE_NAME>")
|
|
182
175
|
```
|
|
183
176
|
|
|
184
177
|
## Import
|
|
185
178
|
|
|
186
179
|
```sh
|
|
187
|
-
|
|
180
|
+
$ pulumi import aiven:index/mysqlDatabase:MysqlDatabase mydatabase PROJECT/SERVICE_NAME/DATABASE_NAME
|
|
188
181
|
```
|
|
189
182
|
|
|
190
183
|
:param str resource_name: The name of the resource.
|
|
191
184
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
192
|
-
:param pulumi.Input[str] database_name: The name of the service database.
|
|
193
|
-
:param pulumi.Input[str] project:
|
|
194
|
-
:param pulumi.Input[str] service_name:
|
|
195
|
-
:param pulumi.Input[bool] termination_protection: It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
|
|
196
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
185
|
+
:param pulumi.Input[str] database_name: The name of the service database. Changing this property forces recreation of the resource.
|
|
186
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
187
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
197
188
|
"""
|
|
198
189
|
...
|
|
199
190
|
@overload
|
|
@@ -211,15 +202,15 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
211
202
|
import pulumi_aiven as aiven
|
|
212
203
|
|
|
213
204
|
mydatabase = aiven.MysqlDatabase("mydatabase",
|
|
214
|
-
project=
|
|
215
|
-
service_name=
|
|
205
|
+
project=myproject["project"],
|
|
206
|
+
service_name=mymysql["serviceName"],
|
|
216
207
|
database_name="<DATABASE_NAME>")
|
|
217
208
|
```
|
|
218
209
|
|
|
219
210
|
## Import
|
|
220
211
|
|
|
221
212
|
```sh
|
|
222
|
-
|
|
213
|
+
$ pulumi import aiven:index/mysqlDatabase:MysqlDatabase mydatabase PROJECT/SERVICE_NAME/DATABASE_NAME
|
|
223
214
|
```
|
|
224
215
|
|
|
225
216
|
:param str resource_name: The name of the resource.
|
|
@@ -281,11 +272,9 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
281
272
|
:param str resource_name: The unique name of the resulting resource.
|
|
282
273
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
283
274
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
284
|
-
:param pulumi.Input[str] database_name: The name of the service database.
|
|
285
|
-
:param pulumi.Input[str] project:
|
|
286
|
-
:param pulumi.Input[str] service_name:
|
|
287
|
-
:param pulumi.Input[bool] termination_protection: It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
|
|
288
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
275
|
+
:param pulumi.Input[str] database_name: The name of the service database. Changing this property forces recreation of the resource.
|
|
276
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
277
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
289
278
|
"""
|
|
290
279
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
291
280
|
|
|
@@ -301,7 +290,7 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
301
290
|
@pulumi.getter(name="databaseName")
|
|
302
291
|
def database_name(self) -> pulumi.Output[str]:
|
|
303
292
|
"""
|
|
304
|
-
The name of the service database.
|
|
293
|
+
The name of the service database. Changing this property forces recreation of the resource.
|
|
305
294
|
"""
|
|
306
295
|
return pulumi.get(self, "database_name")
|
|
307
296
|
|
|
@@ -309,7 +298,7 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
309
298
|
@pulumi.getter
|
|
310
299
|
def project(self) -> pulumi.Output[str]:
|
|
311
300
|
"""
|
|
312
|
-
|
|
301
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
313
302
|
"""
|
|
314
303
|
return pulumi.get(self, "project")
|
|
315
304
|
|
|
@@ -317,16 +306,12 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
317
306
|
@pulumi.getter(name="serviceName")
|
|
318
307
|
def service_name(self) -> pulumi.Output[str]:
|
|
319
308
|
"""
|
|
320
|
-
|
|
309
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
321
310
|
"""
|
|
322
311
|
return pulumi.get(self, "service_name")
|
|
323
312
|
|
|
324
313
|
@property
|
|
325
314
|
@pulumi.getter(name="terminationProtection")
|
|
326
315
|
def termination_protection(self) -> pulumi.Output[Optional[bool]]:
|
|
327
|
-
"""
|
|
328
|
-
It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
|
|
329
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
330
|
-
"""
|
|
331
316
|
return pulumi.get(self, "termination_protection")
|
|
332
317
|
|
pulumi_aiven/mysql_user.py
CHANGED
|
@@ -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__ = ['MysqlUserArgs', 'MysqlUser']
|
|
@@ -21,10 +26,10 @@ class MysqlUserArgs:
|
|
|
21
26
|
password: Optional[pulumi.Input[str]] = None):
|
|
22
27
|
"""
|
|
23
28
|
The set of arguments for constructing a MysqlUser resource.
|
|
24
|
-
:param pulumi.Input[str] project:
|
|
25
|
-
:param pulumi.Input[str] service_name:
|
|
26
|
-
:param pulumi.Input[str] username: The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference.
|
|
27
|
-
:param pulumi.Input[str] authentication: Authentication details. The possible values are `caching_sha2_password` and `mysql_native_password`.
|
|
29
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
30
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
31
|
+
:param pulumi.Input[str] username: The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
32
|
+
:param pulumi.Input[str] authentication: Authentication details. The possible values are `null`, `caching_sha2_password` and `mysql_native_password`.
|
|
28
33
|
:param pulumi.Input[str] password: The password of the MySQL User ( not applicable for all services ).
|
|
29
34
|
"""
|
|
30
35
|
pulumi.set(__self__, "project", project)
|
|
@@ -39,7 +44,7 @@ class MysqlUserArgs:
|
|
|
39
44
|
@pulumi.getter
|
|
40
45
|
def project(self) -> pulumi.Input[str]:
|
|
41
46
|
"""
|
|
42
|
-
|
|
47
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
43
48
|
"""
|
|
44
49
|
return pulumi.get(self, "project")
|
|
45
50
|
|
|
@@ -51,7 +56,7 @@ class MysqlUserArgs:
|
|
|
51
56
|
@pulumi.getter(name="serviceName")
|
|
52
57
|
def service_name(self) -> pulumi.Input[str]:
|
|
53
58
|
"""
|
|
54
|
-
|
|
59
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
55
60
|
"""
|
|
56
61
|
return pulumi.get(self, "service_name")
|
|
57
62
|
|
|
@@ -63,7 +68,7 @@ class MysqlUserArgs:
|
|
|
63
68
|
@pulumi.getter
|
|
64
69
|
def username(self) -> pulumi.Input[str]:
|
|
65
70
|
"""
|
|
66
|
-
The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference.
|
|
71
|
+
The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
67
72
|
"""
|
|
68
73
|
return pulumi.get(self, "username")
|
|
69
74
|
|
|
@@ -75,7 +80,7 @@ class MysqlUserArgs:
|
|
|
75
80
|
@pulumi.getter
|
|
76
81
|
def authentication(self) -> Optional[pulumi.Input[str]]:
|
|
77
82
|
"""
|
|
78
|
-
Authentication details. The possible values are `caching_sha2_password` and `mysql_native_password`.
|
|
83
|
+
Authentication details. The possible values are `null`, `caching_sha2_password` and `mysql_native_password`.
|
|
79
84
|
"""
|
|
80
85
|
return pulumi.get(self, "authentication")
|
|
81
86
|
|
|
@@ -111,12 +116,12 @@ class _MysqlUserState:
|
|
|
111
116
|
Input properties used for looking up and filtering MysqlUser resources.
|
|
112
117
|
:param pulumi.Input[str] access_cert: Access certificate for the user
|
|
113
118
|
:param pulumi.Input[str] access_key: Access certificate key for the user
|
|
114
|
-
:param pulumi.Input[str] authentication: Authentication details. The possible values are `caching_sha2_password` and `mysql_native_password`.
|
|
119
|
+
:param pulumi.Input[str] authentication: Authentication details. The possible values are `null`, `caching_sha2_password` and `mysql_native_password`.
|
|
115
120
|
:param pulumi.Input[str] password: The password of the MySQL User ( not applicable for all services ).
|
|
116
|
-
:param pulumi.Input[str] project:
|
|
117
|
-
:param pulumi.Input[str] service_name:
|
|
121
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
122
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
118
123
|
:param pulumi.Input[str] type: Type of the user account. Tells whether the user is the primary account or a regular account.
|
|
119
|
-
:param pulumi.Input[str] username: The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference.
|
|
124
|
+
:param pulumi.Input[str] username: The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
120
125
|
"""
|
|
121
126
|
if access_cert is not None:
|
|
122
127
|
pulumi.set(__self__, "access_cert", access_cert)
|
|
@@ -163,7 +168,7 @@ class _MysqlUserState:
|
|
|
163
168
|
@pulumi.getter
|
|
164
169
|
def authentication(self) -> Optional[pulumi.Input[str]]:
|
|
165
170
|
"""
|
|
166
|
-
Authentication details. The possible values are `caching_sha2_password` and `mysql_native_password`.
|
|
171
|
+
Authentication details. The possible values are `null`, `caching_sha2_password` and `mysql_native_password`.
|
|
167
172
|
"""
|
|
168
173
|
return pulumi.get(self, "authentication")
|
|
169
174
|
|
|
@@ -187,7 +192,7 @@ class _MysqlUserState:
|
|
|
187
192
|
@pulumi.getter
|
|
188
193
|
def project(self) -> Optional[pulumi.Input[str]]:
|
|
189
194
|
"""
|
|
190
|
-
|
|
195
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
191
196
|
"""
|
|
192
197
|
return pulumi.get(self, "project")
|
|
193
198
|
|
|
@@ -199,7 +204,7 @@ class _MysqlUserState:
|
|
|
199
204
|
@pulumi.getter(name="serviceName")
|
|
200
205
|
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
201
206
|
"""
|
|
202
|
-
|
|
207
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
203
208
|
"""
|
|
204
209
|
return pulumi.get(self, "service_name")
|
|
205
210
|
|
|
@@ -223,7 +228,7 @@ class _MysqlUserState:
|
|
|
223
228
|
@pulumi.getter
|
|
224
229
|
def username(self) -> Optional[pulumi.Input[str]]:
|
|
225
230
|
"""
|
|
226
|
-
The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference.
|
|
231
|
+
The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
227
232
|
"""
|
|
228
233
|
return pulumi.get(self, "username")
|
|
229
234
|
|
|
@@ -253,7 +258,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
253
258
|
import pulumi_aiven as aiven
|
|
254
259
|
|
|
255
260
|
foo = aiven.MysqlUser("foo",
|
|
256
|
-
service_name=
|
|
261
|
+
service_name=bar["serviceName"],
|
|
257
262
|
project="my-project",
|
|
258
263
|
username="user-1",
|
|
259
264
|
password="Test$1234")
|
|
@@ -262,16 +267,16 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
262
267
|
## Import
|
|
263
268
|
|
|
264
269
|
```sh
|
|
265
|
-
|
|
270
|
+
$ pulumi import aiven:index/mysqlUser:MysqlUser foo PROJECT/SERVICE_NAME/USERNAME
|
|
266
271
|
```
|
|
267
272
|
|
|
268
273
|
:param str resource_name: The name of the resource.
|
|
269
274
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
270
|
-
:param pulumi.Input[str] authentication: Authentication details. The possible values are `caching_sha2_password` and `mysql_native_password`.
|
|
275
|
+
:param pulumi.Input[str] authentication: Authentication details. The possible values are `null`, `caching_sha2_password` and `mysql_native_password`.
|
|
271
276
|
:param pulumi.Input[str] password: The password of the MySQL User ( not applicable for all services ).
|
|
272
|
-
:param pulumi.Input[str] project:
|
|
273
|
-
:param pulumi.Input[str] service_name:
|
|
274
|
-
:param pulumi.Input[str] username: The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference.
|
|
277
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
278
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
279
|
+
:param pulumi.Input[str] username: The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
275
280
|
"""
|
|
276
281
|
...
|
|
277
282
|
@overload
|
|
@@ -289,7 +294,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
289
294
|
import pulumi_aiven as aiven
|
|
290
295
|
|
|
291
296
|
foo = aiven.MysqlUser("foo",
|
|
292
|
-
service_name=
|
|
297
|
+
service_name=bar["serviceName"],
|
|
293
298
|
project="my-project",
|
|
294
299
|
username="user-1",
|
|
295
300
|
password="Test$1234")
|
|
@@ -298,7 +303,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
298
303
|
## Import
|
|
299
304
|
|
|
300
305
|
```sh
|
|
301
|
-
|
|
306
|
+
$ pulumi import aiven:index/mysqlUser:MysqlUser foo PROJECT/SERVICE_NAME/USERNAME
|
|
302
307
|
```
|
|
303
308
|
|
|
304
309
|
:param str resource_name: The name of the resource.
|
|
@@ -373,12 +378,12 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
373
378
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
374
379
|
:param pulumi.Input[str] access_cert: Access certificate for the user
|
|
375
380
|
:param pulumi.Input[str] access_key: Access certificate key for the user
|
|
376
|
-
:param pulumi.Input[str] authentication: Authentication details. The possible values are `caching_sha2_password` and `mysql_native_password`.
|
|
381
|
+
:param pulumi.Input[str] authentication: Authentication details. The possible values are `null`, `caching_sha2_password` and `mysql_native_password`.
|
|
377
382
|
:param pulumi.Input[str] password: The password of the MySQL User ( not applicable for all services ).
|
|
378
|
-
:param pulumi.Input[str] project:
|
|
379
|
-
:param pulumi.Input[str] service_name:
|
|
383
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
384
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
380
385
|
:param pulumi.Input[str] type: Type of the user account. Tells whether the user is the primary account or a regular account.
|
|
381
|
-
:param pulumi.Input[str] username: The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference.
|
|
386
|
+
:param pulumi.Input[str] username: The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
382
387
|
"""
|
|
383
388
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
384
389
|
|
|
@@ -414,7 +419,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
414
419
|
@pulumi.getter
|
|
415
420
|
def authentication(self) -> pulumi.Output[Optional[str]]:
|
|
416
421
|
"""
|
|
417
|
-
Authentication details. The possible values are `caching_sha2_password` and `mysql_native_password`.
|
|
422
|
+
Authentication details. The possible values are `null`, `caching_sha2_password` and `mysql_native_password`.
|
|
418
423
|
"""
|
|
419
424
|
return pulumi.get(self, "authentication")
|
|
420
425
|
|
|
@@ -430,7 +435,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
430
435
|
@pulumi.getter
|
|
431
436
|
def project(self) -> pulumi.Output[str]:
|
|
432
437
|
"""
|
|
433
|
-
|
|
438
|
+
The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
434
439
|
"""
|
|
435
440
|
return pulumi.get(self, "project")
|
|
436
441
|
|
|
@@ -438,7 +443,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
438
443
|
@pulumi.getter(name="serviceName")
|
|
439
444
|
def service_name(self) -> pulumi.Output[str]:
|
|
440
445
|
"""
|
|
441
|
-
|
|
446
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
442
447
|
"""
|
|
443
448
|
return pulumi.get(self, "service_name")
|
|
444
449
|
|
|
@@ -454,7 +459,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
454
459
|
@pulumi.getter
|
|
455
460
|
def username(self) -> pulumi.Output[str]:
|
|
456
461
|
"""
|
|
457
|
-
The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference.
|
|
462
|
+
The actual name of the MySQL User. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
458
463
|
"""
|
|
459
464
|
return pulumi.get(self, "username")
|
|
460
465
|
|