pulumi-aiven 6.43.0a1756184863__py3-none-any.whl → 6.47.0a1767071446__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.
- pulumi_aiven/__init__.py +4 -0
- pulumi_aiven/_inputs.py +3087 -602
- pulumi_aiven/account_team.py +6 -12
- pulumi_aiven/account_team_member.py +6 -12
- pulumi_aiven/account_team_project.py +6 -12
- pulumi_aiven/alloydbomni.py +72 -23
- pulumi_aiven/alloydbomni_database.py +26 -0
- pulumi_aiven/alloydbomni_user.py +135 -8
- pulumi_aiven/billing_group.py +225 -114
- pulumi_aiven/cassandra.py +46 -23
- pulumi_aiven/cassandra_user.py +110 -9
- pulumi_aiven/clickhouse.py +46 -23
- pulumi_aiven/clickhouse_user.py +127 -7
- pulumi_aiven/dragonfly.py +46 -23
- pulumi_aiven/flink.py +46 -23
- pulumi_aiven/get_account_team.py +6 -12
- pulumi_aiven/get_account_team_member.py +6 -12
- pulumi_aiven/get_account_team_project.py +6 -12
- pulumi_aiven/get_alloydbomni.py +43 -3
- pulumi_aiven/get_alloydbomni_database.py +26 -0
- pulumi_aiven/get_alloydbomni_user.py +27 -1
- pulumi_aiven/get_billing_group.py +47 -15
- pulumi_aiven/get_cassanda.py +17 -3
- pulumi_aiven/get_cassandra.py +17 -3
- pulumi_aiven/get_cassandra_user.py +1 -1
- pulumi_aiven/get_clickhouse.py +17 -3
- pulumi_aiven/get_clickhouse_user.py +1 -1
- pulumi_aiven/get_dragonfly.py +17 -3
- pulumi_aiven/get_flink.py +17 -3
- pulumi_aiven/get_grafana.py +17 -3
- pulumi_aiven/get_influx_db.py +12 -1
- pulumi_aiven/get_kafka.py +17 -3
- pulumi_aiven/get_kafka_connect.py +17 -3
- pulumi_aiven/get_kafka_mirror_maker.py +17 -3
- pulumi_aiven/get_kafka_user.py +1 -1
- pulumi_aiven/get_m3_aggregator.py +14 -112
- pulumi_aiven/get_m3_db.py +14 -124
- pulumi_aiven/get_m3db_user.py +2 -61
- pulumi_aiven/get_my_sql.py +17 -3
- pulumi_aiven/get_mysql_user.py +1 -1
- pulumi_aiven/get_open_search.py +17 -3
- pulumi_aiven/get_opensearch_user.py +1 -1
- pulumi_aiven/get_organization.py +1 -1
- pulumi_aiven/get_organization_address.py +1 -1
- pulumi_aiven/get_organization_application_user.py +29 -11
- pulumi_aiven/get_organization_billing_group.py +3 -3
- pulumi_aiven/get_organization_project.py +2 -8
- pulumi_aiven/get_organization_user_group_list.py +131 -0
- pulumi_aiven/get_organization_user_group_member_list.py +171 -0
- pulumi_aiven/get_organization_user_list.py +33 -11
- pulumi_aiven/get_organizational_unit.py +4 -0
- pulumi_aiven/get_pg.py +17 -3
- pulumi_aiven/get_pg_user.py +1 -1
- pulumi_aiven/get_redis.py +14 -128
- pulumi_aiven/get_redis_user.py +2 -77
- pulumi_aiven/get_service_component.py +3 -3
- pulumi_aiven/get_service_plan.py +309 -0
- pulumi_aiven/get_service_plan_list.py +151 -0
- pulumi_aiven/get_thanos.py +17 -3
- pulumi_aiven/get_valkey.py +17 -3
- pulumi_aiven/get_valkey_user.py +4 -4
- pulumi_aiven/governance_access.py +12 -0
- pulumi_aiven/grafana.py +46 -23
- pulumi_aiven/influx_db.py +133 -291
- pulumi_aiven/influxdb_database.py +14 -28
- pulumi_aiven/influxdb_user.py +21 -42
- pulumi_aiven/kafka.py +46 -23
- pulumi_aiven/kafka_connect.py +48 -25
- pulumi_aiven/kafka_mirror_maker.py +46 -23
- pulumi_aiven/kafka_schema.py +20 -20
- pulumi_aiven/kafka_user.py +110 -9
- pulumi_aiven/m3_aggregator.py +48 -75
- pulumi_aiven/m3_db.py +48 -95
- pulumi_aiven/m3db_user.py +2 -54
- pulumi_aiven/my_sql.py +46 -23
- pulumi_aiven/mysql_user.py +110 -9
- pulumi_aiven/open_search.py +46 -23
- pulumi_aiven/opensearch_user.py +110 -9
- pulumi_aiven/organization.py +6 -6
- pulumi_aiven/organization_address.py +12 -0
- pulumi_aiven/organization_application_user.py +76 -48
- pulumi_aiven/organization_application_user_token.py +127 -91
- pulumi_aiven/organization_billing_group.py +33 -21
- pulumi_aiven/organization_permission.py +82 -49
- pulumi_aiven/organization_project.py +9 -15
- pulumi_aiven/organization_user.py +8 -8
- pulumi_aiven/organization_user_group_member.py +29 -35
- pulumi_aiven/outputs.py +2042 -326
- pulumi_aiven/pg.py +112 -23
- pulumi_aiven/pg_user.py +109 -8
- pulumi_aiven/project.py +2 -24
- pulumi_aiven/pulumi-plugin.json +1 -1
- pulumi_aiven/redis.py +57 -97
- pulumi_aiven/redis_user.py +23 -79
- pulumi_aiven/thanos.py +46 -23
- pulumi_aiven/valkey.py +46 -23
- pulumi_aiven/valkey_user.py +130 -29
- {pulumi_aiven-6.43.0a1756184863.dist-info → pulumi_aiven-6.47.0a1767071446.dist-info}/METADATA +1 -1
- pulumi_aiven-6.47.0a1767071446.dist-info/RECORD +193 -0
- pulumi_aiven-6.43.0a1756184863.dist-info/RECORD +0 -189
- {pulumi_aiven-6.43.0a1756184863.dist-info → pulumi_aiven-6.47.0a1767071446.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.43.0a1756184863.dist-info → pulumi_aiven-6.47.0a1767071446.dist-info}/top_level.txt +0 -0
pulumi_aiven/pg.py
CHANGED
|
@@ -43,7 +43,7 @@ class PgArgs:
|
|
|
43
43
|
:param pulumi.Input[_builtins.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.
|
|
44
44
|
:param pulumi.Input[_builtins.str] additional_disk_space: 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 without an autoscaler integration or high availability capabilities. The field can be safely removed when autoscaler is enabled without causing any changes.
|
|
45
45
|
:param pulumi.Input[_builtins.str] cloud_name: The cloud provider and region the service is hosted in. The format is `provider-region`, for example: `google-europe-west1`. The [available cloud regions](https://aiven.io/docs/platform/reference/list_of_clouds) can differ per project and service. Changing this value [migrates the service to another cloud provider or region](https://aiven.io/docs/platform/howto/migrate-services-cloud-region). The migration runs in the background and includes a DNS update to redirect traffic to the new region. Most services experience no downtime, but some databases may have a brief interruption during DNS propagation.
|
|
46
|
-
:param pulumi.Input[_builtins.str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
46
|
+
:param pulumi.Input[_builtins.str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing. Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.
|
|
47
47
|
:param pulumi.Input[_builtins.str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
48
48
|
:param pulumi.Input[_builtins.str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
49
49
|
:param pulumi.Input['PgPgArgs'] pg: Values provided by the PostgreSQL server.
|
|
@@ -63,8 +63,8 @@ class PgArgs:
|
|
|
63
63
|
if cloud_name is not None:
|
|
64
64
|
pulumi.set(__self__, "cloud_name", cloud_name)
|
|
65
65
|
if disk_space is not None:
|
|
66
|
-
warnings.warn("""
|
|
67
|
-
pulumi.log.warn("""disk_space is deprecated:
|
|
66
|
+
warnings.warn("""Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.""", DeprecationWarning)
|
|
67
|
+
pulumi.log.warn("""disk_space is deprecated: Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.""")
|
|
68
68
|
if disk_space is not None:
|
|
69
69
|
pulumi.set(__self__, "disk_space", disk_space)
|
|
70
70
|
if maintenance_window_dow is not None:
|
|
@@ -140,10 +140,10 @@ class PgArgs:
|
|
|
140
140
|
|
|
141
141
|
@_builtins.property
|
|
142
142
|
@pulumi.getter(name="diskSpace")
|
|
143
|
-
@_utilities.deprecated("""
|
|
143
|
+
@_utilities.deprecated("""Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.""")
|
|
144
144
|
def disk_space(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
145
145
|
"""
|
|
146
|
-
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
146
|
+
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing. Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.
|
|
147
147
|
"""
|
|
148
148
|
return pulumi.get(self, "disk_space")
|
|
149
149
|
|
|
@@ -296,6 +296,7 @@ class _PgState:
|
|
|
296
296
|
disk_space_step: Optional[pulumi.Input[_builtins.str]] = None,
|
|
297
297
|
disk_space_used: Optional[pulumi.Input[_builtins.str]] = None,
|
|
298
298
|
maintenance_window_dow: Optional[pulumi.Input[_builtins.str]] = None,
|
|
299
|
+
maintenance_window_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
299
300
|
maintenance_window_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
300
301
|
pg: Optional[pulumi.Input['PgPgArgs']] = None,
|
|
301
302
|
pg_user_config: Optional[pulumi.Input['PgPgUserConfigArgs']] = None,
|
|
@@ -320,12 +321,13 @@ class _PgState:
|
|
|
320
321
|
:param pulumi.Input[_builtins.str] additional_disk_space: 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 without an autoscaler integration or high availability capabilities. The field can be safely removed when autoscaler is enabled without causing any changes.
|
|
321
322
|
:param pulumi.Input[_builtins.str] cloud_name: The cloud provider and region the service is hosted in. The format is `provider-region`, for example: `google-europe-west1`. The [available cloud regions](https://aiven.io/docs/platform/reference/list_of_clouds) can differ per project and service. Changing this value [migrates the service to another cloud provider or region](https://aiven.io/docs/platform/howto/migrate-services-cloud-region). The migration runs in the background and includes a DNS update to redirect traffic to the new region. Most services experience no downtime, but some databases may have a brief interruption during DNS propagation.
|
|
322
323
|
:param pulumi.Input[Sequence[pulumi.Input['PgComponentArgs']]] components: Service component information objects
|
|
323
|
-
:param pulumi.Input[_builtins.str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
324
|
+
:param pulumi.Input[_builtins.str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing. Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.
|
|
324
325
|
:param pulumi.Input[_builtins.str] disk_space_cap: The maximum disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
325
326
|
:param pulumi.Input[_builtins.str] disk_space_default: The default disk space of the service, possible values depend on the service type, the cloud provider and the project. Its also the minimum value for `disk_space`
|
|
326
327
|
:param pulumi.Input[_builtins.str] disk_space_step: The default disk space step of the service, possible values depend on the service type, the cloud provider and the project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
|
|
327
|
-
:param pulumi.Input[_builtins.str] disk_space_used:
|
|
328
|
+
:param pulumi.Input[_builtins.str] disk_space_used: The disk space that the service is currently using. This is the sum of `disk_space` and `additional_disk_space` in human-readable format (for example: `90GiB`).
|
|
328
329
|
:param pulumi.Input[_builtins.str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
330
|
+
:param pulumi.Input[_builtins.bool] maintenance_window_enabled: Indicates whether the maintenance window is currently enabled for this service.
|
|
329
331
|
:param pulumi.Input[_builtins.str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
330
332
|
:param pulumi.Input['PgPgArgs'] pg: Values provided by the PostgreSQL server.
|
|
331
333
|
:param pulumi.Input['PgPgUserConfigArgs'] pg_user_config: Pg user configurable settings. **Warning:** There's no way to reset advanced configuration options to default. Options that you add cannot be removed later
|
|
@@ -352,8 +354,8 @@ class _PgState:
|
|
|
352
354
|
if components is not None:
|
|
353
355
|
pulumi.set(__self__, "components", components)
|
|
354
356
|
if disk_space is not None:
|
|
355
|
-
warnings.warn("""
|
|
356
|
-
pulumi.log.warn("""disk_space is deprecated:
|
|
357
|
+
warnings.warn("""Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.""", DeprecationWarning)
|
|
358
|
+
pulumi.log.warn("""disk_space is deprecated: Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.""")
|
|
357
359
|
if disk_space is not None:
|
|
358
360
|
pulumi.set(__self__, "disk_space", disk_space)
|
|
359
361
|
if disk_space_cap is not None:
|
|
@@ -362,13 +364,12 @@ class _PgState:
|
|
|
362
364
|
pulumi.set(__self__, "disk_space_default", disk_space_default)
|
|
363
365
|
if disk_space_step is not None:
|
|
364
366
|
pulumi.set(__self__, "disk_space_step", disk_space_step)
|
|
365
|
-
if disk_space_used is not None:
|
|
366
|
-
warnings.warn("""This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""", DeprecationWarning)
|
|
367
|
-
pulumi.log.warn("""disk_space_used is deprecated: This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""")
|
|
368
367
|
if disk_space_used is not None:
|
|
369
368
|
pulumi.set(__self__, "disk_space_used", disk_space_used)
|
|
370
369
|
if maintenance_window_dow is not None:
|
|
371
370
|
pulumi.set(__self__, "maintenance_window_dow", maintenance_window_dow)
|
|
371
|
+
if maintenance_window_enabled is not None:
|
|
372
|
+
pulumi.set(__self__, "maintenance_window_enabled", maintenance_window_enabled)
|
|
372
373
|
if maintenance_window_time is not None:
|
|
373
374
|
pulumi.set(__self__, "maintenance_window_time", maintenance_window_time)
|
|
374
375
|
if pg is not None:
|
|
@@ -446,10 +447,10 @@ class _PgState:
|
|
|
446
447
|
|
|
447
448
|
@_builtins.property
|
|
448
449
|
@pulumi.getter(name="diskSpace")
|
|
449
|
-
@_utilities.deprecated("""
|
|
450
|
+
@_utilities.deprecated("""Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.""")
|
|
450
451
|
def disk_space(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
451
452
|
"""
|
|
452
|
-
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
453
|
+
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing. Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.
|
|
453
454
|
"""
|
|
454
455
|
return pulumi.get(self, "disk_space")
|
|
455
456
|
|
|
@@ -495,10 +496,9 @@ class _PgState:
|
|
|
495
496
|
|
|
496
497
|
@_builtins.property
|
|
497
498
|
@pulumi.getter(name="diskSpaceUsed")
|
|
498
|
-
@_utilities.deprecated("""This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""")
|
|
499
499
|
def disk_space_used(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
500
500
|
"""
|
|
501
|
-
|
|
501
|
+
The disk space that the service is currently using. This is the sum of `disk_space` and `additional_disk_space` in human-readable format (for example: `90GiB`).
|
|
502
502
|
"""
|
|
503
503
|
return pulumi.get(self, "disk_space_used")
|
|
504
504
|
|
|
@@ -518,6 +518,18 @@ class _PgState:
|
|
|
518
518
|
def maintenance_window_dow(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
519
519
|
pulumi.set(self, "maintenance_window_dow", value)
|
|
520
520
|
|
|
521
|
+
@_builtins.property
|
|
522
|
+
@pulumi.getter(name="maintenanceWindowEnabled")
|
|
523
|
+
def maintenance_window_enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
524
|
+
"""
|
|
525
|
+
Indicates whether the maintenance window is currently enabled for this service.
|
|
526
|
+
"""
|
|
527
|
+
return pulumi.get(self, "maintenance_window_enabled")
|
|
528
|
+
|
|
529
|
+
@maintenance_window_enabled.setter
|
|
530
|
+
def maintenance_window_enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
531
|
+
pulumi.set(self, "maintenance_window_enabled", value)
|
|
532
|
+
|
|
521
533
|
@_builtins.property
|
|
522
534
|
@pulumi.getter(name="maintenanceWindowTime")
|
|
523
535
|
def maintenance_window_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -770,6 +782,39 @@ class Pg(pulumi.CustomResource):
|
|
|
770
782
|
"""
|
|
771
783
|
Creates and manages an Aiven for PostgreSQL® service.
|
|
772
784
|
|
|
785
|
+
## Example Usage
|
|
786
|
+
|
|
787
|
+
```python
|
|
788
|
+
import pulumi
|
|
789
|
+
import pulumi_aiven as aiven
|
|
790
|
+
import pulumi_std as std
|
|
791
|
+
|
|
792
|
+
example_postgres = aiven.Pg("example_postgres",
|
|
793
|
+
project=example_project["project"],
|
|
794
|
+
cloud_name="google-europe-west1",
|
|
795
|
+
plan="startup-4",
|
|
796
|
+
service_name="example-postgres-service",
|
|
797
|
+
maintenance_window_dow="monday",
|
|
798
|
+
maintenance_window_time="10:00:00",
|
|
799
|
+
static_ips=std.index.toset(input=[
|
|
800
|
+
ips[0]["staticIpAddressId"],
|
|
801
|
+
ips[1]["staticIpAddressId"],
|
|
802
|
+
ips[2]["staticIpAddressId"],
|
|
803
|
+
ips[3]["staticIpAddressId"],
|
|
804
|
+
])["result"],
|
|
805
|
+
pg_user_config={
|
|
806
|
+
"static_ips": True,
|
|
807
|
+
"public_access": {
|
|
808
|
+
"pg": True,
|
|
809
|
+
"prometheus": False,
|
|
810
|
+
},
|
|
811
|
+
"pg": {
|
|
812
|
+
"idle_in_transaction_session_timeout": 900,
|
|
813
|
+
"log_min_duration_statement": -1,
|
|
814
|
+
},
|
|
815
|
+
})
|
|
816
|
+
```
|
|
817
|
+
|
|
773
818
|
## Import
|
|
774
819
|
|
|
775
820
|
```sh
|
|
@@ -780,7 +825,7 @@ class Pg(pulumi.CustomResource):
|
|
|
780
825
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
781
826
|
:param pulumi.Input[_builtins.str] additional_disk_space: 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 without an autoscaler integration or high availability capabilities. The field can be safely removed when autoscaler is enabled without causing any changes.
|
|
782
827
|
:param pulumi.Input[_builtins.str] cloud_name: The cloud provider and region the service is hosted in. The format is `provider-region`, for example: `google-europe-west1`. The [available cloud regions](https://aiven.io/docs/platform/reference/list_of_clouds) can differ per project and service. Changing this value [migrates the service to another cloud provider or region](https://aiven.io/docs/platform/howto/migrate-services-cloud-region). The migration runs in the background and includes a DNS update to redirect traffic to the new region. Most services experience no downtime, but some databases may have a brief interruption during DNS propagation.
|
|
783
|
-
:param pulumi.Input[_builtins.str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
828
|
+
:param pulumi.Input[_builtins.str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing. Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.
|
|
784
829
|
:param pulumi.Input[_builtins.str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
785
830
|
:param pulumi.Input[_builtins.str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
786
831
|
:param pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']] pg: Values provided by the PostgreSQL server.
|
|
@@ -804,6 +849,39 @@ class Pg(pulumi.CustomResource):
|
|
|
804
849
|
"""
|
|
805
850
|
Creates and manages an Aiven for PostgreSQL® service.
|
|
806
851
|
|
|
852
|
+
## Example Usage
|
|
853
|
+
|
|
854
|
+
```python
|
|
855
|
+
import pulumi
|
|
856
|
+
import pulumi_aiven as aiven
|
|
857
|
+
import pulumi_std as std
|
|
858
|
+
|
|
859
|
+
example_postgres = aiven.Pg("example_postgres",
|
|
860
|
+
project=example_project["project"],
|
|
861
|
+
cloud_name="google-europe-west1",
|
|
862
|
+
plan="startup-4",
|
|
863
|
+
service_name="example-postgres-service",
|
|
864
|
+
maintenance_window_dow="monday",
|
|
865
|
+
maintenance_window_time="10:00:00",
|
|
866
|
+
static_ips=std.index.toset(input=[
|
|
867
|
+
ips[0]["staticIpAddressId"],
|
|
868
|
+
ips[1]["staticIpAddressId"],
|
|
869
|
+
ips[2]["staticIpAddressId"],
|
|
870
|
+
ips[3]["staticIpAddressId"],
|
|
871
|
+
])["result"],
|
|
872
|
+
pg_user_config={
|
|
873
|
+
"static_ips": True,
|
|
874
|
+
"public_access": {
|
|
875
|
+
"pg": True,
|
|
876
|
+
"prometheus": False,
|
|
877
|
+
},
|
|
878
|
+
"pg": {
|
|
879
|
+
"idle_in_transaction_session_timeout": 900,
|
|
880
|
+
"log_min_duration_statement": -1,
|
|
881
|
+
},
|
|
882
|
+
})
|
|
883
|
+
```
|
|
884
|
+
|
|
807
885
|
## Import
|
|
808
886
|
|
|
809
887
|
```sh
|
|
@@ -875,6 +953,7 @@ class Pg(pulumi.CustomResource):
|
|
|
875
953
|
__props__.__dict__["disk_space_default"] = None
|
|
876
954
|
__props__.__dict__["disk_space_step"] = None
|
|
877
955
|
__props__.__dict__["disk_space_used"] = None
|
|
956
|
+
__props__.__dict__["maintenance_window_enabled"] = None
|
|
878
957
|
__props__.__dict__["service_host"] = None
|
|
879
958
|
__props__.__dict__["service_password"] = None
|
|
880
959
|
__props__.__dict__["service_port"] = None
|
|
@@ -903,6 +982,7 @@ class Pg(pulumi.CustomResource):
|
|
|
903
982
|
disk_space_step: Optional[pulumi.Input[_builtins.str]] = None,
|
|
904
983
|
disk_space_used: Optional[pulumi.Input[_builtins.str]] = None,
|
|
905
984
|
maintenance_window_dow: Optional[pulumi.Input[_builtins.str]] = None,
|
|
985
|
+
maintenance_window_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
906
986
|
maintenance_window_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
907
987
|
pg: Optional[pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']]] = None,
|
|
908
988
|
pg_user_config: Optional[pulumi.Input[Union['PgPgUserConfigArgs', 'PgPgUserConfigArgsDict']]] = None,
|
|
@@ -932,12 +1012,13 @@ class Pg(pulumi.CustomResource):
|
|
|
932
1012
|
:param pulumi.Input[_builtins.str] additional_disk_space: 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 without an autoscaler integration or high availability capabilities. The field can be safely removed when autoscaler is enabled without causing any changes.
|
|
933
1013
|
:param pulumi.Input[_builtins.str] cloud_name: The cloud provider and region the service is hosted in. The format is `provider-region`, for example: `google-europe-west1`. The [available cloud regions](https://aiven.io/docs/platform/reference/list_of_clouds) can differ per project and service. Changing this value [migrates the service to another cloud provider or region](https://aiven.io/docs/platform/howto/migrate-services-cloud-region). The migration runs in the background and includes a DNS update to redirect traffic to the new region. Most services experience no downtime, but some databases may have a brief interruption during DNS propagation.
|
|
934
1014
|
:param pulumi.Input[Sequence[pulumi.Input[Union['PgComponentArgs', 'PgComponentArgsDict']]]] components: Service component information objects
|
|
935
|
-
:param pulumi.Input[_builtins.str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
1015
|
+
:param pulumi.Input[_builtins.str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing. Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.
|
|
936
1016
|
:param pulumi.Input[_builtins.str] disk_space_cap: The maximum disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
937
1017
|
:param pulumi.Input[_builtins.str] disk_space_default: The default disk space of the service, possible values depend on the service type, the cloud provider and the project. Its also the minimum value for `disk_space`
|
|
938
1018
|
:param pulumi.Input[_builtins.str] disk_space_step: The default disk space step of the service, possible values depend on the service type, the cloud provider and the project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
|
|
939
|
-
:param pulumi.Input[_builtins.str] disk_space_used:
|
|
1019
|
+
:param pulumi.Input[_builtins.str] disk_space_used: The disk space that the service is currently using. This is the sum of `disk_space` and `additional_disk_space` in human-readable format (for example: `90GiB`).
|
|
940
1020
|
:param pulumi.Input[_builtins.str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
1021
|
+
:param pulumi.Input[_builtins.bool] maintenance_window_enabled: Indicates whether the maintenance window is currently enabled for this service.
|
|
941
1022
|
:param pulumi.Input[_builtins.str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
942
1023
|
:param pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']] pg: Values provided by the PostgreSQL server.
|
|
943
1024
|
:param pulumi.Input[Union['PgPgUserConfigArgs', 'PgPgUserConfigArgsDict']] pg_user_config: Pg user configurable settings. **Warning:** There's no way to reset advanced configuration options to default. Options that you add cannot be removed later
|
|
@@ -970,6 +1051,7 @@ class Pg(pulumi.CustomResource):
|
|
|
970
1051
|
__props__.__dict__["disk_space_step"] = disk_space_step
|
|
971
1052
|
__props__.__dict__["disk_space_used"] = disk_space_used
|
|
972
1053
|
__props__.__dict__["maintenance_window_dow"] = maintenance_window_dow
|
|
1054
|
+
__props__.__dict__["maintenance_window_enabled"] = maintenance_window_enabled
|
|
973
1055
|
__props__.__dict__["maintenance_window_time"] = maintenance_window_time
|
|
974
1056
|
__props__.__dict__["pg"] = pg
|
|
975
1057
|
__props__.__dict__["pg_user_config"] = pg_user_config
|
|
@@ -1017,10 +1099,10 @@ class Pg(pulumi.CustomResource):
|
|
|
1017
1099
|
|
|
1018
1100
|
@_builtins.property
|
|
1019
1101
|
@pulumi.getter(name="diskSpace")
|
|
1020
|
-
@_utilities.deprecated("""
|
|
1102
|
+
@_utilities.deprecated("""Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.""")
|
|
1021
1103
|
def disk_space(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1022
1104
|
"""
|
|
1023
|
-
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
1105
|
+
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing. Please use `additional_disk_space` to specify the space to be added to the default disk space defined by the plan.
|
|
1024
1106
|
"""
|
|
1025
1107
|
return pulumi.get(self, "disk_space")
|
|
1026
1108
|
|
|
@@ -1050,10 +1132,9 @@ class Pg(pulumi.CustomResource):
|
|
|
1050
1132
|
|
|
1051
1133
|
@_builtins.property
|
|
1052
1134
|
@pulumi.getter(name="diskSpaceUsed")
|
|
1053
|
-
@_utilities.deprecated("""This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""")
|
|
1054
1135
|
def disk_space_used(self) -> pulumi.Output[_builtins.str]:
|
|
1055
1136
|
"""
|
|
1056
|
-
|
|
1137
|
+
The disk space that the service is currently using. This is the sum of `disk_space` and `additional_disk_space` in human-readable format (for example: `90GiB`).
|
|
1057
1138
|
"""
|
|
1058
1139
|
return pulumi.get(self, "disk_space_used")
|
|
1059
1140
|
|
|
@@ -1065,6 +1146,14 @@ class Pg(pulumi.CustomResource):
|
|
|
1065
1146
|
"""
|
|
1066
1147
|
return pulumi.get(self, "maintenance_window_dow")
|
|
1067
1148
|
|
|
1149
|
+
@_builtins.property
|
|
1150
|
+
@pulumi.getter(name="maintenanceWindowEnabled")
|
|
1151
|
+
def maintenance_window_enabled(self) -> pulumi.Output[_builtins.bool]:
|
|
1152
|
+
"""
|
|
1153
|
+
Indicates whether the maintenance window is currently enabled for this service.
|
|
1154
|
+
"""
|
|
1155
|
+
return pulumi.get(self, "maintenance_window_enabled")
|
|
1156
|
+
|
|
1068
1157
|
@_builtins.property
|
|
1069
1158
|
@pulumi.getter(name="maintenanceWindowTime")
|
|
1070
1159
|
def maintenance_window_time(self) -> pulumi.Output[Optional[_builtins.str]]:
|
pulumi_aiven/pg_user.py
CHANGED
|
@@ -23,13 +23,18 @@ class PgUserArgs:
|
|
|
23
23
|
service_name: pulumi.Input[_builtins.str],
|
|
24
24
|
username: pulumi.Input[_builtins.str],
|
|
25
25
|
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
password_wo: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
+
password_wo_version: Optional[pulumi.Input[_builtins.int]] = None,
|
|
26
28
|
pg_allow_replication: Optional[pulumi.Input[_builtins.bool]] = None):
|
|
27
29
|
"""
|
|
28
30
|
The set of arguments for constructing a PgUser resource.
|
|
29
31
|
:param pulumi.Input[_builtins.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
32
|
:param pulumi.Input[_builtins.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
33
|
:param pulumi.Input[_builtins.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.
|
|
32
|
-
:param pulumi.Input[_builtins.str] password: The password of the service user.
|
|
34
|
+
:param pulumi.Input[_builtins.str] password: The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
|
|
35
|
+
:param pulumi.Input[_builtins.str] password_wo: **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
36
|
+
The password of the service user (write-only, not stored in state). Must be used with `password_wo_version`. Must be 8-256 characters.
|
|
37
|
+
:param pulumi.Input[_builtins.int] password_wo_version: Version number for `password_wo`. Increment this to rotate the password. Must be >= 1.
|
|
33
38
|
:param pulumi.Input[_builtins.bool] pg_allow_replication: Allows replication. For the default avnadmin user this attribute is required and is always `true`.
|
|
34
39
|
"""
|
|
35
40
|
pulumi.set(__self__, "project", project)
|
|
@@ -37,6 +42,10 @@ class PgUserArgs:
|
|
|
37
42
|
pulumi.set(__self__, "username", username)
|
|
38
43
|
if password is not None:
|
|
39
44
|
pulumi.set(__self__, "password", password)
|
|
45
|
+
if password_wo is not None:
|
|
46
|
+
pulumi.set(__self__, "password_wo", password_wo)
|
|
47
|
+
if password_wo_version is not None:
|
|
48
|
+
pulumi.set(__self__, "password_wo_version", password_wo_version)
|
|
40
49
|
if pg_allow_replication is not None:
|
|
41
50
|
pulumi.set(__self__, "pg_allow_replication", pg_allow_replication)
|
|
42
51
|
|
|
@@ -80,7 +89,7 @@ class PgUserArgs:
|
|
|
80
89
|
@pulumi.getter
|
|
81
90
|
def password(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
82
91
|
"""
|
|
83
|
-
The password of the service user.
|
|
92
|
+
The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
|
|
84
93
|
"""
|
|
85
94
|
return pulumi.get(self, "password")
|
|
86
95
|
|
|
@@ -88,6 +97,31 @@ class PgUserArgs:
|
|
|
88
97
|
def password(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
89
98
|
pulumi.set(self, "password", value)
|
|
90
99
|
|
|
100
|
+
@_builtins.property
|
|
101
|
+
@pulumi.getter(name="passwordWo")
|
|
102
|
+
def password_wo(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
103
|
+
"""
|
|
104
|
+
**NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
105
|
+
The password of the service user (write-only, not stored in state). Must be used with `password_wo_version`. Must be 8-256 characters.
|
|
106
|
+
"""
|
|
107
|
+
return pulumi.get(self, "password_wo")
|
|
108
|
+
|
|
109
|
+
@password_wo.setter
|
|
110
|
+
def password_wo(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
111
|
+
pulumi.set(self, "password_wo", value)
|
|
112
|
+
|
|
113
|
+
@_builtins.property
|
|
114
|
+
@pulumi.getter(name="passwordWoVersion")
|
|
115
|
+
def password_wo_version(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
116
|
+
"""
|
|
117
|
+
Version number for `password_wo`. Increment this to rotate the password. Must be >= 1.
|
|
118
|
+
"""
|
|
119
|
+
return pulumi.get(self, "password_wo_version")
|
|
120
|
+
|
|
121
|
+
@password_wo_version.setter
|
|
122
|
+
def password_wo_version(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
123
|
+
pulumi.set(self, "password_wo_version", value)
|
|
124
|
+
|
|
91
125
|
@_builtins.property
|
|
92
126
|
@pulumi.getter(name="pgAllowReplication")
|
|
93
127
|
def pg_allow_replication(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
@@ -107,6 +141,8 @@ class _PgUserState:
|
|
|
107
141
|
access_cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
108
142
|
access_key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
109
143
|
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
144
|
+
password_wo: Optional[pulumi.Input[_builtins.str]] = None,
|
|
145
|
+
password_wo_version: Optional[pulumi.Input[_builtins.int]] = None,
|
|
110
146
|
pg_allow_replication: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
111
147
|
project: Optional[pulumi.Input[_builtins.str]] = None,
|
|
112
148
|
service_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -116,7 +152,10 @@ class _PgUserState:
|
|
|
116
152
|
Input properties used for looking up and filtering PgUser resources.
|
|
117
153
|
:param pulumi.Input[_builtins.str] access_cert: The access certificate for the servie user.
|
|
118
154
|
:param pulumi.Input[_builtins.str] access_key: The access certificate key for the service user.
|
|
119
|
-
:param pulumi.Input[_builtins.str] password: The password of the service user.
|
|
155
|
+
:param pulumi.Input[_builtins.str] password: The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
|
|
156
|
+
:param pulumi.Input[_builtins.str] password_wo: **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
157
|
+
The password of the service user (write-only, not stored in state). Must be used with `password_wo_version`. Must be 8-256 characters.
|
|
158
|
+
:param pulumi.Input[_builtins.int] password_wo_version: Version number for `password_wo`. Increment this to rotate the password. Must be >= 1.
|
|
120
159
|
:param pulumi.Input[_builtins.bool] pg_allow_replication: Allows replication. For the default avnadmin user this attribute is required and is always `true`.
|
|
121
160
|
:param pulumi.Input[_builtins.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
161
|
:param pulumi.Input[_builtins.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.
|
|
@@ -129,6 +168,10 @@ class _PgUserState:
|
|
|
129
168
|
pulumi.set(__self__, "access_key", access_key)
|
|
130
169
|
if password is not None:
|
|
131
170
|
pulumi.set(__self__, "password", password)
|
|
171
|
+
if password_wo is not None:
|
|
172
|
+
pulumi.set(__self__, "password_wo", password_wo)
|
|
173
|
+
if password_wo_version is not None:
|
|
174
|
+
pulumi.set(__self__, "password_wo_version", password_wo_version)
|
|
132
175
|
if pg_allow_replication is not None:
|
|
133
176
|
pulumi.set(__self__, "pg_allow_replication", pg_allow_replication)
|
|
134
177
|
if project is not None:
|
|
@@ -168,7 +211,7 @@ class _PgUserState:
|
|
|
168
211
|
@pulumi.getter
|
|
169
212
|
def password(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
170
213
|
"""
|
|
171
|
-
The password of the service user.
|
|
214
|
+
The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
|
|
172
215
|
"""
|
|
173
216
|
return pulumi.get(self, "password")
|
|
174
217
|
|
|
@@ -176,6 +219,31 @@ class _PgUserState:
|
|
|
176
219
|
def password(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
177
220
|
pulumi.set(self, "password", value)
|
|
178
221
|
|
|
222
|
+
@_builtins.property
|
|
223
|
+
@pulumi.getter(name="passwordWo")
|
|
224
|
+
def password_wo(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
225
|
+
"""
|
|
226
|
+
**NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
227
|
+
The password of the service user (write-only, not stored in state). Must be used with `password_wo_version`. Must be 8-256 characters.
|
|
228
|
+
"""
|
|
229
|
+
return pulumi.get(self, "password_wo")
|
|
230
|
+
|
|
231
|
+
@password_wo.setter
|
|
232
|
+
def password_wo(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
233
|
+
pulumi.set(self, "password_wo", value)
|
|
234
|
+
|
|
235
|
+
@_builtins.property
|
|
236
|
+
@pulumi.getter(name="passwordWoVersion")
|
|
237
|
+
def password_wo_version(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
238
|
+
"""
|
|
239
|
+
Version number for `password_wo`. Increment this to rotate the password. Must be >= 1.
|
|
240
|
+
"""
|
|
241
|
+
return pulumi.get(self, "password_wo_version")
|
|
242
|
+
|
|
243
|
+
@password_wo_version.setter
|
|
244
|
+
def password_wo_version(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
245
|
+
pulumi.set(self, "password_wo_version", value)
|
|
246
|
+
|
|
179
247
|
@_builtins.property
|
|
180
248
|
@pulumi.getter(name="pgAllowReplication")
|
|
181
249
|
def pg_allow_replication(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
@@ -244,6 +312,8 @@ class PgUser(pulumi.CustomResource):
|
|
|
244
312
|
resource_name: str,
|
|
245
313
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
246
314
|
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
315
|
+
password_wo: Optional[pulumi.Input[_builtins.str]] = None,
|
|
316
|
+
password_wo_version: Optional[pulumi.Input[_builtins.int]] = None,
|
|
247
317
|
pg_allow_replication: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
248
318
|
project: Optional[pulumi.Input[_builtins.str]] = None,
|
|
249
319
|
service_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -280,7 +350,10 @@ class PgUser(pulumi.CustomResource):
|
|
|
280
350
|
|
|
281
351
|
:param str resource_name: The name of the resource.
|
|
282
352
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
283
|
-
:param pulumi.Input[_builtins.str] password: The password of the service user.
|
|
353
|
+
:param pulumi.Input[_builtins.str] password: The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
|
|
354
|
+
:param pulumi.Input[_builtins.str] password_wo: **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
355
|
+
The password of the service user (write-only, not stored in state). Must be used with `password_wo_version`. Must be 8-256 characters.
|
|
356
|
+
:param pulumi.Input[_builtins.int] password_wo_version: Version number for `password_wo`. Increment this to rotate the password. Must be >= 1.
|
|
284
357
|
:param pulumi.Input[_builtins.bool] pg_allow_replication: Allows replication. For the default avnadmin user this attribute is required and is always `true`.
|
|
285
358
|
:param pulumi.Input[_builtins.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.
|
|
286
359
|
:param pulumi.Input[_builtins.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.
|
|
@@ -337,6 +410,8 @@ class PgUser(pulumi.CustomResource):
|
|
|
337
410
|
resource_name: str,
|
|
338
411
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
339
412
|
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
413
|
+
password_wo: Optional[pulumi.Input[_builtins.str]] = None,
|
|
414
|
+
password_wo_version: Optional[pulumi.Input[_builtins.int]] = None,
|
|
340
415
|
pg_allow_replication: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
341
416
|
project: Optional[pulumi.Input[_builtins.str]] = None,
|
|
342
417
|
service_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -351,6 +426,8 @@ class PgUser(pulumi.CustomResource):
|
|
|
351
426
|
__props__ = PgUserArgs.__new__(PgUserArgs)
|
|
352
427
|
|
|
353
428
|
__props__.__dict__["password"] = None if password is None else pulumi.Output.secret(password)
|
|
429
|
+
__props__.__dict__["password_wo"] = None if password_wo is None else pulumi.Output.secret(password_wo)
|
|
430
|
+
__props__.__dict__["password_wo_version"] = password_wo_version
|
|
354
431
|
__props__.__dict__["pg_allow_replication"] = pg_allow_replication
|
|
355
432
|
if project is None and not opts.urn:
|
|
356
433
|
raise TypeError("Missing required property 'project'")
|
|
@@ -364,7 +441,7 @@ class PgUser(pulumi.CustomResource):
|
|
|
364
441
|
__props__.__dict__["access_cert"] = None
|
|
365
442
|
__props__.__dict__["access_key"] = None
|
|
366
443
|
__props__.__dict__["type"] = None
|
|
367
|
-
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["accessCert", "accessKey", "password"])
|
|
444
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["accessCert", "accessKey", "password", "passwordWo"])
|
|
368
445
|
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
369
446
|
super(PgUser, __self__).__init__(
|
|
370
447
|
'aiven:index/pgUser:PgUser',
|
|
@@ -379,6 +456,8 @@ class PgUser(pulumi.CustomResource):
|
|
|
379
456
|
access_cert: Optional[pulumi.Input[_builtins.str]] = None,
|
|
380
457
|
access_key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
381
458
|
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
459
|
+
password_wo: Optional[pulumi.Input[_builtins.str]] = None,
|
|
460
|
+
password_wo_version: Optional[pulumi.Input[_builtins.int]] = None,
|
|
382
461
|
pg_allow_replication: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
383
462
|
project: Optional[pulumi.Input[_builtins.str]] = None,
|
|
384
463
|
service_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -393,7 +472,10 @@ class PgUser(pulumi.CustomResource):
|
|
|
393
472
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
394
473
|
:param pulumi.Input[_builtins.str] access_cert: The access certificate for the servie user.
|
|
395
474
|
:param pulumi.Input[_builtins.str] access_key: The access certificate key for the service user.
|
|
396
|
-
:param pulumi.Input[_builtins.str] password: The password of the service user.
|
|
475
|
+
:param pulumi.Input[_builtins.str] password: The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
|
|
476
|
+
:param pulumi.Input[_builtins.str] password_wo: **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
477
|
+
The password of the service user (write-only, not stored in state). Must be used with `password_wo_version`. Must be 8-256 characters.
|
|
478
|
+
:param pulumi.Input[_builtins.int] password_wo_version: Version number for `password_wo`. Increment this to rotate the password. Must be >= 1.
|
|
397
479
|
:param pulumi.Input[_builtins.bool] pg_allow_replication: Allows replication. For the default avnadmin user this attribute is required and is always `true`.
|
|
398
480
|
:param pulumi.Input[_builtins.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.
|
|
399
481
|
:param pulumi.Input[_builtins.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.
|
|
@@ -407,6 +489,8 @@ class PgUser(pulumi.CustomResource):
|
|
|
407
489
|
__props__.__dict__["access_cert"] = access_cert
|
|
408
490
|
__props__.__dict__["access_key"] = access_key
|
|
409
491
|
__props__.__dict__["password"] = password
|
|
492
|
+
__props__.__dict__["password_wo"] = password_wo
|
|
493
|
+
__props__.__dict__["password_wo_version"] = password_wo_version
|
|
410
494
|
__props__.__dict__["pg_allow_replication"] = pg_allow_replication
|
|
411
495
|
__props__.__dict__["project"] = project
|
|
412
496
|
__props__.__dict__["service_name"] = service_name
|
|
@@ -434,10 +518,27 @@ class PgUser(pulumi.CustomResource):
|
|
|
434
518
|
@pulumi.getter
|
|
435
519
|
def password(self) -> pulumi.Output[_builtins.str]:
|
|
436
520
|
"""
|
|
437
|
-
The password of the service user.
|
|
521
|
+
The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
|
|
438
522
|
"""
|
|
439
523
|
return pulumi.get(self, "password")
|
|
440
524
|
|
|
525
|
+
@_builtins.property
|
|
526
|
+
@pulumi.getter(name="passwordWo")
|
|
527
|
+
def password_wo(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
528
|
+
"""
|
|
529
|
+
**NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
530
|
+
The password of the service user (write-only, not stored in state). Must be used with `password_wo_version`. Must be 8-256 characters.
|
|
531
|
+
"""
|
|
532
|
+
return pulumi.get(self, "password_wo")
|
|
533
|
+
|
|
534
|
+
@_builtins.property
|
|
535
|
+
@pulumi.getter(name="passwordWoVersion")
|
|
536
|
+
def password_wo_version(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
537
|
+
"""
|
|
538
|
+
Version number for `password_wo`. Increment this to rotate the password. Must be >= 1.
|
|
539
|
+
"""
|
|
540
|
+
return pulumi.get(self, "password_wo_version")
|
|
541
|
+
|
|
441
542
|
@_builtins.property
|
|
442
543
|
@pulumi.getter(name="pgAllowReplication")
|
|
443
544
|
def pg_allow_replication(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
pulumi_aiven/project.py
CHANGED
|
@@ -459,18 +459,7 @@ class Project(pulumi.CustomResource):
|
|
|
459
459
|
use_source_project_billing_group: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
460
460
|
__props__=None):
|
|
461
461
|
"""
|
|
462
|
-
Creates and manages an [Aiven project](https://aiven.io/docs/platform/concepts/orgs-units-projects#projects).
|
|
463
|
-
|
|
464
|
-
## Example Usage
|
|
465
|
-
|
|
466
|
-
```python
|
|
467
|
-
import pulumi
|
|
468
|
-
import pulumi_aiven as aiven
|
|
469
|
-
|
|
470
|
-
example_project = aiven.Project("example_project",
|
|
471
|
-
project="example-project",
|
|
472
|
-
parent_id=main["id"])
|
|
473
|
-
```
|
|
462
|
+
Creates and manages an [Aiven project](https://aiven.io/docs/platform/concepts/orgs-units-projects#projects). You should create projects in organizations or organizational units using the `parent_id` field. In a future release, this resource will be replaced by `OrganizationProject` resource, which requires the `parent_id` field.
|
|
474
463
|
|
|
475
464
|
## Import
|
|
476
465
|
|
|
@@ -498,18 +487,7 @@ class Project(pulumi.CustomResource):
|
|
|
498
487
|
args: ProjectArgs,
|
|
499
488
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
500
489
|
"""
|
|
501
|
-
Creates and manages an [Aiven project](https://aiven.io/docs/platform/concepts/orgs-units-projects#projects).
|
|
502
|
-
|
|
503
|
-
## Example Usage
|
|
504
|
-
|
|
505
|
-
```python
|
|
506
|
-
import pulumi
|
|
507
|
-
import pulumi_aiven as aiven
|
|
508
|
-
|
|
509
|
-
example_project = aiven.Project("example_project",
|
|
510
|
-
project="example-project",
|
|
511
|
-
parent_id=main["id"])
|
|
512
|
-
```
|
|
490
|
+
Creates and manages an [Aiven project](https://aiven.io/docs/platform/concepts/orgs-units-projects#projects). You should create projects in organizations or organizational units using the `parent_id` field. In a future release, this resource will be replaced by `OrganizationProject` resource, which requires the `parent_id` field.
|
|
513
491
|
|
|
514
492
|
## Import
|
|
515
493
|
|
pulumi_aiven/pulumi-plugin.json
CHANGED