pulumi-aiven 6.13.0a1710156545__py3-none-any.whl → 6.31.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-aiven might be problematic. Click here for more details.
- pulumi_aiven/__init__.py +136 -0
- pulumi_aiven/_inputs.py +32749 -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_quota.py +604 -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 +38976 -21894
- 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.0.dist-info}/METADATA +7 -6
- pulumi_aiven-6.31.0.dist-info/RECORD +170 -0
- {pulumi_aiven-6.13.0a1710156545.dist-info → pulumi_aiven-6.31.0.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.0.dist-info}/top_level.txt +0 -0
pulumi_aiven/pg_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__ = ['PgDatabaseArgs', 'PgDatabase']
|
|
@@ -22,13 +27,11 @@ class PgDatabaseArgs:
|
|
|
22
27
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
23
28
|
"""
|
|
24
29
|
The set of arguments for constructing a PgDatabase resource.
|
|
25
|
-
:param pulumi.Input[str] database_name: The name of the service database.
|
|
26
|
-
:param pulumi.Input[str] project:
|
|
27
|
-
:param pulumi.Input[str] service_name:
|
|
28
|
-
:param pulumi.Input[str] lc_collate: Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`.
|
|
29
|
-
:param pulumi.Input[str] lc_ctype: Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`.
|
|
30
|
-
: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
|
|
31
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
30
|
+
:param pulumi.Input[str] database_name: The name of the service database. Changing this property forces recreation of the resource.
|
|
31
|
+
: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.
|
|
32
|
+
: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.
|
|
33
|
+
:param pulumi.Input[str] lc_collate: Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
34
|
+
:param pulumi.Input[str] lc_ctype: Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
32
35
|
"""
|
|
33
36
|
pulumi.set(__self__, "database_name", database_name)
|
|
34
37
|
pulumi.set(__self__, "project", project)
|
|
@@ -44,7 +47,7 @@ class PgDatabaseArgs:
|
|
|
44
47
|
@pulumi.getter(name="databaseName")
|
|
45
48
|
def database_name(self) -> pulumi.Input[str]:
|
|
46
49
|
"""
|
|
47
|
-
The name of the service database.
|
|
50
|
+
The name of the service database. Changing this property forces recreation of the resource.
|
|
48
51
|
"""
|
|
49
52
|
return pulumi.get(self, "database_name")
|
|
50
53
|
|
|
@@ -56,7 +59,7 @@ class PgDatabaseArgs:
|
|
|
56
59
|
@pulumi.getter
|
|
57
60
|
def project(self) -> pulumi.Input[str]:
|
|
58
61
|
"""
|
|
59
|
-
|
|
62
|
+
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.
|
|
60
63
|
"""
|
|
61
64
|
return pulumi.get(self, "project")
|
|
62
65
|
|
|
@@ -68,7 +71,7 @@ class PgDatabaseArgs:
|
|
|
68
71
|
@pulumi.getter(name="serviceName")
|
|
69
72
|
def service_name(self) -> pulumi.Input[str]:
|
|
70
73
|
"""
|
|
71
|
-
|
|
74
|
+
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.
|
|
72
75
|
"""
|
|
73
76
|
return pulumi.get(self, "service_name")
|
|
74
77
|
|
|
@@ -80,7 +83,7 @@ class PgDatabaseArgs:
|
|
|
80
83
|
@pulumi.getter(name="lcCollate")
|
|
81
84
|
def lc_collate(self) -> Optional[pulumi.Input[str]]:
|
|
82
85
|
"""
|
|
83
|
-
Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`.
|
|
86
|
+
Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
84
87
|
"""
|
|
85
88
|
return pulumi.get(self, "lc_collate")
|
|
86
89
|
|
|
@@ -92,7 +95,7 @@ class PgDatabaseArgs:
|
|
|
92
95
|
@pulumi.getter(name="lcCtype")
|
|
93
96
|
def lc_ctype(self) -> Optional[pulumi.Input[str]]:
|
|
94
97
|
"""
|
|
95
|
-
Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`.
|
|
98
|
+
Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
96
99
|
"""
|
|
97
100
|
return pulumi.get(self, "lc_ctype")
|
|
98
101
|
|
|
@@ -103,10 +106,6 @@ class PgDatabaseArgs:
|
|
|
103
106
|
@property
|
|
104
107
|
@pulumi.getter(name="terminationProtection")
|
|
105
108
|
def termination_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
106
|
-
"""
|
|
107
|
-
It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
|
|
108
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
109
|
-
"""
|
|
110
109
|
return pulumi.get(self, "termination_protection")
|
|
111
110
|
|
|
112
111
|
@termination_protection.setter
|
|
@@ -125,13 +124,11 @@ class _PgDatabaseState:
|
|
|
125
124
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
126
125
|
"""
|
|
127
126
|
Input properties used for looking up and filtering PgDatabase resources.
|
|
128
|
-
:param pulumi.Input[str] database_name: The name of the service database.
|
|
129
|
-
:param pulumi.Input[str] lc_collate: Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`.
|
|
130
|
-
:param pulumi.Input[str] lc_ctype: Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`.
|
|
131
|
-
:param pulumi.Input[str] project:
|
|
132
|
-
:param pulumi.Input[str] service_name:
|
|
133
|
-
: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
|
|
134
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
127
|
+
:param pulumi.Input[str] database_name: The name of the service database. Changing this property forces recreation of the resource.
|
|
128
|
+
:param pulumi.Input[str] lc_collate: Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
129
|
+
:param pulumi.Input[str] lc_ctype: Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
130
|
+
: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.
|
|
131
|
+
: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.
|
|
135
132
|
"""
|
|
136
133
|
if database_name is not None:
|
|
137
134
|
pulumi.set(__self__, "database_name", database_name)
|
|
@@ -150,7 +147,7 @@ class _PgDatabaseState:
|
|
|
150
147
|
@pulumi.getter(name="databaseName")
|
|
151
148
|
def database_name(self) -> Optional[pulumi.Input[str]]:
|
|
152
149
|
"""
|
|
153
|
-
The name of the service database.
|
|
150
|
+
The name of the service database. Changing this property forces recreation of the resource.
|
|
154
151
|
"""
|
|
155
152
|
return pulumi.get(self, "database_name")
|
|
156
153
|
|
|
@@ -162,7 +159,7 @@ class _PgDatabaseState:
|
|
|
162
159
|
@pulumi.getter(name="lcCollate")
|
|
163
160
|
def lc_collate(self) -> Optional[pulumi.Input[str]]:
|
|
164
161
|
"""
|
|
165
|
-
Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`.
|
|
162
|
+
Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
166
163
|
"""
|
|
167
164
|
return pulumi.get(self, "lc_collate")
|
|
168
165
|
|
|
@@ -174,7 +171,7 @@ class _PgDatabaseState:
|
|
|
174
171
|
@pulumi.getter(name="lcCtype")
|
|
175
172
|
def lc_ctype(self) -> Optional[pulumi.Input[str]]:
|
|
176
173
|
"""
|
|
177
|
-
Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`.
|
|
174
|
+
Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
178
175
|
"""
|
|
179
176
|
return pulumi.get(self, "lc_ctype")
|
|
180
177
|
|
|
@@ -186,7 +183,7 @@ class _PgDatabaseState:
|
|
|
186
183
|
@pulumi.getter
|
|
187
184
|
def project(self) -> Optional[pulumi.Input[str]]:
|
|
188
185
|
"""
|
|
189
|
-
|
|
186
|
+
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.
|
|
190
187
|
"""
|
|
191
188
|
return pulumi.get(self, "project")
|
|
192
189
|
|
|
@@ -198,7 +195,7 @@ class _PgDatabaseState:
|
|
|
198
195
|
@pulumi.getter(name="serviceName")
|
|
199
196
|
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
200
197
|
"""
|
|
201
|
-
|
|
198
|
+
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.
|
|
202
199
|
"""
|
|
203
200
|
return pulumi.get(self, "service_name")
|
|
204
201
|
|
|
@@ -209,10 +206,6 @@ class _PgDatabaseState:
|
|
|
209
206
|
@property
|
|
210
207
|
@pulumi.getter(name="terminationProtection")
|
|
211
208
|
def termination_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
212
|
-
"""
|
|
213
|
-
It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
|
|
214
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
215
|
-
"""
|
|
216
209
|
return pulumi.get(self, "termination_protection")
|
|
217
210
|
|
|
218
211
|
@termination_protection.setter
|
|
@@ -233,37 +226,33 @@ class PgDatabase(pulumi.CustomResource):
|
|
|
233
226
|
termination_protection: Optional[pulumi.Input[bool]] = None,
|
|
234
227
|
__props__=None):
|
|
235
228
|
"""
|
|
236
|
-
|
|
229
|
+
Creates and manages a database in an Aiven for PostgreSQL® service.
|
|
237
230
|
|
|
238
231
|
## Example Usage
|
|
239
232
|
|
|
240
|
-
<!--Start PulumiCodeChooser -->
|
|
241
233
|
```python
|
|
242
234
|
import pulumi
|
|
243
235
|
import pulumi_aiven as aiven
|
|
244
236
|
|
|
245
|
-
|
|
246
|
-
project=
|
|
247
|
-
service_name=
|
|
248
|
-
database_name="
|
|
237
|
+
main = aiven.PgDatabase("main",
|
|
238
|
+
project=example_project["project"],
|
|
239
|
+
service_name=example_postgres["serviceName"],
|
|
240
|
+
database_name="example-database")
|
|
249
241
|
```
|
|
250
|
-
<!--End PulumiCodeChooser -->
|
|
251
242
|
|
|
252
243
|
## Import
|
|
253
244
|
|
|
254
245
|
```sh
|
|
255
|
-
$ pulumi import aiven:index/pgDatabase:PgDatabase
|
|
246
|
+
$ pulumi import aiven:index/pgDatabase:PgDatabase main PROJECT/SERVICE_NAME/DATABASE_NAME
|
|
256
247
|
```
|
|
257
248
|
|
|
258
249
|
:param str resource_name: The name of the resource.
|
|
259
250
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
260
|
-
:param pulumi.Input[str] database_name: The name of the service database.
|
|
261
|
-
:param pulumi.Input[str] lc_collate: Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`.
|
|
262
|
-
:param pulumi.Input[str] lc_ctype: Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`.
|
|
263
|
-
:param pulumi.Input[str] project:
|
|
264
|
-
:param pulumi.Input[str] service_name:
|
|
265
|
-
: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
|
|
266
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
251
|
+
:param pulumi.Input[str] database_name: The name of the service database. Changing this property forces recreation of the resource.
|
|
252
|
+
:param pulumi.Input[str] lc_collate: Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
253
|
+
:param pulumi.Input[str] lc_ctype: Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
254
|
+
: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.
|
|
255
|
+
: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.
|
|
267
256
|
"""
|
|
268
257
|
...
|
|
269
258
|
@overload
|
|
@@ -272,26 +261,24 @@ class PgDatabase(pulumi.CustomResource):
|
|
|
272
261
|
args: PgDatabaseArgs,
|
|
273
262
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
274
263
|
"""
|
|
275
|
-
|
|
264
|
+
Creates and manages a database in an Aiven for PostgreSQL® service.
|
|
276
265
|
|
|
277
266
|
## Example Usage
|
|
278
267
|
|
|
279
|
-
<!--Start PulumiCodeChooser -->
|
|
280
268
|
```python
|
|
281
269
|
import pulumi
|
|
282
270
|
import pulumi_aiven as aiven
|
|
283
271
|
|
|
284
|
-
|
|
285
|
-
project=
|
|
286
|
-
service_name=
|
|
287
|
-
database_name="
|
|
272
|
+
main = aiven.PgDatabase("main",
|
|
273
|
+
project=example_project["project"],
|
|
274
|
+
service_name=example_postgres["serviceName"],
|
|
275
|
+
database_name="example-database")
|
|
288
276
|
```
|
|
289
|
-
<!--End PulumiCodeChooser -->
|
|
290
277
|
|
|
291
278
|
## Import
|
|
292
279
|
|
|
293
280
|
```sh
|
|
294
|
-
$ pulumi import aiven:index/pgDatabase:PgDatabase
|
|
281
|
+
$ pulumi import aiven:index/pgDatabase:PgDatabase main PROJECT/SERVICE_NAME/DATABASE_NAME
|
|
295
282
|
```
|
|
296
283
|
|
|
297
284
|
:param str resource_name: The name of the resource.
|
|
@@ -359,13 +346,11 @@ class PgDatabase(pulumi.CustomResource):
|
|
|
359
346
|
:param str resource_name: The unique name of the resulting resource.
|
|
360
347
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
361
348
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
362
|
-
:param pulumi.Input[str] database_name: The name of the service database.
|
|
363
|
-
:param pulumi.Input[str] lc_collate: Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`.
|
|
364
|
-
:param pulumi.Input[str] lc_ctype: Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`.
|
|
365
|
-
:param pulumi.Input[str] project:
|
|
366
|
-
:param pulumi.Input[str] service_name:
|
|
367
|
-
: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
|
|
368
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
349
|
+
:param pulumi.Input[str] database_name: The name of the service database. Changing this property forces recreation of the resource.
|
|
350
|
+
:param pulumi.Input[str] lc_collate: Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
351
|
+
:param pulumi.Input[str] lc_ctype: Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
352
|
+
: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.
|
|
353
|
+
: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.
|
|
369
354
|
"""
|
|
370
355
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
371
356
|
|
|
@@ -383,7 +368,7 @@ class PgDatabase(pulumi.CustomResource):
|
|
|
383
368
|
@pulumi.getter(name="databaseName")
|
|
384
369
|
def database_name(self) -> pulumi.Output[str]:
|
|
385
370
|
"""
|
|
386
|
-
The name of the service database.
|
|
371
|
+
The name of the service database. Changing this property forces recreation of the resource.
|
|
387
372
|
"""
|
|
388
373
|
return pulumi.get(self, "database_name")
|
|
389
374
|
|
|
@@ -391,7 +376,7 @@ class PgDatabase(pulumi.CustomResource):
|
|
|
391
376
|
@pulumi.getter(name="lcCollate")
|
|
392
377
|
def lc_collate(self) -> pulumi.Output[Optional[str]]:
|
|
393
378
|
"""
|
|
394
|
-
Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`.
|
|
379
|
+
Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
395
380
|
"""
|
|
396
381
|
return pulumi.get(self, "lc_collate")
|
|
397
382
|
|
|
@@ -399,7 +384,7 @@ class PgDatabase(pulumi.CustomResource):
|
|
|
399
384
|
@pulumi.getter(name="lcCtype")
|
|
400
385
|
def lc_ctype(self) -> pulumi.Output[Optional[str]]:
|
|
401
386
|
"""
|
|
402
|
-
Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`.
|
|
387
|
+
Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
403
388
|
"""
|
|
404
389
|
return pulumi.get(self, "lc_ctype")
|
|
405
390
|
|
|
@@ -407,7 +392,7 @@ class PgDatabase(pulumi.CustomResource):
|
|
|
407
392
|
@pulumi.getter
|
|
408
393
|
def project(self) -> pulumi.Output[str]:
|
|
409
394
|
"""
|
|
410
|
-
|
|
395
|
+
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.
|
|
411
396
|
"""
|
|
412
397
|
return pulumi.get(self, "project")
|
|
413
398
|
|
|
@@ -415,16 +400,12 @@ class PgDatabase(pulumi.CustomResource):
|
|
|
415
400
|
@pulumi.getter(name="serviceName")
|
|
416
401
|
def service_name(self) -> pulumi.Output[str]:
|
|
417
402
|
"""
|
|
418
|
-
|
|
403
|
+
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.
|
|
419
404
|
"""
|
|
420
405
|
return pulumi.get(self, "service_name")
|
|
421
406
|
|
|
422
407
|
@property
|
|
423
408
|
@pulumi.getter(name="terminationProtection")
|
|
424
409
|
def termination_protection(self) -> pulumi.Output[Optional[bool]]:
|
|
425
|
-
"""
|
|
426
|
-
It is a Terraform client-side deletion protections, which prevents the database from being deleted by Terraform. It is
|
|
427
|
-
recommended to enable this for any production databases containing critical data. The default value is `false`.
|
|
428
|
-
"""
|
|
429
410
|
return pulumi.get(self, "termination_protection")
|
|
430
411
|
|