pulumi-aiven 6.21.0a1722856076__py3-none-any.whl → 6.22.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/_inputs.py +721 -67
- pulumi_aiven/account_authentication.py +5 -5
- pulumi_aiven/account_team_project.py +7 -7
- pulumi_aiven/aws_vpc_peering_connection.py +7 -7
- pulumi_aiven/azure_privatelink_connection_approval.py +16 -16
- pulumi_aiven/azure_vpc_peering_connection.py +7 -7
- pulumi_aiven/cassandra.py +46 -46
- pulumi_aiven/clickhouse.py +34 -34
- pulumi_aiven/clickhouse_grant.py +34 -34
- pulumi_aiven/dragonfly.py +40 -40
- pulumi_aiven/flink.py +40 -40
- pulumi_aiven/flink_application_deployment.py +16 -16
- pulumi_aiven/flink_application_version.py +36 -36
- pulumi_aiven/gcp_vpc_peering_connection.py +7 -7
- pulumi_aiven/get_account_team_project.py +1 -1
- pulumi_aiven/get_aws_vpc_peering_connection.py +1 -1
- pulumi_aiven/get_azure_vpc_peering_connection.py +1 -1
- pulumi_aiven/get_cassanda.py +1 -1
- pulumi_aiven/get_cassandra.py +1 -1
- pulumi_aiven/get_clickhouse.py +1 -1
- pulumi_aiven/get_dragonfly.py +1 -1
- pulumi_aiven/get_flink.py +1 -1
- pulumi_aiven/get_gcp_vpc_peering_connection.py +1 -1
- pulumi_aiven/get_grafana.py +1 -1
- pulumi_aiven/get_kafka.py +1 -1
- pulumi_aiven/get_kafka_connect.py +1 -1
- pulumi_aiven/get_kafka_mirror_maker.py +1 -1
- pulumi_aiven/get_m3_aggregator.py +1 -1
- pulumi_aiven/get_m3_db.py +1 -1
- pulumi_aiven/get_my_sql.py +1 -1
- pulumi_aiven/get_mysql_user.py +1 -1
- pulumi_aiven/get_open_search.py +1 -1
- pulumi_aiven/get_pg.py +8 -8
- pulumi_aiven/get_pg_database.py +8 -8
- pulumi_aiven/get_pg_user.py +16 -16
- pulumi_aiven/get_project_user.py +1 -1
- pulumi_aiven/get_project_vpc.py +1 -1
- pulumi_aiven/get_redis.py +1 -1
- pulumi_aiven/get_service_integration.py +3 -3
- pulumi_aiven/get_thanos.py +1 -1
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +1 -1
- pulumi_aiven/get_valkey.py +1 -1
- pulumi_aiven/grafana.py +46 -46
- pulumi_aiven/influx_db.py +48 -41
- pulumi_aiven/kafka.py +62 -62
- pulumi_aiven/kafka_connect.py +59 -59
- pulumi_aiven/kafka_connector.py +2 -2
- pulumi_aiven/kafka_mirror_maker.py +45 -45
- pulumi_aiven/kafka_topic.py +18 -18
- pulumi_aiven/m3_aggregator.py +40 -40
- pulumi_aiven/m3_db.py +48 -48
- pulumi_aiven/my_sql.py +54 -54
- pulumi_aiven/mysql_user.py +7 -7
- pulumi_aiven/open_search.py +56 -56
- pulumi_aiven/organization.py +3 -3
- pulumi_aiven/organization_group_project.py +3 -3
- pulumi_aiven/organization_user_group_member.py +3 -3
- pulumi_aiven/outputs.py +1252 -135
- pulumi_aiven/pg.py +43 -43
- pulumi_aiven/pg_database.py +12 -12
- pulumi_aiven/pg_user.py +47 -47
- pulumi_aiven/project.py +5 -5
- pulumi_aiven/project_user.py +7 -7
- pulumi_aiven/project_vpc.py +4 -4
- pulumi_aiven/pulumi-plugin.json +1 -1
- pulumi_aiven/redis.py +46 -46
- pulumi_aiven/service_integration.py +72 -72
- pulumi_aiven/service_integration_endpoint.py +65 -65
- pulumi_aiven/thanos.py +34 -34
- pulumi_aiven/transit_gateway_vpc_attachment.py +7 -7
- pulumi_aiven/valkey.py +40 -40
- {pulumi_aiven-6.21.0a1722856076.dist-info → pulumi_aiven-6.22.0.dist-info}/METADATA +1 -1
- {pulumi_aiven-6.21.0a1722856076.dist-info → pulumi_aiven-6.22.0.dist-info}/RECORD +75 -75
- {pulumi_aiven-6.21.0a1722856076.dist-info → pulumi_aiven-6.22.0.dist-info}/WHEEL +1 -1
- {pulumi_aiven-6.21.0a1722856076.dist-info → pulumi_aiven-6.22.0.dist-info}/top_level.txt +0 -0
pulumi_aiven/pg.py
CHANGED
|
@@ -36,12 +36,12 @@ class PgArgs:
|
|
|
36
36
|
The set of arguments for constructing a Pg resource.
|
|
37
37
|
:param pulumi.Input[str] plan: 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 seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
38
38
|
: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.
|
|
39
|
-
:param pulumi.Input[str] additional_disk_space:
|
|
39
|
+
:param pulumi.Input[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 with no HA capabilities.
|
|
40
40
|
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
41
41
|
:param pulumi.Input[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.
|
|
42
42
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
43
43
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
44
|
-
:param pulumi.Input['PgPgArgs'] pg:
|
|
44
|
+
:param pulumi.Input['PgPgArgs'] pg: Values provided by the PostgreSQL server.
|
|
45
45
|
:param pulumi.Input['PgPgUserConfigArgs'] pg_user_config: Pg user configurable settings
|
|
46
46
|
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
47
47
|
:param pulumi.Input[Sequence[pulumi.Input['PgServiceIntegrationArgs']]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
@@ -113,7 +113,7 @@ class PgArgs:
|
|
|
113
113
|
@pulumi.getter(name="additionalDiskSpace")
|
|
114
114
|
def additional_disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
115
115
|
"""
|
|
116
|
-
|
|
116
|
+
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.
|
|
117
117
|
"""
|
|
118
118
|
return pulumi.get(self, "additional_disk_space")
|
|
119
119
|
|
|
@@ -174,7 +174,7 @@ class PgArgs:
|
|
|
174
174
|
@pulumi.getter
|
|
175
175
|
def pg(self) -> Optional[pulumi.Input['PgPgArgs']]:
|
|
176
176
|
"""
|
|
177
|
-
|
|
177
|
+
Values provided by the PostgreSQL server.
|
|
178
178
|
"""
|
|
179
179
|
return pulumi.get(self, "pg")
|
|
180
180
|
|
|
@@ -312,7 +312,7 @@ class _PgState:
|
|
|
312
312
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
313
313
|
"""
|
|
314
314
|
Input properties used for looking up and filtering Pg resources.
|
|
315
|
-
:param pulumi.Input[str] additional_disk_space:
|
|
315
|
+
:param pulumi.Input[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 with no HA capabilities.
|
|
316
316
|
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
317
317
|
:param pulumi.Input[Sequence[pulumi.Input['PgComponentArgs']]] components: Service component information objects
|
|
318
318
|
:param pulumi.Input[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.
|
|
@@ -322,7 +322,7 @@ class _PgState:
|
|
|
322
322
|
:param pulumi.Input[str] disk_space_used: Disk space that service is currently using
|
|
323
323
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
324
324
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
325
|
-
:param pulumi.Input['PgPgArgs'] pg:
|
|
325
|
+
:param pulumi.Input['PgPgArgs'] pg: Values provided by the PostgreSQL server.
|
|
326
326
|
:param pulumi.Input['PgPgUserConfigArgs'] pg_user_config: Pg user configurable settings
|
|
327
327
|
:param pulumi.Input[str] plan: 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 seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
328
328
|
: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.
|
|
@@ -405,7 +405,7 @@ class _PgState:
|
|
|
405
405
|
@pulumi.getter(name="additionalDiskSpace")
|
|
406
406
|
def additional_disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
407
407
|
"""
|
|
408
|
-
|
|
408
|
+
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.
|
|
409
409
|
"""
|
|
410
410
|
return pulumi.get(self, "additional_disk_space")
|
|
411
411
|
|
|
@@ -526,7 +526,7 @@ class _PgState:
|
|
|
526
526
|
@pulumi.getter
|
|
527
527
|
def pg(self) -> Optional[pulumi.Input['PgPgArgs']]:
|
|
528
528
|
"""
|
|
529
|
-
|
|
529
|
+
Values provided by the PostgreSQL server.
|
|
530
530
|
"""
|
|
531
531
|
return pulumi.get(self, "pg")
|
|
532
532
|
|
|
@@ -749,44 +749,44 @@ class Pg(pulumi.CustomResource):
|
|
|
749
749
|
disk_space: Optional[pulumi.Input[str]] = None,
|
|
750
750
|
maintenance_window_dow: Optional[pulumi.Input[str]] = None,
|
|
751
751
|
maintenance_window_time: Optional[pulumi.Input[str]] = None,
|
|
752
|
-
pg: Optional[pulumi.Input[
|
|
753
|
-
pg_user_config: Optional[pulumi.Input[
|
|
752
|
+
pg: Optional[pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']]] = None,
|
|
753
|
+
pg_user_config: Optional[pulumi.Input[Union['PgPgUserConfigArgs', 'PgPgUserConfigArgsDict']]] = None,
|
|
754
754
|
plan: Optional[pulumi.Input[str]] = None,
|
|
755
755
|
project: Optional[pulumi.Input[str]] = None,
|
|
756
756
|
project_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
757
|
-
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
757
|
+
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgServiceIntegrationArgs', 'PgServiceIntegrationArgsDict']]]]] = None,
|
|
758
758
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
759
759
|
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
760
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
761
|
-
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
760
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgTagArgs', 'PgTagArgsDict']]]]] = None,
|
|
761
|
+
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgTechEmailArgs', 'PgTechEmailArgsDict']]]]] = None,
|
|
762
762
|
termination_protection: Optional[pulumi.Input[bool]] = None,
|
|
763
763
|
__props__=None):
|
|
764
764
|
"""
|
|
765
|
-
|
|
765
|
+
Creates and manages an Aiven for PostgreSQL® service.
|
|
766
766
|
|
|
767
767
|
## Import
|
|
768
768
|
|
|
769
769
|
```sh
|
|
770
|
-
$ pulumi import aiven:index/pg:Pg
|
|
770
|
+
$ pulumi import aiven:index/pg:Pg example_postgres PROJECT/SERVICE_NAME
|
|
771
771
|
```
|
|
772
772
|
|
|
773
773
|
:param str resource_name: The name of the resource.
|
|
774
774
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
775
|
-
:param pulumi.Input[str] additional_disk_space:
|
|
775
|
+
:param pulumi.Input[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 with no HA capabilities.
|
|
776
776
|
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
777
777
|
:param pulumi.Input[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.
|
|
778
778
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
779
779
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
780
|
-
:param pulumi.Input[
|
|
781
|
-
:param pulumi.Input[
|
|
780
|
+
:param pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']] pg: Values provided by the PostgreSQL server.
|
|
781
|
+
:param pulumi.Input[Union['PgPgUserConfigArgs', 'PgPgUserConfigArgsDict']] pg_user_config: Pg user configurable settings
|
|
782
782
|
:param pulumi.Input[str] plan: 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 seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
783
783
|
: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.
|
|
784
784
|
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
785
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
785
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['PgServiceIntegrationArgs', 'PgServiceIntegrationArgsDict']]]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
786
786
|
:param pulumi.Input[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.
|
|
787
787
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
788
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
789
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
788
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['PgTagArgs', 'PgTagArgsDict']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
789
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['PgTechEmailArgs', 'PgTechEmailArgsDict']]]] tech_emails: 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.
|
|
790
790
|
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.
|
|
791
791
|
"""
|
|
792
792
|
...
|
|
@@ -796,12 +796,12 @@ class Pg(pulumi.CustomResource):
|
|
|
796
796
|
args: PgArgs,
|
|
797
797
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
798
798
|
"""
|
|
799
|
-
|
|
799
|
+
Creates and manages an Aiven for PostgreSQL® service.
|
|
800
800
|
|
|
801
801
|
## Import
|
|
802
802
|
|
|
803
803
|
```sh
|
|
804
|
-
$ pulumi import aiven:index/pg:Pg
|
|
804
|
+
$ pulumi import aiven:index/pg:Pg example_postgres PROJECT/SERVICE_NAME
|
|
805
805
|
```
|
|
806
806
|
|
|
807
807
|
:param str resource_name: The name of the resource.
|
|
@@ -824,16 +824,16 @@ class Pg(pulumi.CustomResource):
|
|
|
824
824
|
disk_space: Optional[pulumi.Input[str]] = None,
|
|
825
825
|
maintenance_window_dow: Optional[pulumi.Input[str]] = None,
|
|
826
826
|
maintenance_window_time: Optional[pulumi.Input[str]] = None,
|
|
827
|
-
pg: Optional[pulumi.Input[
|
|
828
|
-
pg_user_config: Optional[pulumi.Input[
|
|
827
|
+
pg: Optional[pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']]] = None,
|
|
828
|
+
pg_user_config: Optional[pulumi.Input[Union['PgPgUserConfigArgs', 'PgPgUserConfigArgsDict']]] = None,
|
|
829
829
|
plan: Optional[pulumi.Input[str]] = None,
|
|
830
830
|
project: Optional[pulumi.Input[str]] = None,
|
|
831
831
|
project_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
832
|
-
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
832
|
+
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgServiceIntegrationArgs', 'PgServiceIntegrationArgsDict']]]]] = None,
|
|
833
833
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
834
834
|
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
835
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
836
|
-
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
835
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgTagArgs', 'PgTagArgsDict']]]]] = None,
|
|
836
|
+
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgTechEmailArgs', 'PgTechEmailArgsDict']]]]] = None,
|
|
837
837
|
termination_protection: Optional[pulumi.Input[bool]] = None,
|
|
838
838
|
__props__=None):
|
|
839
839
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -890,7 +890,7 @@ class Pg(pulumi.CustomResource):
|
|
|
890
890
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
891
891
|
additional_disk_space: Optional[pulumi.Input[str]] = None,
|
|
892
892
|
cloud_name: Optional[pulumi.Input[str]] = None,
|
|
893
|
-
components: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
893
|
+
components: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgComponentArgs', 'PgComponentArgsDict']]]]] = None,
|
|
894
894
|
disk_space: Optional[pulumi.Input[str]] = None,
|
|
895
895
|
disk_space_cap: Optional[pulumi.Input[str]] = None,
|
|
896
896
|
disk_space_default: Optional[pulumi.Input[str]] = None,
|
|
@@ -898,13 +898,13 @@ class Pg(pulumi.CustomResource):
|
|
|
898
898
|
disk_space_used: Optional[pulumi.Input[str]] = None,
|
|
899
899
|
maintenance_window_dow: Optional[pulumi.Input[str]] = None,
|
|
900
900
|
maintenance_window_time: Optional[pulumi.Input[str]] = None,
|
|
901
|
-
pg: Optional[pulumi.Input[
|
|
902
|
-
pg_user_config: Optional[pulumi.Input[
|
|
901
|
+
pg: Optional[pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']]] = None,
|
|
902
|
+
pg_user_config: Optional[pulumi.Input[Union['PgPgUserConfigArgs', 'PgPgUserConfigArgsDict']]] = None,
|
|
903
903
|
plan: Optional[pulumi.Input[str]] = None,
|
|
904
904
|
project: Optional[pulumi.Input[str]] = None,
|
|
905
905
|
project_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
906
906
|
service_host: Optional[pulumi.Input[str]] = None,
|
|
907
|
-
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
907
|
+
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgServiceIntegrationArgs', 'PgServiceIntegrationArgsDict']]]]] = None,
|
|
908
908
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
909
909
|
service_password: Optional[pulumi.Input[str]] = None,
|
|
910
910
|
service_port: Optional[pulumi.Input[int]] = None,
|
|
@@ -913,8 +913,8 @@ class Pg(pulumi.CustomResource):
|
|
|
913
913
|
service_username: Optional[pulumi.Input[str]] = None,
|
|
914
914
|
state: Optional[pulumi.Input[str]] = None,
|
|
915
915
|
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
916
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
917
|
-
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
916
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgTagArgs', 'PgTagArgsDict']]]]] = None,
|
|
917
|
+
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgTechEmailArgs', 'PgTechEmailArgsDict']]]]] = None,
|
|
918
918
|
termination_protection: Optional[pulumi.Input[bool]] = None) -> 'Pg':
|
|
919
919
|
"""
|
|
920
920
|
Get an existing Pg resource's state with the given name, id, and optional extra
|
|
@@ -923,9 +923,9 @@ class Pg(pulumi.CustomResource):
|
|
|
923
923
|
:param str resource_name: The unique name of the resulting resource.
|
|
924
924
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
925
925
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
926
|
-
:param pulumi.Input[str] additional_disk_space:
|
|
926
|
+
:param pulumi.Input[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 with no HA capabilities.
|
|
927
927
|
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
928
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
928
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['PgComponentArgs', 'PgComponentArgsDict']]]] components: Service component information objects
|
|
929
929
|
:param pulumi.Input[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.
|
|
930
930
|
:param pulumi.Input[str] disk_space_cap: The maximum disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
931
931
|
:param pulumi.Input[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`
|
|
@@ -933,13 +933,13 @@ class Pg(pulumi.CustomResource):
|
|
|
933
933
|
:param pulumi.Input[str] disk_space_used: Disk space that service is currently using
|
|
934
934
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
935
935
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
936
|
-
:param pulumi.Input[
|
|
937
|
-
:param pulumi.Input[
|
|
936
|
+
:param pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']] pg: Values provided by the PostgreSQL server.
|
|
937
|
+
:param pulumi.Input[Union['PgPgUserConfigArgs', 'PgPgUserConfigArgsDict']] pg_user_config: Pg user configurable settings
|
|
938
938
|
:param pulumi.Input[str] plan: 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 seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
939
939
|
: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.
|
|
940
940
|
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
941
941
|
:param pulumi.Input[str] service_host: The hostname of the service.
|
|
942
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
942
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['PgServiceIntegrationArgs', 'PgServiceIntegrationArgsDict']]]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
943
943
|
:param pulumi.Input[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.
|
|
944
944
|
:param pulumi.Input[str] service_password: Password used for connecting to the service, if applicable
|
|
945
945
|
:param pulumi.Input[int] service_port: The port of the service
|
|
@@ -948,8 +948,8 @@ class Pg(pulumi.CustomResource):
|
|
|
948
948
|
:param pulumi.Input[str] service_username: Username used for connecting to the service, if applicable
|
|
949
949
|
:param pulumi.Input[str] state: Service state. One of `POWEROFF`, `REBALANCING`, `REBUILDING` or `RUNNING`
|
|
950
950
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
951
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
952
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
951
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['PgTagArgs', 'PgTagArgsDict']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
952
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['PgTechEmailArgs', 'PgTechEmailArgsDict']]]] tech_emails: 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.
|
|
953
953
|
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.
|
|
954
954
|
"""
|
|
955
955
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -990,7 +990,7 @@ class Pg(pulumi.CustomResource):
|
|
|
990
990
|
@pulumi.getter(name="additionalDiskSpace")
|
|
991
991
|
def additional_disk_space(self) -> pulumi.Output[Optional[str]]:
|
|
992
992
|
"""
|
|
993
|
-
|
|
993
|
+
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.
|
|
994
994
|
"""
|
|
995
995
|
return pulumi.get(self, "additional_disk_space")
|
|
996
996
|
|
|
@@ -1071,7 +1071,7 @@ class Pg(pulumi.CustomResource):
|
|
|
1071
1071
|
@pulumi.getter
|
|
1072
1072
|
def pg(self) -> pulumi.Output['outputs.PgPg']:
|
|
1073
1073
|
"""
|
|
1074
|
-
|
|
1074
|
+
Values provided by the PostgreSQL server.
|
|
1075
1075
|
"""
|
|
1076
1076
|
return pulumi.get(self, "pg")
|
|
1077
1077
|
|
pulumi_aiven/pg_database.py
CHANGED
|
@@ -221,7 +221,7 @@ class PgDatabase(pulumi.CustomResource):
|
|
|
221
221
|
termination_protection: Optional[pulumi.Input[bool]] = None,
|
|
222
222
|
__props__=None):
|
|
223
223
|
"""
|
|
224
|
-
|
|
224
|
+
Creates and manages a database in an Aiven for PostgreSQL® service.
|
|
225
225
|
|
|
226
226
|
## Example Usage
|
|
227
227
|
|
|
@@ -229,16 +229,16 @@ class PgDatabase(pulumi.CustomResource):
|
|
|
229
229
|
import pulumi
|
|
230
230
|
import pulumi_aiven as aiven
|
|
231
231
|
|
|
232
|
-
|
|
233
|
-
project=
|
|
234
|
-
service_name=
|
|
235
|
-
database_name="
|
|
232
|
+
main = aiven.PgDatabase("main",
|
|
233
|
+
project=example_project["project"],
|
|
234
|
+
service_name=example_postgres["serviceName"],
|
|
235
|
+
database_name="example-database")
|
|
236
236
|
```
|
|
237
237
|
|
|
238
238
|
## Import
|
|
239
239
|
|
|
240
240
|
```sh
|
|
241
|
-
$ pulumi import aiven:index/pgDatabase:PgDatabase
|
|
241
|
+
$ pulumi import aiven:index/pgDatabase:PgDatabase main PROJECT/SERVICE_NAME/DATABASE_NAME
|
|
242
242
|
```
|
|
243
243
|
|
|
244
244
|
:param str resource_name: The name of the resource.
|
|
@@ -256,7 +256,7 @@ class PgDatabase(pulumi.CustomResource):
|
|
|
256
256
|
args: PgDatabaseArgs,
|
|
257
257
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
258
258
|
"""
|
|
259
|
-
|
|
259
|
+
Creates and manages a database in an Aiven for PostgreSQL® service.
|
|
260
260
|
|
|
261
261
|
## Example Usage
|
|
262
262
|
|
|
@@ -264,16 +264,16 @@ class PgDatabase(pulumi.CustomResource):
|
|
|
264
264
|
import pulumi
|
|
265
265
|
import pulumi_aiven as aiven
|
|
266
266
|
|
|
267
|
-
|
|
268
|
-
project=
|
|
269
|
-
service_name=
|
|
270
|
-
database_name="
|
|
267
|
+
main = aiven.PgDatabase("main",
|
|
268
|
+
project=example_project["project"],
|
|
269
|
+
service_name=example_postgres["serviceName"],
|
|
270
|
+
database_name="example-database")
|
|
271
271
|
```
|
|
272
272
|
|
|
273
273
|
## Import
|
|
274
274
|
|
|
275
275
|
```sh
|
|
276
|
-
$ pulumi import aiven:index/pgDatabase:PgDatabase
|
|
276
|
+
$ pulumi import aiven:index/pgDatabase:PgDatabase main PROJECT/SERVICE_NAME/DATABASE_NAME
|
|
277
277
|
```
|
|
278
278
|
|
|
279
279
|
:param str resource_name: The name of the resource.
|
pulumi_aiven/pg_user.py
CHANGED
|
@@ -23,9 +23,9 @@ class PgUserArgs:
|
|
|
23
23
|
The set of arguments for constructing a PgUser resource.
|
|
24
24
|
: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.
|
|
25
25
|
: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.
|
|
26
|
-
:param pulumi.Input[str] username: The
|
|
27
|
-
:param pulumi.Input[str] password: The password of the
|
|
28
|
-
:param pulumi.Input[bool] pg_allow_replication:
|
|
26
|
+
:param pulumi.Input[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.
|
|
27
|
+
:param pulumi.Input[str] password: The password of the service user.
|
|
28
|
+
:param pulumi.Input[bool] pg_allow_replication: Allows replication.
|
|
29
29
|
"""
|
|
30
30
|
pulumi.set(__self__, "project", project)
|
|
31
31
|
pulumi.set(__self__, "service_name", service_name)
|
|
@@ -63,7 +63,7 @@ class PgUserArgs:
|
|
|
63
63
|
@pulumi.getter
|
|
64
64
|
def username(self) -> pulumi.Input[str]:
|
|
65
65
|
"""
|
|
66
|
-
The
|
|
66
|
+
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.
|
|
67
67
|
"""
|
|
68
68
|
return pulumi.get(self, "username")
|
|
69
69
|
|
|
@@ -75,7 +75,7 @@ class PgUserArgs:
|
|
|
75
75
|
@pulumi.getter
|
|
76
76
|
def password(self) -> Optional[pulumi.Input[str]]:
|
|
77
77
|
"""
|
|
78
|
-
The password of the
|
|
78
|
+
The password of the service user.
|
|
79
79
|
"""
|
|
80
80
|
return pulumi.get(self, "password")
|
|
81
81
|
|
|
@@ -87,7 +87,7 @@ class PgUserArgs:
|
|
|
87
87
|
@pulumi.getter(name="pgAllowReplication")
|
|
88
88
|
def pg_allow_replication(self) -> Optional[pulumi.Input[bool]]:
|
|
89
89
|
"""
|
|
90
|
-
|
|
90
|
+
Allows replication.
|
|
91
91
|
"""
|
|
92
92
|
return pulumi.get(self, "pg_allow_replication")
|
|
93
93
|
|
|
@@ -109,14 +109,14 @@ class _PgUserState:
|
|
|
109
109
|
username: Optional[pulumi.Input[str]] = None):
|
|
110
110
|
"""
|
|
111
111
|
Input properties used for looking up and filtering PgUser resources.
|
|
112
|
-
:param pulumi.Input[str] access_cert:
|
|
113
|
-
:param pulumi.Input[str] access_key:
|
|
114
|
-
:param pulumi.Input[str] password: The password of the
|
|
115
|
-
:param pulumi.Input[bool] pg_allow_replication:
|
|
112
|
+
:param pulumi.Input[str] access_cert: The access certificate for the servie user.
|
|
113
|
+
:param pulumi.Input[str] access_key: The access certificate key for the service user.
|
|
114
|
+
:param pulumi.Input[str] password: The password of the service user.
|
|
115
|
+
:param pulumi.Input[bool] pg_allow_replication: Allows replication.
|
|
116
116
|
: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.
|
|
117
117
|
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
118
|
-
:param pulumi.Input[str] type:
|
|
119
|
-
:param pulumi.Input[str] username: The
|
|
118
|
+
:param pulumi.Input[str] type: The service user account type, either primary or regular.
|
|
119
|
+
:param pulumi.Input[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.
|
|
120
120
|
"""
|
|
121
121
|
if access_cert is not None:
|
|
122
122
|
pulumi.set(__self__, "access_cert", access_cert)
|
|
@@ -139,7 +139,7 @@ class _PgUserState:
|
|
|
139
139
|
@pulumi.getter(name="accessCert")
|
|
140
140
|
def access_cert(self) -> Optional[pulumi.Input[str]]:
|
|
141
141
|
"""
|
|
142
|
-
|
|
142
|
+
The access certificate for the servie user.
|
|
143
143
|
"""
|
|
144
144
|
return pulumi.get(self, "access_cert")
|
|
145
145
|
|
|
@@ -151,7 +151,7 @@ class _PgUserState:
|
|
|
151
151
|
@pulumi.getter(name="accessKey")
|
|
152
152
|
def access_key(self) -> Optional[pulumi.Input[str]]:
|
|
153
153
|
"""
|
|
154
|
-
|
|
154
|
+
The access certificate key for the service user.
|
|
155
155
|
"""
|
|
156
156
|
return pulumi.get(self, "access_key")
|
|
157
157
|
|
|
@@ -163,7 +163,7 @@ class _PgUserState:
|
|
|
163
163
|
@pulumi.getter
|
|
164
164
|
def password(self) -> Optional[pulumi.Input[str]]:
|
|
165
165
|
"""
|
|
166
|
-
The password of the
|
|
166
|
+
The password of the service user.
|
|
167
167
|
"""
|
|
168
168
|
return pulumi.get(self, "password")
|
|
169
169
|
|
|
@@ -175,7 +175,7 @@ class _PgUserState:
|
|
|
175
175
|
@pulumi.getter(name="pgAllowReplication")
|
|
176
176
|
def pg_allow_replication(self) -> Optional[pulumi.Input[bool]]:
|
|
177
177
|
"""
|
|
178
|
-
|
|
178
|
+
Allows replication.
|
|
179
179
|
"""
|
|
180
180
|
return pulumi.get(self, "pg_allow_replication")
|
|
181
181
|
|
|
@@ -211,7 +211,7 @@ class _PgUserState:
|
|
|
211
211
|
@pulumi.getter
|
|
212
212
|
def type(self) -> Optional[pulumi.Input[str]]:
|
|
213
213
|
"""
|
|
214
|
-
|
|
214
|
+
The service user account type, either primary or regular.
|
|
215
215
|
"""
|
|
216
216
|
return pulumi.get(self, "type")
|
|
217
217
|
|
|
@@ -223,7 +223,7 @@ class _PgUserState:
|
|
|
223
223
|
@pulumi.getter
|
|
224
224
|
def username(self) -> Optional[pulumi.Input[str]]:
|
|
225
225
|
"""
|
|
226
|
-
The
|
|
226
|
+
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.
|
|
227
227
|
"""
|
|
228
228
|
return pulumi.get(self, "username")
|
|
229
229
|
|
|
@@ -244,7 +244,7 @@ class PgUser(pulumi.CustomResource):
|
|
|
244
244
|
username: Optional[pulumi.Input[str]] = None,
|
|
245
245
|
__props__=None):
|
|
246
246
|
"""
|
|
247
|
-
|
|
247
|
+
Creates and manages an Aiven for PostgreSQL® service user.
|
|
248
248
|
|
|
249
249
|
## Example Usage
|
|
250
250
|
|
|
@@ -252,26 +252,26 @@ class PgUser(pulumi.CustomResource):
|
|
|
252
252
|
import pulumi
|
|
253
253
|
import pulumi_aiven as aiven
|
|
254
254
|
|
|
255
|
-
|
|
256
|
-
service_name=
|
|
257
|
-
project="
|
|
258
|
-
username="user
|
|
259
|
-
password=
|
|
255
|
+
example_user = aiven.PgUser("example_user",
|
|
256
|
+
service_name=example_postgres["serviceName"],
|
|
257
|
+
project=example_project["project"],
|
|
258
|
+
username="example-service-user",
|
|
259
|
+
password=service_user_password)
|
|
260
260
|
```
|
|
261
261
|
|
|
262
262
|
## Import
|
|
263
263
|
|
|
264
264
|
```sh
|
|
265
|
-
$ pulumi import aiven:index/pgUser:PgUser
|
|
265
|
+
$ pulumi import aiven:index/pgUser:PgUser example_user PROJECT/SERVICE_NAME/USERNAME
|
|
266
266
|
```
|
|
267
267
|
|
|
268
268
|
:param str resource_name: The name of the resource.
|
|
269
269
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
270
|
-
:param pulumi.Input[str] password: The password of the
|
|
271
|
-
:param pulumi.Input[bool] pg_allow_replication:
|
|
270
|
+
:param pulumi.Input[str] password: The password of the service user.
|
|
271
|
+
:param pulumi.Input[bool] pg_allow_replication: Allows replication.
|
|
272
272
|
: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.
|
|
273
273
|
: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.
|
|
274
|
-
:param pulumi.Input[str] username: The
|
|
274
|
+
:param pulumi.Input[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.
|
|
275
275
|
"""
|
|
276
276
|
...
|
|
277
277
|
@overload
|
|
@@ -280,7 +280,7 @@ class PgUser(pulumi.CustomResource):
|
|
|
280
280
|
args: PgUserArgs,
|
|
281
281
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
282
282
|
"""
|
|
283
|
-
|
|
283
|
+
Creates and manages an Aiven for PostgreSQL® service user.
|
|
284
284
|
|
|
285
285
|
## Example Usage
|
|
286
286
|
|
|
@@ -288,17 +288,17 @@ class PgUser(pulumi.CustomResource):
|
|
|
288
288
|
import pulumi
|
|
289
289
|
import pulumi_aiven as aiven
|
|
290
290
|
|
|
291
|
-
|
|
292
|
-
service_name=
|
|
293
|
-
project="
|
|
294
|
-
username="user
|
|
295
|
-
password=
|
|
291
|
+
example_user = aiven.PgUser("example_user",
|
|
292
|
+
service_name=example_postgres["serviceName"],
|
|
293
|
+
project=example_project["project"],
|
|
294
|
+
username="example-service-user",
|
|
295
|
+
password=service_user_password)
|
|
296
296
|
```
|
|
297
297
|
|
|
298
298
|
## Import
|
|
299
299
|
|
|
300
300
|
```sh
|
|
301
|
-
$ pulumi import aiven:index/pgUser:PgUser
|
|
301
|
+
$ pulumi import aiven:index/pgUser:PgUser example_user PROJECT/SERVICE_NAME/USERNAME
|
|
302
302
|
```
|
|
303
303
|
|
|
304
304
|
:param str resource_name: The name of the resource.
|
|
@@ -371,14 +371,14 @@ class PgUser(pulumi.CustomResource):
|
|
|
371
371
|
:param str resource_name: The unique name of the resulting resource.
|
|
372
372
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
373
373
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
374
|
-
:param pulumi.Input[str] access_cert:
|
|
375
|
-
:param pulumi.Input[str] access_key:
|
|
376
|
-
:param pulumi.Input[str] password: The password of the
|
|
377
|
-
:param pulumi.Input[bool] pg_allow_replication:
|
|
374
|
+
:param pulumi.Input[str] access_cert: The access certificate for the servie user.
|
|
375
|
+
:param pulumi.Input[str] access_key: The access certificate key for the service user.
|
|
376
|
+
:param pulumi.Input[str] password: The password of the service user.
|
|
377
|
+
:param pulumi.Input[bool] pg_allow_replication: Allows replication.
|
|
378
378
|
: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.
|
|
379
379
|
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
380
|
-
:param pulumi.Input[str] type:
|
|
381
|
-
:param pulumi.Input[str] username: The
|
|
380
|
+
:param pulumi.Input[str] type: The service user account type, either primary or regular.
|
|
381
|
+
:param pulumi.Input[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.
|
|
382
382
|
"""
|
|
383
383
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
384
384
|
|
|
@@ -398,7 +398,7 @@ class PgUser(pulumi.CustomResource):
|
|
|
398
398
|
@pulumi.getter(name="accessCert")
|
|
399
399
|
def access_cert(self) -> pulumi.Output[str]:
|
|
400
400
|
"""
|
|
401
|
-
|
|
401
|
+
The access certificate for the servie user.
|
|
402
402
|
"""
|
|
403
403
|
return pulumi.get(self, "access_cert")
|
|
404
404
|
|
|
@@ -406,7 +406,7 @@ class PgUser(pulumi.CustomResource):
|
|
|
406
406
|
@pulumi.getter(name="accessKey")
|
|
407
407
|
def access_key(self) -> pulumi.Output[str]:
|
|
408
408
|
"""
|
|
409
|
-
|
|
409
|
+
The access certificate key for the service user.
|
|
410
410
|
"""
|
|
411
411
|
return pulumi.get(self, "access_key")
|
|
412
412
|
|
|
@@ -414,7 +414,7 @@ class PgUser(pulumi.CustomResource):
|
|
|
414
414
|
@pulumi.getter
|
|
415
415
|
def password(self) -> pulumi.Output[str]:
|
|
416
416
|
"""
|
|
417
|
-
The password of the
|
|
417
|
+
The password of the service user.
|
|
418
418
|
"""
|
|
419
419
|
return pulumi.get(self, "password")
|
|
420
420
|
|
|
@@ -422,7 +422,7 @@ class PgUser(pulumi.CustomResource):
|
|
|
422
422
|
@pulumi.getter(name="pgAllowReplication")
|
|
423
423
|
def pg_allow_replication(self) -> pulumi.Output[Optional[bool]]:
|
|
424
424
|
"""
|
|
425
|
-
|
|
425
|
+
Allows replication.
|
|
426
426
|
"""
|
|
427
427
|
return pulumi.get(self, "pg_allow_replication")
|
|
428
428
|
|
|
@@ -446,7 +446,7 @@ class PgUser(pulumi.CustomResource):
|
|
|
446
446
|
@pulumi.getter
|
|
447
447
|
def type(self) -> pulumi.Output[str]:
|
|
448
448
|
"""
|
|
449
|
-
|
|
449
|
+
The service user account type, either primary or regular.
|
|
450
450
|
"""
|
|
451
451
|
return pulumi.get(self, "type")
|
|
452
452
|
|
|
@@ -454,7 +454,7 @@ class PgUser(pulumi.CustomResource):
|
|
|
454
454
|
@pulumi.getter
|
|
455
455
|
def username(self) -> pulumi.Output[str]:
|
|
456
456
|
"""
|
|
457
|
-
The
|
|
457
|
+
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.
|
|
458
458
|
"""
|
|
459
459
|
return pulumi.get(self, "username")
|
|
460
460
|
|