pulumi-aiven 6.14.0__py3-none-any.whl → 6.14.0a1711602990__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-aiven might be problematic. Click here for more details.
- pulumi_aiven/_inputs.py +262 -200
- pulumi_aiven/account.py +6 -2
- pulumi_aiven/account_authentication.py +2 -2
- pulumi_aiven/account_team.py +6 -6
- pulumi_aiven/account_team_member.py +10 -6
- pulumi_aiven/account_team_project.py +12 -12
- pulumi_aiven/aws_privatelink.py +22 -18
- pulumi_aiven/aws_vpc_peering_connection.py +12 -8
- pulumi_aiven/azure_privatelink.py +22 -18
- pulumi_aiven/azure_privatelink_connection_approval.py +14 -112
- pulumi_aiven/azure_vpc_peering_connection.py +10 -6
- pulumi_aiven/billing_group.py +18 -18
- pulumi_aiven/cassandra.py +57 -25
- pulumi_aiven/cassandra_user.py +22 -18
- pulumi_aiven/clickhouse.py +57 -25
- pulumi_aiven/clickhouse_database.py +26 -24
- pulumi_aiven/clickhouse_grant.py +37 -35
- pulumi_aiven/clickhouse_role.py +20 -16
- pulumi_aiven/clickhouse_user.py +22 -18
- pulumi_aiven/connection_pool.py +28 -24
- pulumi_aiven/dragonfly.py +263 -124
- pulumi_aiven/flink.py +36 -32
- pulumi_aiven/flink_application.py +24 -22
- pulumi_aiven/flink_application_deployment.py +21 -21
- pulumi_aiven/flink_application_version.py +14 -96
- pulumi_aiven/gcp_privatelink.py +21 -21
- pulumi_aiven/gcp_privatelink_connection_approval.py +21 -21
- pulumi_aiven/gcp_vpc_peering_connection.py +8 -4
- pulumi_aiven/get_account.py +4 -0
- pulumi_aiven/get_aws_privatelink.py +14 -10
- pulumi_aiven/get_aws_vpc_peering_connection.py +10 -6
- pulumi_aiven/get_azure_privatelink.py +14 -10
- pulumi_aiven/get_azure_vpc_peering_connection.py +6 -2
- pulumi_aiven/get_billing_group.py +2 -2
- pulumi_aiven/get_cassanda.py +24 -7
- pulumi_aiven/get_cassandra.py +24 -7
- pulumi_aiven/get_cassandra_user.py +14 -10
- pulumi_aiven/get_clickhouse.py +24 -7
- pulumi_aiven/get_clickhouse_database.py +14 -10
- pulumi_aiven/get_clickhouse_user.py +14 -10
- pulumi_aiven/get_connection_pool.py +14 -10
- pulumi_aiven/get_dragonfly.py +20 -27
- pulumi_aiven/get_flink.py +10 -6
- pulumi_aiven/get_flink_application.py +12 -8
- pulumi_aiven/get_flink_application_version.py +12 -8
- pulumi_aiven/get_gcp_vpc_peering_connection.py +6 -2
- pulumi_aiven/get_grafana.py +24 -7
- pulumi_aiven/get_kafka.py +17 -13
- pulumi_aiven/get_kafka_acl.py +14 -10
- pulumi_aiven/get_kafka_connect.py +24 -7
- pulumi_aiven/get_kafka_connector.py +14 -10
- pulumi_aiven/get_kafka_mirror_maker.py +24 -7
- pulumi_aiven/get_kafka_schema.py +14 -10
- pulumi_aiven/get_kafka_schema_configuration.py +14 -10
- pulumi_aiven/get_kafka_schema_registry_acl.py +6 -6
- pulumi_aiven/get_kafka_topic.py +20 -16
- pulumi_aiven/get_kafka_user.py +14 -10
- pulumi_aiven/get_m3_aggregator.py +24 -7
- pulumi_aiven/get_m3_db.py +24 -7
- pulumi_aiven/get_m3db_user.py +14 -10
- pulumi_aiven/get_mirror_maker_replication_flow.py +18 -14
- pulumi_aiven/get_my_sql.py +24 -7
- pulumi_aiven/get_mysql_database.py +14 -10
- pulumi_aiven/get_mysql_user.py +14 -10
- pulumi_aiven/get_open_search.py +10 -6
- pulumi_aiven/get_open_search_acl_config.py +14 -10
- pulumi_aiven/get_open_search_acl_rule.py +14 -10
- pulumi_aiven/get_opensearch_security_plugin_config.py +14 -10
- pulumi_aiven/get_opensearch_user.py +14 -10
- pulumi_aiven/get_organization.py +4 -0
- pulumi_aiven/get_organization_user_group.py +6 -2
- pulumi_aiven/get_pg.py +10 -6
- pulumi_aiven/get_pg_database.py +14 -10
- pulumi_aiven/get_pg_user.py +14 -10
- pulumi_aiven/get_project.py +21 -17
- pulumi_aiven/get_project_user.py +13 -9
- pulumi_aiven/get_project_vpc.py +6 -2
- pulumi_aiven/get_redis.py +24 -7
- pulumi_aiven/get_redis_user.py +14 -10
- pulumi_aiven/get_service_component.py +8 -4
- pulumi_aiven/get_service_integration.py +33 -19
- pulumi_aiven/get_service_integration_endpoint.py +6 -2
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +6 -2
- pulumi_aiven/grafana.py +267 -82
- pulumi_aiven/influx_db.py +21 -21
- pulumi_aiven/influxdb_database.py +21 -21
- pulumi_aiven/influxdb_user.py +21 -21
- pulumi_aiven/kafka.py +54 -50
- pulumi_aiven/kafka_acl.py +24 -20
- pulumi_aiven/kafka_connect.py +267 -80
- pulumi_aiven/kafka_connector.py +30 -26
- pulumi_aiven/kafka_mirror_maker.py +267 -80
- pulumi_aiven/kafka_schema.py +22 -18
- pulumi_aiven/kafka_schema_configuration.py +24 -20
- pulumi_aiven/kafka_schema_registry_acl.py +14 -54
- pulumi_aiven/kafka_topic.py +46 -84
- pulumi_aiven/kafka_user.py +22 -18
- pulumi_aiven/m3_aggregator.py +267 -80
- pulumi_aiven/m3_db.py +267 -80
- pulumi_aiven/m3db_user.py +20 -16
- pulumi_aiven/mirror_maker_replication_flow.py +26 -22
- pulumi_aiven/my_sql.py +267 -80
- pulumi_aiven/mysql_database.py +24 -20
- pulumi_aiven/mysql_user.py +22 -18
- pulumi_aiven/open_search.py +31 -27
- pulumi_aiven/open_search_acl_config.py +36 -28
- pulumi_aiven/open_search_acl_rule.py +40 -36
- pulumi_aiven/opensearch_security_plugin_config.py +32 -28
- pulumi_aiven/opensearch_user.py +22 -18
- pulumi_aiven/organization.py +6 -2
- pulumi_aiven/organization_group_project.py +0 -46
- pulumi_aiven/organization_user.py +20 -2
- pulumi_aiven/organization_user_group.py +6 -4
- pulumi_aiven/organization_user_group_member.py +10 -8
- pulumi_aiven/organizational_unit.py +6 -6
- pulumi_aiven/outputs.py +390 -271
- pulumi_aiven/pg.py +30 -30
- pulumi_aiven/pg_database.py +24 -20
- pulumi_aiven/pg_user.py +22 -18
- pulumi_aiven/project.py +79 -75
- pulumi_aiven/project_user.py +28 -24
- pulumi_aiven/project_vpc.py +7 -31
- pulumi_aiven/redis.py +267 -80
- pulumi_aiven/redis_user.py +22 -18
- pulumi_aiven/service_integration.py +58 -54
- pulumi_aiven/static_ip.py +7 -7
- pulumi_aiven/transit_gateway_vpc_attachment.py +8 -4
- {pulumi_aiven-6.14.0.dist-info → pulumi_aiven-6.14.0a1711602990.dist-info}/METADATA +1 -1
- pulumi_aiven-6.14.0a1711602990.dist-info/RECORD +150 -0
- pulumi_aiven-6.14.0.dist-info/RECORD +0 -150
- {pulumi_aiven-6.14.0.dist-info → pulumi_aiven-6.14.0a1711602990.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.14.0.dist-info → pulumi_aiven-6.14.0a1711602990.dist-info}/top_level.txt +0 -0
pulumi_aiven/redis.py
CHANGED
|
@@ -33,21 +33,42 @@ class RedisArgs:
|
|
|
33
33
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
34
34
|
"""
|
|
35
35
|
The set of arguments for constructing a Redis 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
|
-
|
|
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
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
38
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
39
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
40
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
41
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
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. 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
|
|
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
56
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
43
57
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
44
|
-
:param pulumi.Input[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
|
|
58
|
+
: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
|
|
59
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
60
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
61
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
45
62
|
:param pulumi.Input['RedisRedisUserConfigArgs'] redis_user_config: Redis user configurable settings
|
|
46
63
|
:param pulumi.Input[Sequence[pulumi.Input['RedisServiceIntegrationArgs']]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
47
|
-
: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
|
|
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
|
|
48
66
|
:param pulumi.Input[Sequence[pulumi.Input['RedisTagArgs']]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
49
|
-
:param pulumi.Input[Sequence[pulumi.Input['RedisTechEmailArgs']]] tech_emails:
|
|
50
|
-
|
|
67
|
+
:param pulumi.Input[Sequence[pulumi.Input['RedisTechEmailArgs']]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
68
|
+
instability.
|
|
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.
|
|
51
72
|
"""
|
|
52
73
|
pulumi.set(__self__, "plan", plan)
|
|
53
74
|
pulumi.set(__self__, "project", project)
|
|
@@ -84,7 +105,12 @@ class RedisArgs:
|
|
|
84
105
|
@pulumi.getter
|
|
85
106
|
def plan(self) -> pulumi.Input[str]:
|
|
86
107
|
"""
|
|
87
|
-
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
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).
|
|
88
114
|
"""
|
|
89
115
|
return pulumi.get(self, "plan")
|
|
90
116
|
|
|
@@ -96,7 +122,8 @@ class RedisArgs:
|
|
|
96
122
|
@pulumi.getter
|
|
97
123
|
def project(self) -> pulumi.Input[str]:
|
|
98
124
|
"""
|
|
99
|
-
|
|
125
|
+
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
126
|
+
reference. Changing this property forces recreation of the resource.
|
|
100
127
|
"""
|
|
101
128
|
return pulumi.get(self, "project")
|
|
102
129
|
|
|
@@ -108,7 +135,8 @@ class RedisArgs:
|
|
|
108
135
|
@pulumi.getter(name="serviceName")
|
|
109
136
|
def service_name(self) -> pulumi.Input[str]:
|
|
110
137
|
"""
|
|
111
|
-
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
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.
|
|
112
140
|
"""
|
|
113
141
|
return pulumi.get(self, "service_name")
|
|
114
142
|
|
|
@@ -120,7 +148,8 @@ class RedisArgs:
|
|
|
120
148
|
@pulumi.getter(name="additionalDiskSpace")
|
|
121
149
|
def additional_disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
122
150
|
"""
|
|
123
|
-
Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
151
|
+
Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
152
|
+
reducing will result in the service rebalancing.
|
|
124
153
|
"""
|
|
125
154
|
return pulumi.get(self, "additional_disk_space")
|
|
126
155
|
|
|
@@ -132,7 +161,12 @@ class RedisArgs:
|
|
|
132
161
|
@pulumi.getter(name="cloudName")
|
|
133
162
|
def cloud_name(self) -> Optional[pulumi.Input[str]]:
|
|
134
163
|
"""
|
|
135
|
-
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
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).
|
|
136
170
|
"""
|
|
137
171
|
return pulumi.get(self, "cloud_name")
|
|
138
172
|
|
|
@@ -144,7 +178,8 @@ class RedisArgs:
|
|
|
144
178
|
@pulumi.getter(name="diskSpace")
|
|
145
179
|
def disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
146
180
|
"""
|
|
147
|
-
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
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.
|
|
148
183
|
"""
|
|
149
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)
|
|
150
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.""")
|
|
@@ -183,7 +218,10 @@ class RedisArgs:
|
|
|
183
218
|
@pulumi.getter(name="projectVpcId")
|
|
184
219
|
def project_vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
185
220
|
"""
|
|
186
|
-
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
|
|
221
|
+
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
|
|
222
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
223
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
224
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
187
225
|
"""
|
|
188
226
|
return pulumi.get(self, "project_vpc_id")
|
|
189
227
|
|
|
@@ -219,7 +257,8 @@ class RedisArgs:
|
|
|
219
257
|
@pulumi.getter(name="staticIps")
|
|
220
258
|
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
221
259
|
"""
|
|
222
|
-
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
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
|
|
223
262
|
"""
|
|
224
263
|
return pulumi.get(self, "static_ips")
|
|
225
264
|
|
|
@@ -243,7 +282,8 @@ class RedisArgs:
|
|
|
243
282
|
@pulumi.getter(name="techEmails")
|
|
244
283
|
def tech_emails(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RedisTechEmailArgs']]]]:
|
|
245
284
|
"""
|
|
246
|
-
|
|
285
|
+
Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
286
|
+
instability.
|
|
247
287
|
"""
|
|
248
288
|
return pulumi.get(self, "tech_emails")
|
|
249
289
|
|
|
@@ -255,7 +295,9 @@ class RedisArgs:
|
|
|
255
295
|
@pulumi.getter(name="terminationProtection")
|
|
256
296
|
def termination_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
257
297
|
"""
|
|
258
|
-
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
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.
|
|
259
301
|
"""
|
|
260
302
|
return pulumi.get(self, "termination_protection")
|
|
261
303
|
|
|
@@ -280,6 +322,7 @@ class _RedisState:
|
|
|
280
322
|
plan: Optional[pulumi.Input[str]] = None,
|
|
281
323
|
project: Optional[pulumi.Input[str]] = None,
|
|
282
324
|
project_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
325
|
+
redis: Optional[pulumi.Input[Sequence[pulumi.Input['RedisRediArgs']]]] = None,
|
|
283
326
|
redis_user_config: Optional[pulumi.Input['RedisRedisUserConfigArgs']] = None,
|
|
284
327
|
service_host: Optional[pulumi.Input[str]] = None,
|
|
285
328
|
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input['RedisServiceIntegrationArgs']]]] = None,
|
|
@@ -296,33 +339,57 @@ class _RedisState:
|
|
|
296
339
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
297
340
|
"""
|
|
298
341
|
Input properties used for looking up and filtering Redis resources.
|
|
299
|
-
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
300
|
-
|
|
342
|
+
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
343
|
+
reducing will result in the service rebalancing.
|
|
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).
|
|
301
350
|
:param pulumi.Input[Sequence[pulumi.Input['RedisComponentArgs']]] components: Service component information objects
|
|
302
|
-
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
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.
|
|
303
353
|
: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.
|
|
304
|
-
: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.
|
|
305
|
-
|
|
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
|
+
Its also the minimum value for `disk_space`
|
|
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.
|
|
306
358
|
:param pulumi.Input[str] disk_space_used: Disk space that service is currently using
|
|
307
359
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
308
360
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
309
|
-
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
310
|
-
|
|
311
|
-
|
|
361
|
+
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
362
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
363
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
364
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
365
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
366
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
367
|
+
:param pulumi.Input[str] project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
368
|
+
reference. Changing this property forces recreation of the resource.
|
|
369
|
+
: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
|
|
370
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
371
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
372
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
373
|
+
:param pulumi.Input[Sequence[pulumi.Input['RedisRediArgs']]] redis: Redis server provided values
|
|
312
374
|
:param pulumi.Input['RedisRedisUserConfigArgs'] redis_user_config: Redis user configurable settings
|
|
313
375
|
:param pulumi.Input[str] service_host: The hostname of the service.
|
|
314
376
|
:param pulumi.Input[Sequence[pulumi.Input['RedisServiceIntegrationArgs']]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
315
|
-
: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
|
|
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.
|
|
316
379
|
:param pulumi.Input[str] service_password: Password used for connecting to the service, if applicable
|
|
317
380
|
:param pulumi.Input[int] service_port: The port of the service
|
|
318
381
|
:param pulumi.Input[str] service_type: Aiven internal service type code
|
|
319
382
|
:param pulumi.Input[str] service_uri: URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
320
383
|
:param pulumi.Input[str] service_username: Username used for connecting to the service, if applicable
|
|
321
384
|
:param pulumi.Input[str] state: Service state. One of `POWEROFF`, `REBALANCING`, `REBUILDING` or `RUNNING`
|
|
322
|
-
: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
|
|
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
|
|
323
387
|
:param pulumi.Input[Sequence[pulumi.Input['RedisTagArgs']]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
324
|
-
:param pulumi.Input[Sequence[pulumi.Input['RedisTechEmailArgs']]] tech_emails:
|
|
325
|
-
|
|
388
|
+
:param pulumi.Input[Sequence[pulumi.Input['RedisTechEmailArgs']]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
389
|
+
instability.
|
|
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.
|
|
326
393
|
"""
|
|
327
394
|
if additional_disk_space is not None:
|
|
328
395
|
pulumi.set(__self__, "additional_disk_space", additional_disk_space)
|
|
@@ -353,6 +420,8 @@ class _RedisState:
|
|
|
353
420
|
pulumi.set(__self__, "project", project)
|
|
354
421
|
if project_vpc_id is not None:
|
|
355
422
|
pulumi.set(__self__, "project_vpc_id", project_vpc_id)
|
|
423
|
+
if redis is not None:
|
|
424
|
+
pulumi.set(__self__, "redis", redis)
|
|
356
425
|
if redis_user_config is not None:
|
|
357
426
|
pulumi.set(__self__, "redis_user_config", redis_user_config)
|
|
358
427
|
if service_host is not None:
|
|
@@ -386,7 +455,8 @@ class _RedisState:
|
|
|
386
455
|
@pulumi.getter(name="additionalDiskSpace")
|
|
387
456
|
def additional_disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
388
457
|
"""
|
|
389
|
-
Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
458
|
+
Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
459
|
+
reducing will result in the service rebalancing.
|
|
390
460
|
"""
|
|
391
461
|
return pulumi.get(self, "additional_disk_space")
|
|
392
462
|
|
|
@@ -398,7 +468,12 @@ class _RedisState:
|
|
|
398
468
|
@pulumi.getter(name="cloudName")
|
|
399
469
|
def cloud_name(self) -> Optional[pulumi.Input[str]]:
|
|
400
470
|
"""
|
|
401
|
-
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
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).
|
|
402
477
|
"""
|
|
403
478
|
return pulumi.get(self, "cloud_name")
|
|
404
479
|
|
|
@@ -422,7 +497,8 @@ class _RedisState:
|
|
|
422
497
|
@pulumi.getter(name="diskSpace")
|
|
423
498
|
def disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
424
499
|
"""
|
|
425
|
-
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
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.
|
|
426
502
|
"""
|
|
427
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)
|
|
428
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.""")
|
|
@@ -449,7 +525,8 @@ class _RedisState:
|
|
|
449
525
|
@pulumi.getter(name="diskSpaceDefault")
|
|
450
526
|
def disk_space_default(self) -> Optional[pulumi.Input[str]]:
|
|
451
527
|
"""
|
|
452
|
-
The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
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`
|
|
453
530
|
"""
|
|
454
531
|
return pulumi.get(self, "disk_space_default")
|
|
455
532
|
|
|
@@ -461,7 +538,8 @@ class _RedisState:
|
|
|
461
538
|
@pulumi.getter(name="diskSpaceStep")
|
|
462
539
|
def disk_space_step(self) -> Optional[pulumi.Input[str]]:
|
|
463
540
|
"""
|
|
464
|
-
The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
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.
|
|
465
543
|
"""
|
|
466
544
|
return pulumi.get(self, "disk_space_step")
|
|
467
545
|
|
|
@@ -509,7 +587,12 @@ class _RedisState:
|
|
|
509
587
|
@pulumi.getter
|
|
510
588
|
def plan(self) -> Optional[pulumi.Input[str]]:
|
|
511
589
|
"""
|
|
512
|
-
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
590
|
+
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
591
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
592
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
593
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
594
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
595
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
513
596
|
"""
|
|
514
597
|
return pulumi.get(self, "plan")
|
|
515
598
|
|
|
@@ -521,7 +604,8 @@ class _RedisState:
|
|
|
521
604
|
@pulumi.getter
|
|
522
605
|
def project(self) -> Optional[pulumi.Input[str]]:
|
|
523
606
|
"""
|
|
524
|
-
|
|
607
|
+
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
608
|
+
reference. Changing this property forces recreation of the resource.
|
|
525
609
|
"""
|
|
526
610
|
return pulumi.get(self, "project")
|
|
527
611
|
|
|
@@ -533,7 +617,10 @@ class _RedisState:
|
|
|
533
617
|
@pulumi.getter(name="projectVpcId")
|
|
534
618
|
def project_vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
535
619
|
"""
|
|
536
|
-
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
|
|
620
|
+
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
|
|
621
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
622
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
623
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
537
624
|
"""
|
|
538
625
|
return pulumi.get(self, "project_vpc_id")
|
|
539
626
|
|
|
@@ -541,6 +628,18 @@ class _RedisState:
|
|
|
541
628
|
def project_vpc_id(self, value: Optional[pulumi.Input[str]]):
|
|
542
629
|
pulumi.set(self, "project_vpc_id", value)
|
|
543
630
|
|
|
631
|
+
@property
|
|
632
|
+
@pulumi.getter
|
|
633
|
+
def redis(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RedisRediArgs']]]]:
|
|
634
|
+
"""
|
|
635
|
+
Redis server provided values
|
|
636
|
+
"""
|
|
637
|
+
return pulumi.get(self, "redis")
|
|
638
|
+
|
|
639
|
+
@redis.setter
|
|
640
|
+
def redis(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RedisRediArgs']]]]):
|
|
641
|
+
pulumi.set(self, "redis", value)
|
|
642
|
+
|
|
544
643
|
@property
|
|
545
644
|
@pulumi.getter(name="redisUserConfig")
|
|
546
645
|
def redis_user_config(self) -> Optional[pulumi.Input['RedisRedisUserConfigArgs']]:
|
|
@@ -581,7 +680,8 @@ class _RedisState:
|
|
|
581
680
|
@pulumi.getter(name="serviceName")
|
|
582
681
|
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
583
682
|
"""
|
|
584
|
-
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
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.
|
|
585
685
|
"""
|
|
586
686
|
return pulumi.get(self, "service_name")
|
|
587
687
|
|
|
@@ -665,7 +765,8 @@ class _RedisState:
|
|
|
665
765
|
@pulumi.getter(name="staticIps")
|
|
666
766
|
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
667
767
|
"""
|
|
668
|
-
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
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
|
|
669
770
|
"""
|
|
670
771
|
return pulumi.get(self, "static_ips")
|
|
671
772
|
|
|
@@ -689,7 +790,8 @@ class _RedisState:
|
|
|
689
790
|
@pulumi.getter(name="techEmails")
|
|
690
791
|
def tech_emails(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RedisTechEmailArgs']]]]:
|
|
691
792
|
"""
|
|
692
|
-
|
|
793
|
+
Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
794
|
+
instability.
|
|
693
795
|
"""
|
|
694
796
|
return pulumi.get(self, "tech_emails")
|
|
695
797
|
|
|
@@ -701,7 +803,9 @@ class _RedisState:
|
|
|
701
803
|
@pulumi.getter(name="terminationProtection")
|
|
702
804
|
def termination_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
703
805
|
"""
|
|
704
|
-
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
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.
|
|
705
809
|
"""
|
|
706
810
|
return pulumi.get(self, "termination_protection")
|
|
707
811
|
|
|
@@ -736,12 +840,13 @@ class Redis(pulumi.CustomResource):
|
|
|
736
840
|
|
|
737
841
|
## Example Usage
|
|
738
842
|
|
|
843
|
+
<!--Start PulumiCodeChooser -->
|
|
739
844
|
```python
|
|
740
845
|
import pulumi
|
|
741
846
|
import pulumi_aiven as aiven
|
|
742
847
|
|
|
743
848
|
redis1 = aiven.Redis("redis1",
|
|
744
|
-
project=pr1["project"],
|
|
849
|
+
project=data["aiven_project"]["pr1"]["project"],
|
|
745
850
|
cloud_name="google-europe-west1",
|
|
746
851
|
plan="business-4",
|
|
747
852
|
service_name="my-redis1",
|
|
@@ -754,6 +859,7 @@ class Redis(pulumi.CustomResource):
|
|
|
754
859
|
),
|
|
755
860
|
))
|
|
756
861
|
```
|
|
862
|
+
<!--End PulumiCodeChooser -->
|
|
757
863
|
|
|
758
864
|
## Import
|
|
759
865
|
|
|
@@ -763,21 +869,42 @@ class Redis(pulumi.CustomResource):
|
|
|
763
869
|
|
|
764
870
|
:param str resource_name: The name of the resource.
|
|
765
871
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
766
|
-
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
767
|
-
|
|
768
|
-
:param pulumi.Input[str]
|
|
872
|
+
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
873
|
+
reducing will result in the service rebalancing.
|
|
874
|
+
: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
|
|
875
|
+
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
876
|
+
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
877
|
+
are documented on each Cloud provider's own support articles, like [here for
|
|
878
|
+
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
879
|
+
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
880
|
+
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
881
|
+
will result in the service rebalancing.
|
|
769
882
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
770
883
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
771
|
-
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
772
|
-
|
|
773
|
-
|
|
884
|
+
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
885
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
886
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
887
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
888
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
889
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
890
|
+
:param pulumi.Input[str] project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
891
|
+
reference. Changing this property forces recreation of the resource.
|
|
892
|
+
: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
|
|
893
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
894
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
895
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
774
896
|
:param pulumi.Input[pulumi.InputType['RedisRedisUserConfigArgs']] redis_user_config: Redis user configurable settings
|
|
775
897
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RedisServiceIntegrationArgs']]]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
776
|
-
: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
|
|
777
|
-
|
|
898
|
+
: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
|
|
899
|
+
service so name should be picked based on intended service usage rather than current attributes.
|
|
900
|
+
: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
|
|
901
|
+
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
778
902
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RedisTagArgs']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
779
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RedisTechEmailArgs']]]] tech_emails:
|
|
780
|
-
|
|
903
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RedisTechEmailArgs']]]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
904
|
+
instability.
|
|
905
|
+
: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
|
|
906
|
+
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
907
|
+
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
781
908
|
"""
|
|
782
909
|
...
|
|
783
910
|
@overload
|
|
@@ -790,12 +917,13 @@ class Redis(pulumi.CustomResource):
|
|
|
790
917
|
|
|
791
918
|
## Example Usage
|
|
792
919
|
|
|
920
|
+
<!--Start PulumiCodeChooser -->
|
|
793
921
|
```python
|
|
794
922
|
import pulumi
|
|
795
923
|
import pulumi_aiven as aiven
|
|
796
924
|
|
|
797
925
|
redis1 = aiven.Redis("redis1",
|
|
798
|
-
project=pr1["project"],
|
|
926
|
+
project=data["aiven_project"]["pr1"]["project"],
|
|
799
927
|
cloud_name="google-europe-west1",
|
|
800
928
|
plan="business-4",
|
|
801
929
|
service_name="my-redis1",
|
|
@@ -808,6 +936,7 @@ class Redis(pulumi.CustomResource):
|
|
|
808
936
|
),
|
|
809
937
|
))
|
|
810
938
|
```
|
|
939
|
+
<!--End PulumiCodeChooser -->
|
|
811
940
|
|
|
812
941
|
## Import
|
|
813
942
|
|
|
@@ -880,6 +1009,7 @@ class Redis(pulumi.CustomResource):
|
|
|
880
1009
|
__props__.__dict__["disk_space_default"] = None
|
|
881
1010
|
__props__.__dict__["disk_space_step"] = None
|
|
882
1011
|
__props__.__dict__["disk_space_used"] = None
|
|
1012
|
+
__props__.__dict__["redis"] = None
|
|
883
1013
|
__props__.__dict__["service_host"] = None
|
|
884
1014
|
__props__.__dict__["service_password"] = None
|
|
885
1015
|
__props__.__dict__["service_port"] = None
|
|
@@ -912,6 +1042,7 @@ class Redis(pulumi.CustomResource):
|
|
|
912
1042
|
plan: Optional[pulumi.Input[str]] = None,
|
|
913
1043
|
project: Optional[pulumi.Input[str]] = None,
|
|
914
1044
|
project_vpc_id: Optional[pulumi.Input[str]] = None,
|
|
1045
|
+
redis: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RedisRediArgs']]]]] = None,
|
|
915
1046
|
redis_user_config: Optional[pulumi.Input[pulumi.InputType['RedisRedisUserConfigArgs']]] = None,
|
|
916
1047
|
service_host: Optional[pulumi.Input[str]] = None,
|
|
917
1048
|
service_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RedisServiceIntegrationArgs']]]]] = None,
|
|
@@ -933,33 +1064,57 @@ class Redis(pulumi.CustomResource):
|
|
|
933
1064
|
:param str resource_name: The unique name of the resulting resource.
|
|
934
1065
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
935
1066
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
936
|
-
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
937
|
-
|
|
1067
|
+
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
1068
|
+
reducing will result in the service rebalancing.
|
|
1069
|
+
: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
|
|
1070
|
+
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
1071
|
+
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
1072
|
+
are documented on each Cloud provider's own support articles, like [here for
|
|
1073
|
+
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
1074
|
+
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
938
1075
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RedisComponentArgs']]]] components: Service component information objects
|
|
939
|
-
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
1076
|
+
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
1077
|
+
will result in the service rebalancing.
|
|
940
1078
|
: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.
|
|
941
|
-
: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.
|
|
942
|
-
|
|
1079
|
+
: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.
|
|
1080
|
+
Its also the minimum value for `disk_space`
|
|
1081
|
+
: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
|
|
1082
|
+
project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
|
|
943
1083
|
:param pulumi.Input[str] disk_space_used: Disk space that service is currently using
|
|
944
1084
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
945
1085
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
946
|
-
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
947
|
-
|
|
948
|
-
|
|
1086
|
+
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
1087
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
1088
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
1089
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
1090
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
1091
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
1092
|
+
:param pulumi.Input[str] project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
1093
|
+
reference. Changing this property forces recreation of the resource.
|
|
1094
|
+
: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
|
|
1095
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
1096
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
1097
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
1098
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RedisRediArgs']]]] redis: Redis server provided values
|
|
949
1099
|
:param pulumi.Input[pulumi.InputType['RedisRedisUserConfigArgs']] redis_user_config: Redis user configurable settings
|
|
950
1100
|
:param pulumi.Input[str] service_host: The hostname of the service.
|
|
951
1101
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RedisServiceIntegrationArgs']]]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
952
|
-
: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
|
|
1102
|
+
: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
|
|
1103
|
+
service so name should be picked based on intended service usage rather than current attributes.
|
|
953
1104
|
:param pulumi.Input[str] service_password: Password used for connecting to the service, if applicable
|
|
954
1105
|
:param pulumi.Input[int] service_port: The port of the service
|
|
955
1106
|
:param pulumi.Input[str] service_type: Aiven internal service type code
|
|
956
1107
|
:param pulumi.Input[str] service_uri: URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
957
1108
|
:param pulumi.Input[str] service_username: Username used for connecting to the service, if applicable
|
|
958
1109
|
:param pulumi.Input[str] state: Service state. One of `POWEROFF`, `REBALANCING`, `REBUILDING` or `RUNNING`
|
|
959
|
-
: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
|
|
1110
|
+
: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
|
|
1111
|
+
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
960
1112
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RedisTagArgs']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
961
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RedisTechEmailArgs']]]] tech_emails:
|
|
962
|
-
|
|
1113
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RedisTechEmailArgs']]]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
1114
|
+
instability.
|
|
1115
|
+
: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
|
|
1116
|
+
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
1117
|
+
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
963
1118
|
"""
|
|
964
1119
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
965
1120
|
|
|
@@ -978,6 +1133,7 @@ class Redis(pulumi.CustomResource):
|
|
|
978
1133
|
__props__.__dict__["plan"] = plan
|
|
979
1134
|
__props__.__dict__["project"] = project
|
|
980
1135
|
__props__.__dict__["project_vpc_id"] = project_vpc_id
|
|
1136
|
+
__props__.__dict__["redis"] = redis
|
|
981
1137
|
__props__.__dict__["redis_user_config"] = redis_user_config
|
|
982
1138
|
__props__.__dict__["service_host"] = service_host
|
|
983
1139
|
__props__.__dict__["service_integrations"] = service_integrations
|
|
@@ -998,7 +1154,8 @@ class Redis(pulumi.CustomResource):
|
|
|
998
1154
|
@pulumi.getter(name="additionalDiskSpace")
|
|
999
1155
|
def additional_disk_space(self) -> pulumi.Output[Optional[str]]:
|
|
1000
1156
|
"""
|
|
1001
|
-
Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
1157
|
+
Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
1158
|
+
reducing will result in the service rebalancing.
|
|
1002
1159
|
"""
|
|
1003
1160
|
return pulumi.get(self, "additional_disk_space")
|
|
1004
1161
|
|
|
@@ -1006,7 +1163,12 @@ class Redis(pulumi.CustomResource):
|
|
|
1006
1163
|
@pulumi.getter(name="cloudName")
|
|
1007
1164
|
def cloud_name(self) -> pulumi.Output[Optional[str]]:
|
|
1008
1165
|
"""
|
|
1009
|
-
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
1166
|
+
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
1167
|
+
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
1168
|
+
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
1169
|
+
are documented on each Cloud provider's own support articles, like [here for
|
|
1170
|
+
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
1171
|
+
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
1010
1172
|
"""
|
|
1011
1173
|
return pulumi.get(self, "cloud_name")
|
|
1012
1174
|
|
|
@@ -1022,7 +1184,8 @@ class Redis(pulumi.CustomResource):
|
|
|
1022
1184
|
@pulumi.getter(name="diskSpace")
|
|
1023
1185
|
def disk_space(self) -> pulumi.Output[Optional[str]]:
|
|
1024
1186
|
"""
|
|
1025
|
-
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
1187
|
+
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
1188
|
+
will result in the service rebalancing.
|
|
1026
1189
|
"""
|
|
1027
1190
|
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)
|
|
1028
1191
|
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.""")
|
|
@@ -1041,7 +1204,8 @@ class Redis(pulumi.CustomResource):
|
|
|
1041
1204
|
@pulumi.getter(name="diskSpaceDefault")
|
|
1042
1205
|
def disk_space_default(self) -> pulumi.Output[str]:
|
|
1043
1206
|
"""
|
|
1044
|
-
The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
1207
|
+
The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
1208
|
+
Its also the minimum value for `disk_space`
|
|
1045
1209
|
"""
|
|
1046
1210
|
return pulumi.get(self, "disk_space_default")
|
|
1047
1211
|
|
|
@@ -1049,7 +1213,8 @@ class Redis(pulumi.CustomResource):
|
|
|
1049
1213
|
@pulumi.getter(name="diskSpaceStep")
|
|
1050
1214
|
def disk_space_step(self) -> pulumi.Output[str]:
|
|
1051
1215
|
"""
|
|
1052
|
-
The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
1216
|
+
The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
1217
|
+
project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
|
|
1053
1218
|
"""
|
|
1054
1219
|
return pulumi.get(self, "disk_space_step")
|
|
1055
1220
|
|
|
@@ -1081,7 +1246,12 @@ class Redis(pulumi.CustomResource):
|
|
|
1081
1246
|
@pulumi.getter
|
|
1082
1247
|
def plan(self) -> pulumi.Output[str]:
|
|
1083
1248
|
"""
|
|
1084
|
-
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
1249
|
+
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
1250
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
1251
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
1252
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
1253
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
1254
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
1085
1255
|
"""
|
|
1086
1256
|
return pulumi.get(self, "plan")
|
|
1087
1257
|
|
|
@@ -1089,7 +1259,8 @@ class Redis(pulumi.CustomResource):
|
|
|
1089
1259
|
@pulumi.getter
|
|
1090
1260
|
def project(self) -> pulumi.Output[str]:
|
|
1091
1261
|
"""
|
|
1092
|
-
|
|
1262
|
+
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
1263
|
+
reference. Changing this property forces recreation of the resource.
|
|
1093
1264
|
"""
|
|
1094
1265
|
return pulumi.get(self, "project")
|
|
1095
1266
|
|
|
@@ -1097,10 +1268,21 @@ class Redis(pulumi.CustomResource):
|
|
|
1097
1268
|
@pulumi.getter(name="projectVpcId")
|
|
1098
1269
|
def project_vpc_id(self) -> pulumi.Output[Optional[str]]:
|
|
1099
1270
|
"""
|
|
1100
|
-
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
|
|
1271
|
+
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
|
|
1272
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
1273
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
1274
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
1101
1275
|
"""
|
|
1102
1276
|
return pulumi.get(self, "project_vpc_id")
|
|
1103
1277
|
|
|
1278
|
+
@property
|
|
1279
|
+
@pulumi.getter
|
|
1280
|
+
def redis(self) -> pulumi.Output[Sequence['outputs.RedisRedi']]:
|
|
1281
|
+
"""
|
|
1282
|
+
Redis server provided values
|
|
1283
|
+
"""
|
|
1284
|
+
return pulumi.get(self, "redis")
|
|
1285
|
+
|
|
1104
1286
|
@property
|
|
1105
1287
|
@pulumi.getter(name="redisUserConfig")
|
|
1106
1288
|
def redis_user_config(self) -> pulumi.Output[Optional['outputs.RedisRedisUserConfig']]:
|
|
@@ -1129,7 +1311,8 @@ class Redis(pulumi.CustomResource):
|
|
|
1129
1311
|
@pulumi.getter(name="serviceName")
|
|
1130
1312
|
def service_name(self) -> pulumi.Output[str]:
|
|
1131
1313
|
"""
|
|
1132
|
-
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
1314
|
+
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
1315
|
+
service so name should be picked based on intended service usage rather than current attributes.
|
|
1133
1316
|
"""
|
|
1134
1317
|
return pulumi.get(self, "service_name")
|
|
1135
1318
|
|
|
@@ -1185,7 +1368,8 @@ class Redis(pulumi.CustomResource):
|
|
|
1185
1368
|
@pulumi.getter(name="staticIps")
|
|
1186
1369
|
def static_ips(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1187
1370
|
"""
|
|
1188
|
-
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
1371
|
+
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
1372
|
+
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
1189
1373
|
"""
|
|
1190
1374
|
return pulumi.get(self, "static_ips")
|
|
1191
1375
|
|
|
@@ -1201,7 +1385,8 @@ class Redis(pulumi.CustomResource):
|
|
|
1201
1385
|
@pulumi.getter(name="techEmails")
|
|
1202
1386
|
def tech_emails(self) -> pulumi.Output[Optional[Sequence['outputs.RedisTechEmail']]]:
|
|
1203
1387
|
"""
|
|
1204
|
-
|
|
1388
|
+
Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
1389
|
+
instability.
|
|
1205
1390
|
"""
|
|
1206
1391
|
return pulumi.get(self, "tech_emails")
|
|
1207
1392
|
|
|
@@ -1209,7 +1394,9 @@ class Redis(pulumi.CustomResource):
|
|
|
1209
1394
|
@pulumi.getter(name="terminationProtection")
|
|
1210
1395
|
def termination_protection(self) -> pulumi.Output[Optional[bool]]:
|
|
1211
1396
|
"""
|
|
1212
|
-
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
1397
|
+
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
1398
|
+
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
1399
|
+
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
1213
1400
|
"""
|
|
1214
1401
|
return pulumi.get(self, "termination_protection")
|
|
1215
1402
|
|