pulumi-aiven 6.13.0a1711027602__py3-none-any.whl → 6.14.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-aiven might be problematic. Click here for more details.
- pulumi_aiven/__init__.py +28 -0
- pulumi_aiven/_inputs.py +2623 -1138
- pulumi_aiven/account.py +8 -8
- pulumi_aiven/account_authentication.py +8 -4
- pulumi_aiven/account_team.py +6 -6
- pulumi_aiven/account_team_member.py +27 -31
- pulumi_aiven/account_team_project.py +12 -12
- pulumi_aiven/aws_privatelink.py +39 -43
- pulumi_aiven/aws_vpc_peering_connection.py +62 -56
- pulumi_aiven/azure_privatelink.py +49 -53
- pulumi_aiven/azure_privatelink_connection_approval.py +131 -33
- pulumi_aiven/azure_vpc_peering_connection.py +76 -72
- pulumi_aiven/billing_group.py +18 -18
- pulumi_aiven/cassandra.py +25 -57
- pulumi_aiven/cassandra_user.py +25 -29
- pulumi_aiven/clickhouse.py +25 -57
- pulumi_aiven/clickhouse_database.py +31 -33
- pulumi_aiven/clickhouse_grant.py +56 -58
- pulumi_aiven/clickhouse_role.py +23 -27
- pulumi_aiven/clickhouse_user.py +25 -29
- pulumi_aiven/connection_pool.py +38 -42
- pulumi_aiven/dragonfly.py +1205 -0
- pulumi_aiven/flink.py +32 -36
- pulumi_aiven/flink_application.py +22 -24
- pulumi_aiven/flink_application_deployment.py +28 -28
- pulumi_aiven/flink_application_version.py +96 -14
- pulumi_aiven/gcp_privatelink.py +40 -40
- pulumi_aiven/gcp_privatelink_connection_approval.py +47 -47
- pulumi_aiven/gcp_vpc_peering_connection.py +39 -43
- pulumi_aiven/get_account.py +0 -4
- pulumi_aiven/get_account_team_member.py +9 -9
- pulumi_aiven/get_aws_privatelink.py +15 -19
- pulumi_aiven/get_aws_vpc_peering_connection.py +33 -27
- pulumi_aiven/get_azure_privatelink.py +17 -21
- pulumi_aiven/get_azure_vpc_peering_connection.py +50 -22
- pulumi_aiven/get_billing_group.py +2 -2
- pulumi_aiven/get_cassanda.py +7 -24
- pulumi_aiven/get_cassandra.py +7 -24
- pulumi_aiven/get_cassandra_user.py +13 -17
- pulumi_aiven/get_clickhouse.py +7 -24
- pulumi_aiven/get_clickhouse_database.py +13 -17
- pulumi_aiven/get_clickhouse_user.py +13 -17
- pulumi_aiven/get_connection_pool.py +14 -18
- pulumi_aiven/get_dragonfly.py +450 -0
- pulumi_aiven/get_flink.py +6 -10
- pulumi_aiven/get_flink_application.py +8 -12
- pulumi_aiven/get_flink_application_version.py +8 -12
- pulumi_aiven/get_gcp_vpc_peering_connection.py +18 -22
- pulumi_aiven/get_grafana.py +7 -24
- pulumi_aiven/get_kafka.py +13 -17
- pulumi_aiven/get_kafka_acl.py +19 -23
- pulumi_aiven/get_kafka_connect.py +7 -24
- pulumi_aiven/get_kafka_connector.py +13 -17
- pulumi_aiven/get_kafka_mirror_maker.py +7 -24
- pulumi_aiven/get_kafka_schema.py +13 -17
- pulumi_aiven/get_kafka_schema_configuration.py +11 -15
- pulumi_aiven/get_kafka_schema_registry_acl.py +15 -15
- pulumi_aiven/get_kafka_topic.py +19 -23
- pulumi_aiven/get_kafka_user.py +13 -17
- pulumi_aiven/get_m3_aggregator.py +7 -24
- pulumi_aiven/get_m3_db.py +7 -24
- pulumi_aiven/get_m3db_user.py +13 -17
- pulumi_aiven/get_mirror_maker_replication_flow.py +14 -18
- pulumi_aiven/get_my_sql.py +7 -24
- pulumi_aiven/get_mysql_database.py +13 -17
- pulumi_aiven/get_mysql_user.py +13 -17
- pulumi_aiven/get_open_search.py +6 -10
- pulumi_aiven/get_open_search_acl_config.py +10 -14
- pulumi_aiven/get_open_search_acl_rule.py +16 -20
- pulumi_aiven/get_opensearch_security_plugin_config.py +10 -14
- pulumi_aiven/get_opensearch_user.py +13 -17
- pulumi_aiven/get_organization.py +8 -12
- pulumi_aiven/get_organization_user_group.py +29 -9
- pulumi_aiven/get_organizational_unit.py +9 -9
- pulumi_aiven/get_pg.py +6 -10
- pulumi_aiven/get_pg_database.py +15 -19
- pulumi_aiven/get_pg_user.py +13 -17
- pulumi_aiven/get_project.py +17 -21
- pulumi_aiven/get_project_user.py +9 -13
- pulumi_aiven/get_project_vpc.py +11 -17
- pulumi_aiven/get_redis.py +7 -24
- pulumi_aiven/get_redis_user.py +17 -21
- pulumi_aiven/get_service_component.py +4 -8
- pulumi_aiven/get_service_integration.py +75 -37
- pulumi_aiven/get_service_integration_endpoint.py +3 -7
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +11 -15
- pulumi_aiven/grafana.py +82 -267
- pulumi_aiven/influx_db.py +28 -28
- pulumi_aiven/influxdb_database.py +35 -35
- pulumi_aiven/influxdb_user.py +42 -42
- pulumi_aiven/kafka.py +50 -54
- pulumi_aiven/kafka_acl.py +41 -45
- pulumi_aiven/kafka_connect.py +80 -267
- pulumi_aiven/kafka_connector.py +33 -37
- pulumi_aiven/kafka_mirror_maker.py +80 -267
- pulumi_aiven/kafka_schema.py +51 -51
- pulumi_aiven/kafka_schema_configuration.py +20 -24
- pulumi_aiven/kafka_schema_registry_acl.py +75 -35
- pulumi_aiven/kafka_topic.py +91 -53
- pulumi_aiven/kafka_user.py +25 -29
- pulumi_aiven/m3_aggregator.py +80 -267
- pulumi_aiven/m3_db.py +80 -267
- pulumi_aiven/m3db_user.py +23 -27
- pulumi_aiven/mirror_maker_replication_flow.py +58 -60
- pulumi_aiven/my_sql.py +80 -267
- pulumi_aiven/mysql_database.py +27 -31
- pulumi_aiven/mysql_user.py +25 -29
- pulumi_aiven/open_search.py +27 -31
- pulumi_aiven/open_search_acl_config.py +28 -36
- pulumi_aiven/open_search_acl_rule.py +50 -54
- pulumi_aiven/opensearch_security_plugin_config.py +64 -16
- pulumi_aiven/opensearch_user.py +25 -29
- pulumi_aiven/organization.py +10 -14
- pulumi_aiven/organization_group_project.py +336 -0
- pulumi_aiven/organization_user.py +16 -34
- pulumi_aiven/organization_user_group.py +59 -23
- pulumi_aiven/organization_user_group_member.py +350 -0
- pulumi_aiven/organizational_unit.py +36 -36
- pulumi_aiven/outputs.py +3539 -1136
- pulumi_aiven/pg.py +30 -30
- pulumi_aiven/pg_database.py +41 -45
- pulumi_aiven/pg_user.py +25 -29
- pulumi_aiven/project.py +91 -69
- pulumi_aiven/project_user.py +24 -28
- pulumi_aiven/project_vpc.py +49 -25
- pulumi_aiven/redis.py +80 -267
- pulumi_aiven/redis_user.py +53 -57
- pulumi_aiven/service_integration.py +249 -65
- pulumi_aiven/service_integration_endpoint.py +7 -7
- pulumi_aiven/static_ip.py +14 -14
- pulumi_aiven/transit_gateway_vpc_attachment.py +25 -29
- {pulumi_aiven-6.13.0a1711027602.dist-info → pulumi_aiven-6.14.0.dist-info}/METADATA +1 -1
- pulumi_aiven-6.14.0.dist-info/RECORD +150 -0
- pulumi_aiven-6.13.0a1711027602.dist-info/RECORD +0 -146
- {pulumi_aiven-6.13.0a1711027602.dist-info → pulumi_aiven-6.14.0.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.13.0a1711027602.dist-info → pulumi_aiven-6.14.0.dist-info}/top_level.txt +0 -0
pulumi_aiven/clickhouse.py
CHANGED
|
@@ -34,7 +34,7 @@ class ClickhouseArgs:
|
|
|
34
34
|
"""
|
|
35
35
|
The set of arguments for constructing a Clickhouse resource.
|
|
36
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 are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
37
|
-
:param pulumi.Input[str] project:
|
|
37
|
+
: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.
|
|
38
38
|
: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.
|
|
39
39
|
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
40
40
|
:param pulumi.Input['ClickhouseClickhouseUserConfigArgs'] clickhouse_user_config: Clickhouse user configurable settings
|
|
@@ -44,9 +44,9 @@ class ClickhouseArgs:
|
|
|
44
44
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
45
45
|
: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.
|
|
46
46
|
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseServiceIntegrationArgs']]] 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:
|
|
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 static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
48
48
|
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseTagArgs']]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
49
|
-
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseTechEmailArgs']]] tech_emails:
|
|
49
|
+
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseTechEmailArgs']]] 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.
|
|
50
50
|
: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.
|
|
51
51
|
"""
|
|
52
52
|
pulumi.set(__self__, "plan", plan)
|
|
@@ -96,7 +96,7 @@ class ClickhouseArgs:
|
|
|
96
96
|
@pulumi.getter
|
|
97
97
|
def project(self) -> pulumi.Input[str]:
|
|
98
98
|
"""
|
|
99
|
-
|
|
99
|
+
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.
|
|
100
100
|
"""
|
|
101
101
|
return pulumi.get(self, "project")
|
|
102
102
|
|
|
@@ -219,7 +219,7 @@ class ClickhouseArgs:
|
|
|
219
219
|
@pulumi.getter(name="staticIps")
|
|
220
220
|
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
221
221
|
"""
|
|
222
|
-
|
|
222
|
+
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
|
|
223
223
|
"""
|
|
224
224
|
return pulumi.get(self, "static_ips")
|
|
225
225
|
|
|
@@ -243,7 +243,7 @@ class ClickhouseArgs:
|
|
|
243
243
|
@pulumi.getter(name="techEmails")
|
|
244
244
|
def tech_emails(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClickhouseTechEmailArgs']]]]:
|
|
245
245
|
"""
|
|
246
|
-
|
|
246
|
+
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.
|
|
247
247
|
"""
|
|
248
248
|
return pulumi.get(self, "tech_emails")
|
|
249
249
|
|
|
@@ -269,7 +269,6 @@ class _ClickhouseState:
|
|
|
269
269
|
def __init__(__self__, *,
|
|
270
270
|
additional_disk_space: Optional[pulumi.Input[str]] = None,
|
|
271
271
|
clickhouse_user_config: Optional[pulumi.Input['ClickhouseClickhouseUserConfigArgs']] = None,
|
|
272
|
-
clickhouses: Optional[pulumi.Input[Sequence[pulumi.Input['ClickhouseClickhouseArgs']]]] = None,
|
|
273
272
|
cloud_name: Optional[pulumi.Input[str]] = None,
|
|
274
273
|
components: Optional[pulumi.Input[Sequence[pulumi.Input['ClickhouseComponentArgs']]]] = None,
|
|
275
274
|
disk_space: Optional[pulumi.Input[str]] = None,
|
|
@@ -299,7 +298,6 @@ class _ClickhouseState:
|
|
|
299
298
|
Input properties used for looking up and filtering Clickhouse resources.
|
|
300
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, reducing will result in the service rebalancing.
|
|
301
300
|
:param pulumi.Input['ClickhouseClickhouseUserConfigArgs'] clickhouse_user_config: Clickhouse user configurable settings
|
|
302
|
-
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseClickhouseArgs']]] clickhouses: Allow clients to connect to clickhouse with a DNS name that always resolves to the service's private IP addresses. Only available in certain network locations.
|
|
303
301
|
: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).
|
|
304
302
|
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseComponentArgs']]] components: Service component information objects
|
|
305
303
|
: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.
|
|
@@ -310,7 +308,7 @@ class _ClickhouseState:
|
|
|
310
308
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
311
309
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
312
310
|
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
313
|
-
:param pulumi.Input[str] project:
|
|
311
|
+
: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.
|
|
314
312
|
: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.
|
|
315
313
|
:param pulumi.Input[str] service_host: The hostname of the service.
|
|
316
314
|
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseServiceIntegrationArgs']]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
@@ -321,17 +319,15 @@ class _ClickhouseState:
|
|
|
321
319
|
:param pulumi.Input[str] service_uri: URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
322
320
|
:param pulumi.Input[str] service_username: Username used for connecting to the service, if applicable
|
|
323
321
|
:param pulumi.Input[str] state: Service state. One of `POWEROFF`, `REBALANCING`, `REBUILDING` or `RUNNING`
|
|
324
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips:
|
|
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 static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
325
323
|
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseTagArgs']]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
326
|
-
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseTechEmailArgs']]] tech_emails:
|
|
324
|
+
:param pulumi.Input[Sequence[pulumi.Input['ClickhouseTechEmailArgs']]] 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.
|
|
327
325
|
: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.
|
|
328
326
|
"""
|
|
329
327
|
if additional_disk_space is not None:
|
|
330
328
|
pulumi.set(__self__, "additional_disk_space", additional_disk_space)
|
|
331
329
|
if clickhouse_user_config is not None:
|
|
332
330
|
pulumi.set(__self__, "clickhouse_user_config", clickhouse_user_config)
|
|
333
|
-
if clickhouses is not None:
|
|
334
|
-
pulumi.set(__self__, "clickhouses", clickhouses)
|
|
335
331
|
if cloud_name is not None:
|
|
336
332
|
pulumi.set(__self__, "cloud_name", cloud_name)
|
|
337
333
|
if components is not None:
|
|
@@ -410,18 +406,6 @@ class _ClickhouseState:
|
|
|
410
406
|
def clickhouse_user_config(self, value: Optional[pulumi.Input['ClickhouseClickhouseUserConfigArgs']]):
|
|
411
407
|
pulumi.set(self, "clickhouse_user_config", value)
|
|
412
408
|
|
|
413
|
-
@property
|
|
414
|
-
@pulumi.getter
|
|
415
|
-
def clickhouses(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClickhouseClickhouseArgs']]]]:
|
|
416
|
-
"""
|
|
417
|
-
Allow clients to connect to clickhouse with a DNS name that always resolves to the service's private IP addresses. Only available in certain network locations.
|
|
418
|
-
"""
|
|
419
|
-
return pulumi.get(self, "clickhouses")
|
|
420
|
-
|
|
421
|
-
@clickhouses.setter
|
|
422
|
-
def clickhouses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClickhouseClickhouseArgs']]]]):
|
|
423
|
-
pulumi.set(self, "clickhouses", value)
|
|
424
|
-
|
|
425
409
|
@property
|
|
426
410
|
@pulumi.getter(name="cloudName")
|
|
427
411
|
def cloud_name(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -549,7 +533,7 @@ class _ClickhouseState:
|
|
|
549
533
|
@pulumi.getter
|
|
550
534
|
def project(self) -> Optional[pulumi.Input[str]]:
|
|
551
535
|
"""
|
|
552
|
-
|
|
536
|
+
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.
|
|
553
537
|
"""
|
|
554
538
|
return pulumi.get(self, "project")
|
|
555
539
|
|
|
@@ -681,7 +665,7 @@ class _ClickhouseState:
|
|
|
681
665
|
@pulumi.getter(name="staticIps")
|
|
682
666
|
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
683
667
|
"""
|
|
684
|
-
|
|
668
|
+
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
|
|
685
669
|
"""
|
|
686
670
|
return pulumi.get(self, "static_ips")
|
|
687
671
|
|
|
@@ -705,7 +689,7 @@ class _ClickhouseState:
|
|
|
705
689
|
@pulumi.getter(name="techEmails")
|
|
706
690
|
def tech_emails(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClickhouseTechEmailArgs']]]]:
|
|
707
691
|
"""
|
|
708
|
-
|
|
692
|
+
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.
|
|
709
693
|
"""
|
|
710
694
|
return pulumi.get(self, "tech_emails")
|
|
711
695
|
|
|
@@ -752,25 +736,23 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
752
736
|
|
|
753
737
|
## Example Usage
|
|
754
738
|
|
|
755
|
-
<!--Start PulumiCodeChooser -->
|
|
756
739
|
```python
|
|
757
740
|
import pulumi
|
|
758
741
|
import pulumi_aiven as aiven
|
|
759
742
|
|
|
760
743
|
clickhouse = aiven.Clickhouse("clickhouse",
|
|
761
|
-
project=
|
|
744
|
+
project=pr1["project"],
|
|
762
745
|
cloud_name="google-europe-west1",
|
|
763
746
|
plan="business-4",
|
|
764
747
|
service_name="my-clickhouse",
|
|
765
748
|
maintenance_window_dow="monday",
|
|
766
749
|
maintenance_window_time="10:00:00")
|
|
767
750
|
```
|
|
768
|
-
<!--End PulumiCodeChooser -->
|
|
769
751
|
|
|
770
752
|
## Import
|
|
771
753
|
|
|
772
754
|
```sh
|
|
773
|
-
$ pulumi import aiven:index/clickhouse:Clickhouse clickhouse
|
|
755
|
+
$ pulumi import aiven:index/clickhouse:Clickhouse clickhouse PROJECT/SERVICE_NAME
|
|
774
756
|
```
|
|
775
757
|
|
|
776
758
|
:param str resource_name: The name of the resource.
|
|
@@ -782,13 +764,13 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
782
764
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
783
765
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
784
766
|
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
785
|
-
:param pulumi.Input[str] project:
|
|
767
|
+
: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.
|
|
786
768
|
: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.
|
|
787
769
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseServiceIntegrationArgs']]]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
788
770
|
: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.
|
|
789
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips:
|
|
771
|
+
: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
|
|
790
772
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseTagArgs']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
791
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseTechEmailArgs']]]] tech_emails:
|
|
773
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseTechEmailArgs']]]] 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.
|
|
792
774
|
: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.
|
|
793
775
|
"""
|
|
794
776
|
...
|
|
@@ -802,25 +784,23 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
802
784
|
|
|
803
785
|
## Example Usage
|
|
804
786
|
|
|
805
|
-
<!--Start PulumiCodeChooser -->
|
|
806
787
|
```python
|
|
807
788
|
import pulumi
|
|
808
789
|
import pulumi_aiven as aiven
|
|
809
790
|
|
|
810
791
|
clickhouse = aiven.Clickhouse("clickhouse",
|
|
811
|
-
project=
|
|
792
|
+
project=pr1["project"],
|
|
812
793
|
cloud_name="google-europe-west1",
|
|
813
794
|
plan="business-4",
|
|
814
795
|
service_name="my-clickhouse",
|
|
815
796
|
maintenance_window_dow="monday",
|
|
816
797
|
maintenance_window_time="10:00:00")
|
|
817
798
|
```
|
|
818
|
-
<!--End PulumiCodeChooser -->
|
|
819
799
|
|
|
820
800
|
## Import
|
|
821
801
|
|
|
822
802
|
```sh
|
|
823
|
-
$ pulumi import aiven:index/clickhouse:Clickhouse clickhouse
|
|
803
|
+
$ pulumi import aiven:index/clickhouse:Clickhouse clickhouse PROJECT/SERVICE_NAME
|
|
824
804
|
```
|
|
825
805
|
|
|
826
806
|
:param str resource_name: The name of the resource.
|
|
@@ -883,7 +863,6 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
883
863
|
__props__.__dict__["tags"] = tags
|
|
884
864
|
__props__.__dict__["tech_emails"] = tech_emails
|
|
885
865
|
__props__.__dict__["termination_protection"] = termination_protection
|
|
886
|
-
__props__.__dict__["clickhouses"] = None
|
|
887
866
|
__props__.__dict__["components"] = None
|
|
888
867
|
__props__.__dict__["disk_space_cap"] = None
|
|
889
868
|
__props__.__dict__["disk_space_default"] = None
|
|
@@ -910,7 +889,6 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
910
889
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
911
890
|
additional_disk_space: Optional[pulumi.Input[str]] = None,
|
|
912
891
|
clickhouse_user_config: Optional[pulumi.Input[pulumi.InputType['ClickhouseClickhouseUserConfigArgs']]] = None,
|
|
913
|
-
clickhouses: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseClickhouseArgs']]]]] = None,
|
|
914
892
|
cloud_name: Optional[pulumi.Input[str]] = None,
|
|
915
893
|
components: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseComponentArgs']]]]] = None,
|
|
916
894
|
disk_space: Optional[pulumi.Input[str]] = None,
|
|
@@ -945,7 +923,6 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
945
923
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
946
924
|
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing will result in the service rebalancing.
|
|
947
925
|
:param pulumi.Input[pulumi.InputType['ClickhouseClickhouseUserConfigArgs']] clickhouse_user_config: Clickhouse user configurable settings
|
|
948
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseClickhouseArgs']]]] clickhouses: Allow clients to connect to clickhouse with a DNS name that always resolves to the service's private IP addresses. Only available in certain network locations.
|
|
949
926
|
: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).
|
|
950
927
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseComponentArgs']]]] components: Service component information objects
|
|
951
928
|
: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.
|
|
@@ -956,7 +933,7 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
956
933
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
957
934
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
958
935
|
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are `hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
959
|
-
:param pulumi.Input[str] project:
|
|
936
|
+
: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.
|
|
960
937
|
: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.
|
|
961
938
|
:param pulumi.Input[str] service_host: The hostname of the service.
|
|
962
939
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseServiceIntegrationArgs']]]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
@@ -967,9 +944,9 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
967
944
|
:param pulumi.Input[str] service_uri: URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
968
945
|
:param pulumi.Input[str] service_username: Username used for connecting to the service, if applicable
|
|
969
946
|
:param pulumi.Input[str] state: Service state. One of `POWEROFF`, `REBALANCING`, `REBUILDING` or `RUNNING`
|
|
970
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips:
|
|
947
|
+
: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
|
|
971
948
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseTagArgs']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
972
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseTechEmailArgs']]]] tech_emails:
|
|
949
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClickhouseTechEmailArgs']]]] 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.
|
|
973
950
|
: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.
|
|
974
951
|
"""
|
|
975
952
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -978,7 +955,6 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
978
955
|
|
|
979
956
|
__props__.__dict__["additional_disk_space"] = additional_disk_space
|
|
980
957
|
__props__.__dict__["clickhouse_user_config"] = clickhouse_user_config
|
|
981
|
-
__props__.__dict__["clickhouses"] = clickhouses
|
|
982
958
|
__props__.__dict__["cloud_name"] = cloud_name
|
|
983
959
|
__props__.__dict__["components"] = components
|
|
984
960
|
__props__.__dict__["disk_space"] = disk_space
|
|
@@ -1022,14 +998,6 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
1022
998
|
"""
|
|
1023
999
|
return pulumi.get(self, "clickhouse_user_config")
|
|
1024
1000
|
|
|
1025
|
-
@property
|
|
1026
|
-
@pulumi.getter
|
|
1027
|
-
def clickhouses(self) -> pulumi.Output[Sequence['outputs.ClickhouseClickhouse']]:
|
|
1028
|
-
"""
|
|
1029
|
-
Allow clients to connect to clickhouse with a DNS name that always resolves to the service's private IP addresses. Only available in certain network locations.
|
|
1030
|
-
"""
|
|
1031
|
-
return pulumi.get(self, "clickhouses")
|
|
1032
|
-
|
|
1033
1001
|
@property
|
|
1034
1002
|
@pulumi.getter(name="cloudName")
|
|
1035
1003
|
def cloud_name(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -1117,7 +1085,7 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
1117
1085
|
@pulumi.getter
|
|
1118
1086
|
def project(self) -> pulumi.Output[str]:
|
|
1119
1087
|
"""
|
|
1120
|
-
|
|
1088
|
+
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.
|
|
1121
1089
|
"""
|
|
1122
1090
|
return pulumi.get(self, "project")
|
|
1123
1091
|
|
|
@@ -1205,7 +1173,7 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
1205
1173
|
@pulumi.getter(name="staticIps")
|
|
1206
1174
|
def static_ips(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1207
1175
|
"""
|
|
1208
|
-
|
|
1176
|
+
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
|
|
1209
1177
|
"""
|
|
1210
1178
|
return pulumi.get(self, "static_ips")
|
|
1211
1179
|
|
|
@@ -1221,7 +1189,7 @@ class Clickhouse(pulumi.CustomResource):
|
|
|
1221
1189
|
@pulumi.getter(name="techEmails")
|
|
1222
1190
|
def tech_emails(self) -> pulumi.Output[Optional[Sequence['outputs.ClickhouseTechEmail']]]:
|
|
1223
1191
|
"""
|
|
1224
|
-
|
|
1192
|
+
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.
|
|
1225
1193
|
"""
|
|
1226
1194
|
return pulumi.get(self, "tech_emails")
|
|
1227
1195
|
|
|
@@ -20,9 +20,9 @@ class ClickhouseDatabaseArgs:
|
|
|
20
20
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
21
21
|
"""
|
|
22
22
|
The set of arguments for constructing a ClickhouseDatabase resource.
|
|
23
|
-
:param pulumi.Input[str] project:
|
|
24
|
-
:param pulumi.Input[str] service_name:
|
|
25
|
-
:param pulumi.Input[str] name: The name of the Clickhouse database.
|
|
23
|
+
: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.
|
|
24
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
25
|
+
:param pulumi.Input[str] name: The name of the Clickhouse database. Changing this property forces recreation of the resource.
|
|
26
26
|
:param pulumi.Input[bool] termination_protection: It is a Terraform client-side deletion protections, which prevents the Clickhouse database from being deleted by
|
|
27
27
|
Terraform. It is recommended to enable this for any production Clickhouse databases containing critical data. The
|
|
28
28
|
default value is `false`.
|
|
@@ -38,7 +38,7 @@ class ClickhouseDatabaseArgs:
|
|
|
38
38
|
@pulumi.getter
|
|
39
39
|
def project(self) -> pulumi.Input[str]:
|
|
40
40
|
"""
|
|
41
|
-
|
|
41
|
+
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.
|
|
42
42
|
"""
|
|
43
43
|
return pulumi.get(self, "project")
|
|
44
44
|
|
|
@@ -50,7 +50,7 @@ class ClickhouseDatabaseArgs:
|
|
|
50
50
|
@pulumi.getter(name="serviceName")
|
|
51
51
|
def service_name(self) -> pulumi.Input[str]:
|
|
52
52
|
"""
|
|
53
|
-
|
|
53
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
54
54
|
"""
|
|
55
55
|
return pulumi.get(self, "service_name")
|
|
56
56
|
|
|
@@ -62,7 +62,7 @@ class ClickhouseDatabaseArgs:
|
|
|
62
62
|
@pulumi.getter
|
|
63
63
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
64
64
|
"""
|
|
65
|
-
The name of the Clickhouse database.
|
|
65
|
+
The name of the Clickhouse database. Changing this property forces recreation of the resource.
|
|
66
66
|
"""
|
|
67
67
|
return pulumi.get(self, "name")
|
|
68
68
|
|
|
@@ -94,9 +94,9 @@ class _ClickhouseDatabaseState:
|
|
|
94
94
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
95
95
|
"""
|
|
96
96
|
Input properties used for looking up and filtering ClickhouseDatabase resources.
|
|
97
|
-
:param pulumi.Input[str] name: The name of the Clickhouse database.
|
|
98
|
-
:param pulumi.Input[str] project:
|
|
99
|
-
:param pulumi.Input[str] service_name:
|
|
97
|
+
:param pulumi.Input[str] name: The name of the Clickhouse database. Changing this property forces recreation of the resource.
|
|
98
|
+
: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.
|
|
99
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
100
100
|
:param pulumi.Input[bool] termination_protection: It is a Terraform client-side deletion protections, which prevents the Clickhouse database from being deleted by
|
|
101
101
|
Terraform. It is recommended to enable this for any production Clickhouse databases containing critical data. The
|
|
102
102
|
default value is `false`.
|
|
@@ -114,7 +114,7 @@ class _ClickhouseDatabaseState:
|
|
|
114
114
|
@pulumi.getter
|
|
115
115
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
116
116
|
"""
|
|
117
|
-
The name of the Clickhouse database.
|
|
117
|
+
The name of the Clickhouse database. Changing this property forces recreation of the resource.
|
|
118
118
|
"""
|
|
119
119
|
return pulumi.get(self, "name")
|
|
120
120
|
|
|
@@ -126,7 +126,7 @@ class _ClickhouseDatabaseState:
|
|
|
126
126
|
@pulumi.getter
|
|
127
127
|
def project(self) -> Optional[pulumi.Input[str]]:
|
|
128
128
|
"""
|
|
129
|
-
|
|
129
|
+
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.
|
|
130
130
|
"""
|
|
131
131
|
return pulumi.get(self, "project")
|
|
132
132
|
|
|
@@ -138,7 +138,7 @@ class _ClickhouseDatabaseState:
|
|
|
138
138
|
@pulumi.getter(name="serviceName")
|
|
139
139
|
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
140
140
|
"""
|
|
141
|
-
|
|
141
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
142
142
|
"""
|
|
143
143
|
return pulumi.get(self, "service_name")
|
|
144
144
|
|
|
@@ -176,28 +176,27 @@ class ClickhouseDatabase(pulumi.CustomResource):
|
|
|
176
176
|
|
|
177
177
|
## Example Usage
|
|
178
178
|
|
|
179
|
-
<!--Start PulumiCodeChooser -->
|
|
180
179
|
```python
|
|
181
180
|
import pulumi
|
|
182
181
|
import pulumi_aiven as aiven
|
|
183
182
|
|
|
184
|
-
clickhouse_db = aiven.ClickhouseDatabase("
|
|
185
|
-
project=
|
|
186
|
-
service_name=
|
|
183
|
+
clickhouse_db = aiven.ClickhouseDatabase("clickhouse_db",
|
|
184
|
+
project=ch["project"],
|
|
185
|
+
service_name=ch["serviceName"],
|
|
186
|
+
name="my-ch-db")
|
|
187
187
|
```
|
|
188
|
-
<!--End PulumiCodeChooser -->
|
|
189
188
|
|
|
190
189
|
## Import
|
|
191
190
|
|
|
192
191
|
```sh
|
|
193
|
-
$ pulumi import aiven:index/clickhouseDatabase:ClickhouseDatabase clickhouse_db
|
|
192
|
+
$ pulumi import aiven:index/clickhouseDatabase:ClickhouseDatabase clickhouse_db PROJECT/SERVICE_NAME/NAME
|
|
194
193
|
```
|
|
195
194
|
|
|
196
195
|
:param str resource_name: The name of the resource.
|
|
197
196
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
198
|
-
:param pulumi.Input[str] name: The name of the Clickhouse database.
|
|
199
|
-
:param pulumi.Input[str] project:
|
|
200
|
-
:param pulumi.Input[str] service_name:
|
|
197
|
+
:param pulumi.Input[str] name: The name of the Clickhouse database. Changing this property forces recreation of the resource.
|
|
198
|
+
: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.
|
|
199
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
201
200
|
:param pulumi.Input[bool] termination_protection: It is a Terraform client-side deletion protections, which prevents the Clickhouse database from being deleted by
|
|
202
201
|
Terraform. It is recommended to enable this for any production Clickhouse databases containing critical data. The
|
|
203
202
|
default value is `false`.
|
|
@@ -213,21 +212,20 @@ class ClickhouseDatabase(pulumi.CustomResource):
|
|
|
213
212
|
|
|
214
213
|
## Example Usage
|
|
215
214
|
|
|
216
|
-
<!--Start PulumiCodeChooser -->
|
|
217
215
|
```python
|
|
218
216
|
import pulumi
|
|
219
217
|
import pulumi_aiven as aiven
|
|
220
218
|
|
|
221
|
-
clickhouse_db = aiven.ClickhouseDatabase("
|
|
222
|
-
project=
|
|
223
|
-
service_name=
|
|
219
|
+
clickhouse_db = aiven.ClickhouseDatabase("clickhouse_db",
|
|
220
|
+
project=ch["project"],
|
|
221
|
+
service_name=ch["serviceName"],
|
|
222
|
+
name="my-ch-db")
|
|
224
223
|
```
|
|
225
|
-
<!--End PulumiCodeChooser -->
|
|
226
224
|
|
|
227
225
|
## Import
|
|
228
226
|
|
|
229
227
|
```sh
|
|
230
|
-
$ pulumi import aiven:index/clickhouseDatabase:ClickhouseDatabase clickhouse_db
|
|
228
|
+
$ pulumi import aiven:index/clickhouseDatabase:ClickhouseDatabase clickhouse_db PROJECT/SERVICE_NAME/NAME
|
|
231
229
|
```
|
|
232
230
|
|
|
233
231
|
:param str resource_name: The name of the resource.
|
|
@@ -287,9 +285,9 @@ class ClickhouseDatabase(pulumi.CustomResource):
|
|
|
287
285
|
:param str resource_name: The unique name of the resulting resource.
|
|
288
286
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
289
287
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
290
|
-
:param pulumi.Input[str] name: The name of the Clickhouse database.
|
|
291
|
-
:param pulumi.Input[str] project:
|
|
292
|
-
:param pulumi.Input[str] service_name:
|
|
288
|
+
:param pulumi.Input[str] name: The name of the Clickhouse database. Changing this property forces recreation of the resource.
|
|
289
|
+
: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.
|
|
290
|
+
:param pulumi.Input[str] service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
293
291
|
:param pulumi.Input[bool] termination_protection: It is a Terraform client-side deletion protections, which prevents the Clickhouse database from being deleted by
|
|
294
292
|
Terraform. It is recommended to enable this for any production Clickhouse databases containing critical data. The
|
|
295
293
|
default value is `false`.
|
|
@@ -308,7 +306,7 @@ class ClickhouseDatabase(pulumi.CustomResource):
|
|
|
308
306
|
@pulumi.getter
|
|
309
307
|
def name(self) -> pulumi.Output[str]:
|
|
310
308
|
"""
|
|
311
|
-
The name of the Clickhouse database.
|
|
309
|
+
The name of the Clickhouse database. Changing this property forces recreation of the resource.
|
|
312
310
|
"""
|
|
313
311
|
return pulumi.get(self, "name")
|
|
314
312
|
|
|
@@ -316,7 +314,7 @@ class ClickhouseDatabase(pulumi.CustomResource):
|
|
|
316
314
|
@pulumi.getter
|
|
317
315
|
def project(self) -> pulumi.Output[str]:
|
|
318
316
|
"""
|
|
319
|
-
|
|
317
|
+
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.
|
|
320
318
|
"""
|
|
321
319
|
return pulumi.get(self, "project")
|
|
322
320
|
|
|
@@ -324,7 +322,7 @@ class ClickhouseDatabase(pulumi.CustomResource):
|
|
|
324
322
|
@pulumi.getter(name="serviceName")
|
|
325
323
|
def service_name(self) -> pulumi.Output[str]:
|
|
326
324
|
"""
|
|
327
|
-
|
|
325
|
+
The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
|
|
328
326
|
"""
|
|
329
327
|
return pulumi.get(self, "service_name")
|
|
330
328
|
|