pulumi-aiven 6.13.0a1710156545__py3-none-any.whl → 6.31.0a1736849214__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 +32615 -13711
- pulumi_aiven/_utilities.py +41 -5
- pulumi_aiven/account.py +32 -45
- pulumi_aiven/account_authentication.py +24 -9
- pulumi_aiven/account_team.py +35 -14
- pulumi_aiven/account_team_member.py +48 -39
- pulumi_aiven/account_team_project.py +40 -27
- 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 -43
- pulumi_aiven/aws_vpc_peering_connection.py +72 -61
- pulumi_aiven/azure_privatelink.py +54 -53
- pulumi_aiven/azure_privatelink_connection_approval.py +136 -33
- pulumi_aiven/azure_vpc_peering_connection.py +86 -77
- pulumi_aiven/billing_group.py +33 -34
- pulumi_aiven/cassandra.py +145 -126
- pulumi_aiven/cassandra_user.py +59 -58
- pulumi_aiven/clickhouse.py +133 -114
- pulumi_aiven/clickhouse_database.py +58 -62
- pulumi_aiven/clickhouse_grant.py +135 -134
- pulumi_aiven/clickhouse_role.py +36 -49
- pulumi_aiven/clickhouse_user.py +50 -49
- pulumi_aiven/config/__init__.pyi +5 -0
- pulumi_aiven/config/vars.py +5 -0
- pulumi_aiven/connection_pool.py +67 -66
- pulumi_aiven/dragonfly.py +1256 -0
- pulumi_aiven/flink.py +104 -104
- pulumi_aiven/flink_application.py +58 -55
- 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 -48
- pulumi_aiven/get_account.py +20 -9
- 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 -24
- pulumi_aiven/get_aws_vpc_peering_connection.py +56 -33
- pulumi_aiven/get_azure_privatelink.py +37 -26
- pulumi_aiven/get_azure_vpc_peering_connection.py +77 -28
- pulumi_aiven/get_billing_group.py +31 -8
- pulumi_aiven/get_cassanda.py +55 -23
- pulumi_aiven/get_cassandra.py +55 -23
- pulumi_aiven/get_cassandra_user.py +42 -30
- pulumi_aiven/get_clickhouse.py +55 -23
- pulumi_aiven/get_clickhouse_database.py +35 -26
- pulumi_aiven/get_clickhouse_user.py +40 -29
- pulumi_aiven/get_connection_pool.py +43 -30
- pulumi_aiven/get_dragonfly.py +499 -0
- pulumi_aiven/get_external_identity.py +160 -0
- pulumi_aiven/get_flink.py +55 -23
- pulumi_aiven/get_flink_application.py +44 -31
- pulumi_aiven/get_flink_application_version.py +55 -37
- pulumi_aiven/get_gcp_privatelink.py +63 -7
- pulumi_aiven/get_gcp_vpc_peering_connection.py +39 -28
- pulumi_aiven/get_grafana.py +55 -23
- 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 -25
- pulumi_aiven/get_kafka_acl.py +50 -37
- pulumi_aiven/get_kafka_connect.py +54 -36
- pulumi_aiven/get_kafka_connector.py +44 -28
- pulumi_aiven/get_kafka_mirror_maker.py +50 -32
- pulumi_aiven/get_kafka_schema.py +35 -23
- pulumi_aiven/get_kafka_schema_configuration.py +32 -21
- pulumi_aiven/get_kafka_schema_registry_acl.py +37 -20
- pulumi_aiven/get_kafka_topic.py +70 -29
- pulumi_aiven/get_kafka_user.py +42 -30
- pulumi_aiven/get_m3_aggregator.py +51 -19
- pulumi_aiven/get_m3_db.py +55 -23
- pulumi_aiven/get_m3db_user.py +38 -28
- pulumi_aiven/get_mirror_maker_replication_flow.py +86 -25
- pulumi_aiven/get_my_sql.py +50 -18
- pulumi_aiven/get_mysql_database.py +31 -22
- pulumi_aiven/get_mysql_user.py +36 -23
- pulumi_aiven/get_open_search.py +50 -18
- pulumi_aiven/get_open_search_acl_config.py +27 -19
- pulumi_aiven/get_open_search_acl_rule.py +37 -25
- pulumi_aiven/get_opensearch_security_plugin_config.py +29 -19
- pulumi_aiven/get_opensearch_user.py +32 -22
- pulumi_aiven/get_organization.py +25 -17
- 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 -23
- pulumi_aiven/get_pg_database.py +39 -28
- pulumi_aiven/get_pg_user.py +44 -31
- pulumi_aiven/get_project.py +43 -26
- pulumi_aiven/get_project_user.py +27 -19
- pulumi_aiven/get_project_vpc.py +31 -23
- pulumi_aiven/get_redis.py +50 -18
- pulumi_aiven/get_redis_user.py +40 -26
- pulumi_aiven/get_service_component.py +40 -22
- pulumi_aiven/get_service_integration.py +163 -53
- pulumi_aiven/get_service_integration_endpoint.py +128 -37
- pulumi_aiven/get_thanos.py +499 -0
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +35 -22
- pulumi_aiven/get_valkey.py +499 -0
- pulumi_aiven/get_valkey_user.py +218 -0
- pulumi_aiven/grafana.py +188 -322
- 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 -144
- pulumi_aiven/kafka_acl.py +64 -57
- pulumi_aiven/kafka_connect.py +201 -332
- pulumi_aiven/kafka_connector.py +67 -60
- pulumi_aiven/kafka_mirror_maker.py +137 -320
- pulumi_aiven/kafka_native_acl.py +588 -0
- pulumi_aiven/kafka_schema.py +63 -58
- pulumi_aiven/kafka_schema_configuration.py +25 -24
- pulumi_aiven/kafka_schema_registry_acl.py +80 -35
- pulumi_aiven/kafka_topic.py +184 -65
- pulumi_aiven/kafka_user.py +59 -58
- pulumi_aiven/m3_aggregator.py +174 -310
- pulumi_aiven/m3_db.py +190 -326
- pulumi_aiven/m3db_user.py +51 -50
- pulumi_aiven/mirror_maker_replication_flow.py +215 -55
- pulumi_aiven/my_sql.py +188 -324
- pulumi_aiven/mysql_database.py +32 -51
- pulumi_aiven/mysql_user.py +37 -36
- pulumi_aiven/open_search.py +126 -107
- pulumi_aiven/open_search_acl_config.py +33 -36
- pulumi_aiven/open_search_acl_rule.py +55 -54
- pulumi_aiven/opensearch_security_plugin_config.py +69 -16
- pulumi_aiven/opensearch_user.py +30 -29
- pulumi_aiven/organization.py +18 -17
- 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 -36
- pulumi_aiven/outputs.py +38355 -21458
- pulumi_aiven/pg.py +92 -88
- pulumi_aiven/pg_database.py +52 -71
- pulumi_aiven/pg_user.py +80 -65
- pulumi_aiven/project.py +111 -102
- pulumi_aiven/project_user.py +44 -35
- pulumi_aiven/project_vpc.py +58 -29
- pulumi_aiven/provider.py +5 -0
- pulumi_aiven/pulumi-plugin.json +2 -1
- pulumi_aiven/redis.py +161 -297
- pulumi_aiven/redis_user.py +58 -57
- pulumi_aiven/service_integration.py +511 -165
- 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 -58
- pulumi_aiven/valkey.py +1256 -0
- pulumi_aiven/valkey_user.py +606 -0
- {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736849214.dist-info}/METADATA +7 -6
- pulumi_aiven-6.31.0a1736849214.dist-info/RECORD +169 -0
- {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736849214.dist-info}/WHEEL +1 -1
- pulumi_aiven-6.13.0a1710156545.dist-info/RECORD +0 -146
- {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0a1736849214.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
|
|
@@ -171,31 +164,27 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
171
164
|
|
|
172
165
|
## Example Usage
|
|
173
166
|
|
|
174
|
-
<!--Start PulumiCodeChooser -->
|
|
175
167
|
```python
|
|
176
168
|
import pulumi
|
|
177
169
|
import pulumi_aiven as aiven
|
|
178
170
|
|
|
179
171
|
mydatabase = aiven.MysqlDatabase("mydatabase",
|
|
180
|
-
project=
|
|
181
|
-
service_name=
|
|
172
|
+
project=myproject["project"],
|
|
173
|
+
service_name=mymysql["serviceName"],
|
|
182
174
|
database_name="<DATABASE_NAME>")
|
|
183
175
|
```
|
|
184
|
-
<!--End PulumiCodeChooser -->
|
|
185
176
|
|
|
186
177
|
## Import
|
|
187
178
|
|
|
188
179
|
```sh
|
|
189
|
-
$ pulumi import aiven:index/mysqlDatabase:MysqlDatabase mydatabase
|
|
180
|
+
$ pulumi import aiven:index/mysqlDatabase:MysqlDatabase mydatabase PROJECT/SERVICE_NAME/DATABASE_NAME
|
|
190
181
|
```
|
|
191
182
|
|
|
192
183
|
:param str resource_name: The name of the resource.
|
|
193
184
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
194
|
-
:param pulumi.Input[str] database_name: The name of the service database.
|
|
195
|
-
:param pulumi.Input[str] project:
|
|
196
|
-
:param pulumi.Input[str] service_name:
|
|
197
|
-
: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
|
|
198
|
-
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.
|
|
199
188
|
"""
|
|
200
189
|
...
|
|
201
190
|
@overload
|
|
@@ -208,22 +197,20 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
208
197
|
|
|
209
198
|
## Example Usage
|
|
210
199
|
|
|
211
|
-
<!--Start PulumiCodeChooser -->
|
|
212
200
|
```python
|
|
213
201
|
import pulumi
|
|
214
202
|
import pulumi_aiven as aiven
|
|
215
203
|
|
|
216
204
|
mydatabase = aiven.MysqlDatabase("mydatabase",
|
|
217
|
-
project=
|
|
218
|
-
service_name=
|
|
205
|
+
project=myproject["project"],
|
|
206
|
+
service_name=mymysql["serviceName"],
|
|
219
207
|
database_name="<DATABASE_NAME>")
|
|
220
208
|
```
|
|
221
|
-
<!--End PulumiCodeChooser -->
|
|
222
209
|
|
|
223
210
|
## Import
|
|
224
211
|
|
|
225
212
|
```sh
|
|
226
|
-
$ pulumi import aiven:index/mysqlDatabase:MysqlDatabase mydatabase
|
|
213
|
+
$ pulumi import aiven:index/mysqlDatabase:MysqlDatabase mydatabase PROJECT/SERVICE_NAME/DATABASE_NAME
|
|
227
214
|
```
|
|
228
215
|
|
|
229
216
|
:param str resource_name: The name of the resource.
|
|
@@ -285,11 +272,9 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
285
272
|
:param str resource_name: The unique name of the resulting resource.
|
|
286
273
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
287
274
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
288
|
-
:param pulumi.Input[str] database_name: The name of the service database.
|
|
289
|
-
:param pulumi.Input[str] project:
|
|
290
|
-
:param pulumi.Input[str] service_name:
|
|
291
|
-
: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
|
|
292
|
-
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.
|
|
293
278
|
"""
|
|
294
279
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
295
280
|
|
|
@@ -305,7 +290,7 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
305
290
|
@pulumi.getter(name="databaseName")
|
|
306
291
|
def database_name(self) -> pulumi.Output[str]:
|
|
307
292
|
"""
|
|
308
|
-
The name of the service database.
|
|
293
|
+
The name of the service database. Changing this property forces recreation of the resource.
|
|
309
294
|
"""
|
|
310
295
|
return pulumi.get(self, "database_name")
|
|
311
296
|
|
|
@@ -313,7 +298,7 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
313
298
|
@pulumi.getter
|
|
314
299
|
def project(self) -> pulumi.Output[str]:
|
|
315
300
|
"""
|
|
316
|
-
|
|
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.
|
|
317
302
|
"""
|
|
318
303
|
return pulumi.get(self, "project")
|
|
319
304
|
|
|
@@ -321,16 +306,12 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
321
306
|
@pulumi.getter(name="serviceName")
|
|
322
307
|
def service_name(self) -> pulumi.Output[str]:
|
|
323
308
|
"""
|
|
324
|
-
|
|
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.
|
|
325
310
|
"""
|
|
326
311
|
return pulumi.get(self, "service_name")
|
|
327
312
|
|
|
328
313
|
@property
|
|
329
314
|
@pulumi.getter(name="terminationProtection")
|
|
330
315
|
def termination_protection(self) -> pulumi.Output[Optional[bool]]:
|
|
331
|
-
"""
|
|
332
|
-
It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
|
|
333
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
334
|
-
"""
|
|
335
316
|
return pulumi.get(self, "termination_protection")
|
|
336
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
|
|
|
@@ -248,32 +253,30 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
248
253
|
|
|
249
254
|
## Example Usage
|
|
250
255
|
|
|
251
|
-
<!--Start PulumiCodeChooser -->
|
|
252
256
|
```python
|
|
253
257
|
import pulumi
|
|
254
258
|
import pulumi_aiven as aiven
|
|
255
259
|
|
|
256
260
|
foo = aiven.MysqlUser("foo",
|
|
257
|
-
service_name=
|
|
261
|
+
service_name=bar["serviceName"],
|
|
258
262
|
project="my-project",
|
|
259
263
|
username="user-1",
|
|
260
264
|
password="Test$1234")
|
|
261
265
|
```
|
|
262
|
-
<!--End PulumiCodeChooser -->
|
|
263
266
|
|
|
264
267
|
## Import
|
|
265
268
|
|
|
266
269
|
```sh
|
|
267
|
-
$ pulumi import aiven:index/mysqlUser:MysqlUser foo
|
|
270
|
+
$ pulumi import aiven:index/mysqlUser:MysqlUser foo PROJECT/SERVICE_NAME/USERNAME
|
|
268
271
|
```
|
|
269
272
|
|
|
270
273
|
:param str resource_name: The name of the resource.
|
|
271
274
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
272
|
-
: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`.
|
|
273
276
|
:param pulumi.Input[str] password: The password of the MySQL User ( not applicable for all services ).
|
|
274
|
-
:param pulumi.Input[str] project:
|
|
275
|
-
:param pulumi.Input[str] service_name:
|
|
276
|
-
: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.
|
|
277
280
|
"""
|
|
278
281
|
...
|
|
279
282
|
@overload
|
|
@@ -286,23 +289,21 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
286
289
|
|
|
287
290
|
## Example Usage
|
|
288
291
|
|
|
289
|
-
<!--Start PulumiCodeChooser -->
|
|
290
292
|
```python
|
|
291
293
|
import pulumi
|
|
292
294
|
import pulumi_aiven as aiven
|
|
293
295
|
|
|
294
296
|
foo = aiven.MysqlUser("foo",
|
|
295
|
-
service_name=
|
|
297
|
+
service_name=bar["serviceName"],
|
|
296
298
|
project="my-project",
|
|
297
299
|
username="user-1",
|
|
298
300
|
password="Test$1234")
|
|
299
301
|
```
|
|
300
|
-
<!--End PulumiCodeChooser -->
|
|
301
302
|
|
|
302
303
|
## Import
|
|
303
304
|
|
|
304
305
|
```sh
|
|
305
|
-
$ pulumi import aiven:index/mysqlUser:MysqlUser foo
|
|
306
|
+
$ pulumi import aiven:index/mysqlUser:MysqlUser foo PROJECT/SERVICE_NAME/USERNAME
|
|
306
307
|
```
|
|
307
308
|
|
|
308
309
|
:param str resource_name: The name of the resource.
|
|
@@ -377,12 +378,12 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
377
378
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
378
379
|
:param pulumi.Input[str] access_cert: Access certificate for the user
|
|
379
380
|
:param pulumi.Input[str] access_key: Access certificate key for the user
|
|
380
|
-
: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`.
|
|
381
382
|
:param pulumi.Input[str] password: The password of the MySQL User ( not applicable for all services ).
|
|
382
|
-
:param pulumi.Input[str] project:
|
|
383
|
-
: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.
|
|
384
385
|
:param pulumi.Input[str] type: Type of the user account. Tells whether the user is the primary account or a regular account.
|
|
385
|
-
: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.
|
|
386
387
|
"""
|
|
387
388
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
388
389
|
|
|
@@ -418,7 +419,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
418
419
|
@pulumi.getter
|
|
419
420
|
def authentication(self) -> pulumi.Output[Optional[str]]:
|
|
420
421
|
"""
|
|
421
|
-
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`.
|
|
422
423
|
"""
|
|
423
424
|
return pulumi.get(self, "authentication")
|
|
424
425
|
|
|
@@ -434,7 +435,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
434
435
|
@pulumi.getter
|
|
435
436
|
def project(self) -> pulumi.Output[str]:
|
|
436
437
|
"""
|
|
437
|
-
|
|
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.
|
|
438
439
|
"""
|
|
439
440
|
return pulumi.get(self, "project")
|
|
440
441
|
|
|
@@ -442,7 +443,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
442
443
|
@pulumi.getter(name="serviceName")
|
|
443
444
|
def service_name(self) -> pulumi.Output[str]:
|
|
444
445
|
"""
|
|
445
|
-
|
|
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.
|
|
446
447
|
"""
|
|
447
448
|
return pulumi.get(self, "service_name")
|
|
448
449
|
|
|
@@ -458,7 +459,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
458
459
|
@pulumi.getter
|
|
459
460
|
def username(self) -> pulumi.Output[str]:
|
|
460
461
|
"""
|
|
461
|
-
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.
|
|
462
463
|
"""
|
|
463
464
|
return pulumi.get(self, "username")
|
|
464
465
|
|