pulumi-aiven 6.41.0a1753242343__py3-none-any.whl → 6.42.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-aiven might be problematic. Click here for more details.
- pulumi_aiven/__init__.py +1 -1
- pulumi_aiven/_inputs.py +10923 -10764
- pulumi_aiven/account.py +89 -90
- pulumi_aiven/account_authentication.py +253 -254
- pulumi_aiven/account_team.py +62 -63
- pulumi_aiven/account_team_member.py +79 -80
- pulumi_aiven/account_team_project.py +69 -70
- pulumi_aiven/alloydbomni.py +319 -320
- pulumi_aiven/alloydbomni_database.py +86 -87
- pulumi_aiven/alloydbomni_user.py +113 -114
- pulumi_aiven/aws_org_vpc_peering_connection.py +113 -114
- pulumi_aiven/aws_privatelink.py +70 -71
- pulumi_aiven/aws_vpc_peering_connection.py +96 -97
- pulumi_aiven/azure_org_vpc_peering_connection.py +138 -139
- pulumi_aiven/azure_privatelink.py +88 -89
- pulumi_aiven/azure_privatelink_connection_approval.py +70 -71
- pulumi_aiven/azure_vpc_peering_connection.py +130 -131
- pulumi_aiven/billing_group.py +256 -257
- pulumi_aiven/cassandra.py +302 -303
- pulumi_aiven/cassandra_user.py +96 -97
- pulumi_aiven/clickhouse.py +302 -303
- pulumi_aiven/clickhouse_database.py +65 -66
- pulumi_aiven/clickhouse_grant.py +75 -76
- pulumi_aiven/clickhouse_role.py +52 -53
- pulumi_aiven/clickhouse_user.py +79 -80
- pulumi_aiven/config/__init__.py +1 -1
- pulumi_aiven/config/__init__.pyi +1 -2
- pulumi_aiven/config/vars.py +2 -3
- pulumi_aiven/connection_pool.py +129 -130
- pulumi_aiven/dragonfly.py +302 -303
- pulumi_aiven/flink.py +302 -303
- pulumi_aiven/flink_application.py +97 -98
- pulumi_aiven/flink_application_deployment.py +138 -139
- pulumi_aiven/flink_application_version.py +117 -118
- pulumi_aiven/flink_jar_application.py +101 -102
- pulumi_aiven/flink_jar_application_deployment.py +217 -218
- pulumi_aiven/flink_jar_application_version.py +116 -117
- pulumi_aiven/gcp_org_vpc_peering_connection.py +87 -88
- pulumi_aiven/gcp_privatelink.py +62 -63
- pulumi_aiven/gcp_privatelink_connection_approval.py +79 -80
- pulumi_aiven/gcp_vpc_peering_connection.py +79 -80
- pulumi_aiven/get_account.py +23 -24
- pulumi_aiven/get_account_authentication.py +46 -47
- pulumi_aiven/get_account_team.py +21 -22
- pulumi_aiven/get_account_team_member.py +27 -28
- pulumi_aiven/get_account_team_project.py +23 -24
- pulumi_aiven/get_alloydbomni.py +63 -64
- pulumi_aiven/get_alloydbomni_database.py +25 -26
- pulumi_aiven/get_alloydbomni_user.py +31 -32
- pulumi_aiven/get_aws_org_vpc_peering_connection.py +39 -40
- pulumi_aiven/get_aws_privatelink.py +21 -22
- pulumi_aiven/get_aws_vpc_peering_connection.py +33 -34
- pulumi_aiven/get_azure_org_vpc_peering_connection.py +41 -42
- pulumi_aiven/get_azure_privatelink.py +25 -26
- pulumi_aiven/get_azure_vpc_peering_connection.py +45 -46
- pulumi_aiven/get_billing_group.py +39 -40
- pulumi_aiven/get_cassanda.py +61 -62
- pulumi_aiven/get_cassandra.py +61 -62
- pulumi_aiven/get_cassandra_user.py +29 -30
- pulumi_aiven/get_clickhouse.py +61 -62
- pulumi_aiven/get_clickhouse_database.py +23 -24
- pulumi_aiven/get_clickhouse_user.py +27 -28
- pulumi_aiven/get_connection_pool.py +31 -32
- pulumi_aiven/get_dragonfly.py +61 -62
- pulumi_aiven/get_external_identity.py +27 -28
- pulumi_aiven/get_flink.py +61 -62
- pulumi_aiven/get_flink_application.py +31 -32
- pulumi_aiven/get_flink_application_version.py +39 -40
- pulumi_aiven/get_gcp_org_vpc_peering_connection.py +31 -32
- pulumi_aiven/get_gcp_privatelink.py +21 -22
- pulumi_aiven/get_gcp_vpc_peering_connection.py +27 -28
- pulumi_aiven/get_grafana.py +61 -62
- pulumi_aiven/get_influx_db.py +57 -58
- pulumi_aiven/get_influxdb_database.py +17 -18
- pulumi_aiven/get_influxdb_user.py +23 -24
- pulumi_aiven/get_kafka.py +65 -66
- pulumi_aiven/get_kafka_acl.py +35 -36
- pulumi_aiven/get_kafka_connect.py +60 -61
- pulumi_aiven/get_kafka_connector.py +36 -37
- pulumi_aiven/get_kafka_mirror_maker.py +60 -61
- pulumi_aiven/get_kafka_schema.py +29 -30
- pulumi_aiven/get_kafka_schema_configuration.py +25 -26
- pulumi_aiven/get_kafka_schema_registry_acl.py +35 -36
- pulumi_aiven/get_kafka_topic.py +33 -34
- pulumi_aiven/get_kafka_user.py +29 -30
- pulumi_aiven/get_m3_aggregator.py +61 -62
- pulumi_aiven/get_m3_db.py +61 -62
- pulumi_aiven/get_m3db_user.py +25 -26
- pulumi_aiven/get_mirror_maker_replication_flow.py +51 -52
- pulumi_aiven/get_my_sql.py +61 -62
- pulumi_aiven/get_mysql_database.py +23 -24
- pulumi_aiven/get_mysql_user.py +31 -32
- pulumi_aiven/get_open_search.py +61 -62
- pulumi_aiven/get_open_search_acl_config.py +19 -20
- pulumi_aiven/get_open_search_acl_rule.py +33 -34
- pulumi_aiven/get_opensearch_security_plugin_config.py +23 -24
- pulumi_aiven/get_opensearch_user.py +25 -26
- pulumi_aiven/get_organization.py +20 -21
- pulumi_aiven/get_organization_address.py +32 -33
- pulumi_aiven/get_organization_application_user.py +21 -22
- pulumi_aiven/get_organization_billing_group.py +34 -35
- pulumi_aiven/get_organization_billing_group_list.py +11 -12
- pulumi_aiven/get_organization_project.py +27 -28
- pulumi_aiven/get_organization_user.py +23 -24
- pulumi_aiven/get_organization_user_group.py +23 -24
- pulumi_aiven/get_organization_user_list.py +14 -15
- pulumi_aiven/get_organization_vpc.py +25 -26
- pulumi_aiven/get_organizational_unit.py +17 -18
- pulumi_aiven/get_pg.py +61 -62
- pulumi_aiven/get_pg_database.py +27 -28
- pulumi_aiven/get_pg_user.py +31 -32
- pulumi_aiven/get_project.py +34 -35
- pulumi_aiven/get_project_user.py +19 -20
- pulumi_aiven/get_project_vpc.py +25 -26
- pulumi_aiven/get_redis.py +61 -62
- pulumi_aiven/get_redis_user.py +33 -34
- pulumi_aiven/get_service_component.py +51 -52
- pulumi_aiven/get_service_integration.py +52 -53
- pulumi_aiven/get_service_integration_endpoint.py +38 -39
- pulumi_aiven/get_thanos.py +61 -62
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +31 -32
- pulumi_aiven/get_valkey.py +61 -62
- pulumi_aiven/get_valkey_user.py +33 -34
- pulumi_aiven/governance_access.py +84 -85
- pulumi_aiven/grafana.py +302 -303
- pulumi_aiven/influx_db.py +302 -303
- pulumi_aiven/influxdb_database.py +65 -66
- pulumi_aiven/influxdb_user.py +96 -97
- pulumi_aiven/kafka.py +336 -337
- pulumi_aiven/kafka_acl.py +95 -96
- pulumi_aiven/kafka_connect.py +299 -300
- pulumi_aiven/kafka_connector.py +125 -126
- pulumi_aiven/kafka_mirror_maker.py +299 -300
- pulumi_aiven/kafka_native_acl.py +154 -155
- pulumi_aiven/kafka_quota.py +120 -121
- pulumi_aiven/kafka_schema.py +112 -113
- pulumi_aiven/kafka_schema_configuration.py +52 -53
- pulumi_aiven/kafka_schema_registry_acl.py +95 -96
- pulumi_aiven/kafka_topic.py +139 -140
- pulumi_aiven/kafka_user.py +96 -97
- pulumi_aiven/m3_aggregator.py +311 -303
- pulumi_aiven/m3_db.py +311 -303
- pulumi_aiven/m3db_user.py +78 -79
- pulumi_aiven/mirror_maker_replication_flow.py +273 -274
- pulumi_aiven/my_sql.py +302 -303
- pulumi_aiven/mysql_database.py +65 -66
- pulumi_aiven/mysql_user.py +113 -114
- pulumi_aiven/open_search.py +302 -303
- pulumi_aiven/open_search_acl_config.py +69 -70
- pulumi_aiven/open_search_acl_rule.py +86 -87
- pulumi_aiven/opensearch_security_plugin_config.py +79 -80
- pulumi_aiven/opensearch_user.py +78 -79
- pulumi_aiven/organization.py +48 -49
- pulumi_aiven/organization_address.py +150 -151
- pulumi_aiven/organization_application_user.py +70 -71
- pulumi_aiven/organization_application_user_token.py +210 -211
- pulumi_aiven/organization_billing_group.py +183 -184
- pulumi_aiven/organization_group_project.py +55 -56
- pulumi_aiven/organization_permission.py +55 -56
- pulumi_aiven/organization_project.py +118 -119
- pulumi_aiven/organization_user.py +71 -72
- pulumi_aiven/organization_user_group.py +79 -80
- pulumi_aiven/organization_user_group_member.py +64 -65
- pulumi_aiven/organization_vpc.py +88 -89
- pulumi_aiven/organizational_unit.py +62 -63
- pulumi_aiven/outputs.py +14499 -14292
- pulumi_aiven/pg.py +302 -303
- pulumi_aiven/pg_database.py +99 -100
- pulumi_aiven/pg_user.py +113 -114
- pulumi_aiven/project.py +193 -194
- pulumi_aiven/project_user.py +61 -62
- pulumi_aiven/project_vpc.py +61 -62
- pulumi_aiven/provider.py +12 -13
- pulumi_aiven/pulumi-plugin.json +1 -1
- pulumi_aiven/redis.py +302 -303
- pulumi_aiven/redis_user.py +146 -147
- pulumi_aiven/service_integration.py +191 -192
- pulumi_aiven/service_integration_endpoint.py +118 -119
- pulumi_aiven/static_ip.py +71 -72
- pulumi_aiven/thanos.py +302 -303
- pulumi_aiven/transit_gateway_vpc_attachment.py +113 -114
- pulumi_aiven/valkey.py +302 -303
- pulumi_aiven/valkey_user.py +146 -147
- {pulumi_aiven-6.41.0a1753242343.dist-info → pulumi_aiven-6.42.0.dist-info}/METADATA +1 -1
- pulumi_aiven-6.42.0.dist-info/RECORD +189 -0
- pulumi_aiven-6.41.0a1753242343.dist-info/RECORD +0 -189
- {pulumi_aiven-6.41.0a1753242343.dist-info → pulumi_aiven-6.42.0.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.41.0a1753242343.dist-info → pulumi_aiven-6.42.0.dist-info}/top_level.txt +0 -0
pulumi_aiven/pg.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -22,40 +21,40 @@ __all__ = ['PgArgs', 'Pg']
|
|
|
22
21
|
@pulumi.input_type
|
|
23
22
|
class PgArgs:
|
|
24
23
|
def __init__(__self__, *,
|
|
25
|
-
plan: pulumi.Input[
|
|
26
|
-
project: pulumi.Input[
|
|
27
|
-
additional_disk_space: Optional[pulumi.Input[
|
|
28
|
-
cloud_name: Optional[pulumi.Input[
|
|
29
|
-
disk_space: Optional[pulumi.Input[
|
|
30
|
-
maintenance_window_dow: Optional[pulumi.Input[
|
|
31
|
-
maintenance_window_time: Optional[pulumi.Input[
|
|
24
|
+
plan: pulumi.Input[_builtins.str],
|
|
25
|
+
project: pulumi.Input[_builtins.str],
|
|
26
|
+
additional_disk_space: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
+
cloud_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
28
|
+
disk_space: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
+
maintenance_window_dow: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
maintenance_window_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
31
|
pg: Optional[pulumi.Input['PgPgArgs']] = None,
|
|
33
32
|
pg_user_config: Optional[pulumi.Input['PgPgUserConfigArgs']] = None,
|
|
34
|
-
project_vpc_id: Optional[pulumi.Input[
|
|
33
|
+
project_vpc_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
35
34
|
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input['PgServiceIntegrationArgs']]]] = None,
|
|
36
|
-
service_name: Optional[pulumi.Input[
|
|
37
|
-
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
35
|
+
service_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
36
|
+
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
38
37
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input['PgTagArgs']]]] = None,
|
|
39
38
|
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input['PgTechEmailArgs']]]] = None,
|
|
40
|
-
termination_protection: Optional[pulumi.Input[
|
|
39
|
+
termination_protection: Optional[pulumi.Input[_builtins.bool]] = None):
|
|
41
40
|
"""
|
|
42
41
|
The set of arguments for constructing a Pg resource.
|
|
43
|
-
:param pulumi.Input[
|
|
44
|
-
:param pulumi.Input[
|
|
45
|
-
:param pulumi.Input[
|
|
46
|
-
:param pulumi.Input[
|
|
47
|
-
:param pulumi.Input[
|
|
48
|
-
:param pulumi.Input[
|
|
49
|
-
:param pulumi.Input[
|
|
42
|
+
:param pulumi.Input[_builtins.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 seen from the [Aiven pricing page](https://aiven.io/pricing).
|
|
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
|
+
: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
|
+
: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.
|
|
47
|
+
:param pulumi.Input[_builtins.str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
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.
|
|
50
49
|
:param pulumi.Input['PgPgArgs'] pg: Values provided by the PostgreSQL server.
|
|
51
50
|
: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
|
|
52
|
-
:param pulumi.Input[
|
|
51
|
+
:param pulumi.Input[_builtins.str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set, the service runs on the Public Internet. 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. The service can be freely moved to and from VPC after creation, but doing so triggers migration to new servers, so the operation can take a significant amount of time to complete if the service has a lot of data.
|
|
53
52
|
:param pulumi.Input[Sequence[pulumi.Input['PgServiceIntegrationArgs']]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
54
|
-
:param pulumi.Input[
|
|
55
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
53
|
+
:param pulumi.Input[_builtins.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.
|
|
54
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.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
|
|
56
55
|
:param pulumi.Input[Sequence[pulumi.Input['PgTagArgs']]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
57
56
|
:param pulumi.Input[Sequence[pulumi.Input['PgTechEmailArgs']]] 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.
|
|
58
|
-
:param pulumi.Input[
|
|
57
|
+
:param pulumi.Input[_builtins.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.
|
|
59
58
|
"""
|
|
60
59
|
pulumi.set(__self__, "plan", plan)
|
|
61
60
|
pulumi.set(__self__, "project", project)
|
|
@@ -91,92 +90,92 @@ class PgArgs:
|
|
|
91
90
|
if termination_protection is not None:
|
|
92
91
|
pulumi.set(__self__, "termination_protection", termination_protection)
|
|
93
92
|
|
|
94
|
-
@property
|
|
93
|
+
@_builtins.property
|
|
95
94
|
@pulumi.getter
|
|
96
|
-
def plan(self) -> pulumi.Input[
|
|
95
|
+
def plan(self) -> pulumi.Input[_builtins.str]:
|
|
97
96
|
"""
|
|
98
97
|
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seen from the [Aiven pricing page](https://aiven.io/pricing).
|
|
99
98
|
"""
|
|
100
99
|
return pulumi.get(self, "plan")
|
|
101
100
|
|
|
102
101
|
@plan.setter
|
|
103
|
-
def plan(self, value: pulumi.Input[
|
|
102
|
+
def plan(self, value: pulumi.Input[_builtins.str]):
|
|
104
103
|
pulumi.set(self, "plan", value)
|
|
105
104
|
|
|
106
|
-
@property
|
|
105
|
+
@_builtins.property
|
|
107
106
|
@pulumi.getter
|
|
108
|
-
def project(self) -> pulumi.Input[
|
|
107
|
+
def project(self) -> pulumi.Input[_builtins.str]:
|
|
109
108
|
"""
|
|
110
109
|
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.
|
|
111
110
|
"""
|
|
112
111
|
return pulumi.get(self, "project")
|
|
113
112
|
|
|
114
113
|
@project.setter
|
|
115
|
-
def project(self, value: pulumi.Input[
|
|
114
|
+
def project(self, value: pulumi.Input[_builtins.str]):
|
|
116
115
|
pulumi.set(self, "project", value)
|
|
117
116
|
|
|
118
|
-
@property
|
|
117
|
+
@_builtins.property
|
|
119
118
|
@pulumi.getter(name="additionalDiskSpace")
|
|
120
|
-
def additional_disk_space(self) -> Optional[pulumi.Input[
|
|
119
|
+
def additional_disk_space(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
121
120
|
"""
|
|
122
121
|
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.
|
|
123
122
|
"""
|
|
124
123
|
return pulumi.get(self, "additional_disk_space")
|
|
125
124
|
|
|
126
125
|
@additional_disk_space.setter
|
|
127
|
-
def additional_disk_space(self, value: Optional[pulumi.Input[
|
|
126
|
+
def additional_disk_space(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
128
127
|
pulumi.set(self, "additional_disk_space", value)
|
|
129
128
|
|
|
130
|
-
@property
|
|
129
|
+
@_builtins.property
|
|
131
130
|
@pulumi.getter(name="cloudName")
|
|
132
|
-
def cloud_name(self) -> Optional[pulumi.Input[
|
|
131
|
+
def cloud_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
133
132
|
"""
|
|
134
133
|
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.
|
|
135
134
|
"""
|
|
136
135
|
return pulumi.get(self, "cloud_name")
|
|
137
136
|
|
|
138
137
|
@cloud_name.setter
|
|
139
|
-
def cloud_name(self, value: Optional[pulumi.Input[
|
|
138
|
+
def cloud_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
140
139
|
pulumi.set(self, "cloud_name", value)
|
|
141
140
|
|
|
142
|
-
@property
|
|
141
|
+
@_builtins.property
|
|
143
142
|
@pulumi.getter(name="diskSpace")
|
|
144
143
|
@_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.""")
|
|
145
|
-
def disk_space(self) -> Optional[pulumi.Input[
|
|
144
|
+
def disk_space(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
146
145
|
"""
|
|
147
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.
|
|
148
147
|
"""
|
|
149
148
|
return pulumi.get(self, "disk_space")
|
|
150
149
|
|
|
151
150
|
@disk_space.setter
|
|
152
|
-
def disk_space(self, value: Optional[pulumi.Input[
|
|
151
|
+
def disk_space(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
153
152
|
pulumi.set(self, "disk_space", value)
|
|
154
153
|
|
|
155
|
-
@property
|
|
154
|
+
@_builtins.property
|
|
156
155
|
@pulumi.getter(name="maintenanceWindowDow")
|
|
157
|
-
def maintenance_window_dow(self) -> Optional[pulumi.Input[
|
|
156
|
+
def maintenance_window_dow(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
158
157
|
"""
|
|
159
158
|
Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
160
159
|
"""
|
|
161
160
|
return pulumi.get(self, "maintenance_window_dow")
|
|
162
161
|
|
|
163
162
|
@maintenance_window_dow.setter
|
|
164
|
-
def maintenance_window_dow(self, value: Optional[pulumi.Input[
|
|
163
|
+
def maintenance_window_dow(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
165
164
|
pulumi.set(self, "maintenance_window_dow", value)
|
|
166
165
|
|
|
167
|
-
@property
|
|
166
|
+
@_builtins.property
|
|
168
167
|
@pulumi.getter(name="maintenanceWindowTime")
|
|
169
|
-
def maintenance_window_time(self) -> Optional[pulumi.Input[
|
|
168
|
+
def maintenance_window_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
170
169
|
"""
|
|
171
170
|
Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
172
171
|
"""
|
|
173
172
|
return pulumi.get(self, "maintenance_window_time")
|
|
174
173
|
|
|
175
174
|
@maintenance_window_time.setter
|
|
176
|
-
def maintenance_window_time(self, value: Optional[pulumi.Input[
|
|
175
|
+
def maintenance_window_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
177
176
|
pulumi.set(self, "maintenance_window_time", value)
|
|
178
177
|
|
|
179
|
-
@property
|
|
178
|
+
@_builtins.property
|
|
180
179
|
@pulumi.getter
|
|
181
180
|
def pg(self) -> Optional[pulumi.Input['PgPgArgs']]:
|
|
182
181
|
"""
|
|
@@ -188,7 +187,7 @@ class PgArgs:
|
|
|
188
187
|
def pg(self, value: Optional[pulumi.Input['PgPgArgs']]):
|
|
189
188
|
pulumi.set(self, "pg", value)
|
|
190
189
|
|
|
191
|
-
@property
|
|
190
|
+
@_builtins.property
|
|
192
191
|
@pulumi.getter(name="pgUserConfig")
|
|
193
192
|
def pg_user_config(self) -> Optional[pulumi.Input['PgPgUserConfigArgs']]:
|
|
194
193
|
"""
|
|
@@ -200,19 +199,19 @@ class PgArgs:
|
|
|
200
199
|
def pg_user_config(self, value: Optional[pulumi.Input['PgPgUserConfigArgs']]):
|
|
201
200
|
pulumi.set(self, "pg_user_config", value)
|
|
202
201
|
|
|
203
|
-
@property
|
|
202
|
+
@_builtins.property
|
|
204
203
|
@pulumi.getter(name="projectVpcId")
|
|
205
|
-
def project_vpc_id(self) -> Optional[pulumi.Input[
|
|
204
|
+
def project_vpc_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
206
205
|
"""
|
|
207
206
|
Specifies the VPC the service should run in. If the value is not set, the service runs on the Public Internet. 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. The service can be freely moved to and from VPC after creation, but doing so triggers migration to new servers, so the operation can take a significant amount of time to complete if the service has a lot of data.
|
|
208
207
|
"""
|
|
209
208
|
return pulumi.get(self, "project_vpc_id")
|
|
210
209
|
|
|
211
210
|
@project_vpc_id.setter
|
|
212
|
-
def project_vpc_id(self, value: Optional[pulumi.Input[
|
|
211
|
+
def project_vpc_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
213
212
|
pulumi.set(self, "project_vpc_id", value)
|
|
214
213
|
|
|
215
|
-
@property
|
|
214
|
+
@_builtins.property
|
|
216
215
|
@pulumi.getter(name="serviceIntegrations")
|
|
217
216
|
def service_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PgServiceIntegrationArgs']]]]:
|
|
218
217
|
"""
|
|
@@ -224,31 +223,31 @@ class PgArgs:
|
|
|
224
223
|
def service_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PgServiceIntegrationArgs']]]]):
|
|
225
224
|
pulumi.set(self, "service_integrations", value)
|
|
226
225
|
|
|
227
|
-
@property
|
|
226
|
+
@_builtins.property
|
|
228
227
|
@pulumi.getter(name="serviceName")
|
|
229
|
-
def service_name(self) -> Optional[pulumi.Input[
|
|
228
|
+
def service_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
230
229
|
"""
|
|
231
230
|
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.
|
|
232
231
|
"""
|
|
233
232
|
return pulumi.get(self, "service_name")
|
|
234
233
|
|
|
235
234
|
@service_name.setter
|
|
236
|
-
def service_name(self, value: Optional[pulumi.Input[
|
|
235
|
+
def service_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
237
236
|
pulumi.set(self, "service_name", value)
|
|
238
237
|
|
|
239
|
-
@property
|
|
238
|
+
@_builtins.property
|
|
240
239
|
@pulumi.getter(name="staticIps")
|
|
241
|
-
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
240
|
+
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
242
241
|
"""
|
|
243
242
|
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
|
|
244
243
|
"""
|
|
245
244
|
return pulumi.get(self, "static_ips")
|
|
246
245
|
|
|
247
246
|
@static_ips.setter
|
|
248
|
-
def static_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
247
|
+
def static_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
249
248
|
pulumi.set(self, "static_ips", value)
|
|
250
249
|
|
|
251
|
-
@property
|
|
250
|
+
@_builtins.property
|
|
252
251
|
@pulumi.getter
|
|
253
252
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PgTagArgs']]]]:
|
|
254
253
|
"""
|
|
@@ -260,7 +259,7 @@ class PgArgs:
|
|
|
260
259
|
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PgTagArgs']]]]):
|
|
261
260
|
pulumi.set(self, "tags", value)
|
|
262
261
|
|
|
263
|
-
@property
|
|
262
|
+
@_builtins.property
|
|
264
263
|
@pulumi.getter(name="techEmails")
|
|
265
264
|
def tech_emails(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PgTechEmailArgs']]]]:
|
|
266
265
|
"""
|
|
@@ -272,79 +271,79 @@ class PgArgs:
|
|
|
272
271
|
def tech_emails(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PgTechEmailArgs']]]]):
|
|
273
272
|
pulumi.set(self, "tech_emails", value)
|
|
274
273
|
|
|
275
|
-
@property
|
|
274
|
+
@_builtins.property
|
|
276
275
|
@pulumi.getter(name="terminationProtection")
|
|
277
|
-
def termination_protection(self) -> Optional[pulumi.Input[
|
|
276
|
+
def termination_protection(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
278
277
|
"""
|
|
279
278
|
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.
|
|
280
279
|
"""
|
|
281
280
|
return pulumi.get(self, "termination_protection")
|
|
282
281
|
|
|
283
282
|
@termination_protection.setter
|
|
284
|
-
def termination_protection(self, value: Optional[pulumi.Input[
|
|
283
|
+
def termination_protection(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
285
284
|
pulumi.set(self, "termination_protection", value)
|
|
286
285
|
|
|
287
286
|
|
|
288
287
|
@pulumi.input_type
|
|
289
288
|
class _PgState:
|
|
290
289
|
def __init__(__self__, *,
|
|
291
|
-
additional_disk_space: Optional[pulumi.Input[
|
|
292
|
-
cloud_name: Optional[pulumi.Input[
|
|
290
|
+
additional_disk_space: Optional[pulumi.Input[_builtins.str]] = None,
|
|
291
|
+
cloud_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
293
292
|
components: Optional[pulumi.Input[Sequence[pulumi.Input['PgComponentArgs']]]] = None,
|
|
294
|
-
disk_space: Optional[pulumi.Input[
|
|
295
|
-
disk_space_cap: Optional[pulumi.Input[
|
|
296
|
-
disk_space_default: Optional[pulumi.Input[
|
|
297
|
-
disk_space_step: Optional[pulumi.Input[
|
|
298
|
-
disk_space_used: Optional[pulumi.Input[
|
|
299
|
-
maintenance_window_dow: Optional[pulumi.Input[
|
|
300
|
-
maintenance_window_time: Optional[pulumi.Input[
|
|
293
|
+
disk_space: Optional[pulumi.Input[_builtins.str]] = None,
|
|
294
|
+
disk_space_cap: Optional[pulumi.Input[_builtins.str]] = None,
|
|
295
|
+
disk_space_default: Optional[pulumi.Input[_builtins.str]] = None,
|
|
296
|
+
disk_space_step: Optional[pulumi.Input[_builtins.str]] = None,
|
|
297
|
+
disk_space_used: Optional[pulumi.Input[_builtins.str]] = None,
|
|
298
|
+
maintenance_window_dow: Optional[pulumi.Input[_builtins.str]] = None,
|
|
299
|
+
maintenance_window_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
301
300
|
pg: Optional[pulumi.Input['PgPgArgs']] = None,
|
|
302
301
|
pg_user_config: Optional[pulumi.Input['PgPgUserConfigArgs']] = None,
|
|
303
|
-
plan: Optional[pulumi.Input[
|
|
304
|
-
project: Optional[pulumi.Input[
|
|
305
|
-
project_vpc_id: Optional[pulumi.Input[
|
|
306
|
-
service_host: Optional[pulumi.Input[
|
|
302
|
+
plan: Optional[pulumi.Input[_builtins.str]] = None,
|
|
303
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
|
304
|
+
project_vpc_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
305
|
+
service_host: Optional[pulumi.Input[_builtins.str]] = None,
|
|
307
306
|
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input['PgServiceIntegrationArgs']]]] = None,
|
|
308
|
-
service_name: Optional[pulumi.Input[
|
|
309
|
-
service_password: Optional[pulumi.Input[
|
|
310
|
-
service_port: Optional[pulumi.Input[
|
|
311
|
-
service_type: Optional[pulumi.Input[
|
|
312
|
-
service_uri: Optional[pulumi.Input[
|
|
313
|
-
service_username: Optional[pulumi.Input[
|
|
314
|
-
state: Optional[pulumi.Input[
|
|
315
|
-
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
307
|
+
service_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
308
|
+
service_password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
309
|
+
service_port: Optional[pulumi.Input[_builtins.int]] = None,
|
|
310
|
+
service_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
311
|
+
service_uri: Optional[pulumi.Input[_builtins.str]] = None,
|
|
312
|
+
service_username: Optional[pulumi.Input[_builtins.str]] = None,
|
|
313
|
+
state: Optional[pulumi.Input[_builtins.str]] = None,
|
|
314
|
+
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
316
315
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input['PgTagArgs']]]] = None,
|
|
317
316
|
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input['PgTechEmailArgs']]]] = None,
|
|
318
|
-
termination_protection: Optional[pulumi.Input[
|
|
317
|
+
termination_protection: Optional[pulumi.Input[_builtins.bool]] = None):
|
|
319
318
|
"""
|
|
320
319
|
Input properties used for looking up and filtering Pg resources.
|
|
321
|
-
:param pulumi.Input[
|
|
322
|
-
:param pulumi.Input[
|
|
320
|
+
: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
|
+
: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.
|
|
323
322
|
:param pulumi.Input[Sequence[pulumi.Input['PgComponentArgs']]] components: Service component information objects
|
|
324
|
-
:param pulumi.Input[
|
|
325
|
-
:param pulumi.Input[
|
|
326
|
-
:param pulumi.Input[
|
|
327
|
-
:param pulumi.Input[
|
|
328
|
-
:param pulumi.Input[
|
|
329
|
-
:param pulumi.Input[
|
|
330
|
-
:param pulumi.Input[
|
|
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_cap: The maximum disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
325
|
+
: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
|
+
: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: Disk space that service is currently using
|
|
328
|
+
:param pulumi.Input[_builtins.str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
329
|
+
:param pulumi.Input[_builtins.str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
331
330
|
:param pulumi.Input['PgPgArgs'] pg: Values provided by the PostgreSQL server.
|
|
332
331
|
: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
|
|
333
|
-
:param pulumi.Input[
|
|
334
|
-
:param pulumi.Input[
|
|
335
|
-
:param pulumi.Input[
|
|
336
|
-
:param pulumi.Input[
|
|
332
|
+
:param pulumi.Input[_builtins.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 seen from the [Aiven pricing page](https://aiven.io/pricing).
|
|
333
|
+
: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.
|
|
334
|
+
:param pulumi.Input[_builtins.str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set, the service runs on the Public Internet. 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. The service can be freely moved to and from VPC after creation, but doing so triggers migration to new servers, so the operation can take a significant amount of time to complete if the service has a lot of data.
|
|
335
|
+
:param pulumi.Input[_builtins.str] service_host: The hostname of the service.
|
|
337
336
|
:param pulumi.Input[Sequence[pulumi.Input['PgServiceIntegrationArgs']]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
338
|
-
:param pulumi.Input[
|
|
339
|
-
:param pulumi.Input[
|
|
340
|
-
:param pulumi.Input[
|
|
341
|
-
:param pulumi.Input[
|
|
342
|
-
:param pulumi.Input[
|
|
343
|
-
:param pulumi.Input[
|
|
344
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
337
|
+
:param pulumi.Input[_builtins.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.
|
|
338
|
+
:param pulumi.Input[_builtins.str] service_password: Password used for connecting to the service, if applicable
|
|
339
|
+
:param pulumi.Input[_builtins.int] service_port: The port of the service
|
|
340
|
+
:param pulumi.Input[_builtins.str] service_type: Aiven internal service type code
|
|
341
|
+
:param pulumi.Input[_builtins.str] service_uri: URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
342
|
+
:param pulumi.Input[_builtins.str] service_username: Username used for connecting to the service, if applicable
|
|
343
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.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
|
|
345
344
|
:param pulumi.Input[Sequence[pulumi.Input['PgTagArgs']]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
346
345
|
:param pulumi.Input[Sequence[pulumi.Input['PgTechEmailArgs']]] 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.
|
|
347
|
-
:param pulumi.Input[
|
|
346
|
+
:param pulumi.Input[_builtins.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.
|
|
348
347
|
"""
|
|
349
348
|
if additional_disk_space is not None:
|
|
350
349
|
pulumi.set(__self__, "additional_disk_space", additional_disk_space)
|
|
@@ -409,31 +408,31 @@ class _PgState:
|
|
|
409
408
|
if termination_protection is not None:
|
|
410
409
|
pulumi.set(__self__, "termination_protection", termination_protection)
|
|
411
410
|
|
|
412
|
-
@property
|
|
411
|
+
@_builtins.property
|
|
413
412
|
@pulumi.getter(name="additionalDiskSpace")
|
|
414
|
-
def additional_disk_space(self) -> Optional[pulumi.Input[
|
|
413
|
+
def additional_disk_space(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
415
414
|
"""
|
|
416
415
|
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.
|
|
417
416
|
"""
|
|
418
417
|
return pulumi.get(self, "additional_disk_space")
|
|
419
418
|
|
|
420
419
|
@additional_disk_space.setter
|
|
421
|
-
def additional_disk_space(self, value: Optional[pulumi.Input[
|
|
420
|
+
def additional_disk_space(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
422
421
|
pulumi.set(self, "additional_disk_space", value)
|
|
423
422
|
|
|
424
|
-
@property
|
|
423
|
+
@_builtins.property
|
|
425
424
|
@pulumi.getter(name="cloudName")
|
|
426
|
-
def cloud_name(self) -> Optional[pulumi.Input[
|
|
425
|
+
def cloud_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
427
426
|
"""
|
|
428
427
|
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.
|
|
429
428
|
"""
|
|
430
429
|
return pulumi.get(self, "cloud_name")
|
|
431
430
|
|
|
432
431
|
@cloud_name.setter
|
|
433
|
-
def cloud_name(self, value: Optional[pulumi.Input[
|
|
432
|
+
def cloud_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
434
433
|
pulumi.set(self, "cloud_name", value)
|
|
435
434
|
|
|
436
|
-
@property
|
|
435
|
+
@_builtins.property
|
|
437
436
|
@pulumi.getter
|
|
438
437
|
def components(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PgComponentArgs']]]]:
|
|
439
438
|
"""
|
|
@@ -445,93 +444,93 @@ class _PgState:
|
|
|
445
444
|
def components(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PgComponentArgs']]]]):
|
|
446
445
|
pulumi.set(self, "components", value)
|
|
447
446
|
|
|
448
|
-
@property
|
|
447
|
+
@_builtins.property
|
|
449
448
|
@pulumi.getter(name="diskSpace")
|
|
450
449
|
@_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.""")
|
|
451
|
-
def disk_space(self) -> Optional[pulumi.Input[
|
|
450
|
+
def disk_space(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
452
451
|
"""
|
|
453
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.
|
|
454
453
|
"""
|
|
455
454
|
return pulumi.get(self, "disk_space")
|
|
456
455
|
|
|
457
456
|
@disk_space.setter
|
|
458
|
-
def disk_space(self, value: Optional[pulumi.Input[
|
|
457
|
+
def disk_space(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
459
458
|
pulumi.set(self, "disk_space", value)
|
|
460
459
|
|
|
461
|
-
@property
|
|
460
|
+
@_builtins.property
|
|
462
461
|
@pulumi.getter(name="diskSpaceCap")
|
|
463
|
-
def disk_space_cap(self) -> Optional[pulumi.Input[
|
|
462
|
+
def disk_space_cap(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
464
463
|
"""
|
|
465
464
|
The maximum disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
466
465
|
"""
|
|
467
466
|
return pulumi.get(self, "disk_space_cap")
|
|
468
467
|
|
|
469
468
|
@disk_space_cap.setter
|
|
470
|
-
def disk_space_cap(self, value: Optional[pulumi.Input[
|
|
469
|
+
def disk_space_cap(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
471
470
|
pulumi.set(self, "disk_space_cap", value)
|
|
472
471
|
|
|
473
|
-
@property
|
|
472
|
+
@_builtins.property
|
|
474
473
|
@pulumi.getter(name="diskSpaceDefault")
|
|
475
|
-
def disk_space_default(self) -> Optional[pulumi.Input[
|
|
474
|
+
def disk_space_default(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
476
475
|
"""
|
|
477
476
|
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`
|
|
478
477
|
"""
|
|
479
478
|
return pulumi.get(self, "disk_space_default")
|
|
480
479
|
|
|
481
480
|
@disk_space_default.setter
|
|
482
|
-
def disk_space_default(self, value: Optional[pulumi.Input[
|
|
481
|
+
def disk_space_default(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
483
482
|
pulumi.set(self, "disk_space_default", value)
|
|
484
483
|
|
|
485
|
-
@property
|
|
484
|
+
@_builtins.property
|
|
486
485
|
@pulumi.getter(name="diskSpaceStep")
|
|
487
|
-
def disk_space_step(self) -> Optional[pulumi.Input[
|
|
486
|
+
def disk_space_step(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
488
487
|
"""
|
|
489
488
|
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.
|
|
490
489
|
"""
|
|
491
490
|
return pulumi.get(self, "disk_space_step")
|
|
492
491
|
|
|
493
492
|
@disk_space_step.setter
|
|
494
|
-
def disk_space_step(self, value: Optional[pulumi.Input[
|
|
493
|
+
def disk_space_step(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
495
494
|
pulumi.set(self, "disk_space_step", value)
|
|
496
495
|
|
|
497
|
-
@property
|
|
496
|
+
@_builtins.property
|
|
498
497
|
@pulumi.getter(name="diskSpaceUsed")
|
|
499
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.""")
|
|
500
|
-
def disk_space_used(self) -> Optional[pulumi.Input[
|
|
499
|
+
def disk_space_used(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
501
500
|
"""
|
|
502
501
|
Disk space that service is currently using
|
|
503
502
|
"""
|
|
504
503
|
return pulumi.get(self, "disk_space_used")
|
|
505
504
|
|
|
506
505
|
@disk_space_used.setter
|
|
507
|
-
def disk_space_used(self, value: Optional[pulumi.Input[
|
|
506
|
+
def disk_space_used(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
508
507
|
pulumi.set(self, "disk_space_used", value)
|
|
509
508
|
|
|
510
|
-
@property
|
|
509
|
+
@_builtins.property
|
|
511
510
|
@pulumi.getter(name="maintenanceWindowDow")
|
|
512
|
-
def maintenance_window_dow(self) -> Optional[pulumi.Input[
|
|
511
|
+
def maintenance_window_dow(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
513
512
|
"""
|
|
514
513
|
Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
515
514
|
"""
|
|
516
515
|
return pulumi.get(self, "maintenance_window_dow")
|
|
517
516
|
|
|
518
517
|
@maintenance_window_dow.setter
|
|
519
|
-
def maintenance_window_dow(self, value: Optional[pulumi.Input[
|
|
518
|
+
def maintenance_window_dow(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
520
519
|
pulumi.set(self, "maintenance_window_dow", value)
|
|
521
520
|
|
|
522
|
-
@property
|
|
521
|
+
@_builtins.property
|
|
523
522
|
@pulumi.getter(name="maintenanceWindowTime")
|
|
524
|
-
def maintenance_window_time(self) -> Optional[pulumi.Input[
|
|
523
|
+
def maintenance_window_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
525
524
|
"""
|
|
526
525
|
Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
527
526
|
"""
|
|
528
527
|
return pulumi.get(self, "maintenance_window_time")
|
|
529
528
|
|
|
530
529
|
@maintenance_window_time.setter
|
|
531
|
-
def maintenance_window_time(self, value: Optional[pulumi.Input[
|
|
530
|
+
def maintenance_window_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
532
531
|
pulumi.set(self, "maintenance_window_time", value)
|
|
533
532
|
|
|
534
|
-
@property
|
|
533
|
+
@_builtins.property
|
|
535
534
|
@pulumi.getter
|
|
536
535
|
def pg(self) -> Optional[pulumi.Input['PgPgArgs']]:
|
|
537
536
|
"""
|
|
@@ -543,7 +542,7 @@ class _PgState:
|
|
|
543
542
|
def pg(self, value: Optional[pulumi.Input['PgPgArgs']]):
|
|
544
543
|
pulumi.set(self, "pg", value)
|
|
545
544
|
|
|
546
|
-
@property
|
|
545
|
+
@_builtins.property
|
|
547
546
|
@pulumi.getter(name="pgUserConfig")
|
|
548
547
|
def pg_user_config(self) -> Optional[pulumi.Input['PgPgUserConfigArgs']]:
|
|
549
548
|
"""
|
|
@@ -555,55 +554,55 @@ class _PgState:
|
|
|
555
554
|
def pg_user_config(self, value: Optional[pulumi.Input['PgPgUserConfigArgs']]):
|
|
556
555
|
pulumi.set(self, "pg_user_config", value)
|
|
557
556
|
|
|
558
|
-
@property
|
|
557
|
+
@_builtins.property
|
|
559
558
|
@pulumi.getter
|
|
560
|
-
def plan(self) -> Optional[pulumi.Input[
|
|
559
|
+
def plan(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
561
560
|
"""
|
|
562
561
|
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seen from the [Aiven pricing page](https://aiven.io/pricing).
|
|
563
562
|
"""
|
|
564
563
|
return pulumi.get(self, "plan")
|
|
565
564
|
|
|
566
565
|
@plan.setter
|
|
567
|
-
def plan(self, value: Optional[pulumi.Input[
|
|
566
|
+
def plan(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
568
567
|
pulumi.set(self, "plan", value)
|
|
569
568
|
|
|
570
|
-
@property
|
|
569
|
+
@_builtins.property
|
|
571
570
|
@pulumi.getter
|
|
572
|
-
def project(self) -> Optional[pulumi.Input[
|
|
571
|
+
def project(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
573
572
|
"""
|
|
574
573
|
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.
|
|
575
574
|
"""
|
|
576
575
|
return pulumi.get(self, "project")
|
|
577
576
|
|
|
578
577
|
@project.setter
|
|
579
|
-
def project(self, value: Optional[pulumi.Input[
|
|
578
|
+
def project(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
580
579
|
pulumi.set(self, "project", value)
|
|
581
580
|
|
|
582
|
-
@property
|
|
581
|
+
@_builtins.property
|
|
583
582
|
@pulumi.getter(name="projectVpcId")
|
|
584
|
-
def project_vpc_id(self) -> Optional[pulumi.Input[
|
|
583
|
+
def project_vpc_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
585
584
|
"""
|
|
586
585
|
Specifies the VPC the service should run in. If the value is not set, the service runs on the Public Internet. 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. The service can be freely moved to and from VPC after creation, but doing so triggers migration to new servers, so the operation can take a significant amount of time to complete if the service has a lot of data.
|
|
587
586
|
"""
|
|
588
587
|
return pulumi.get(self, "project_vpc_id")
|
|
589
588
|
|
|
590
589
|
@project_vpc_id.setter
|
|
591
|
-
def project_vpc_id(self, value: Optional[pulumi.Input[
|
|
590
|
+
def project_vpc_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
592
591
|
pulumi.set(self, "project_vpc_id", value)
|
|
593
592
|
|
|
594
|
-
@property
|
|
593
|
+
@_builtins.property
|
|
595
594
|
@pulumi.getter(name="serviceHost")
|
|
596
|
-
def service_host(self) -> Optional[pulumi.Input[
|
|
595
|
+
def service_host(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
597
596
|
"""
|
|
598
597
|
The hostname of the service.
|
|
599
598
|
"""
|
|
600
599
|
return pulumi.get(self, "service_host")
|
|
601
600
|
|
|
602
601
|
@service_host.setter
|
|
603
|
-
def service_host(self, value: Optional[pulumi.Input[
|
|
602
|
+
def service_host(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
604
603
|
pulumi.set(self, "service_host", value)
|
|
605
604
|
|
|
606
|
-
@property
|
|
605
|
+
@_builtins.property
|
|
607
606
|
@pulumi.getter(name="serviceIntegrations")
|
|
608
607
|
def service_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PgServiceIntegrationArgs']]]]:
|
|
609
608
|
"""
|
|
@@ -615,100 +614,100 @@ class _PgState:
|
|
|
615
614
|
def service_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PgServiceIntegrationArgs']]]]):
|
|
616
615
|
pulumi.set(self, "service_integrations", value)
|
|
617
616
|
|
|
618
|
-
@property
|
|
617
|
+
@_builtins.property
|
|
619
618
|
@pulumi.getter(name="serviceName")
|
|
620
|
-
def service_name(self) -> Optional[pulumi.Input[
|
|
619
|
+
def service_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
621
620
|
"""
|
|
622
621
|
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.
|
|
623
622
|
"""
|
|
624
623
|
return pulumi.get(self, "service_name")
|
|
625
624
|
|
|
626
625
|
@service_name.setter
|
|
627
|
-
def service_name(self, value: Optional[pulumi.Input[
|
|
626
|
+
def service_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
628
627
|
pulumi.set(self, "service_name", value)
|
|
629
628
|
|
|
630
|
-
@property
|
|
629
|
+
@_builtins.property
|
|
631
630
|
@pulumi.getter(name="servicePassword")
|
|
632
|
-
def service_password(self) -> Optional[pulumi.Input[
|
|
631
|
+
def service_password(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
633
632
|
"""
|
|
634
633
|
Password used for connecting to the service, if applicable
|
|
635
634
|
"""
|
|
636
635
|
return pulumi.get(self, "service_password")
|
|
637
636
|
|
|
638
637
|
@service_password.setter
|
|
639
|
-
def service_password(self, value: Optional[pulumi.Input[
|
|
638
|
+
def service_password(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
640
639
|
pulumi.set(self, "service_password", value)
|
|
641
640
|
|
|
642
|
-
@property
|
|
641
|
+
@_builtins.property
|
|
643
642
|
@pulumi.getter(name="servicePort")
|
|
644
|
-
def service_port(self) -> Optional[pulumi.Input[
|
|
643
|
+
def service_port(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
645
644
|
"""
|
|
646
645
|
The port of the service
|
|
647
646
|
"""
|
|
648
647
|
return pulumi.get(self, "service_port")
|
|
649
648
|
|
|
650
649
|
@service_port.setter
|
|
651
|
-
def service_port(self, value: Optional[pulumi.Input[
|
|
650
|
+
def service_port(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
652
651
|
pulumi.set(self, "service_port", value)
|
|
653
652
|
|
|
654
|
-
@property
|
|
653
|
+
@_builtins.property
|
|
655
654
|
@pulumi.getter(name="serviceType")
|
|
656
|
-
def service_type(self) -> Optional[pulumi.Input[
|
|
655
|
+
def service_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
657
656
|
"""
|
|
658
657
|
Aiven internal service type code
|
|
659
658
|
"""
|
|
660
659
|
return pulumi.get(self, "service_type")
|
|
661
660
|
|
|
662
661
|
@service_type.setter
|
|
663
|
-
def service_type(self, value: Optional[pulumi.Input[
|
|
662
|
+
def service_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
664
663
|
pulumi.set(self, "service_type", value)
|
|
665
664
|
|
|
666
|
-
@property
|
|
665
|
+
@_builtins.property
|
|
667
666
|
@pulumi.getter(name="serviceUri")
|
|
668
|
-
def service_uri(self) -> Optional[pulumi.Input[
|
|
667
|
+
def service_uri(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
669
668
|
"""
|
|
670
669
|
URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
671
670
|
"""
|
|
672
671
|
return pulumi.get(self, "service_uri")
|
|
673
672
|
|
|
674
673
|
@service_uri.setter
|
|
675
|
-
def service_uri(self, value: Optional[pulumi.Input[
|
|
674
|
+
def service_uri(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
676
675
|
pulumi.set(self, "service_uri", value)
|
|
677
676
|
|
|
678
|
-
@property
|
|
677
|
+
@_builtins.property
|
|
679
678
|
@pulumi.getter(name="serviceUsername")
|
|
680
|
-
def service_username(self) -> Optional[pulumi.Input[
|
|
679
|
+
def service_username(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
681
680
|
"""
|
|
682
681
|
Username used for connecting to the service, if applicable
|
|
683
682
|
"""
|
|
684
683
|
return pulumi.get(self, "service_username")
|
|
685
684
|
|
|
686
685
|
@service_username.setter
|
|
687
|
-
def service_username(self, value: Optional[pulumi.Input[
|
|
686
|
+
def service_username(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
688
687
|
pulumi.set(self, "service_username", value)
|
|
689
688
|
|
|
690
|
-
@property
|
|
689
|
+
@_builtins.property
|
|
691
690
|
@pulumi.getter
|
|
692
|
-
def state(self) -> Optional[pulumi.Input[
|
|
691
|
+
def state(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
693
692
|
return pulumi.get(self, "state")
|
|
694
693
|
|
|
695
694
|
@state.setter
|
|
696
|
-
def state(self, value: Optional[pulumi.Input[
|
|
695
|
+
def state(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
697
696
|
pulumi.set(self, "state", value)
|
|
698
697
|
|
|
699
|
-
@property
|
|
698
|
+
@_builtins.property
|
|
700
699
|
@pulumi.getter(name="staticIps")
|
|
701
|
-
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
700
|
+
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
702
701
|
"""
|
|
703
702
|
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
|
|
704
703
|
"""
|
|
705
704
|
return pulumi.get(self, "static_ips")
|
|
706
705
|
|
|
707
706
|
@static_ips.setter
|
|
708
|
-
def static_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
707
|
+
def static_ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
709
708
|
pulumi.set(self, "static_ips", value)
|
|
710
709
|
|
|
711
|
-
@property
|
|
710
|
+
@_builtins.property
|
|
712
711
|
@pulumi.getter
|
|
713
712
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PgTagArgs']]]]:
|
|
714
713
|
"""
|
|
@@ -720,7 +719,7 @@ class _PgState:
|
|
|
720
719
|
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PgTagArgs']]]]):
|
|
721
720
|
pulumi.set(self, "tags", value)
|
|
722
721
|
|
|
723
|
-
@property
|
|
722
|
+
@_builtins.property
|
|
724
723
|
@pulumi.getter(name="techEmails")
|
|
725
724
|
def tech_emails(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PgTechEmailArgs']]]]:
|
|
726
725
|
"""
|
|
@@ -732,16 +731,16 @@ class _PgState:
|
|
|
732
731
|
def tech_emails(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PgTechEmailArgs']]]]):
|
|
733
732
|
pulumi.set(self, "tech_emails", value)
|
|
734
733
|
|
|
735
|
-
@property
|
|
734
|
+
@_builtins.property
|
|
736
735
|
@pulumi.getter(name="terminationProtection")
|
|
737
|
-
def termination_protection(self) -> Optional[pulumi.Input[
|
|
736
|
+
def termination_protection(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
738
737
|
"""
|
|
739
738
|
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.
|
|
740
739
|
"""
|
|
741
740
|
return pulumi.get(self, "termination_protection")
|
|
742
741
|
|
|
743
742
|
@termination_protection.setter
|
|
744
|
-
def termination_protection(self, value: Optional[pulumi.Input[
|
|
743
|
+
def termination_protection(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
745
744
|
pulumi.set(self, "termination_protection", value)
|
|
746
745
|
|
|
747
746
|
|
|
@@ -751,22 +750,22 @@ class Pg(pulumi.CustomResource):
|
|
|
751
750
|
def __init__(__self__,
|
|
752
751
|
resource_name: str,
|
|
753
752
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
754
|
-
additional_disk_space: Optional[pulumi.Input[
|
|
755
|
-
cloud_name: Optional[pulumi.Input[
|
|
756
|
-
disk_space: Optional[pulumi.Input[
|
|
757
|
-
maintenance_window_dow: Optional[pulumi.Input[
|
|
758
|
-
maintenance_window_time: Optional[pulumi.Input[
|
|
753
|
+
additional_disk_space: Optional[pulumi.Input[_builtins.str]] = None,
|
|
754
|
+
cloud_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
755
|
+
disk_space: Optional[pulumi.Input[_builtins.str]] = None,
|
|
756
|
+
maintenance_window_dow: Optional[pulumi.Input[_builtins.str]] = None,
|
|
757
|
+
maintenance_window_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
759
758
|
pg: Optional[pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']]] = None,
|
|
760
759
|
pg_user_config: Optional[pulumi.Input[Union['PgPgUserConfigArgs', 'PgPgUserConfigArgsDict']]] = None,
|
|
761
|
-
plan: Optional[pulumi.Input[
|
|
762
|
-
project: Optional[pulumi.Input[
|
|
763
|
-
project_vpc_id: Optional[pulumi.Input[
|
|
760
|
+
plan: Optional[pulumi.Input[_builtins.str]] = None,
|
|
761
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
|
762
|
+
project_vpc_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
764
763
|
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgServiceIntegrationArgs', 'PgServiceIntegrationArgsDict']]]]] = None,
|
|
765
|
-
service_name: Optional[pulumi.Input[
|
|
766
|
-
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
764
|
+
service_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
765
|
+
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
767
766
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgTagArgs', 'PgTagArgsDict']]]]] = None,
|
|
768
767
|
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgTechEmailArgs', 'PgTechEmailArgsDict']]]]] = None,
|
|
769
|
-
termination_protection: Optional[pulumi.Input[
|
|
768
|
+
termination_protection: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
770
769
|
__props__=None):
|
|
771
770
|
"""
|
|
772
771
|
Creates and manages an Aiven for PostgreSQL® service.
|
|
@@ -779,22 +778,22 @@ class Pg(pulumi.CustomResource):
|
|
|
779
778
|
|
|
780
779
|
:param str resource_name: The name of the resource.
|
|
781
780
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
782
|
-
:param pulumi.Input[
|
|
783
|
-
:param pulumi.Input[
|
|
784
|
-
:param pulumi.Input[
|
|
785
|
-
:param pulumi.Input[
|
|
786
|
-
:param pulumi.Input[
|
|
781
|
+
: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
|
+
: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.
|
|
784
|
+
:param pulumi.Input[_builtins.str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
785
|
+
:param pulumi.Input[_builtins.str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
787
786
|
:param pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']] pg: Values provided by the PostgreSQL server.
|
|
788
787
|
: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
|
|
789
|
-
:param pulumi.Input[
|
|
790
|
-
:param pulumi.Input[
|
|
791
|
-
:param pulumi.Input[
|
|
788
|
+
:param pulumi.Input[_builtins.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 seen from the [Aiven pricing page](https://aiven.io/pricing).
|
|
789
|
+
: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.
|
|
790
|
+
:param pulumi.Input[_builtins.str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set, the service runs on the Public Internet. 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. The service can be freely moved to and from VPC after creation, but doing so triggers migration to new servers, so the operation can take a significant amount of time to complete if the service has a lot of data.
|
|
792
791
|
: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
|
|
793
|
-
:param pulumi.Input[
|
|
794
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
792
|
+
:param pulumi.Input[_builtins.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.
|
|
793
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.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
|
|
795
794
|
:param pulumi.Input[Sequence[pulumi.Input[Union['PgTagArgs', 'PgTagArgsDict']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
796
795
|
: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.
|
|
797
|
-
:param pulumi.Input[
|
|
796
|
+
:param pulumi.Input[_builtins.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.
|
|
798
797
|
"""
|
|
799
798
|
...
|
|
800
799
|
@overload
|
|
@@ -826,22 +825,22 @@ class Pg(pulumi.CustomResource):
|
|
|
826
825
|
def _internal_init(__self__,
|
|
827
826
|
resource_name: str,
|
|
828
827
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
829
|
-
additional_disk_space: Optional[pulumi.Input[
|
|
830
|
-
cloud_name: Optional[pulumi.Input[
|
|
831
|
-
disk_space: Optional[pulumi.Input[
|
|
832
|
-
maintenance_window_dow: Optional[pulumi.Input[
|
|
833
|
-
maintenance_window_time: Optional[pulumi.Input[
|
|
828
|
+
additional_disk_space: Optional[pulumi.Input[_builtins.str]] = None,
|
|
829
|
+
cloud_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
830
|
+
disk_space: Optional[pulumi.Input[_builtins.str]] = None,
|
|
831
|
+
maintenance_window_dow: Optional[pulumi.Input[_builtins.str]] = None,
|
|
832
|
+
maintenance_window_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
834
833
|
pg: Optional[pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']]] = None,
|
|
835
834
|
pg_user_config: Optional[pulumi.Input[Union['PgPgUserConfigArgs', 'PgPgUserConfigArgsDict']]] = None,
|
|
836
|
-
plan: Optional[pulumi.Input[
|
|
837
|
-
project: Optional[pulumi.Input[
|
|
838
|
-
project_vpc_id: Optional[pulumi.Input[
|
|
835
|
+
plan: Optional[pulumi.Input[_builtins.str]] = None,
|
|
836
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
|
837
|
+
project_vpc_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
839
838
|
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgServiceIntegrationArgs', 'PgServiceIntegrationArgsDict']]]]] = None,
|
|
840
|
-
service_name: Optional[pulumi.Input[
|
|
841
|
-
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
839
|
+
service_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
840
|
+
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
842
841
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgTagArgs', 'PgTagArgsDict']]]]] = None,
|
|
843
842
|
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgTechEmailArgs', 'PgTechEmailArgsDict']]]]] = None,
|
|
844
|
-
termination_protection: Optional[pulumi.Input[
|
|
843
|
+
termination_protection: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
845
844
|
__props__=None):
|
|
846
845
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
847
846
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -895,34 +894,34 @@ class Pg(pulumi.CustomResource):
|
|
|
895
894
|
def get(resource_name: str,
|
|
896
895
|
id: pulumi.Input[str],
|
|
897
896
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
898
|
-
additional_disk_space: Optional[pulumi.Input[
|
|
899
|
-
cloud_name: Optional[pulumi.Input[
|
|
897
|
+
additional_disk_space: Optional[pulumi.Input[_builtins.str]] = None,
|
|
898
|
+
cloud_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
900
899
|
components: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgComponentArgs', 'PgComponentArgsDict']]]]] = None,
|
|
901
|
-
disk_space: Optional[pulumi.Input[
|
|
902
|
-
disk_space_cap: Optional[pulumi.Input[
|
|
903
|
-
disk_space_default: Optional[pulumi.Input[
|
|
904
|
-
disk_space_step: Optional[pulumi.Input[
|
|
905
|
-
disk_space_used: Optional[pulumi.Input[
|
|
906
|
-
maintenance_window_dow: Optional[pulumi.Input[
|
|
907
|
-
maintenance_window_time: Optional[pulumi.Input[
|
|
900
|
+
disk_space: Optional[pulumi.Input[_builtins.str]] = None,
|
|
901
|
+
disk_space_cap: Optional[pulumi.Input[_builtins.str]] = None,
|
|
902
|
+
disk_space_default: Optional[pulumi.Input[_builtins.str]] = None,
|
|
903
|
+
disk_space_step: Optional[pulumi.Input[_builtins.str]] = None,
|
|
904
|
+
disk_space_used: Optional[pulumi.Input[_builtins.str]] = None,
|
|
905
|
+
maintenance_window_dow: Optional[pulumi.Input[_builtins.str]] = None,
|
|
906
|
+
maintenance_window_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
908
907
|
pg: Optional[pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']]] = None,
|
|
909
908
|
pg_user_config: Optional[pulumi.Input[Union['PgPgUserConfigArgs', 'PgPgUserConfigArgsDict']]] = None,
|
|
910
|
-
plan: Optional[pulumi.Input[
|
|
911
|
-
project: Optional[pulumi.Input[
|
|
912
|
-
project_vpc_id: Optional[pulumi.Input[
|
|
913
|
-
service_host: Optional[pulumi.Input[
|
|
909
|
+
plan: Optional[pulumi.Input[_builtins.str]] = None,
|
|
910
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
|
911
|
+
project_vpc_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
912
|
+
service_host: Optional[pulumi.Input[_builtins.str]] = None,
|
|
914
913
|
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgServiceIntegrationArgs', 'PgServiceIntegrationArgsDict']]]]] = None,
|
|
915
|
-
service_name: Optional[pulumi.Input[
|
|
916
|
-
service_password: Optional[pulumi.Input[
|
|
917
|
-
service_port: Optional[pulumi.Input[
|
|
918
|
-
service_type: Optional[pulumi.Input[
|
|
919
|
-
service_uri: Optional[pulumi.Input[
|
|
920
|
-
service_username: Optional[pulumi.Input[
|
|
921
|
-
state: Optional[pulumi.Input[
|
|
922
|
-
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
914
|
+
service_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
915
|
+
service_password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
916
|
+
service_port: Optional[pulumi.Input[_builtins.int]] = None,
|
|
917
|
+
service_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
918
|
+
service_uri: Optional[pulumi.Input[_builtins.str]] = None,
|
|
919
|
+
service_username: Optional[pulumi.Input[_builtins.str]] = None,
|
|
920
|
+
state: Optional[pulumi.Input[_builtins.str]] = None,
|
|
921
|
+
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
923
922
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgTagArgs', 'PgTagArgsDict']]]]] = None,
|
|
924
923
|
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PgTechEmailArgs', 'PgTechEmailArgsDict']]]]] = None,
|
|
925
|
-
termination_protection: Optional[pulumi.Input[
|
|
924
|
+
termination_protection: Optional[pulumi.Input[_builtins.bool]] = None) -> 'Pg':
|
|
926
925
|
"""
|
|
927
926
|
Get an existing Pg resource's state with the given name, id, and optional extra
|
|
928
927
|
properties used to qualify the lookup.
|
|
@@ -930,33 +929,33 @@ class Pg(pulumi.CustomResource):
|
|
|
930
929
|
:param str resource_name: The unique name of the resulting resource.
|
|
931
930
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
932
931
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
933
|
-
:param pulumi.Input[
|
|
934
|
-
:param pulumi.Input[
|
|
932
|
+
: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
|
+
: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.
|
|
935
934
|
:param pulumi.Input[Sequence[pulumi.Input[Union['PgComponentArgs', 'PgComponentArgsDict']]]] components: Service component information objects
|
|
936
|
-
:param pulumi.Input[
|
|
937
|
-
:param pulumi.Input[
|
|
938
|
-
:param pulumi.Input[
|
|
939
|
-
:param pulumi.Input[
|
|
940
|
-
:param pulumi.Input[
|
|
941
|
-
:param pulumi.Input[
|
|
942
|
-
:param pulumi.Input[
|
|
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.
|
|
936
|
+
: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
|
+
: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
|
+
: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: Disk space that service is currently using
|
|
940
|
+
:param pulumi.Input[_builtins.str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
941
|
+
:param pulumi.Input[_builtins.str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
943
942
|
:param pulumi.Input[Union['PgPgArgs', 'PgPgArgsDict']] pg: Values provided by the PostgreSQL server.
|
|
944
943
|
: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
|
|
945
|
-
:param pulumi.Input[
|
|
946
|
-
:param pulumi.Input[
|
|
947
|
-
:param pulumi.Input[
|
|
948
|
-
:param pulumi.Input[
|
|
944
|
+
:param pulumi.Input[_builtins.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 seen from the [Aiven pricing page](https://aiven.io/pricing).
|
|
945
|
+
: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.
|
|
946
|
+
:param pulumi.Input[_builtins.str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set, the service runs on the Public Internet. 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. The service can be freely moved to and from VPC after creation, but doing so triggers migration to new servers, so the operation can take a significant amount of time to complete if the service has a lot of data.
|
|
947
|
+
:param pulumi.Input[_builtins.str] service_host: The hostname of the service.
|
|
949
948
|
: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
|
|
950
|
-
:param pulumi.Input[
|
|
951
|
-
:param pulumi.Input[
|
|
952
|
-
:param pulumi.Input[
|
|
953
|
-
:param pulumi.Input[
|
|
954
|
-
:param pulumi.Input[
|
|
955
|
-
:param pulumi.Input[
|
|
956
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
949
|
+
:param pulumi.Input[_builtins.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.
|
|
950
|
+
:param pulumi.Input[_builtins.str] service_password: Password used for connecting to the service, if applicable
|
|
951
|
+
:param pulumi.Input[_builtins.int] service_port: The port of the service
|
|
952
|
+
:param pulumi.Input[_builtins.str] service_type: Aiven internal service type code
|
|
953
|
+
:param pulumi.Input[_builtins.str] service_uri: URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
954
|
+
:param pulumi.Input[_builtins.str] service_username: Username used for connecting to the service, if applicable
|
|
955
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.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
|
|
957
956
|
:param pulumi.Input[Sequence[pulumi.Input[Union['PgTagArgs', 'PgTagArgsDict']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
958
957
|
: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.
|
|
959
|
-
:param pulumi.Input[
|
|
958
|
+
:param pulumi.Input[_builtins.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.
|
|
960
959
|
"""
|
|
961
960
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
962
961
|
|
|
@@ -992,23 +991,23 @@ class Pg(pulumi.CustomResource):
|
|
|
992
991
|
__props__.__dict__["termination_protection"] = termination_protection
|
|
993
992
|
return Pg(resource_name, opts=opts, __props__=__props__)
|
|
994
993
|
|
|
995
|
-
@property
|
|
994
|
+
@_builtins.property
|
|
996
995
|
@pulumi.getter(name="additionalDiskSpace")
|
|
997
|
-
def additional_disk_space(self) -> pulumi.Output[
|
|
996
|
+
def additional_disk_space(self) -> pulumi.Output[_builtins.str]:
|
|
998
997
|
"""
|
|
999
998
|
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.
|
|
1000
999
|
"""
|
|
1001
1000
|
return pulumi.get(self, "additional_disk_space")
|
|
1002
1001
|
|
|
1003
|
-
@property
|
|
1002
|
+
@_builtins.property
|
|
1004
1003
|
@pulumi.getter(name="cloudName")
|
|
1005
|
-
def cloud_name(self) -> pulumi.Output[Optional[
|
|
1004
|
+
def cloud_name(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1006
1005
|
"""
|
|
1007
1006
|
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.
|
|
1008
1007
|
"""
|
|
1009
1008
|
return pulumi.get(self, "cloud_name")
|
|
1010
1009
|
|
|
1011
|
-
@property
|
|
1010
|
+
@_builtins.property
|
|
1012
1011
|
@pulumi.getter
|
|
1013
1012
|
def components(self) -> pulumi.Output[Sequence['outputs.PgComponent']]:
|
|
1014
1013
|
"""
|
|
@@ -1016,65 +1015,65 @@ class Pg(pulumi.CustomResource):
|
|
|
1016
1015
|
"""
|
|
1017
1016
|
return pulumi.get(self, "components")
|
|
1018
1017
|
|
|
1019
|
-
@property
|
|
1018
|
+
@_builtins.property
|
|
1020
1019
|
@pulumi.getter(name="diskSpace")
|
|
1021
1020
|
@_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.""")
|
|
1022
|
-
def disk_space(self) -> pulumi.Output[Optional[
|
|
1021
|
+
def disk_space(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1023
1022
|
"""
|
|
1024
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.
|
|
1025
1024
|
"""
|
|
1026
1025
|
return pulumi.get(self, "disk_space")
|
|
1027
1026
|
|
|
1028
|
-
@property
|
|
1027
|
+
@_builtins.property
|
|
1029
1028
|
@pulumi.getter(name="diskSpaceCap")
|
|
1030
|
-
def disk_space_cap(self) -> pulumi.Output[
|
|
1029
|
+
def disk_space_cap(self) -> pulumi.Output[_builtins.str]:
|
|
1031
1030
|
"""
|
|
1032
1031
|
The maximum disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
1033
1032
|
"""
|
|
1034
1033
|
return pulumi.get(self, "disk_space_cap")
|
|
1035
1034
|
|
|
1036
|
-
@property
|
|
1035
|
+
@_builtins.property
|
|
1037
1036
|
@pulumi.getter(name="diskSpaceDefault")
|
|
1038
|
-
def disk_space_default(self) -> pulumi.Output[
|
|
1037
|
+
def disk_space_default(self) -> pulumi.Output[_builtins.str]:
|
|
1039
1038
|
"""
|
|
1040
1039
|
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`
|
|
1041
1040
|
"""
|
|
1042
1041
|
return pulumi.get(self, "disk_space_default")
|
|
1043
1042
|
|
|
1044
|
-
@property
|
|
1043
|
+
@_builtins.property
|
|
1045
1044
|
@pulumi.getter(name="diskSpaceStep")
|
|
1046
|
-
def disk_space_step(self) -> pulumi.Output[
|
|
1045
|
+
def disk_space_step(self) -> pulumi.Output[_builtins.str]:
|
|
1047
1046
|
"""
|
|
1048
1047
|
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.
|
|
1049
1048
|
"""
|
|
1050
1049
|
return pulumi.get(self, "disk_space_step")
|
|
1051
1050
|
|
|
1052
|
-
@property
|
|
1051
|
+
@_builtins.property
|
|
1053
1052
|
@pulumi.getter(name="diskSpaceUsed")
|
|
1054
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.""")
|
|
1055
|
-
def disk_space_used(self) -> pulumi.Output[
|
|
1054
|
+
def disk_space_used(self) -> pulumi.Output[_builtins.str]:
|
|
1056
1055
|
"""
|
|
1057
1056
|
Disk space that service is currently using
|
|
1058
1057
|
"""
|
|
1059
1058
|
return pulumi.get(self, "disk_space_used")
|
|
1060
1059
|
|
|
1061
|
-
@property
|
|
1060
|
+
@_builtins.property
|
|
1062
1061
|
@pulumi.getter(name="maintenanceWindowDow")
|
|
1063
|
-
def maintenance_window_dow(self) -> pulumi.Output[Optional[
|
|
1062
|
+
def maintenance_window_dow(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1064
1063
|
"""
|
|
1065
1064
|
Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
1066
1065
|
"""
|
|
1067
1066
|
return pulumi.get(self, "maintenance_window_dow")
|
|
1068
1067
|
|
|
1069
|
-
@property
|
|
1068
|
+
@_builtins.property
|
|
1070
1069
|
@pulumi.getter(name="maintenanceWindowTime")
|
|
1071
|
-
def maintenance_window_time(self) -> pulumi.Output[Optional[
|
|
1070
|
+
def maintenance_window_time(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1072
1071
|
"""
|
|
1073
1072
|
Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
1074
1073
|
"""
|
|
1075
1074
|
return pulumi.get(self, "maintenance_window_time")
|
|
1076
1075
|
|
|
1077
|
-
@property
|
|
1076
|
+
@_builtins.property
|
|
1078
1077
|
@pulumi.getter
|
|
1079
1078
|
def pg(self) -> pulumi.Output['outputs.PgPg']:
|
|
1080
1079
|
"""
|
|
@@ -1082,7 +1081,7 @@ class Pg(pulumi.CustomResource):
|
|
|
1082
1081
|
"""
|
|
1083
1082
|
return pulumi.get(self, "pg")
|
|
1084
1083
|
|
|
1085
|
-
@property
|
|
1084
|
+
@_builtins.property
|
|
1086
1085
|
@pulumi.getter(name="pgUserConfig")
|
|
1087
1086
|
def pg_user_config(self) -> pulumi.Output[Optional['outputs.PgPgUserConfig']]:
|
|
1088
1087
|
"""
|
|
@@ -1090,39 +1089,39 @@ class Pg(pulumi.CustomResource):
|
|
|
1090
1089
|
"""
|
|
1091
1090
|
return pulumi.get(self, "pg_user_config")
|
|
1092
1091
|
|
|
1093
|
-
@property
|
|
1092
|
+
@_builtins.property
|
|
1094
1093
|
@pulumi.getter
|
|
1095
|
-
def plan(self) -> pulumi.Output[
|
|
1094
|
+
def plan(self) -> pulumi.Output[_builtins.str]:
|
|
1096
1095
|
"""
|
|
1097
1096
|
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seen from the [Aiven pricing page](https://aiven.io/pricing).
|
|
1098
1097
|
"""
|
|
1099
1098
|
return pulumi.get(self, "plan")
|
|
1100
1099
|
|
|
1101
|
-
@property
|
|
1100
|
+
@_builtins.property
|
|
1102
1101
|
@pulumi.getter
|
|
1103
|
-
def project(self) -> pulumi.Output[
|
|
1102
|
+
def project(self) -> pulumi.Output[_builtins.str]:
|
|
1104
1103
|
"""
|
|
1105
1104
|
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.
|
|
1106
1105
|
"""
|
|
1107
1106
|
return pulumi.get(self, "project")
|
|
1108
1107
|
|
|
1109
|
-
@property
|
|
1108
|
+
@_builtins.property
|
|
1110
1109
|
@pulumi.getter(name="projectVpcId")
|
|
1111
|
-
def project_vpc_id(self) -> pulumi.Output[Optional[
|
|
1110
|
+
def project_vpc_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1112
1111
|
"""
|
|
1113
1112
|
Specifies the VPC the service should run in. If the value is not set, the service runs on the Public Internet. 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. The service can be freely moved to and from VPC after creation, but doing so triggers migration to new servers, so the operation can take a significant amount of time to complete if the service has a lot of data.
|
|
1114
1113
|
"""
|
|
1115
1114
|
return pulumi.get(self, "project_vpc_id")
|
|
1116
1115
|
|
|
1117
|
-
@property
|
|
1116
|
+
@_builtins.property
|
|
1118
1117
|
@pulumi.getter(name="serviceHost")
|
|
1119
|
-
def service_host(self) -> pulumi.Output[
|
|
1118
|
+
def service_host(self) -> pulumi.Output[_builtins.str]:
|
|
1120
1119
|
"""
|
|
1121
1120
|
The hostname of the service.
|
|
1122
1121
|
"""
|
|
1123
1122
|
return pulumi.get(self, "service_host")
|
|
1124
1123
|
|
|
1125
|
-
@property
|
|
1124
|
+
@_builtins.property
|
|
1126
1125
|
@pulumi.getter(name="serviceIntegrations")
|
|
1127
1126
|
def service_integrations(self) -> pulumi.Output[Sequence['outputs.PgServiceIntegration']]:
|
|
1128
1127
|
"""
|
|
@@ -1130,68 +1129,68 @@ class Pg(pulumi.CustomResource):
|
|
|
1130
1129
|
"""
|
|
1131
1130
|
return pulumi.get(self, "service_integrations")
|
|
1132
1131
|
|
|
1133
|
-
@property
|
|
1132
|
+
@_builtins.property
|
|
1134
1133
|
@pulumi.getter(name="serviceName")
|
|
1135
|
-
def service_name(self) -> pulumi.Output[
|
|
1134
|
+
def service_name(self) -> pulumi.Output[_builtins.str]:
|
|
1136
1135
|
"""
|
|
1137
1136
|
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.
|
|
1138
1137
|
"""
|
|
1139
1138
|
return pulumi.get(self, "service_name")
|
|
1140
1139
|
|
|
1141
|
-
@property
|
|
1140
|
+
@_builtins.property
|
|
1142
1141
|
@pulumi.getter(name="servicePassword")
|
|
1143
|
-
def service_password(self) -> pulumi.Output[
|
|
1142
|
+
def service_password(self) -> pulumi.Output[_builtins.str]:
|
|
1144
1143
|
"""
|
|
1145
1144
|
Password used for connecting to the service, if applicable
|
|
1146
1145
|
"""
|
|
1147
1146
|
return pulumi.get(self, "service_password")
|
|
1148
1147
|
|
|
1149
|
-
@property
|
|
1148
|
+
@_builtins.property
|
|
1150
1149
|
@pulumi.getter(name="servicePort")
|
|
1151
|
-
def service_port(self) -> pulumi.Output[
|
|
1150
|
+
def service_port(self) -> pulumi.Output[_builtins.int]:
|
|
1152
1151
|
"""
|
|
1153
1152
|
The port of the service
|
|
1154
1153
|
"""
|
|
1155
1154
|
return pulumi.get(self, "service_port")
|
|
1156
1155
|
|
|
1157
|
-
@property
|
|
1156
|
+
@_builtins.property
|
|
1158
1157
|
@pulumi.getter(name="serviceType")
|
|
1159
|
-
def service_type(self) -> pulumi.Output[
|
|
1158
|
+
def service_type(self) -> pulumi.Output[_builtins.str]:
|
|
1160
1159
|
"""
|
|
1161
1160
|
Aiven internal service type code
|
|
1162
1161
|
"""
|
|
1163
1162
|
return pulumi.get(self, "service_type")
|
|
1164
1163
|
|
|
1165
|
-
@property
|
|
1164
|
+
@_builtins.property
|
|
1166
1165
|
@pulumi.getter(name="serviceUri")
|
|
1167
|
-
def service_uri(self) -> pulumi.Output[
|
|
1166
|
+
def service_uri(self) -> pulumi.Output[_builtins.str]:
|
|
1168
1167
|
"""
|
|
1169
1168
|
URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
1170
1169
|
"""
|
|
1171
1170
|
return pulumi.get(self, "service_uri")
|
|
1172
1171
|
|
|
1173
|
-
@property
|
|
1172
|
+
@_builtins.property
|
|
1174
1173
|
@pulumi.getter(name="serviceUsername")
|
|
1175
|
-
def service_username(self) -> pulumi.Output[
|
|
1174
|
+
def service_username(self) -> pulumi.Output[_builtins.str]:
|
|
1176
1175
|
"""
|
|
1177
1176
|
Username used for connecting to the service, if applicable
|
|
1178
1177
|
"""
|
|
1179
1178
|
return pulumi.get(self, "service_username")
|
|
1180
1179
|
|
|
1181
|
-
@property
|
|
1180
|
+
@_builtins.property
|
|
1182
1181
|
@pulumi.getter
|
|
1183
|
-
def state(self) -> pulumi.Output[
|
|
1182
|
+
def state(self) -> pulumi.Output[_builtins.str]:
|
|
1184
1183
|
return pulumi.get(self, "state")
|
|
1185
1184
|
|
|
1186
|
-
@property
|
|
1185
|
+
@_builtins.property
|
|
1187
1186
|
@pulumi.getter(name="staticIps")
|
|
1188
|
-
def static_ips(self) -> pulumi.Output[Optional[Sequence[
|
|
1187
|
+
def static_ips(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1189
1188
|
"""
|
|
1190
1189
|
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
|
|
1191
1190
|
"""
|
|
1192
1191
|
return pulumi.get(self, "static_ips")
|
|
1193
1192
|
|
|
1194
|
-
@property
|
|
1193
|
+
@_builtins.property
|
|
1195
1194
|
@pulumi.getter
|
|
1196
1195
|
def tags(self) -> pulumi.Output[Optional[Sequence['outputs.PgTag']]]:
|
|
1197
1196
|
"""
|
|
@@ -1199,7 +1198,7 @@ class Pg(pulumi.CustomResource):
|
|
|
1199
1198
|
"""
|
|
1200
1199
|
return pulumi.get(self, "tags")
|
|
1201
1200
|
|
|
1202
|
-
@property
|
|
1201
|
+
@_builtins.property
|
|
1203
1202
|
@pulumi.getter(name="techEmails")
|
|
1204
1203
|
def tech_emails(self) -> pulumi.Output[Optional[Sequence['outputs.PgTechEmail']]]:
|
|
1205
1204
|
"""
|
|
@@ -1207,9 +1206,9 @@ class Pg(pulumi.CustomResource):
|
|
|
1207
1206
|
"""
|
|
1208
1207
|
return pulumi.get(self, "tech_emails")
|
|
1209
1208
|
|
|
1210
|
-
@property
|
|
1209
|
+
@_builtins.property
|
|
1211
1210
|
@pulumi.getter(name="terminationProtection")
|
|
1212
|
-
def termination_protection(self) -> pulumi.Output[Optional[
|
|
1211
|
+
def termination_protection(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1213
1212
|
"""
|
|
1214
1213
|
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.
|
|
1215
1214
|
"""
|