pulumi-aiven 6.13.0a1709702245__py3-none-any.whl → 6.31.0a1736831339__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 +127 -0
- pulumi_aiven/_inputs.py +32826 -13922
- pulumi_aiven/_utilities.py +41 -5
- pulumi_aiven/account.py +34 -43
- pulumi_aiven/account_authentication.py +24 -9
- pulumi_aiven/account_team.py +37 -12
- pulumi_aiven/account_team_member.py +48 -35
- pulumi_aiven/account_team_project.py +42 -25
- pulumi_aiven/alloydbomni.py +1335 -0
- pulumi_aiven/alloydbomni_database.py +347 -0
- pulumi_aiven/alloydbomni_user.py +433 -0
- pulumi_aiven/aws_privatelink.py +44 -39
- pulumi_aiven/aws_vpc_peering_connection.py +72 -57
- pulumi_aiven/azure_privatelink.py +54 -49
- pulumi_aiven/azure_privatelink_connection_approval.py +136 -33
- pulumi_aiven/azure_vpc_peering_connection.py +86 -73
- pulumi_aiven/billing_group.py +33 -30
- pulumi_aiven/cassandra.py +145 -122
- pulumi_aiven/cassandra_user.py +59 -54
- pulumi_aiven/clickhouse.py +133 -110
- pulumi_aiven/clickhouse_database.py +58 -58
- pulumi_aiven/clickhouse_grant.py +135 -130
- pulumi_aiven/clickhouse_role.py +36 -45
- pulumi_aiven/clickhouse_user.py +50 -45
- pulumi_aiven/config/__init__.pyi +5 -0
- pulumi_aiven/config/vars.py +5 -0
- pulumi_aiven/connection_pool.py +67 -62
- pulumi_aiven/dragonfly.py +1256 -0
- pulumi_aiven/flink.py +104 -100
- pulumi_aiven/flink_application.py +58 -51
- pulumi_aiven/flink_application_deployment.py +178 -73
- pulumi_aiven/flink_application_version.py +179 -96
- pulumi_aiven/gcp_privatelink.py +69 -42
- pulumi_aiven/gcp_privatelink_connection_approval.py +78 -49
- pulumi_aiven/gcp_vpc_peering_connection.py +49 -44
- pulumi_aiven/get_account.py +20 -5
- pulumi_aiven/get_account_authentication.py +31 -5
- pulumi_aiven/get_account_team.py +18 -5
- pulumi_aiven/get_account_team_member.py +29 -14
- pulumi_aiven/get_account_team_project.py +19 -6
- pulumi_aiven/get_alloydbomni.py +499 -0
- pulumi_aiven/get_alloydbomni_database.py +168 -0
- pulumi_aiven/get_alloydbomni_user.py +210 -0
- pulumi_aiven/get_aws_privatelink.py +33 -20
- pulumi_aiven/get_aws_vpc_peering_connection.py +56 -29
- pulumi_aiven/get_azure_privatelink.py +37 -22
- pulumi_aiven/get_azure_vpc_peering_connection.py +77 -28
- pulumi_aiven/get_billing_group.py +31 -8
- pulumi_aiven/get_cassanda.py +55 -19
- pulumi_aiven/get_cassandra.py +55 -19
- pulumi_aiven/get_cassandra_user.py +42 -26
- pulumi_aiven/get_clickhouse.py +55 -19
- pulumi_aiven/get_clickhouse_database.py +35 -22
- pulumi_aiven/get_clickhouse_user.py +40 -25
- pulumi_aiven/get_connection_pool.py +43 -26
- pulumi_aiven/get_dragonfly.py +499 -0
- pulumi_aiven/get_external_identity.py +160 -0
- pulumi_aiven/get_flink.py +55 -19
- pulumi_aiven/get_flink_application.py +44 -27
- pulumi_aiven/get_flink_application_version.py +55 -33
- pulumi_aiven/get_gcp_privatelink.py +63 -7
- pulumi_aiven/get_gcp_vpc_peering_connection.py +39 -24
- pulumi_aiven/get_grafana.py +55 -19
- pulumi_aiven/get_influx_db.py +41 -5
- pulumi_aiven/get_influxdb_database.py +18 -5
- pulumi_aiven/get_influxdb_user.py +21 -5
- pulumi_aiven/get_kafka.py +59 -21
- pulumi_aiven/get_kafka_acl.py +50 -33
- pulumi_aiven/get_kafka_connect.py +54 -32
- pulumi_aiven/get_kafka_connector.py +44 -24
- pulumi_aiven/get_kafka_mirror_maker.py +50 -28
- pulumi_aiven/get_kafka_schema.py +35 -19
- pulumi_aiven/get_kafka_schema_configuration.py +32 -17
- pulumi_aiven/get_kafka_schema_registry_acl.py +37 -20
- pulumi_aiven/get_kafka_topic.py +70 -25
- pulumi_aiven/get_kafka_user.py +42 -26
- pulumi_aiven/get_m3_aggregator.py +51 -15
- pulumi_aiven/get_m3_db.py +55 -19
- pulumi_aiven/get_m3db_user.py +38 -24
- pulumi_aiven/get_mirror_maker_replication_flow.py +86 -21
- pulumi_aiven/get_my_sql.py +50 -14
- pulumi_aiven/get_mysql_database.py +31 -18
- pulumi_aiven/get_mysql_user.py +36 -19
- pulumi_aiven/get_open_search.py +50 -14
- pulumi_aiven/get_open_search_acl_config.py +27 -15
- pulumi_aiven/get_open_search_acl_rule.py +37 -21
- pulumi_aiven/get_opensearch_security_plugin_config.py +29 -15
- pulumi_aiven/get_opensearch_user.py +32 -18
- pulumi_aiven/get_organization.py +25 -13
- pulumi_aiven/get_organization_application_user.py +176 -0
- pulumi_aiven/get_organization_user.py +18 -5
- pulumi_aiven/get_organization_user_group.py +48 -14
- pulumi_aiven/get_organization_user_list.py +121 -0
- pulumi_aiven/get_organizational_unit.py +26 -14
- pulumi_aiven/get_pg.py +55 -19
- pulumi_aiven/get_pg_database.py +39 -24
- pulumi_aiven/get_pg_user.py +44 -27
- pulumi_aiven/get_project.py +43 -22
- pulumi_aiven/get_project_user.py +27 -15
- pulumi_aiven/get_project_vpc.py +31 -19
- pulumi_aiven/get_redis.py +50 -14
- pulumi_aiven/get_redis_user.py +40 -22
- pulumi_aiven/get_service_component.py +40 -18
- pulumi_aiven/get_service_integration.py +163 -49
- pulumi_aiven/get_service_integration_endpoint.py +128 -33
- pulumi_aiven/get_thanos.py +499 -0
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +35 -18
- pulumi_aiven/get_valkey.py +499 -0
- pulumi_aiven/get_valkey_user.py +218 -0
- pulumi_aiven/grafana.py +188 -318
- pulumi_aiven/influx_db.py +127 -90
- pulumi_aiven/influxdb_database.py +40 -55
- pulumi_aiven/influxdb_user.py +47 -42
- pulumi_aiven/kafka.py +157 -140
- pulumi_aiven/kafka_acl.py +64 -53
- pulumi_aiven/kafka_connect.py +201 -328
- pulumi_aiven/kafka_connector.py +67 -56
- pulumi_aiven/kafka_mirror_maker.py +139 -318
- pulumi_aiven/kafka_native_acl.py +588 -0
- pulumi_aiven/kafka_schema.py +65 -56
- pulumi_aiven/kafka_schema_configuration.py +25 -20
- pulumi_aiven/kafka_schema_registry_acl.py +80 -35
- pulumi_aiven/kafka_topic.py +184 -65
- pulumi_aiven/kafka_user.py +59 -54
- pulumi_aiven/m3_aggregator.py +176 -308
- pulumi_aiven/m3_db.py +190 -322
- pulumi_aiven/m3db_user.py +51 -46
- pulumi_aiven/mirror_maker_replication_flow.py +217 -53
- pulumi_aiven/my_sql.py +190 -322
- pulumi_aiven/mysql_database.py +32 -47
- pulumi_aiven/mysql_user.py +37 -32
- pulumi_aiven/open_search.py +128 -105
- pulumi_aiven/open_search_acl_config.py +33 -32
- pulumi_aiven/open_search_acl_rule.py +55 -50
- pulumi_aiven/opensearch_security_plugin_config.py +69 -16
- pulumi_aiven/opensearch_user.py +30 -25
- pulumi_aiven/organization.py +18 -13
- pulumi_aiven/organization_application_user.py +345 -0
- pulumi_aiven/organization_application_user_token.py +711 -0
- pulumi_aiven/organization_group_project.py +349 -0
- pulumi_aiven/organization_permission.py +421 -0
- pulumi_aiven/organization_user.py +25 -46
- pulumi_aiven/organization_user_group.py +64 -23
- pulumi_aiven/organization_user_group_member.py +359 -0
- pulumi_aiven/organizational_unit.py +41 -32
- pulumi_aiven/outputs.py +38509 -21612
- pulumi_aiven/pg.py +92 -88
- pulumi_aiven/pg_database.py +52 -67
- pulumi_aiven/pg_user.py +80 -61
- pulumi_aiven/project.py +111 -102
- pulumi_aiven/project_user.py +44 -31
- pulumi_aiven/project_vpc.py +58 -29
- pulumi_aiven/provider.py +5 -0
- pulumi_aiven/pulumi-plugin.json +2 -1
- pulumi_aiven/redis.py +163 -295
- pulumi_aiven/redis_user.py +58 -53
- pulumi_aiven/service_integration.py +511 -161
- pulumi_aiven/service_integration_endpoint.py +466 -158
- pulumi_aiven/static_ip.py +21 -16
- pulumi_aiven/thanos.py +1262 -0
- pulumi_aiven/transit_gateway_vpc_attachment.py +44 -54
- pulumi_aiven/valkey.py +1256 -0
- pulumi_aiven/valkey_user.py +606 -0
- {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/METADATA +7 -6
- pulumi_aiven-6.31.0a1736831339.dist-info/RECORD +169 -0
- {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/WHEEL +1 -1
- pulumi_aiven-6.13.0a1709702245.dist-info/RECORD +0 -146
- {pulumi_aiven-6.13.0a1709702245.dist-info → pulumi_aiven-6.31.0a1736831339.dist-info}/top_level.txt +0 -0
pulumi_aiven/my_sql.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -24,6 +29,7 @@ class MySqlArgs:
|
|
|
24
29
|
disk_space: Optional[pulumi.Input[str]] = None,
|
|
25
30
|
maintenance_window_dow: Optional[pulumi.Input[str]] = None,
|
|
26
31
|
maintenance_window_time: Optional[pulumi.Input[str]] = None,
|
|
32
|
+
mysql: Optional[pulumi.Input['MySqlMysqlArgs']] = None,
|
|
27
33
|
mysql_user_config: Optional[pulumi.Input['MySqlMysqlUserConfigArgs']] = None,
|
|
28
34
|
project_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
29
35
|
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input['MySqlServiceIntegrationArgs']]]] = None,
|
|
@@ -33,42 +39,22 @@ class MySqlArgs:
|
|
|
33
39
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
34
40
|
"""
|
|
35
41
|
The set of arguments for constructing a MySql resource.
|
|
36
|
-
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
:param pulumi.Input[str] project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
43
|
-
reference. This property cannot be changed, doing so forces recreation of the resource.
|
|
44
|
-
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
45
|
-
service so name should be picked based on intended service usage rather than current attributes.
|
|
46
|
-
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
47
|
-
reducing will result in the service rebalancing.
|
|
48
|
-
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
49
|
-
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
50
|
-
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
51
|
-
are documented on each Cloud provider's own support articles, like [here for
|
|
52
|
-
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
53
|
-
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
54
|
-
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
55
|
-
will result in the service rebalancing.
|
|
42
|
+
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seen from the [Aiven pricing page](https://aiven.io/pricing).
|
|
43
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
44
|
+
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the service so name should be picked based on intended service usage rather than current attributes.
|
|
45
|
+
:param pulumi.Input[str] additional_disk_space: Add [disk storage](https://aiven.io/docs/platform/howto/add-storage-space) in increments of 30 GiB to scale your service. The maximum value depends on the service type and cloud provider. Removing additional storage causes the service nodes to go through a rolling restart and there might be a short downtime for services with no HA capabilities.
|
|
46
|
+
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
47
|
+
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
56
48
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
57
49
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
58
|
-
:param pulumi.Input['
|
|
59
|
-
:param pulumi.Input[
|
|
60
|
-
|
|
61
|
-
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
62
|
-
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
50
|
+
:param pulumi.Input['MySqlMysqlArgs'] mysql: MySQL specific server provided values
|
|
51
|
+
:param pulumi.Input['MySqlMysqlUserConfigArgs'] mysql_user_config: Mysql 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[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
63
53
|
:param pulumi.Input[Sequence[pulumi.Input['MySqlServiceIntegrationArgs']]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
64
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
65
|
-
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
54
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
66
55
|
:param pulumi.Input[Sequence[pulumi.Input['MySqlTagArgs']]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
67
|
-
:param pulumi.Input[Sequence[pulumi.Input['MySqlTechEmailArgs']]] tech_emails:
|
|
68
|
-
|
|
69
|
-
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
70
|
-
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
71
|
-
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
56
|
+
:param pulumi.Input[Sequence[pulumi.Input['MySqlTechEmailArgs']]] 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.
|
|
57
|
+
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.
|
|
72
58
|
"""
|
|
73
59
|
pulumi.set(__self__, "plan", plan)
|
|
74
60
|
pulumi.set(__self__, "project", project)
|
|
@@ -86,6 +72,8 @@ class MySqlArgs:
|
|
|
86
72
|
pulumi.set(__self__, "maintenance_window_dow", maintenance_window_dow)
|
|
87
73
|
if maintenance_window_time is not None:
|
|
88
74
|
pulumi.set(__self__, "maintenance_window_time", maintenance_window_time)
|
|
75
|
+
if mysql is not None:
|
|
76
|
+
pulumi.set(__self__, "mysql", mysql)
|
|
89
77
|
if mysql_user_config is not None:
|
|
90
78
|
pulumi.set(__self__, "mysql_user_config", mysql_user_config)
|
|
91
79
|
if project_vpc_id is not None:
|
|
@@ -105,12 +93,7 @@ class MySqlArgs:
|
|
|
105
93
|
@pulumi.getter
|
|
106
94
|
def plan(self) -> pulumi.Input[str]:
|
|
107
95
|
"""
|
|
108
|
-
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
109
|
-
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
110
|
-
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
111
|
-
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
112
|
-
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
113
|
-
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
96
|
+
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).
|
|
114
97
|
"""
|
|
115
98
|
return pulumi.get(self, "plan")
|
|
116
99
|
|
|
@@ -122,8 +105,7 @@ class MySqlArgs:
|
|
|
122
105
|
@pulumi.getter
|
|
123
106
|
def project(self) -> pulumi.Input[str]:
|
|
124
107
|
"""
|
|
125
|
-
|
|
126
|
-
reference. This property cannot be changed, doing so forces recreation of the resource.
|
|
108
|
+
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.
|
|
127
109
|
"""
|
|
128
110
|
return pulumi.get(self, "project")
|
|
129
111
|
|
|
@@ -135,8 +117,7 @@ class MySqlArgs:
|
|
|
135
117
|
@pulumi.getter(name="serviceName")
|
|
136
118
|
def service_name(self) -> pulumi.Input[str]:
|
|
137
119
|
"""
|
|
138
|
-
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
139
|
-
service so name should be picked based on intended service usage rather than current attributes.
|
|
120
|
+
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.
|
|
140
121
|
"""
|
|
141
122
|
return pulumi.get(self, "service_name")
|
|
142
123
|
|
|
@@ -148,8 +129,7 @@ class MySqlArgs:
|
|
|
148
129
|
@pulumi.getter(name="additionalDiskSpace")
|
|
149
130
|
def additional_disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
150
131
|
"""
|
|
151
|
-
|
|
152
|
-
reducing will result in the service rebalancing.
|
|
132
|
+
Add [disk storage](https://aiven.io/docs/platform/howto/add-storage-space) in increments of 30 GiB to scale your service. The maximum value depends on the service type and cloud provider. Removing additional storage causes the service nodes to go through a rolling restart and there might be a short downtime for services with no HA capabilities.
|
|
153
133
|
"""
|
|
154
134
|
return pulumi.get(self, "additional_disk_space")
|
|
155
135
|
|
|
@@ -161,12 +141,7 @@ class MySqlArgs:
|
|
|
161
141
|
@pulumi.getter(name="cloudName")
|
|
162
142
|
def cloud_name(self) -> Optional[pulumi.Input[str]]:
|
|
163
143
|
"""
|
|
164
|
-
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
165
|
-
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
166
|
-
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
167
|
-
are documented on each Cloud provider's own support articles, like [here for
|
|
168
|
-
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
169
|
-
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
144
|
+
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
170
145
|
"""
|
|
171
146
|
return pulumi.get(self, "cloud_name")
|
|
172
147
|
|
|
@@ -176,14 +151,11 @@ class MySqlArgs:
|
|
|
176
151
|
|
|
177
152
|
@property
|
|
178
153
|
@pulumi.getter(name="diskSpace")
|
|
154
|
+
@_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.""")
|
|
179
155
|
def disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
180
156
|
"""
|
|
181
|
-
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
182
|
-
will result in the service rebalancing.
|
|
157
|
+
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
183
158
|
"""
|
|
184
|
-
warnings.warn("""This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""", DeprecationWarning)
|
|
185
|
-
pulumi.log.warn("""disk_space is deprecated: This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""")
|
|
186
|
-
|
|
187
159
|
return pulumi.get(self, "disk_space")
|
|
188
160
|
|
|
189
161
|
@disk_space.setter
|
|
@@ -214,11 +186,23 @@ class MySqlArgs:
|
|
|
214
186
|
def maintenance_window_time(self, value: Optional[pulumi.Input[str]]):
|
|
215
187
|
pulumi.set(self, "maintenance_window_time", value)
|
|
216
188
|
|
|
189
|
+
@property
|
|
190
|
+
@pulumi.getter
|
|
191
|
+
def mysql(self) -> Optional[pulumi.Input['MySqlMysqlArgs']]:
|
|
192
|
+
"""
|
|
193
|
+
MySQL specific server provided values
|
|
194
|
+
"""
|
|
195
|
+
return pulumi.get(self, "mysql")
|
|
196
|
+
|
|
197
|
+
@mysql.setter
|
|
198
|
+
def mysql(self, value: Optional[pulumi.Input['MySqlMysqlArgs']]):
|
|
199
|
+
pulumi.set(self, "mysql", value)
|
|
200
|
+
|
|
217
201
|
@property
|
|
218
202
|
@pulumi.getter(name="mysqlUserConfig")
|
|
219
203
|
def mysql_user_config(self) -> Optional[pulumi.Input['MySqlMysqlUserConfigArgs']]:
|
|
220
204
|
"""
|
|
221
|
-
Mysql user configurable settings
|
|
205
|
+
Mysql user configurable settings. **Warning:** There's no way to reset advanced configuration options to default. Options that you add cannot be removed later
|
|
222
206
|
"""
|
|
223
207
|
return pulumi.get(self, "mysql_user_config")
|
|
224
208
|
|
|
@@ -230,10 +214,7 @@ class MySqlArgs:
|
|
|
230
214
|
@pulumi.getter(name="projectVpcId")
|
|
231
215
|
def project_vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
232
216
|
"""
|
|
233
|
-
Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
234
|
-
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
235
|
-
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
236
|
-
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
217
|
+
Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
237
218
|
"""
|
|
238
219
|
return pulumi.get(self, "project_vpc_id")
|
|
239
220
|
|
|
@@ -257,8 +238,7 @@ class MySqlArgs:
|
|
|
257
238
|
@pulumi.getter(name="staticIps")
|
|
258
239
|
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
259
240
|
"""
|
|
260
|
-
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
261
|
-
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
241
|
+
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
|
|
262
242
|
"""
|
|
263
243
|
return pulumi.get(self, "static_ips")
|
|
264
244
|
|
|
@@ -282,8 +262,7 @@ class MySqlArgs:
|
|
|
282
262
|
@pulumi.getter(name="techEmails")
|
|
283
263
|
def tech_emails(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MySqlTechEmailArgs']]]]:
|
|
284
264
|
"""
|
|
285
|
-
|
|
286
|
-
instability.
|
|
265
|
+
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.
|
|
287
266
|
"""
|
|
288
267
|
return pulumi.get(self, "tech_emails")
|
|
289
268
|
|
|
@@ -295,9 +274,7 @@ class MySqlArgs:
|
|
|
295
274
|
@pulumi.getter(name="terminationProtection")
|
|
296
275
|
def termination_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
297
276
|
"""
|
|
298
|
-
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
299
|
-
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
300
|
-
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
277
|
+
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.
|
|
301
278
|
"""
|
|
302
279
|
return pulumi.get(self, "termination_protection")
|
|
303
280
|
|
|
@@ -319,8 +296,8 @@ class _MySqlState:
|
|
|
319
296
|
disk_space_used: Optional[pulumi.Input[str]] = None,
|
|
320
297
|
maintenance_window_dow: Optional[pulumi.Input[str]] = None,
|
|
321
298
|
maintenance_window_time: Optional[pulumi.Input[str]] = None,
|
|
299
|
+
mysql: Optional[pulumi.Input['MySqlMysqlArgs']] = None,
|
|
322
300
|
mysql_user_config: Optional[pulumi.Input['MySqlMysqlUserConfigArgs']] = None,
|
|
323
|
-
mysqls: Optional[pulumi.Input[Sequence[pulumi.Input['MySqlMysqlArgs']]]] = None,
|
|
324
301
|
plan: Optional[pulumi.Input[str]] = None,
|
|
325
302
|
project: Optional[pulumi.Input[str]] = None,
|
|
326
303
|
project_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -339,57 +316,34 @@ class _MySqlState:
|
|
|
339
316
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
340
317
|
"""
|
|
341
318
|
Input properties used for looking up and filtering MySql resources.
|
|
342
|
-
:param pulumi.Input[str] additional_disk_space:
|
|
343
|
-
|
|
344
|
-
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
345
|
-
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
346
|
-
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
347
|
-
are documented on each Cloud provider's own support articles, like [here for
|
|
348
|
-
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
349
|
-
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
319
|
+
:param pulumi.Input[str] additional_disk_space: Add [disk storage](https://aiven.io/docs/platform/howto/add-storage-space) in increments of 30 GiB to scale your service. The maximum value depends on the service type and cloud provider. Removing additional storage causes the service nodes to go through a rolling restart and there might be a short downtime for services with no HA capabilities.
|
|
320
|
+
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
350
321
|
:param pulumi.Input[Sequence[pulumi.Input['MySqlComponentArgs']]] components: Service component information objects
|
|
351
|
-
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
352
|
-
will result in the service rebalancing.
|
|
322
|
+
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
353
323
|
:param pulumi.Input[str] disk_space_cap: The maximum disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
354
|
-
:param pulumi.Input[str] disk_space_default: The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
355
|
-
|
|
356
|
-
:param pulumi.Input[str] disk_space_step: The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
357
|
-
project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
|
|
324
|
+
:param pulumi.Input[str] disk_space_default: The default disk space of the service, possible values depend on the service type, the cloud provider and the project. Its also the minimum value for `disk_space`
|
|
325
|
+
:param pulumi.Input[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.
|
|
358
326
|
:param pulumi.Input[str] disk_space_used: Disk space that service is currently using
|
|
359
327
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
360
328
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
361
|
-
:param pulumi.Input['
|
|
362
|
-
:param pulumi.Input[
|
|
363
|
-
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
367
|
-
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
368
|
-
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
369
|
-
:param pulumi.Input[str] project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
370
|
-
reference. This property cannot be changed, doing so forces recreation of the resource.
|
|
371
|
-
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
372
|
-
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
373
|
-
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
374
|
-
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
329
|
+
:param pulumi.Input['MySqlMysqlArgs'] mysql: MySQL specific server provided values
|
|
330
|
+
:param pulumi.Input['MySqlMysqlUserConfigArgs'] mysql_user_config: Mysql user configurable settings. **Warning:** There's no way to reset advanced configuration options to default. Options that you add cannot be removed later
|
|
331
|
+
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seen from the [Aiven pricing page](https://aiven.io/pricing).
|
|
332
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
333
|
+
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
375
334
|
:param pulumi.Input[str] service_host: The hostname of the service.
|
|
376
335
|
:param pulumi.Input[Sequence[pulumi.Input['MySqlServiceIntegrationArgs']]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
377
|
-
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
378
|
-
service so name should be picked based on intended service usage rather than current attributes.
|
|
336
|
+
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the service so name should be picked based on intended service usage rather than current attributes.
|
|
379
337
|
:param pulumi.Input[str] service_password: Password used for connecting to the service, if applicable
|
|
380
338
|
:param pulumi.Input[int] service_port: The port of the service
|
|
381
339
|
:param pulumi.Input[str] service_type: Aiven internal service type code
|
|
382
340
|
:param pulumi.Input[str] service_uri: URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
383
341
|
:param pulumi.Input[str] service_username: Username used for connecting to the service, if applicable
|
|
384
342
|
:param pulumi.Input[str] state: Service state. One of `POWEROFF`, `REBALANCING`, `REBUILDING` or `RUNNING`
|
|
385
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
386
|
-
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
343
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
387
344
|
:param pulumi.Input[Sequence[pulumi.Input['MySqlTagArgs']]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
388
|
-
:param pulumi.Input[Sequence[pulumi.Input['MySqlTechEmailArgs']]] tech_emails:
|
|
389
|
-
|
|
390
|
-
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
391
|
-
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
392
|
-
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
345
|
+
:param pulumi.Input[Sequence[pulumi.Input['MySqlTechEmailArgs']]] 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.
|
|
346
|
+
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.
|
|
393
347
|
"""
|
|
394
348
|
if additional_disk_space is not None:
|
|
395
349
|
pulumi.set(__self__, "additional_disk_space", additional_disk_space)
|
|
@@ -408,16 +362,19 @@ class _MySqlState:
|
|
|
408
362
|
pulumi.set(__self__, "disk_space_default", disk_space_default)
|
|
409
363
|
if disk_space_step is not None:
|
|
410
364
|
pulumi.set(__self__, "disk_space_step", disk_space_step)
|
|
365
|
+
if disk_space_used is not None:
|
|
366
|
+
warnings.warn("""This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""", DeprecationWarning)
|
|
367
|
+
pulumi.log.warn("""disk_space_used is deprecated: This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""")
|
|
411
368
|
if disk_space_used is not None:
|
|
412
369
|
pulumi.set(__self__, "disk_space_used", disk_space_used)
|
|
413
370
|
if maintenance_window_dow is not None:
|
|
414
371
|
pulumi.set(__self__, "maintenance_window_dow", maintenance_window_dow)
|
|
415
372
|
if maintenance_window_time is not None:
|
|
416
373
|
pulumi.set(__self__, "maintenance_window_time", maintenance_window_time)
|
|
374
|
+
if mysql is not None:
|
|
375
|
+
pulumi.set(__self__, "mysql", mysql)
|
|
417
376
|
if mysql_user_config is not None:
|
|
418
377
|
pulumi.set(__self__, "mysql_user_config", mysql_user_config)
|
|
419
|
-
if mysqls is not None:
|
|
420
|
-
pulumi.set(__self__, "mysqls", mysqls)
|
|
421
378
|
if plan is not None:
|
|
422
379
|
pulumi.set(__self__, "plan", plan)
|
|
423
380
|
if project is not None:
|
|
@@ -455,8 +412,7 @@ class _MySqlState:
|
|
|
455
412
|
@pulumi.getter(name="additionalDiskSpace")
|
|
456
413
|
def additional_disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
457
414
|
"""
|
|
458
|
-
|
|
459
|
-
reducing will result in the service rebalancing.
|
|
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 with no HA capabilities.
|
|
460
416
|
"""
|
|
461
417
|
return pulumi.get(self, "additional_disk_space")
|
|
462
418
|
|
|
@@ -468,12 +424,7 @@ class _MySqlState:
|
|
|
468
424
|
@pulumi.getter(name="cloudName")
|
|
469
425
|
def cloud_name(self) -> Optional[pulumi.Input[str]]:
|
|
470
426
|
"""
|
|
471
|
-
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
472
|
-
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
473
|
-
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
474
|
-
are documented on each Cloud provider's own support articles, like [here for
|
|
475
|
-
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
476
|
-
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
427
|
+
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
477
428
|
"""
|
|
478
429
|
return pulumi.get(self, "cloud_name")
|
|
479
430
|
|
|
@@ -495,14 +446,11 @@ class _MySqlState:
|
|
|
495
446
|
|
|
496
447
|
@property
|
|
497
448
|
@pulumi.getter(name="diskSpace")
|
|
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.""")
|
|
498
450
|
def disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
499
451
|
"""
|
|
500
|
-
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
501
|
-
will result in the service rebalancing.
|
|
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.
|
|
502
453
|
"""
|
|
503
|
-
warnings.warn("""This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""", DeprecationWarning)
|
|
504
|
-
pulumi.log.warn("""disk_space is deprecated: This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""")
|
|
505
|
-
|
|
506
454
|
return pulumi.get(self, "disk_space")
|
|
507
455
|
|
|
508
456
|
@disk_space.setter
|
|
@@ -525,8 +473,7 @@ class _MySqlState:
|
|
|
525
473
|
@pulumi.getter(name="diskSpaceDefault")
|
|
526
474
|
def disk_space_default(self) -> Optional[pulumi.Input[str]]:
|
|
527
475
|
"""
|
|
528
|
-
The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
529
|
-
Its also the minimum value for `disk_space`
|
|
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`
|
|
530
477
|
"""
|
|
531
478
|
return pulumi.get(self, "disk_space_default")
|
|
532
479
|
|
|
@@ -538,8 +485,7 @@ class _MySqlState:
|
|
|
538
485
|
@pulumi.getter(name="diskSpaceStep")
|
|
539
486
|
def disk_space_step(self) -> Optional[pulumi.Input[str]]:
|
|
540
487
|
"""
|
|
541
|
-
The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
542
|
-
project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
|
|
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.
|
|
543
489
|
"""
|
|
544
490
|
return pulumi.get(self, "disk_space_step")
|
|
545
491
|
|
|
@@ -549,6 +495,7 @@ class _MySqlState:
|
|
|
549
495
|
|
|
550
496
|
@property
|
|
551
497
|
@pulumi.getter(name="diskSpaceUsed")
|
|
498
|
+
@_utilities.deprecated("""This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""")
|
|
552
499
|
def disk_space_used(self) -> Optional[pulumi.Input[str]]:
|
|
553
500
|
"""
|
|
554
501
|
Disk space that service is currently using
|
|
@@ -583,11 +530,23 @@ class _MySqlState:
|
|
|
583
530
|
def maintenance_window_time(self, value: Optional[pulumi.Input[str]]):
|
|
584
531
|
pulumi.set(self, "maintenance_window_time", value)
|
|
585
532
|
|
|
533
|
+
@property
|
|
534
|
+
@pulumi.getter
|
|
535
|
+
def mysql(self) -> Optional[pulumi.Input['MySqlMysqlArgs']]:
|
|
536
|
+
"""
|
|
537
|
+
MySQL specific server provided values
|
|
538
|
+
"""
|
|
539
|
+
return pulumi.get(self, "mysql")
|
|
540
|
+
|
|
541
|
+
@mysql.setter
|
|
542
|
+
def mysql(self, value: Optional[pulumi.Input['MySqlMysqlArgs']]):
|
|
543
|
+
pulumi.set(self, "mysql", value)
|
|
544
|
+
|
|
586
545
|
@property
|
|
587
546
|
@pulumi.getter(name="mysqlUserConfig")
|
|
588
547
|
def mysql_user_config(self) -> Optional[pulumi.Input['MySqlMysqlUserConfigArgs']]:
|
|
589
548
|
"""
|
|
590
|
-
Mysql user configurable settings
|
|
549
|
+
Mysql user configurable settings. **Warning:** There's no way to reset advanced configuration options to default. Options that you add cannot be removed later
|
|
591
550
|
"""
|
|
592
551
|
return pulumi.get(self, "mysql_user_config")
|
|
593
552
|
|
|
@@ -595,28 +554,11 @@ class _MySqlState:
|
|
|
595
554
|
def mysql_user_config(self, value: Optional[pulumi.Input['MySqlMysqlUserConfigArgs']]):
|
|
596
555
|
pulumi.set(self, "mysql_user_config", value)
|
|
597
556
|
|
|
598
|
-
@property
|
|
599
|
-
@pulumi.getter
|
|
600
|
-
def mysqls(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MySqlMysqlArgs']]]]:
|
|
601
|
-
"""
|
|
602
|
-
MySQL specific server provided values
|
|
603
|
-
"""
|
|
604
|
-
return pulumi.get(self, "mysqls")
|
|
605
|
-
|
|
606
|
-
@mysqls.setter
|
|
607
|
-
def mysqls(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MySqlMysqlArgs']]]]):
|
|
608
|
-
pulumi.set(self, "mysqls", value)
|
|
609
|
-
|
|
610
557
|
@property
|
|
611
558
|
@pulumi.getter
|
|
612
559
|
def plan(self) -> Optional[pulumi.Input[str]]:
|
|
613
560
|
"""
|
|
614
|
-
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
615
|
-
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
616
|
-
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
617
|
-
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
618
|
-
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
619
|
-
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
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).
|
|
620
562
|
"""
|
|
621
563
|
return pulumi.get(self, "plan")
|
|
622
564
|
|
|
@@ -628,8 +570,7 @@ class _MySqlState:
|
|
|
628
570
|
@pulumi.getter
|
|
629
571
|
def project(self) -> Optional[pulumi.Input[str]]:
|
|
630
572
|
"""
|
|
631
|
-
|
|
632
|
-
reference. This property cannot be changed, doing so forces recreation of the resource.
|
|
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.
|
|
633
574
|
"""
|
|
634
575
|
return pulumi.get(self, "project")
|
|
635
576
|
|
|
@@ -641,10 +582,7 @@ class _MySqlState:
|
|
|
641
582
|
@pulumi.getter(name="projectVpcId")
|
|
642
583
|
def project_vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
643
584
|
"""
|
|
644
|
-
Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
645
|
-
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
646
|
-
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
647
|
-
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
585
|
+
Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
648
586
|
"""
|
|
649
587
|
return pulumi.get(self, "project_vpc_id")
|
|
650
588
|
|
|
@@ -680,8 +618,7 @@ class _MySqlState:
|
|
|
680
618
|
@pulumi.getter(name="serviceName")
|
|
681
619
|
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
682
620
|
"""
|
|
683
|
-
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
684
|
-
service so name should be picked based on intended service usage rather than current attributes.
|
|
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.
|
|
685
622
|
"""
|
|
686
623
|
return pulumi.get(self, "service_name")
|
|
687
624
|
|
|
@@ -765,8 +702,7 @@ class _MySqlState:
|
|
|
765
702
|
@pulumi.getter(name="staticIps")
|
|
766
703
|
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
767
704
|
"""
|
|
768
|
-
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
769
|
-
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
705
|
+
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
|
|
770
706
|
"""
|
|
771
707
|
return pulumi.get(self, "static_ips")
|
|
772
708
|
|
|
@@ -790,8 +726,7 @@ class _MySqlState:
|
|
|
790
726
|
@pulumi.getter(name="techEmails")
|
|
791
727
|
def tech_emails(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MySqlTechEmailArgs']]]]:
|
|
792
728
|
"""
|
|
793
|
-
|
|
794
|
-
instability.
|
|
729
|
+
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.
|
|
795
730
|
"""
|
|
796
731
|
return pulumi.get(self, "tech_emails")
|
|
797
732
|
|
|
@@ -803,9 +738,7 @@ class _MySqlState:
|
|
|
803
738
|
@pulumi.getter(name="terminationProtection")
|
|
804
739
|
def termination_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
805
740
|
"""
|
|
806
|
-
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
807
|
-
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
808
|
-
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
741
|
+
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.
|
|
809
742
|
"""
|
|
810
743
|
return pulumi.get(self, "termination_protection")
|
|
811
744
|
|
|
@@ -824,15 +757,16 @@ class MySql(pulumi.CustomResource):
|
|
|
824
757
|
disk_space: Optional[pulumi.Input[str]] = None,
|
|
825
758
|
maintenance_window_dow: Optional[pulumi.Input[str]] = None,
|
|
826
759
|
maintenance_window_time: Optional[pulumi.Input[str]] = None,
|
|
827
|
-
|
|
760
|
+
mysql: Optional[pulumi.Input[Union['MySqlMysqlArgs', 'MySqlMysqlArgsDict']]] = None,
|
|
761
|
+
mysql_user_config: Optional[pulumi.Input[Union['MySqlMysqlUserConfigArgs', 'MySqlMysqlUserConfigArgsDict']]] = None,
|
|
828
762
|
plan: Optional[pulumi.Input[str]] = None,
|
|
829
763
|
project: Optional[pulumi.Input[str]] = None,
|
|
830
764
|
project_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
831
|
-
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
765
|
+
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MySqlServiceIntegrationArgs', 'MySqlServiceIntegrationArgsDict']]]]] = None,
|
|
832
766
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
833
767
|
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
834
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
835
|
-
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
768
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MySqlTagArgs', 'MySqlTagArgsDict']]]]] = None,
|
|
769
|
+
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MySqlTechEmailArgs', 'MySqlTechEmailArgsDict']]]]] = None,
|
|
836
770
|
termination_protection: Optional[pulumi.Input[bool]] = None,
|
|
837
771
|
__props__=None):
|
|
838
772
|
"""
|
|
@@ -845,68 +779,48 @@ class MySql(pulumi.CustomResource):
|
|
|
845
779
|
import pulumi_aiven as aiven
|
|
846
780
|
|
|
847
781
|
mysql1 = aiven.MySql("mysql1",
|
|
848
|
-
project=
|
|
782
|
+
project=foo["project"],
|
|
849
783
|
cloud_name="google-europe-west1",
|
|
850
784
|
plan="business-4",
|
|
851
785
|
service_name="my-mysql1",
|
|
852
786
|
maintenance_window_dow="monday",
|
|
853
787
|
maintenance_window_time="10:00:00",
|
|
854
|
-
mysql_user_config=
|
|
855
|
-
mysql_version
|
|
856
|
-
mysql
|
|
857
|
-
sql_mode
|
|
858
|
-
sql_require_primary_key
|
|
859
|
-
|
|
860
|
-
public_access
|
|
861
|
-
mysql
|
|
862
|
-
|
|
863
|
-
)
|
|
788
|
+
mysql_user_config={
|
|
789
|
+
"mysql_version": "8",
|
|
790
|
+
"mysql": {
|
|
791
|
+
"sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE",
|
|
792
|
+
"sql_require_primary_key": True,
|
|
793
|
+
},
|
|
794
|
+
"public_access": {
|
|
795
|
+
"mysql": True,
|
|
796
|
+
},
|
|
797
|
+
})
|
|
864
798
|
```
|
|
865
799
|
|
|
866
800
|
## Import
|
|
867
801
|
|
|
868
802
|
```sh
|
|
869
|
-
|
|
803
|
+
$ pulumi import aiven:index/mySql:MySql mysql1 project/service_name
|
|
870
804
|
```
|
|
871
805
|
|
|
872
806
|
:param str resource_name: The name of the resource.
|
|
873
807
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
874
|
-
:param pulumi.Input[str] additional_disk_space:
|
|
875
|
-
|
|
876
|
-
:param pulumi.Input[str]
|
|
877
|
-
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
878
|
-
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
879
|
-
are documented on each Cloud provider's own support articles, like [here for
|
|
880
|
-
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
881
|
-
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
882
|
-
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
883
|
-
will result in the service rebalancing.
|
|
808
|
+
:param pulumi.Input[str] additional_disk_space: Add [disk storage](https://aiven.io/docs/platform/howto/add-storage-space) in increments of 30 GiB to scale your service. The maximum value depends on the service type and cloud provider. Removing additional storage causes the service nodes to go through a rolling restart and there might be a short downtime for services with no HA capabilities.
|
|
809
|
+
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
810
|
+
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
884
811
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
885
812
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
886
|
-
:param pulumi.Input[
|
|
887
|
-
:param pulumi.Input[
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
:param pulumi.Input[str]
|
|
894
|
-
|
|
895
|
-
:param pulumi.Input[
|
|
896
|
-
|
|
897
|
-
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
898
|
-
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
899
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MySqlServiceIntegrationArgs']]]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
900
|
-
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
901
|
-
service so name should be picked based on intended service usage rather than current attributes.
|
|
902
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
903
|
-
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
904
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MySqlTagArgs']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
905
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MySqlTechEmailArgs']]]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
906
|
-
instability.
|
|
907
|
-
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
908
|
-
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
909
|
-
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
813
|
+
:param pulumi.Input[Union['MySqlMysqlArgs', 'MySqlMysqlArgsDict']] mysql: MySQL specific server provided values
|
|
814
|
+
:param pulumi.Input[Union['MySqlMysqlUserConfigArgs', 'MySqlMysqlUserConfigArgsDict']] mysql_user_config: Mysql user configurable settings. **Warning:** There's no way to reset advanced configuration options to default. Options that you add cannot be removed later
|
|
815
|
+
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seen from the [Aiven pricing page](https://aiven.io/pricing).
|
|
816
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
817
|
+
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
818
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['MySqlServiceIntegrationArgs', 'MySqlServiceIntegrationArgsDict']]]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
819
|
+
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the service so name should be picked based on intended service usage rather than current attributes.
|
|
820
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
821
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['MySqlTagArgs', 'MySqlTagArgsDict']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
822
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['MySqlTechEmailArgs', 'MySqlTechEmailArgsDict']]]] 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.
|
|
823
|
+
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.
|
|
910
824
|
"""
|
|
911
825
|
...
|
|
912
826
|
@overload
|
|
@@ -924,28 +838,28 @@ class MySql(pulumi.CustomResource):
|
|
|
924
838
|
import pulumi_aiven as aiven
|
|
925
839
|
|
|
926
840
|
mysql1 = aiven.MySql("mysql1",
|
|
927
|
-
project=
|
|
841
|
+
project=foo["project"],
|
|
928
842
|
cloud_name="google-europe-west1",
|
|
929
843
|
plan="business-4",
|
|
930
844
|
service_name="my-mysql1",
|
|
931
845
|
maintenance_window_dow="monday",
|
|
932
846
|
maintenance_window_time="10:00:00",
|
|
933
|
-
mysql_user_config=
|
|
934
|
-
mysql_version
|
|
935
|
-
mysql
|
|
936
|
-
sql_mode
|
|
937
|
-
sql_require_primary_key
|
|
938
|
-
|
|
939
|
-
public_access
|
|
940
|
-
mysql
|
|
941
|
-
|
|
942
|
-
)
|
|
847
|
+
mysql_user_config={
|
|
848
|
+
"mysql_version": "8",
|
|
849
|
+
"mysql": {
|
|
850
|
+
"sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE",
|
|
851
|
+
"sql_require_primary_key": True,
|
|
852
|
+
},
|
|
853
|
+
"public_access": {
|
|
854
|
+
"mysql": True,
|
|
855
|
+
},
|
|
856
|
+
})
|
|
943
857
|
```
|
|
944
858
|
|
|
945
859
|
## Import
|
|
946
860
|
|
|
947
861
|
```sh
|
|
948
|
-
|
|
862
|
+
$ pulumi import aiven:index/mySql:MySql mysql1 project/service_name
|
|
949
863
|
```
|
|
950
864
|
|
|
951
865
|
:param str resource_name: The name of the resource.
|
|
@@ -968,15 +882,16 @@ class MySql(pulumi.CustomResource):
|
|
|
968
882
|
disk_space: Optional[pulumi.Input[str]] = None,
|
|
969
883
|
maintenance_window_dow: Optional[pulumi.Input[str]] = None,
|
|
970
884
|
maintenance_window_time: Optional[pulumi.Input[str]] = None,
|
|
971
|
-
|
|
885
|
+
mysql: Optional[pulumi.Input[Union['MySqlMysqlArgs', 'MySqlMysqlArgsDict']]] = None,
|
|
886
|
+
mysql_user_config: Optional[pulumi.Input[Union['MySqlMysqlUserConfigArgs', 'MySqlMysqlUserConfigArgsDict']]] = None,
|
|
972
887
|
plan: Optional[pulumi.Input[str]] = None,
|
|
973
888
|
project: Optional[pulumi.Input[str]] = None,
|
|
974
889
|
project_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
975
|
-
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
890
|
+
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MySqlServiceIntegrationArgs', 'MySqlServiceIntegrationArgsDict']]]]] = None,
|
|
976
891
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
977
892
|
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
978
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
979
|
-
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
893
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MySqlTagArgs', 'MySqlTagArgsDict']]]]] = None,
|
|
894
|
+
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MySqlTechEmailArgs', 'MySqlTechEmailArgsDict']]]]] = None,
|
|
980
895
|
termination_protection: Optional[pulumi.Input[bool]] = None,
|
|
981
896
|
__props__=None):
|
|
982
897
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -992,6 +907,7 @@ class MySql(pulumi.CustomResource):
|
|
|
992
907
|
__props__.__dict__["disk_space"] = disk_space
|
|
993
908
|
__props__.__dict__["maintenance_window_dow"] = maintenance_window_dow
|
|
994
909
|
__props__.__dict__["maintenance_window_time"] = maintenance_window_time
|
|
910
|
+
__props__.__dict__["mysql"] = None if mysql is None else pulumi.Output.secret(mysql)
|
|
995
911
|
__props__.__dict__["mysql_user_config"] = mysql_user_config
|
|
996
912
|
if plan is None and not opts.urn:
|
|
997
913
|
raise TypeError("Missing required property 'plan'")
|
|
@@ -1013,7 +929,6 @@ class MySql(pulumi.CustomResource):
|
|
|
1013
929
|
__props__.__dict__["disk_space_default"] = None
|
|
1014
930
|
__props__.__dict__["disk_space_step"] = None
|
|
1015
931
|
__props__.__dict__["disk_space_used"] = None
|
|
1016
|
-
__props__.__dict__["mysqls"] = None
|
|
1017
932
|
__props__.__dict__["service_host"] = None
|
|
1018
933
|
__props__.__dict__["service_password"] = None
|
|
1019
934
|
__props__.__dict__["service_port"] = None
|
|
@@ -1021,7 +936,7 @@ class MySql(pulumi.CustomResource):
|
|
|
1021
936
|
__props__.__dict__["service_uri"] = None
|
|
1022
937
|
__props__.__dict__["service_username"] = None
|
|
1023
938
|
__props__.__dict__["state"] = None
|
|
1024
|
-
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["servicePassword", "serviceUri"])
|
|
939
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["mysql", "servicePassword", "serviceUri"])
|
|
1025
940
|
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
1026
941
|
super(MySql, __self__).__init__(
|
|
1027
942
|
'aiven:index/mySql:MySql',
|
|
@@ -1035,7 +950,7 @@ class MySql(pulumi.CustomResource):
|
|
|
1035
950
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1036
951
|
additional_disk_space: Optional[pulumi.Input[str]] = None,
|
|
1037
952
|
cloud_name: Optional[pulumi.Input[str]] = None,
|
|
1038
|
-
components: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
953
|
+
components: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MySqlComponentArgs', 'MySqlComponentArgsDict']]]]] = None,
|
|
1039
954
|
disk_space: Optional[pulumi.Input[str]] = None,
|
|
1040
955
|
disk_space_cap: Optional[pulumi.Input[str]] = None,
|
|
1041
956
|
disk_space_default: Optional[pulumi.Input[str]] = None,
|
|
@@ -1043,13 +958,13 @@ class MySql(pulumi.CustomResource):
|
|
|
1043
958
|
disk_space_used: Optional[pulumi.Input[str]] = None,
|
|
1044
959
|
maintenance_window_dow: Optional[pulumi.Input[str]] = None,
|
|
1045
960
|
maintenance_window_time: Optional[pulumi.Input[str]] = None,
|
|
1046
|
-
|
|
1047
|
-
|
|
961
|
+
mysql: Optional[pulumi.Input[Union['MySqlMysqlArgs', 'MySqlMysqlArgsDict']]] = None,
|
|
962
|
+
mysql_user_config: Optional[pulumi.Input[Union['MySqlMysqlUserConfigArgs', 'MySqlMysqlUserConfigArgsDict']]] = None,
|
|
1048
963
|
plan: Optional[pulumi.Input[str]] = None,
|
|
1049
964
|
project: Optional[pulumi.Input[str]] = None,
|
|
1050
965
|
project_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
1051
966
|
service_host: Optional[pulumi.Input[str]] = None,
|
|
1052
|
-
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
967
|
+
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MySqlServiceIntegrationArgs', 'MySqlServiceIntegrationArgsDict']]]]] = None,
|
|
1053
968
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
1054
969
|
service_password: Optional[pulumi.Input[str]] = None,
|
|
1055
970
|
service_port: Optional[pulumi.Input[int]] = None,
|
|
@@ -1058,8 +973,8 @@ class MySql(pulumi.CustomResource):
|
|
|
1058
973
|
service_username: Optional[pulumi.Input[str]] = None,
|
|
1059
974
|
state: Optional[pulumi.Input[str]] = None,
|
|
1060
975
|
static_ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1061
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
1062
|
-
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
976
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MySqlTagArgs', 'MySqlTagArgsDict']]]]] = None,
|
|
977
|
+
tech_emails: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MySqlTechEmailArgs', 'MySqlTechEmailArgsDict']]]]] = None,
|
|
1063
978
|
termination_protection: Optional[pulumi.Input[bool]] = None) -> 'MySql':
|
|
1064
979
|
"""
|
|
1065
980
|
Get an existing MySql resource's state with the given name, id, and optional extra
|
|
@@ -1068,57 +983,34 @@ class MySql(pulumi.CustomResource):
|
|
|
1068
983
|
:param str resource_name: The unique name of the resulting resource.
|
|
1069
984
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1070
985
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1071
|
-
:param pulumi.Input[str] additional_disk_space:
|
|
1072
|
-
|
|
1073
|
-
:param pulumi.Input[
|
|
1074
|
-
|
|
1075
|
-
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
1076
|
-
are documented on each Cloud provider's own support articles, like [here for
|
|
1077
|
-
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
1078
|
-
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
1079
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MySqlComponentArgs']]]] components: Service component information objects
|
|
1080
|
-
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
1081
|
-
will result in the service rebalancing.
|
|
986
|
+
:param pulumi.Input[str] additional_disk_space: Add [disk storage](https://aiven.io/docs/platform/howto/add-storage-space) in increments of 30 GiB to scale your service. The maximum value depends on the service type and cloud provider. Removing additional storage causes the service nodes to go through a rolling restart and there might be a short downtime for services with no HA capabilities.
|
|
987
|
+
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
988
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['MySqlComponentArgs', 'MySqlComponentArgsDict']]]] components: Service component information objects
|
|
989
|
+
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
1082
990
|
:param pulumi.Input[str] disk_space_cap: The maximum disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
1083
|
-
:param pulumi.Input[str] disk_space_default: The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
1084
|
-
|
|
1085
|
-
:param pulumi.Input[str] disk_space_step: The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
1086
|
-
project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
|
|
991
|
+
:param pulumi.Input[str] disk_space_default: The default disk space of the service, possible values depend on the service type, the cloud provider and the project. Its also the minimum value for `disk_space`
|
|
992
|
+
:param pulumi.Input[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.
|
|
1087
993
|
:param pulumi.Input[str] disk_space_used: Disk space that service is currently using
|
|
1088
994
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
1089
995
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
1090
|
-
:param pulumi.Input[
|
|
1091
|
-
:param pulumi.Input[
|
|
1092
|
-
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
1096
|
-
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
1097
|
-
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
1098
|
-
:param pulumi.Input[str] project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
1099
|
-
reference. This property cannot be changed, doing so forces recreation of the resource.
|
|
1100
|
-
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
1101
|
-
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
1102
|
-
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
1103
|
-
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
996
|
+
:param pulumi.Input[Union['MySqlMysqlArgs', 'MySqlMysqlArgsDict']] mysql: MySQL specific server provided values
|
|
997
|
+
:param pulumi.Input[Union['MySqlMysqlUserConfigArgs', 'MySqlMysqlUserConfigArgsDict']] mysql_user_config: Mysql user configurable settings. **Warning:** There's no way to reset advanced configuration options to default. Options that you add cannot be removed later
|
|
998
|
+
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seen from the [Aiven pricing page](https://aiven.io/pricing).
|
|
999
|
+
:param pulumi.Input[str] project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
1000
|
+
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
1104
1001
|
:param pulumi.Input[str] service_host: The hostname of the service.
|
|
1105
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
1106
|
-
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
1107
|
-
service so name should be picked based on intended service usage rather than current attributes.
|
|
1002
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['MySqlServiceIntegrationArgs', 'MySqlServiceIntegrationArgsDict']]]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
1003
|
+
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the service so name should be picked based on intended service usage rather than current attributes.
|
|
1108
1004
|
:param pulumi.Input[str] service_password: Password used for connecting to the service, if applicable
|
|
1109
1005
|
:param pulumi.Input[int] service_port: The port of the service
|
|
1110
1006
|
:param pulumi.Input[str] service_type: Aiven internal service type code
|
|
1111
1007
|
:param pulumi.Input[str] service_uri: URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
1112
1008
|
:param pulumi.Input[str] service_username: Username used for connecting to the service, if applicable
|
|
1113
1009
|
:param pulumi.Input[str] state: Service state. One of `POWEROFF`, `REBALANCING`, `REBUILDING` or `RUNNING`
|
|
1114
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
1115
|
-
|
|
1116
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
1117
|
-
:param pulumi.Input[
|
|
1118
|
-
instability.
|
|
1119
|
-
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
1120
|
-
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
1121
|
-
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
1010
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
1011
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['MySqlTagArgs', 'MySqlTagArgsDict']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
1012
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['MySqlTechEmailArgs', 'MySqlTechEmailArgsDict']]]] 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.
|
|
1013
|
+
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent unintentional service deletion. This does not shield against deleting databases or topics but for services with backups much of the content can at least be restored from backup in case accidental deletion is done.
|
|
1122
1014
|
"""
|
|
1123
1015
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
1124
1016
|
|
|
@@ -1134,8 +1026,8 @@ class MySql(pulumi.CustomResource):
|
|
|
1134
1026
|
__props__.__dict__["disk_space_used"] = disk_space_used
|
|
1135
1027
|
__props__.__dict__["maintenance_window_dow"] = maintenance_window_dow
|
|
1136
1028
|
__props__.__dict__["maintenance_window_time"] = maintenance_window_time
|
|
1029
|
+
__props__.__dict__["mysql"] = mysql
|
|
1137
1030
|
__props__.__dict__["mysql_user_config"] = mysql_user_config
|
|
1138
|
-
__props__.__dict__["mysqls"] = mysqls
|
|
1139
1031
|
__props__.__dict__["plan"] = plan
|
|
1140
1032
|
__props__.__dict__["project"] = project
|
|
1141
1033
|
__props__.__dict__["project_vpc_id"] = project_vpc_id
|
|
@@ -1156,10 +1048,9 @@ class MySql(pulumi.CustomResource):
|
|
|
1156
1048
|
|
|
1157
1049
|
@property
|
|
1158
1050
|
@pulumi.getter(name="additionalDiskSpace")
|
|
1159
|
-
def additional_disk_space(self) -> pulumi.Output[
|
|
1051
|
+
def additional_disk_space(self) -> pulumi.Output[str]:
|
|
1160
1052
|
"""
|
|
1161
|
-
|
|
1162
|
-
reducing will result in the service rebalancing.
|
|
1053
|
+
Add [disk storage](https://aiven.io/docs/platform/howto/add-storage-space) in increments of 30 GiB to scale your service. The maximum value depends on the service type and cloud provider. Removing additional storage causes the service nodes to go through a rolling restart and there might be a short downtime for services with no HA capabilities.
|
|
1163
1054
|
"""
|
|
1164
1055
|
return pulumi.get(self, "additional_disk_space")
|
|
1165
1056
|
|
|
@@ -1167,12 +1058,7 @@ class MySql(pulumi.CustomResource):
|
|
|
1167
1058
|
@pulumi.getter(name="cloudName")
|
|
1168
1059
|
def cloud_name(self) -> pulumi.Output[Optional[str]]:
|
|
1169
1060
|
"""
|
|
1170
|
-
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
1171
|
-
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
1172
|
-
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
1173
|
-
are documented on each Cloud provider's own support articles, like [here for
|
|
1174
|
-
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
1175
|
-
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
1061
|
+
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These are documented on each Cloud provider's own support articles, like [here for Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
1176
1062
|
"""
|
|
1177
1063
|
return pulumi.get(self, "cloud_name")
|
|
1178
1064
|
|
|
@@ -1186,14 +1072,11 @@ class MySql(pulumi.CustomResource):
|
|
|
1186
1072
|
|
|
1187
1073
|
@property
|
|
1188
1074
|
@pulumi.getter(name="diskSpace")
|
|
1075
|
+
@_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.""")
|
|
1189
1076
|
def disk_space(self) -> pulumi.Output[Optional[str]]:
|
|
1190
1077
|
"""
|
|
1191
|
-
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
1192
|
-
will result in the service rebalancing.
|
|
1078
|
+
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
1193
1079
|
"""
|
|
1194
|
-
warnings.warn("""This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""", DeprecationWarning)
|
|
1195
|
-
pulumi.log.warn("""disk_space is deprecated: This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""")
|
|
1196
|
-
|
|
1197
1080
|
return pulumi.get(self, "disk_space")
|
|
1198
1081
|
|
|
1199
1082
|
@property
|
|
@@ -1208,8 +1091,7 @@ class MySql(pulumi.CustomResource):
|
|
|
1208
1091
|
@pulumi.getter(name="diskSpaceDefault")
|
|
1209
1092
|
def disk_space_default(self) -> pulumi.Output[str]:
|
|
1210
1093
|
"""
|
|
1211
|
-
The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
1212
|
-
Its also the minimum value for `disk_space`
|
|
1094
|
+
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`
|
|
1213
1095
|
"""
|
|
1214
1096
|
return pulumi.get(self, "disk_space_default")
|
|
1215
1097
|
|
|
@@ -1217,13 +1099,13 @@ class MySql(pulumi.CustomResource):
|
|
|
1217
1099
|
@pulumi.getter(name="diskSpaceStep")
|
|
1218
1100
|
def disk_space_step(self) -> pulumi.Output[str]:
|
|
1219
1101
|
"""
|
|
1220
|
-
The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
1221
|
-
project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
|
|
1102
|
+
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.
|
|
1222
1103
|
"""
|
|
1223
1104
|
return pulumi.get(self, "disk_space_step")
|
|
1224
1105
|
|
|
1225
1106
|
@property
|
|
1226
1107
|
@pulumi.getter(name="diskSpaceUsed")
|
|
1108
|
+
@_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.""")
|
|
1227
1109
|
def disk_space_used(self) -> pulumi.Output[str]:
|
|
1228
1110
|
"""
|
|
1229
1111
|
Disk space that service is currently using
|
|
@@ -1247,31 +1129,26 @@ class MySql(pulumi.CustomResource):
|
|
|
1247
1129
|
return pulumi.get(self, "maintenance_window_time")
|
|
1248
1130
|
|
|
1249
1131
|
@property
|
|
1250
|
-
@pulumi.getter
|
|
1251
|
-
def
|
|
1132
|
+
@pulumi.getter
|
|
1133
|
+
def mysql(self) -> pulumi.Output['outputs.MySqlMysql']:
|
|
1252
1134
|
"""
|
|
1253
|
-
|
|
1135
|
+
MySQL specific server provided values
|
|
1254
1136
|
"""
|
|
1255
|
-
return pulumi.get(self, "
|
|
1137
|
+
return pulumi.get(self, "mysql")
|
|
1256
1138
|
|
|
1257
1139
|
@property
|
|
1258
|
-
@pulumi.getter
|
|
1259
|
-
def
|
|
1140
|
+
@pulumi.getter(name="mysqlUserConfig")
|
|
1141
|
+
def mysql_user_config(self) -> pulumi.Output[Optional['outputs.MySqlMysqlUserConfig']]:
|
|
1260
1142
|
"""
|
|
1261
|
-
|
|
1143
|
+
Mysql user configurable settings. **Warning:** There's no way to reset advanced configuration options to default. Options that you add cannot be removed later
|
|
1262
1144
|
"""
|
|
1263
|
-
return pulumi.get(self, "
|
|
1145
|
+
return pulumi.get(self, "mysql_user_config")
|
|
1264
1146
|
|
|
1265
1147
|
@property
|
|
1266
1148
|
@pulumi.getter
|
|
1267
1149
|
def plan(self) -> pulumi.Output[str]:
|
|
1268
1150
|
"""
|
|
1269
|
-
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
1270
|
-
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
1271
|
-
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
1272
|
-
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
1273
|
-
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
1274
|
-
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
1151
|
+
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).
|
|
1275
1152
|
"""
|
|
1276
1153
|
return pulumi.get(self, "plan")
|
|
1277
1154
|
|
|
@@ -1279,19 +1156,15 @@ class MySql(pulumi.CustomResource):
|
|
|
1279
1156
|
@pulumi.getter
|
|
1280
1157
|
def project(self) -> pulumi.Output[str]:
|
|
1281
1158
|
"""
|
|
1282
|
-
|
|
1283
|
-
reference. This property cannot be changed, doing so forces recreation of the resource.
|
|
1159
|
+
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.
|
|
1284
1160
|
"""
|
|
1285
1161
|
return pulumi.get(self, "project")
|
|
1286
1162
|
|
|
1287
1163
|
@property
|
|
1288
1164
|
@pulumi.getter(name="projectVpcId")
|
|
1289
|
-
def project_vpc_id(self) -> pulumi.Output[
|
|
1165
|
+
def project_vpc_id(self) -> pulumi.Output[str]:
|
|
1290
1166
|
"""
|
|
1291
|
-
Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
1292
|
-
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
1293
|
-
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
1294
|
-
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
1167
|
+
Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
1295
1168
|
"""
|
|
1296
1169
|
return pulumi.get(self, "project_vpc_id")
|
|
1297
1170
|
|
|
@@ -1305,7 +1178,7 @@ class MySql(pulumi.CustomResource):
|
|
|
1305
1178
|
|
|
1306
1179
|
@property
|
|
1307
1180
|
@pulumi.getter(name="serviceIntegrations")
|
|
1308
|
-
def service_integrations(self) -> pulumi.Output[
|
|
1181
|
+
def service_integrations(self) -> pulumi.Output[Sequence['outputs.MySqlServiceIntegration']]:
|
|
1309
1182
|
"""
|
|
1310
1183
|
Service integrations to specify when creating a service. Not applied after initial service creation
|
|
1311
1184
|
"""
|
|
@@ -1315,8 +1188,7 @@ class MySql(pulumi.CustomResource):
|
|
|
1315
1188
|
@pulumi.getter(name="serviceName")
|
|
1316
1189
|
def service_name(self) -> pulumi.Output[str]:
|
|
1317
1190
|
"""
|
|
1318
|
-
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
1319
|
-
service so name should be picked based on intended service usage rather than current attributes.
|
|
1191
|
+
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.
|
|
1320
1192
|
"""
|
|
1321
1193
|
return pulumi.get(self, "service_name")
|
|
1322
1194
|
|
|
@@ -1372,8 +1244,7 @@ class MySql(pulumi.CustomResource):
|
|
|
1372
1244
|
@pulumi.getter(name="staticIps")
|
|
1373
1245
|
def static_ips(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1374
1246
|
"""
|
|
1375
|
-
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
1376
|
-
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
1247
|
+
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
|
|
1377
1248
|
"""
|
|
1378
1249
|
return pulumi.get(self, "static_ips")
|
|
1379
1250
|
|
|
@@ -1389,8 +1260,7 @@ class MySql(pulumi.CustomResource):
|
|
|
1389
1260
|
@pulumi.getter(name="techEmails")
|
|
1390
1261
|
def tech_emails(self) -> pulumi.Output[Optional[Sequence['outputs.MySqlTechEmail']]]:
|
|
1391
1262
|
"""
|
|
1392
|
-
|
|
1393
|
-
instability.
|
|
1263
|
+
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.
|
|
1394
1264
|
"""
|
|
1395
1265
|
return pulumi.get(self, "tech_emails")
|
|
1396
1266
|
|
|
@@ -1398,9 +1268,7 @@ class MySql(pulumi.CustomResource):
|
|
|
1398
1268
|
@pulumi.getter(name="terminationProtection")
|
|
1399
1269
|
def termination_protection(self) -> pulumi.Output[Optional[bool]]:
|
|
1400
1270
|
"""
|
|
1401
|
-
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
1402
|
-
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
1403
|
-
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
1271
|
+
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.
|
|
1404
1272
|
"""
|
|
1405
1273
|
return pulumi.get(self, "termination_protection")
|
|
1406
1274
|
|