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/get_pg.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
|
from . import outputs
|
|
12
17
|
|
|
@@ -115,7 +120,7 @@ class GetPgResult:
|
|
|
115
120
|
@pulumi.getter(name="additionalDiskSpace")
|
|
116
121
|
def additional_disk_space(self) -> str:
|
|
117
122
|
"""
|
|
118
|
-
|
|
123
|
+
Add [disk storage](https://aiven.io/docs/platform/howto/add-storage-space) in increments of 30 GiB to scale your service. The maximum value depends on the service type and cloud provider. Removing additional storage causes the service nodes to go through a rolling restart and there might be a short downtime for services with no HA capabilities.
|
|
119
124
|
"""
|
|
120
125
|
return pulumi.get(self, "additional_disk_space")
|
|
121
126
|
|
|
@@ -203,7 +208,7 @@ class GetPgResult:
|
|
|
203
208
|
@pulumi.getter(name="pgUserConfigs")
|
|
204
209
|
def pg_user_configs(self) -> Sequence['outputs.GetPgPgUserConfigResult']:
|
|
205
210
|
"""
|
|
206
|
-
Pg user configurable settings
|
|
211
|
+
Pg user configurable settings. **Warning:** There's no way to reset advanced configuration options to default. Options that you add cannot be removed later
|
|
207
212
|
"""
|
|
208
213
|
return pulumi.get(self, "pg_user_configs")
|
|
209
214
|
|
|
@@ -211,7 +216,7 @@ class GetPgResult:
|
|
|
211
216
|
@pulumi.getter
|
|
212
217
|
def pgs(self) -> Sequence['outputs.GetPgPgResult']:
|
|
213
218
|
"""
|
|
214
|
-
|
|
219
|
+
Values provided by the PostgreSQL server.
|
|
215
220
|
"""
|
|
216
221
|
return pulumi.get(self, "pgs")
|
|
217
222
|
|
|
@@ -219,7 +224,7 @@ class GetPgResult:
|
|
|
219
224
|
@pulumi.getter
|
|
220
225
|
def plan(self) -> str:
|
|
221
226
|
"""
|
|
222
|
-
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be
|
|
227
|
+
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seen from the [Aiven pricing page](https://aiven.io/pricing).
|
|
223
228
|
"""
|
|
224
229
|
return pulumi.get(self, "plan")
|
|
225
230
|
|
|
@@ -227,7 +232,7 @@ class GetPgResult:
|
|
|
227
232
|
@pulumi.getter
|
|
228
233
|
def project(self) -> str:
|
|
229
234
|
"""
|
|
230
|
-
|
|
235
|
+
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.
|
|
231
236
|
"""
|
|
232
237
|
return pulumi.get(self, "project")
|
|
233
238
|
|
|
@@ -331,7 +336,7 @@ class GetPgResult:
|
|
|
331
336
|
@pulumi.getter(name="techEmails")
|
|
332
337
|
def tech_emails(self) -> Sequence['outputs.GetPgTechEmailResult']:
|
|
333
338
|
"""
|
|
334
|
-
|
|
339
|
+
The email addresses for [service contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this service. You can also set email contacts at the project level.
|
|
335
340
|
"""
|
|
336
341
|
return pulumi.get(self, "tech_emails")
|
|
337
342
|
|
|
@@ -385,22 +390,20 @@ def get_pg(project: Optional[str] = None,
|
|
|
385
390
|
service_name: Optional[str] = None,
|
|
386
391
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPgResult:
|
|
387
392
|
"""
|
|
388
|
-
|
|
393
|
+
Gets information about an Aiven for PostgreSQL® service.
|
|
389
394
|
|
|
390
395
|
## Example Usage
|
|
391
396
|
|
|
392
|
-
<!--Start PulumiCodeChooser -->
|
|
393
397
|
```python
|
|
394
398
|
import pulumi
|
|
395
399
|
import pulumi_aiven as aiven
|
|
396
400
|
|
|
397
|
-
|
|
398
|
-
service_name="
|
|
401
|
+
example_postgres = aiven.get_pg(project=example_project["project"],
|
|
402
|
+
service_name="example-postgres-service")
|
|
399
403
|
```
|
|
400
|
-
<!--End PulumiCodeChooser -->
|
|
401
404
|
|
|
402
405
|
|
|
403
|
-
:param str project:
|
|
406
|
+
:param 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.
|
|
404
407
|
:param str service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the service so name should be picked based on intended service usage rather than current attributes.
|
|
405
408
|
"""
|
|
406
409
|
__args__ = dict()
|
|
@@ -439,29 +442,58 @@ def get_pg(project: Optional[str] = None,
|
|
|
439
442
|
tags=pulumi.get(__ret__, 'tags'),
|
|
440
443
|
tech_emails=pulumi.get(__ret__, 'tech_emails'),
|
|
441
444
|
termination_protection=pulumi.get(__ret__, 'termination_protection'))
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
@_utilities.lift_output_func(get_pg)
|
|
445
445
|
def get_pg_output(project: Optional[pulumi.Input[str]] = None,
|
|
446
446
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
447
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPgResult]:
|
|
447
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPgResult]:
|
|
448
448
|
"""
|
|
449
|
-
|
|
449
|
+
Gets information about an Aiven for PostgreSQL® service.
|
|
450
450
|
|
|
451
451
|
## Example Usage
|
|
452
452
|
|
|
453
|
-
<!--Start PulumiCodeChooser -->
|
|
454
453
|
```python
|
|
455
454
|
import pulumi
|
|
456
455
|
import pulumi_aiven as aiven
|
|
457
456
|
|
|
458
|
-
|
|
459
|
-
service_name="
|
|
457
|
+
example_postgres = aiven.get_pg(project=example_project["project"],
|
|
458
|
+
service_name="example-postgres-service")
|
|
460
459
|
```
|
|
461
|
-
<!--End PulumiCodeChooser -->
|
|
462
460
|
|
|
463
461
|
|
|
464
|
-
:param str project:
|
|
462
|
+
:param 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.
|
|
465
463
|
:param str service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the service so name should be picked based on intended service usage rather than current attributes.
|
|
466
464
|
"""
|
|
467
|
-
|
|
465
|
+
__args__ = dict()
|
|
466
|
+
__args__['project'] = project
|
|
467
|
+
__args__['serviceName'] = service_name
|
|
468
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
469
|
+
__ret__ = pulumi.runtime.invoke_output('aiven:index/getPg:getPg', __args__, opts=opts, typ=GetPgResult)
|
|
470
|
+
return __ret__.apply(lambda __response__: GetPgResult(
|
|
471
|
+
additional_disk_space=pulumi.get(__response__, 'additional_disk_space'),
|
|
472
|
+
cloud_name=pulumi.get(__response__, 'cloud_name'),
|
|
473
|
+
components=pulumi.get(__response__, 'components'),
|
|
474
|
+
disk_space=pulumi.get(__response__, 'disk_space'),
|
|
475
|
+
disk_space_cap=pulumi.get(__response__, 'disk_space_cap'),
|
|
476
|
+
disk_space_default=pulumi.get(__response__, 'disk_space_default'),
|
|
477
|
+
disk_space_step=pulumi.get(__response__, 'disk_space_step'),
|
|
478
|
+
disk_space_used=pulumi.get(__response__, 'disk_space_used'),
|
|
479
|
+
id=pulumi.get(__response__, 'id'),
|
|
480
|
+
maintenance_window_dow=pulumi.get(__response__, 'maintenance_window_dow'),
|
|
481
|
+
maintenance_window_time=pulumi.get(__response__, 'maintenance_window_time'),
|
|
482
|
+
pg_user_configs=pulumi.get(__response__, 'pg_user_configs'),
|
|
483
|
+
pgs=pulumi.get(__response__, 'pgs'),
|
|
484
|
+
plan=pulumi.get(__response__, 'plan'),
|
|
485
|
+
project=pulumi.get(__response__, 'project'),
|
|
486
|
+
project_vpc_id=pulumi.get(__response__, 'project_vpc_id'),
|
|
487
|
+
service_host=pulumi.get(__response__, 'service_host'),
|
|
488
|
+
service_integrations=pulumi.get(__response__, 'service_integrations'),
|
|
489
|
+
service_name=pulumi.get(__response__, 'service_name'),
|
|
490
|
+
service_password=pulumi.get(__response__, 'service_password'),
|
|
491
|
+
service_port=pulumi.get(__response__, 'service_port'),
|
|
492
|
+
service_type=pulumi.get(__response__, 'service_type'),
|
|
493
|
+
service_uri=pulumi.get(__response__, 'service_uri'),
|
|
494
|
+
service_username=pulumi.get(__response__, 'service_username'),
|
|
495
|
+
state=pulumi.get(__response__, 'state'),
|
|
496
|
+
static_ips=pulumi.get(__response__, 'static_ips'),
|
|
497
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
498
|
+
tech_emails=pulumi.get(__response__, 'tech_emails'),
|
|
499
|
+
termination_protection=pulumi.get(__response__, 'termination_protection')))
|
pulumi_aiven/get_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__ = [
|
|
@@ -48,7 +53,7 @@ class GetPgDatabaseResult:
|
|
|
48
53
|
@pulumi.getter(name="databaseName")
|
|
49
54
|
def database_name(self) -> str:
|
|
50
55
|
"""
|
|
51
|
-
The name of the service database.
|
|
56
|
+
The name of the service database. Changing this property forces recreation of the resource.
|
|
52
57
|
"""
|
|
53
58
|
return pulumi.get(self, "database_name")
|
|
54
59
|
|
|
@@ -64,7 +69,7 @@ class GetPgDatabaseResult:
|
|
|
64
69
|
@pulumi.getter(name="lcCollate")
|
|
65
70
|
def lc_collate(self) -> str:
|
|
66
71
|
"""
|
|
67
|
-
Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`.
|
|
72
|
+
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.
|
|
68
73
|
"""
|
|
69
74
|
return pulumi.get(self, "lc_collate")
|
|
70
75
|
|
|
@@ -72,7 +77,7 @@ class GetPgDatabaseResult:
|
|
|
72
77
|
@pulumi.getter(name="lcCtype")
|
|
73
78
|
def lc_ctype(self) -> str:
|
|
74
79
|
"""
|
|
75
|
-
Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`.
|
|
80
|
+
Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. Changing this property forces recreation of the resource.
|
|
76
81
|
"""
|
|
77
82
|
return pulumi.get(self, "lc_ctype")
|
|
78
83
|
|
|
@@ -80,7 +85,7 @@ class GetPgDatabaseResult:
|
|
|
80
85
|
@pulumi.getter
|
|
81
86
|
def project(self) -> str:
|
|
82
87
|
"""
|
|
83
|
-
|
|
88
|
+
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.
|
|
84
89
|
"""
|
|
85
90
|
return pulumi.get(self, "project")
|
|
86
91
|
|
|
@@ -88,7 +93,7 @@ class GetPgDatabaseResult:
|
|
|
88
93
|
@pulumi.getter(name="serviceName")
|
|
89
94
|
def service_name(self) -> str:
|
|
90
95
|
"""
|
|
91
|
-
|
|
96
|
+
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.
|
|
92
97
|
"""
|
|
93
98
|
return pulumi.get(self, "service_name")
|
|
94
99
|
|
|
@@ -118,25 +123,23 @@ def get_pg_database(database_name: Optional[str] = None,
|
|
|
118
123
|
service_name: Optional[str] = None,
|
|
119
124
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPgDatabaseResult:
|
|
120
125
|
"""
|
|
121
|
-
|
|
126
|
+
Gets information about a database in an Aiven for PostgreSQL® service.
|
|
122
127
|
|
|
123
128
|
## Example Usage
|
|
124
129
|
|
|
125
|
-
<!--Start PulumiCodeChooser -->
|
|
126
130
|
```python
|
|
127
131
|
import pulumi
|
|
128
132
|
import pulumi_aiven as aiven
|
|
129
133
|
|
|
130
|
-
|
|
131
|
-
service_name=
|
|
132
|
-
database_name="
|
|
134
|
+
main = aiven.get_pg_database(project=example_project["project"],
|
|
135
|
+
service_name=example_postgres["serviceName"],
|
|
136
|
+
database_name="example-database")
|
|
133
137
|
```
|
|
134
|
-
<!--End PulumiCodeChooser -->
|
|
135
138
|
|
|
136
139
|
|
|
137
|
-
:param str database_name: The name of the service database.
|
|
138
|
-
:param str project:
|
|
139
|
-
:param str service_name:
|
|
140
|
+
:param str database_name: The name of the service database. Changing this property forces recreation of the resource.
|
|
141
|
+
:param 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.
|
|
142
|
+
:param 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.
|
|
140
143
|
"""
|
|
141
144
|
__args__ = dict()
|
|
142
145
|
__args__['databaseName'] = database_name
|
|
@@ -153,32 +156,40 @@ def get_pg_database(database_name: Optional[str] = None,
|
|
|
153
156
|
project=pulumi.get(__ret__, 'project'),
|
|
154
157
|
service_name=pulumi.get(__ret__, 'service_name'),
|
|
155
158
|
termination_protection=pulumi.get(__ret__, 'termination_protection'))
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
@_utilities.lift_output_func(get_pg_database)
|
|
159
159
|
def get_pg_database_output(database_name: Optional[pulumi.Input[str]] = None,
|
|
160
160
|
project: Optional[pulumi.Input[str]] = None,
|
|
161
161
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
162
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPgDatabaseResult]:
|
|
162
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPgDatabaseResult]:
|
|
163
163
|
"""
|
|
164
|
-
|
|
164
|
+
Gets information about a database in an Aiven for PostgreSQL® service.
|
|
165
165
|
|
|
166
166
|
## Example Usage
|
|
167
167
|
|
|
168
|
-
<!--Start PulumiCodeChooser -->
|
|
169
168
|
```python
|
|
170
169
|
import pulumi
|
|
171
170
|
import pulumi_aiven as aiven
|
|
172
171
|
|
|
173
|
-
|
|
174
|
-
service_name=
|
|
175
|
-
database_name="
|
|
172
|
+
main = aiven.get_pg_database(project=example_project["project"],
|
|
173
|
+
service_name=example_postgres["serviceName"],
|
|
174
|
+
database_name="example-database")
|
|
176
175
|
```
|
|
177
|
-
<!--End PulumiCodeChooser -->
|
|
178
176
|
|
|
179
177
|
|
|
180
|
-
:param str database_name: The name of the service database.
|
|
181
|
-
:param str project:
|
|
182
|
-
:param str service_name:
|
|
178
|
+
:param str database_name: The name of the service database. Changing this property forces recreation of the resource.
|
|
179
|
+
:param 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.
|
|
180
|
+
:param 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.
|
|
183
181
|
"""
|
|
184
|
-
|
|
182
|
+
__args__ = dict()
|
|
183
|
+
__args__['databaseName'] = database_name
|
|
184
|
+
__args__['project'] = project
|
|
185
|
+
__args__['serviceName'] = service_name
|
|
186
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
187
|
+
__ret__ = pulumi.runtime.invoke_output('aiven:index/getPgDatabase:getPgDatabase', __args__, opts=opts, typ=GetPgDatabaseResult)
|
|
188
|
+
return __ret__.apply(lambda __response__: GetPgDatabaseResult(
|
|
189
|
+
database_name=pulumi.get(__response__, 'database_name'),
|
|
190
|
+
id=pulumi.get(__response__, 'id'),
|
|
191
|
+
lc_collate=pulumi.get(__response__, 'lc_collate'),
|
|
192
|
+
lc_ctype=pulumi.get(__response__, 'lc_ctype'),
|
|
193
|
+
project=pulumi.get(__response__, 'project'),
|
|
194
|
+
service_name=pulumi.get(__response__, 'service_name'),
|
|
195
|
+
termination_protection=pulumi.get(__response__, 'termination_protection')))
|
pulumi_aiven/get_pg_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__ = [
|
|
@@ -54,7 +59,7 @@ class GetPgUserResult:
|
|
|
54
59
|
@pulumi.getter(name="accessCert")
|
|
55
60
|
def access_cert(self) -> str:
|
|
56
61
|
"""
|
|
57
|
-
|
|
62
|
+
The access certificate for the servie user.
|
|
58
63
|
"""
|
|
59
64
|
return pulumi.get(self, "access_cert")
|
|
60
65
|
|
|
@@ -62,7 +67,7 @@ class GetPgUserResult:
|
|
|
62
67
|
@pulumi.getter(name="accessKey")
|
|
63
68
|
def access_key(self) -> str:
|
|
64
69
|
"""
|
|
65
|
-
|
|
70
|
+
The access certificate key for the service user.
|
|
66
71
|
"""
|
|
67
72
|
return pulumi.get(self, "access_key")
|
|
68
73
|
|
|
@@ -78,7 +83,7 @@ class GetPgUserResult:
|
|
|
78
83
|
@pulumi.getter
|
|
79
84
|
def password(self) -> str:
|
|
80
85
|
"""
|
|
81
|
-
The password of the
|
|
86
|
+
The password of the service user.
|
|
82
87
|
"""
|
|
83
88
|
return pulumi.get(self, "password")
|
|
84
89
|
|
|
@@ -86,7 +91,7 @@ class GetPgUserResult:
|
|
|
86
91
|
@pulumi.getter(name="pgAllowReplication")
|
|
87
92
|
def pg_allow_replication(self) -> bool:
|
|
88
93
|
"""
|
|
89
|
-
|
|
94
|
+
Allows replication. For the default avnadmin user this attribute is required and is always `true`.
|
|
90
95
|
"""
|
|
91
96
|
return pulumi.get(self, "pg_allow_replication")
|
|
92
97
|
|
|
@@ -94,7 +99,7 @@ class GetPgUserResult:
|
|
|
94
99
|
@pulumi.getter
|
|
95
100
|
def project(self) -> str:
|
|
96
101
|
"""
|
|
97
|
-
|
|
102
|
+
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.
|
|
98
103
|
"""
|
|
99
104
|
return pulumi.get(self, "project")
|
|
100
105
|
|
|
@@ -102,7 +107,7 @@ class GetPgUserResult:
|
|
|
102
107
|
@pulumi.getter(name="serviceName")
|
|
103
108
|
def service_name(self) -> str:
|
|
104
109
|
"""
|
|
105
|
-
|
|
110
|
+
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.
|
|
106
111
|
"""
|
|
107
112
|
return pulumi.get(self, "service_name")
|
|
108
113
|
|
|
@@ -110,7 +115,7 @@ class GetPgUserResult:
|
|
|
110
115
|
@pulumi.getter
|
|
111
116
|
def type(self) -> str:
|
|
112
117
|
"""
|
|
113
|
-
|
|
118
|
+
The service user account type, either primary or regular.
|
|
114
119
|
"""
|
|
115
120
|
return pulumi.get(self, "type")
|
|
116
121
|
|
|
@@ -118,7 +123,7 @@ class GetPgUserResult:
|
|
|
118
123
|
@pulumi.getter
|
|
119
124
|
def username(self) -> str:
|
|
120
125
|
"""
|
|
121
|
-
The
|
|
126
|
+
The name of the service user for this service. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
122
127
|
"""
|
|
123
128
|
return pulumi.get(self, "username")
|
|
124
129
|
|
|
@@ -145,25 +150,23 @@ def get_pg_user(project: Optional[str] = None,
|
|
|
145
150
|
username: Optional[str] = None,
|
|
146
151
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPgUserResult:
|
|
147
152
|
"""
|
|
148
|
-
|
|
153
|
+
Gets information about an Aiven for PostgreSQL® service user.
|
|
149
154
|
|
|
150
155
|
## Example Usage
|
|
151
156
|
|
|
152
|
-
<!--Start PulumiCodeChooser -->
|
|
153
157
|
```python
|
|
154
158
|
import pulumi
|
|
155
159
|
import pulumi_aiven as aiven
|
|
156
160
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
username="
|
|
161
|
+
example_user = aiven.get_pg_user(service_name=example_postgres["serviceName"],
|
|
162
|
+
project=example_project["project"],
|
|
163
|
+
username="example-service-user")
|
|
160
164
|
```
|
|
161
|
-
<!--End PulumiCodeChooser -->
|
|
162
165
|
|
|
163
166
|
|
|
164
|
-
:param str project:
|
|
165
|
-
:param str service_name:
|
|
166
|
-
:param str username: The
|
|
167
|
+
:param 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.
|
|
168
|
+
:param 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.
|
|
169
|
+
:param str username: The name of the service user for this service. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
167
170
|
"""
|
|
168
171
|
__args__ = dict()
|
|
169
172
|
__args__['project'] = project
|
|
@@ -182,32 +185,42 @@ def get_pg_user(project: Optional[str] = None,
|
|
|
182
185
|
service_name=pulumi.get(__ret__, 'service_name'),
|
|
183
186
|
type=pulumi.get(__ret__, 'type'),
|
|
184
187
|
username=pulumi.get(__ret__, 'username'))
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
@_utilities.lift_output_func(get_pg_user)
|
|
188
188
|
def get_pg_user_output(project: Optional[pulumi.Input[str]] = None,
|
|
189
189
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
190
190
|
username: Optional[pulumi.Input[str]] = None,
|
|
191
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPgUserResult]:
|
|
191
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPgUserResult]:
|
|
192
192
|
"""
|
|
193
|
-
|
|
193
|
+
Gets information about an Aiven for PostgreSQL® service user.
|
|
194
194
|
|
|
195
195
|
## Example Usage
|
|
196
196
|
|
|
197
|
-
<!--Start PulumiCodeChooser -->
|
|
198
197
|
```python
|
|
199
198
|
import pulumi
|
|
200
199
|
import pulumi_aiven as aiven
|
|
201
200
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
username="
|
|
201
|
+
example_user = aiven.get_pg_user(service_name=example_postgres["serviceName"],
|
|
202
|
+
project=example_project["project"],
|
|
203
|
+
username="example-service-user")
|
|
205
204
|
```
|
|
206
|
-
<!--End PulumiCodeChooser -->
|
|
207
205
|
|
|
208
206
|
|
|
209
|
-
:param str project:
|
|
210
|
-
:param str service_name:
|
|
211
|
-
:param str username: The
|
|
207
|
+
:param 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.
|
|
208
|
+
:param 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.
|
|
209
|
+
:param str username: The name of the service user for this service. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
212
210
|
"""
|
|
213
|
-
|
|
211
|
+
__args__ = dict()
|
|
212
|
+
__args__['project'] = project
|
|
213
|
+
__args__['serviceName'] = service_name
|
|
214
|
+
__args__['username'] = username
|
|
215
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
216
|
+
__ret__ = pulumi.runtime.invoke_output('aiven:index/getPgUser:getPgUser', __args__, opts=opts, typ=GetPgUserResult)
|
|
217
|
+
return __ret__.apply(lambda __response__: GetPgUserResult(
|
|
218
|
+
access_cert=pulumi.get(__response__, 'access_cert'),
|
|
219
|
+
access_key=pulumi.get(__response__, 'access_key'),
|
|
220
|
+
id=pulumi.get(__response__, 'id'),
|
|
221
|
+
password=pulumi.get(__response__, 'password'),
|
|
222
|
+
pg_allow_replication=pulumi.get(__response__, 'pg_allow_replication'),
|
|
223
|
+
project=pulumi.get(__response__, 'project'),
|
|
224
|
+
service_name=pulumi.get(__response__, 'service_name'),
|
|
225
|
+
type=pulumi.get(__response__, 'type'),
|
|
226
|
+
username=pulumi.get(__response__, 'username')))
|