pulumi-aiven 6.19.0a1721845827__py3-none-any.whl → 6.20.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 +20 -0
- pulumi_aiven/_inputs.py +1089 -29
- pulumi_aiven/account_team.py +12 -4
- pulumi_aiven/account_team_member.py +4 -4
- pulumi_aiven/account_team_project.py +4 -4
- pulumi_aiven/clickhouse.py +22 -22
- pulumi_aiven/clickhouse_database.py +39 -19
- pulumi_aiven/clickhouse_grant.py +80 -82
- pulumi_aiven/clickhouse_role.py +17 -31
- pulumi_aiven/clickhouse_user.py +31 -31
- pulumi_aiven/flink.py +19 -19
- pulumi_aiven/flink_application.py +39 -39
- pulumi_aiven/flink_application_deployment.py +131 -57
- pulumi_aiven/flink_application_version.py +64 -56
- pulumi_aiven/get_clickhouse.py +8 -8
- pulumi_aiven/get_clickhouse_database.py +11 -11
- pulumi_aiven/get_clickhouse_user.py +14 -14
- pulumi_aiven/get_flink.py +7 -7
- pulumi_aiven/get_flink_application.py +16 -16
- pulumi_aiven/get_flink_application_version.py +22 -22
- pulumi_aiven/get_kafka_acl.py +22 -22
- pulumi_aiven/get_kafka_connect.py +6 -6
- pulumi_aiven/get_kafka_connector.py +13 -13
- pulumi_aiven/get_kafka_topic.py +2 -2
- pulumi_aiven/get_kafka_user.py +15 -15
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +1 -1
- pulumi_aiven/get_valkey.py +469 -0
- pulumi_aiven/get_valkey_user.py +206 -0
- pulumi_aiven/kafka_acl.py +43 -39
- pulumi_aiven/kafka_connect.py +66 -14
- pulumi_aiven/kafka_connector.py +46 -40
- pulumi_aiven/kafka_schema_registry_acl.py +2 -2
- pulumi_aiven/kafka_topic.py +16 -16
- pulumi_aiven/kafka_user.py +40 -40
- pulumi_aiven/organization_application_user.py +12 -2
- pulumi_aiven/organization_application_user_token.py +7 -7
- pulumi_aiven/organization_group_project.py +9 -9
- pulumi_aiven/organization_user_group_member.py +13 -9
- pulumi_aiven/outputs.py +2113 -332
- pulumi_aiven/pulumi-plugin.json +1 -1
- pulumi_aiven/transit_gateway_vpc_attachment.py +7 -16
- pulumi_aiven/valkey.py +1252 -0
- pulumi_aiven/valkey_user.py +513 -0
- {pulumi_aiven-6.19.0a1721845827.dist-info → pulumi_aiven-6.20.0.dist-info}/METADATA +1 -1
- {pulumi_aiven-6.19.0a1721845827.dist-info → pulumi_aiven-6.20.0.dist-info}/RECORD +47 -43
- {pulumi_aiven-6.19.0a1721845827.dist-info → pulumi_aiven-6.20.0.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.19.0a1721845827.dist-info → pulumi_aiven-6.20.0.dist-info}/top_level.txt +0 -0
pulumi_aiven/kafka_acl.py
CHANGED
|
@@ -21,11 +21,11 @@ class KafkaAclArgs:
|
|
|
21
21
|
username: pulumi.Input[str]):
|
|
22
22
|
"""
|
|
23
23
|
The set of arguments for constructing a KafkaAcl resource.
|
|
24
|
-
:param pulumi.Input[str] permission:
|
|
24
|
+
:param pulumi.Input[str] permission: Permissions to grant. The possible values are `admin`, `read`, `readwrite` and `write`. Changing this property forces recreation of the resource.
|
|
25
25
|
: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.
|
|
26
26
|
: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.
|
|
27
|
-
:param pulumi.Input[str] topic:
|
|
28
|
-
:param pulumi.Input[str] username:
|
|
27
|
+
:param pulumi.Input[str] topic: Topics that the permissions apply to. Changing this property forces recreation of the resource.
|
|
28
|
+
:param pulumi.Input[str] username: Usernames to grant permissions to. Changing this property forces recreation of the resource.
|
|
29
29
|
"""
|
|
30
30
|
pulumi.set(__self__, "permission", permission)
|
|
31
31
|
pulumi.set(__self__, "project", project)
|
|
@@ -37,7 +37,7 @@ class KafkaAclArgs:
|
|
|
37
37
|
@pulumi.getter
|
|
38
38
|
def permission(self) -> pulumi.Input[str]:
|
|
39
39
|
"""
|
|
40
|
-
|
|
40
|
+
Permissions to grant. The possible values are `admin`, `read`, `readwrite` and `write`. Changing this property forces recreation of the resource.
|
|
41
41
|
"""
|
|
42
42
|
return pulumi.get(self, "permission")
|
|
43
43
|
|
|
@@ -73,7 +73,7 @@ class KafkaAclArgs:
|
|
|
73
73
|
@pulumi.getter
|
|
74
74
|
def topic(self) -> pulumi.Input[str]:
|
|
75
75
|
"""
|
|
76
|
-
|
|
76
|
+
Topics that the permissions apply to. Changing this property forces recreation of the resource.
|
|
77
77
|
"""
|
|
78
78
|
return pulumi.get(self, "topic")
|
|
79
79
|
|
|
@@ -85,7 +85,7 @@ class KafkaAclArgs:
|
|
|
85
85
|
@pulumi.getter
|
|
86
86
|
def username(self) -> pulumi.Input[str]:
|
|
87
87
|
"""
|
|
88
|
-
|
|
88
|
+
Usernames to grant permissions to. Changing this property forces recreation of the resource.
|
|
89
89
|
"""
|
|
90
90
|
return pulumi.get(self, "username")
|
|
91
91
|
|
|
@@ -105,12 +105,12 @@ class _KafkaAclState:
|
|
|
105
105
|
username: Optional[pulumi.Input[str]] = None):
|
|
106
106
|
"""
|
|
107
107
|
Input properties used for looking up and filtering KafkaAcl resources.
|
|
108
|
-
:param pulumi.Input[str] acl_id: Kafka ACL ID
|
|
109
|
-
:param pulumi.Input[str] permission:
|
|
108
|
+
:param pulumi.Input[str] acl_id: Kafka ACL ID.
|
|
109
|
+
:param pulumi.Input[str] permission: Permissions to grant. The possible values are `admin`, `read`, `readwrite` and `write`. Changing this property forces recreation of the resource.
|
|
110
110
|
: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.
|
|
111
111
|
: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.
|
|
112
|
-
:param pulumi.Input[str] topic:
|
|
113
|
-
:param pulumi.Input[str] username:
|
|
112
|
+
:param pulumi.Input[str] topic: Topics that the permissions apply to. Changing this property forces recreation of the resource.
|
|
113
|
+
:param pulumi.Input[str] username: Usernames to grant permissions to. Changing this property forces recreation of the resource.
|
|
114
114
|
"""
|
|
115
115
|
if acl_id is not None:
|
|
116
116
|
pulumi.set(__self__, "acl_id", acl_id)
|
|
@@ -129,7 +129,7 @@ class _KafkaAclState:
|
|
|
129
129
|
@pulumi.getter(name="aclId")
|
|
130
130
|
def acl_id(self) -> Optional[pulumi.Input[str]]:
|
|
131
131
|
"""
|
|
132
|
-
Kafka ACL ID
|
|
132
|
+
Kafka ACL ID.
|
|
133
133
|
"""
|
|
134
134
|
return pulumi.get(self, "acl_id")
|
|
135
135
|
|
|
@@ -141,7 +141,7 @@ class _KafkaAclState:
|
|
|
141
141
|
@pulumi.getter
|
|
142
142
|
def permission(self) -> Optional[pulumi.Input[str]]:
|
|
143
143
|
"""
|
|
144
|
-
|
|
144
|
+
Permissions to grant. The possible values are `admin`, `read`, `readwrite` and `write`. Changing this property forces recreation of the resource.
|
|
145
145
|
"""
|
|
146
146
|
return pulumi.get(self, "permission")
|
|
147
147
|
|
|
@@ -177,7 +177,7 @@ class _KafkaAclState:
|
|
|
177
177
|
@pulumi.getter
|
|
178
178
|
def topic(self) -> Optional[pulumi.Input[str]]:
|
|
179
179
|
"""
|
|
180
|
-
|
|
180
|
+
Topics that the permissions apply to. Changing this property forces recreation of the resource.
|
|
181
181
|
"""
|
|
182
182
|
return pulumi.get(self, "topic")
|
|
183
183
|
|
|
@@ -189,7 +189,7 @@ class _KafkaAclState:
|
|
|
189
189
|
@pulumi.getter
|
|
190
190
|
def username(self) -> Optional[pulumi.Input[str]]:
|
|
191
191
|
"""
|
|
192
|
-
|
|
192
|
+
Usernames to grant permissions to. Changing this property forces recreation of the resource.
|
|
193
193
|
"""
|
|
194
194
|
return pulumi.get(self, "username")
|
|
195
195
|
|
|
@@ -210,7 +210,9 @@ class KafkaAcl(pulumi.CustomResource):
|
|
|
210
210
|
username: Optional[pulumi.Input[str]] = None,
|
|
211
211
|
__props__=None):
|
|
212
212
|
"""
|
|
213
|
-
|
|
213
|
+
Creates and manages an [access control list](https://aiven.io/docs/products/kafka/concepts/acl) (ACL) entry for an Aiven for Apache Kafka® service.
|
|
214
|
+
|
|
215
|
+
ACL entries grant users rights to produce, consume, and manage Kafka topics.
|
|
214
216
|
|
|
215
217
|
## Example Usage
|
|
216
218
|
|
|
@@ -218,27 +220,27 @@ class KafkaAcl(pulumi.CustomResource):
|
|
|
218
220
|
import pulumi
|
|
219
221
|
import pulumi_aiven as aiven
|
|
220
222
|
|
|
221
|
-
|
|
222
|
-
project=
|
|
223
|
-
service_name=
|
|
224
|
-
topic="
|
|
223
|
+
example_acl = aiven.KafkaAcl("example_acl",
|
|
224
|
+
project=example_project["project"],
|
|
225
|
+
service_name=example_kafka["serviceName"],
|
|
226
|
+
topic="example-topic",
|
|
225
227
|
permission="admin",
|
|
226
|
-
username="
|
|
228
|
+
username="example-user")
|
|
227
229
|
```
|
|
228
230
|
|
|
229
231
|
## Import
|
|
230
232
|
|
|
231
233
|
```sh
|
|
232
|
-
$ pulumi import aiven:index/kafkaAcl:KafkaAcl
|
|
234
|
+
$ pulumi import aiven:index/kafkaAcl:KafkaAcl example_acl PROJECT/SERVICE_NAME/ID
|
|
233
235
|
```
|
|
234
236
|
|
|
235
237
|
:param str resource_name: The name of the resource.
|
|
236
238
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
237
|
-
:param pulumi.Input[str] permission:
|
|
239
|
+
:param pulumi.Input[str] permission: Permissions to grant. The possible values are `admin`, `read`, `readwrite` and `write`. Changing this property forces recreation of the resource.
|
|
238
240
|
: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.
|
|
239
241
|
: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.
|
|
240
|
-
:param pulumi.Input[str] topic:
|
|
241
|
-
:param pulumi.Input[str] username:
|
|
242
|
+
:param pulumi.Input[str] topic: Topics that the permissions apply to. Changing this property forces recreation of the resource.
|
|
243
|
+
:param pulumi.Input[str] username: Usernames to grant permissions to. Changing this property forces recreation of the resource.
|
|
242
244
|
"""
|
|
243
245
|
...
|
|
244
246
|
@overload
|
|
@@ -247,7 +249,9 @@ class KafkaAcl(pulumi.CustomResource):
|
|
|
247
249
|
args: KafkaAclArgs,
|
|
248
250
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
249
251
|
"""
|
|
250
|
-
|
|
252
|
+
Creates and manages an [access control list](https://aiven.io/docs/products/kafka/concepts/acl) (ACL) entry for an Aiven for Apache Kafka® service.
|
|
253
|
+
|
|
254
|
+
ACL entries grant users rights to produce, consume, and manage Kafka topics.
|
|
251
255
|
|
|
252
256
|
## Example Usage
|
|
253
257
|
|
|
@@ -255,18 +259,18 @@ class KafkaAcl(pulumi.CustomResource):
|
|
|
255
259
|
import pulumi
|
|
256
260
|
import pulumi_aiven as aiven
|
|
257
261
|
|
|
258
|
-
|
|
259
|
-
project=
|
|
260
|
-
service_name=
|
|
261
|
-
topic="
|
|
262
|
+
example_acl = aiven.KafkaAcl("example_acl",
|
|
263
|
+
project=example_project["project"],
|
|
264
|
+
service_name=example_kafka["serviceName"],
|
|
265
|
+
topic="example-topic",
|
|
262
266
|
permission="admin",
|
|
263
|
-
username="
|
|
267
|
+
username="example-user")
|
|
264
268
|
```
|
|
265
269
|
|
|
266
270
|
## Import
|
|
267
271
|
|
|
268
272
|
```sh
|
|
269
|
-
$ pulumi import aiven:index/kafkaAcl:KafkaAcl
|
|
273
|
+
$ pulumi import aiven:index/kafkaAcl:KafkaAcl example_acl PROJECT/SERVICE_NAME/ID
|
|
270
274
|
```
|
|
271
275
|
|
|
272
276
|
:param str resource_name: The name of the resource.
|
|
@@ -337,12 +341,12 @@ class KafkaAcl(pulumi.CustomResource):
|
|
|
337
341
|
:param str resource_name: The unique name of the resulting resource.
|
|
338
342
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
339
343
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
340
|
-
:param pulumi.Input[str] acl_id: Kafka ACL ID
|
|
341
|
-
:param pulumi.Input[str] permission:
|
|
344
|
+
:param pulumi.Input[str] acl_id: Kafka ACL ID.
|
|
345
|
+
:param pulumi.Input[str] permission: Permissions to grant. The possible values are `admin`, `read`, `readwrite` and `write`. Changing this property forces recreation of the resource.
|
|
342
346
|
: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.
|
|
343
347
|
: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.
|
|
344
|
-
:param pulumi.Input[str] topic:
|
|
345
|
-
:param pulumi.Input[str] username:
|
|
348
|
+
:param pulumi.Input[str] topic: Topics that the permissions apply to. Changing this property forces recreation of the resource.
|
|
349
|
+
:param pulumi.Input[str] username: Usernames to grant permissions to. Changing this property forces recreation of the resource.
|
|
346
350
|
"""
|
|
347
351
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
348
352
|
|
|
@@ -360,7 +364,7 @@ class KafkaAcl(pulumi.CustomResource):
|
|
|
360
364
|
@pulumi.getter(name="aclId")
|
|
361
365
|
def acl_id(self) -> pulumi.Output[str]:
|
|
362
366
|
"""
|
|
363
|
-
Kafka ACL ID
|
|
367
|
+
Kafka ACL ID.
|
|
364
368
|
"""
|
|
365
369
|
return pulumi.get(self, "acl_id")
|
|
366
370
|
|
|
@@ -368,7 +372,7 @@ class KafkaAcl(pulumi.CustomResource):
|
|
|
368
372
|
@pulumi.getter
|
|
369
373
|
def permission(self) -> pulumi.Output[str]:
|
|
370
374
|
"""
|
|
371
|
-
|
|
375
|
+
Permissions to grant. The possible values are `admin`, `read`, `readwrite` and `write`. Changing this property forces recreation of the resource.
|
|
372
376
|
"""
|
|
373
377
|
return pulumi.get(self, "permission")
|
|
374
378
|
|
|
@@ -392,7 +396,7 @@ class KafkaAcl(pulumi.CustomResource):
|
|
|
392
396
|
@pulumi.getter
|
|
393
397
|
def topic(self) -> pulumi.Output[str]:
|
|
394
398
|
"""
|
|
395
|
-
|
|
399
|
+
Topics that the permissions apply to. Changing this property forces recreation of the resource.
|
|
396
400
|
"""
|
|
397
401
|
return pulumi.get(self, "topic")
|
|
398
402
|
|
|
@@ -400,7 +404,7 @@ class KafkaAcl(pulumi.CustomResource):
|
|
|
400
404
|
@pulumi.getter
|
|
401
405
|
def username(self) -> pulumi.Output[str]:
|
|
402
406
|
"""
|
|
403
|
-
|
|
407
|
+
Usernames to grant permissions to. Changing this property forces recreation of the resource.
|
|
404
408
|
"""
|
|
405
409
|
return pulumi.get(self, "username")
|
|
406
410
|
|
pulumi_aiven/kafka_connect.py
CHANGED
|
@@ -728,7 +728,15 @@ class KafkaConnect(pulumi.CustomResource):
|
|
|
728
728
|
termination_protection: Optional[pulumi.Input[bool]] = None,
|
|
729
729
|
__props__=None):
|
|
730
730
|
"""
|
|
731
|
-
|
|
731
|
+
Creates and manages an [Aiven for Apache Kafka® Connect](https://aiven.io/docs/products/kafka/kafka-connect) service.
|
|
732
|
+
Kafka Connect lets you integrate an Aiven for Apache Kafka® service with external data sources using connectors.
|
|
733
|
+
|
|
734
|
+
To set up and integrate Kafka Connect:
|
|
735
|
+
1. Create a Kafka service in the same Aiven project using the `Kafka` resource.
|
|
736
|
+
2. Create topics for importing and exporting data using `KafkaTopic`.
|
|
737
|
+
3. Create the Kafka Connect service.
|
|
738
|
+
4. Use the `ServiceIntegration` resource to integrate the Kafka and Kafka Connect services.
|
|
739
|
+
5. Add source and sink connectors using `KafkaConnector` resource.
|
|
732
740
|
|
|
733
741
|
## Example Usage
|
|
734
742
|
|
|
@@ -736,13 +744,18 @@ class KafkaConnect(pulumi.CustomResource):
|
|
|
736
744
|
import pulumi
|
|
737
745
|
import pulumi_aiven as aiven
|
|
738
746
|
|
|
739
|
-
|
|
740
|
-
|
|
747
|
+
# Create a Kafka service.
|
|
748
|
+
example_kafka = aiven.Kafka("example_kafka",
|
|
749
|
+
project=example_project["project"],
|
|
750
|
+
service_name="example-kafka-service",
|
|
751
|
+
cloud_name="google-europe-west1",
|
|
752
|
+
plan="startup-2")
|
|
753
|
+
# Create a Kafka Connect service.
|
|
754
|
+
example_kafka_connect = aiven.KafkaConnect("example_kafka_connect",
|
|
755
|
+
project=example_project["project"],
|
|
741
756
|
cloud_name="google-europe-west1",
|
|
742
757
|
plan="startup-4",
|
|
743
|
-
service_name="
|
|
744
|
-
maintenance_window_dow="monday",
|
|
745
|
-
maintenance_window_time="10:00:00",
|
|
758
|
+
service_name="example-connect-service",
|
|
746
759
|
kafka_connect_user_config=aiven.KafkaConnectKafkaConnectUserConfigArgs(
|
|
747
760
|
kafka_connect=aiven.KafkaConnectKafkaConnectUserConfigKafkaConnectArgs(
|
|
748
761
|
consumer_isolation_level="read_committed",
|
|
@@ -751,12 +764,25 @@ class KafkaConnect(pulumi.CustomResource):
|
|
|
751
764
|
kafka_connect=True,
|
|
752
765
|
),
|
|
753
766
|
))
|
|
767
|
+
# Integrate the Kafka and Kafka Connect services.
|
|
768
|
+
kafka_connect_integration = aiven.ServiceIntegration("kafka_connect_integration",
|
|
769
|
+
project=example_project["project"],
|
|
770
|
+
integration_type="kafka_connect",
|
|
771
|
+
source_service_name=example_kafka.service_name,
|
|
772
|
+
destination_service_name=example_kafka_connect.service_name,
|
|
773
|
+
kafka_connect_user_config=aiven.ServiceIntegrationKafkaConnectUserConfigArgs(
|
|
774
|
+
kafka_connect=aiven.ServiceIntegrationKafkaConnectUserConfigKafkaConnectArgs(
|
|
775
|
+
group_id="connect",
|
|
776
|
+
status_storage_topic="__connect_status",
|
|
777
|
+
offset_storage_topic="__connect_offsets",
|
|
778
|
+
),
|
|
779
|
+
))
|
|
754
780
|
```
|
|
755
781
|
|
|
756
782
|
## Import
|
|
757
783
|
|
|
758
784
|
```sh
|
|
759
|
-
$ pulumi import aiven:index/kafkaConnect:KafkaConnect
|
|
785
|
+
$ pulumi import aiven:index/kafkaConnect:KafkaConnect example_kafka_connect PROJECT/SERVICE_NAME
|
|
760
786
|
```
|
|
761
787
|
|
|
762
788
|
:param str resource_name: The name of the resource.
|
|
@@ -784,7 +810,15 @@ class KafkaConnect(pulumi.CustomResource):
|
|
|
784
810
|
args: KafkaConnectArgs,
|
|
785
811
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
786
812
|
"""
|
|
787
|
-
|
|
813
|
+
Creates and manages an [Aiven for Apache Kafka® Connect](https://aiven.io/docs/products/kafka/kafka-connect) service.
|
|
814
|
+
Kafka Connect lets you integrate an Aiven for Apache Kafka® service with external data sources using connectors.
|
|
815
|
+
|
|
816
|
+
To set up and integrate Kafka Connect:
|
|
817
|
+
1. Create a Kafka service in the same Aiven project using the `Kafka` resource.
|
|
818
|
+
2. Create topics for importing and exporting data using `KafkaTopic`.
|
|
819
|
+
3. Create the Kafka Connect service.
|
|
820
|
+
4. Use the `ServiceIntegration` resource to integrate the Kafka and Kafka Connect services.
|
|
821
|
+
5. Add source and sink connectors using `KafkaConnector` resource.
|
|
788
822
|
|
|
789
823
|
## Example Usage
|
|
790
824
|
|
|
@@ -792,13 +826,18 @@ class KafkaConnect(pulumi.CustomResource):
|
|
|
792
826
|
import pulumi
|
|
793
827
|
import pulumi_aiven as aiven
|
|
794
828
|
|
|
795
|
-
|
|
796
|
-
|
|
829
|
+
# Create a Kafka service.
|
|
830
|
+
example_kafka = aiven.Kafka("example_kafka",
|
|
831
|
+
project=example_project["project"],
|
|
832
|
+
service_name="example-kafka-service",
|
|
833
|
+
cloud_name="google-europe-west1",
|
|
834
|
+
plan="startup-2")
|
|
835
|
+
# Create a Kafka Connect service.
|
|
836
|
+
example_kafka_connect = aiven.KafkaConnect("example_kafka_connect",
|
|
837
|
+
project=example_project["project"],
|
|
797
838
|
cloud_name="google-europe-west1",
|
|
798
839
|
plan="startup-4",
|
|
799
|
-
service_name="
|
|
800
|
-
maintenance_window_dow="monday",
|
|
801
|
-
maintenance_window_time="10:00:00",
|
|
840
|
+
service_name="example-connect-service",
|
|
802
841
|
kafka_connect_user_config=aiven.KafkaConnectKafkaConnectUserConfigArgs(
|
|
803
842
|
kafka_connect=aiven.KafkaConnectKafkaConnectUserConfigKafkaConnectArgs(
|
|
804
843
|
consumer_isolation_level="read_committed",
|
|
@@ -807,12 +846,25 @@ class KafkaConnect(pulumi.CustomResource):
|
|
|
807
846
|
kafka_connect=True,
|
|
808
847
|
),
|
|
809
848
|
))
|
|
849
|
+
# Integrate the Kafka and Kafka Connect services.
|
|
850
|
+
kafka_connect_integration = aiven.ServiceIntegration("kafka_connect_integration",
|
|
851
|
+
project=example_project["project"],
|
|
852
|
+
integration_type="kafka_connect",
|
|
853
|
+
source_service_name=example_kafka.service_name,
|
|
854
|
+
destination_service_name=example_kafka_connect.service_name,
|
|
855
|
+
kafka_connect_user_config=aiven.ServiceIntegrationKafkaConnectUserConfigArgs(
|
|
856
|
+
kafka_connect=aiven.ServiceIntegrationKafkaConnectUserConfigKafkaConnectArgs(
|
|
857
|
+
group_id="connect",
|
|
858
|
+
status_storage_topic="__connect_status",
|
|
859
|
+
offset_storage_topic="__connect_offsets",
|
|
860
|
+
),
|
|
861
|
+
))
|
|
810
862
|
```
|
|
811
863
|
|
|
812
864
|
## Import
|
|
813
865
|
|
|
814
866
|
```sh
|
|
815
|
-
$ pulumi import aiven:index/kafkaConnect:KafkaConnect
|
|
867
|
+
$ pulumi import aiven:index/kafkaConnect:KafkaConnect example_kafka_connect PROJECT/SERVICE_NAME
|
|
816
868
|
```
|
|
817
869
|
|
|
818
870
|
:param str resource_name: The name of the resource.
|
pulumi_aiven/kafka_connector.py
CHANGED
|
@@ -22,8 +22,8 @@ class KafkaConnectorArgs:
|
|
|
22
22
|
service_name: pulumi.Input[str]):
|
|
23
23
|
"""
|
|
24
24
|
The set of arguments for constructing a KafkaConnector resource.
|
|
25
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The Kafka
|
|
26
|
-
:param pulumi.Input[str] connector_name: The
|
|
25
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The Kafka connector configuration parameters.
|
|
26
|
+
:param pulumi.Input[str] connector_name: The Kafka connector name. Changing this property forces recreation of the resource.
|
|
27
27
|
: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.
|
|
28
28
|
: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.
|
|
29
29
|
"""
|
|
@@ -36,7 +36,7 @@ class KafkaConnectorArgs:
|
|
|
36
36
|
@pulumi.getter
|
|
37
37
|
def config(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]]:
|
|
38
38
|
"""
|
|
39
|
-
The Kafka
|
|
39
|
+
The Kafka connector configuration parameters.
|
|
40
40
|
"""
|
|
41
41
|
return pulumi.get(self, "config")
|
|
42
42
|
|
|
@@ -48,7 +48,7 @@ class KafkaConnectorArgs:
|
|
|
48
48
|
@pulumi.getter(name="connectorName")
|
|
49
49
|
def connector_name(self) -> pulumi.Input[str]:
|
|
50
50
|
"""
|
|
51
|
-
The
|
|
51
|
+
The Kafka connector name. Changing this property forces recreation of the resource.
|
|
52
52
|
"""
|
|
53
53
|
return pulumi.get(self, "connector_name")
|
|
54
54
|
|
|
@@ -97,14 +97,14 @@ class _KafkaConnectorState:
|
|
|
97
97
|
tasks: Optional[pulumi.Input[Sequence[pulumi.Input['KafkaConnectorTaskArgs']]]] = None):
|
|
98
98
|
"""
|
|
99
99
|
Input properties used for looking up and filtering KafkaConnector resources.
|
|
100
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The Kafka
|
|
101
|
-
:param pulumi.Input[str] connector_name: The
|
|
100
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The Kafka connector configuration parameters.
|
|
101
|
+
:param pulumi.Input[str] connector_name: The Kafka connector name. Changing this property forces recreation of the resource.
|
|
102
102
|
:param pulumi.Input[str] plugin_author: The Kafka connector author.
|
|
103
103
|
:param pulumi.Input[str] plugin_class: The Kafka connector Java class.
|
|
104
104
|
:param pulumi.Input[str] plugin_doc_url: The Kafka connector documentation URL.
|
|
105
105
|
:param pulumi.Input[str] plugin_title: The Kafka connector title.
|
|
106
106
|
:param pulumi.Input[str] plugin_type: The Kafka connector type.
|
|
107
|
-
:param pulumi.Input[str] plugin_version: The version of the
|
|
107
|
+
:param pulumi.Input[str] plugin_version: The version of the Kafka connector.
|
|
108
108
|
: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.
|
|
109
109
|
: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.
|
|
110
110
|
:param pulumi.Input[Sequence[pulumi.Input['KafkaConnectorTaskArgs']]] tasks: List of tasks of a connector.
|
|
@@ -136,7 +136,7 @@ class _KafkaConnectorState:
|
|
|
136
136
|
@pulumi.getter
|
|
137
137
|
def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
138
138
|
"""
|
|
139
|
-
The Kafka
|
|
139
|
+
The Kafka connector configuration parameters.
|
|
140
140
|
"""
|
|
141
141
|
return pulumi.get(self, "config")
|
|
142
142
|
|
|
@@ -148,7 +148,7 @@ class _KafkaConnectorState:
|
|
|
148
148
|
@pulumi.getter(name="connectorName")
|
|
149
149
|
def connector_name(self) -> Optional[pulumi.Input[str]]:
|
|
150
150
|
"""
|
|
151
|
-
The
|
|
151
|
+
The Kafka connector name. Changing this property forces recreation of the resource.
|
|
152
152
|
"""
|
|
153
153
|
return pulumi.get(self, "connector_name")
|
|
154
154
|
|
|
@@ -220,7 +220,7 @@ class _KafkaConnectorState:
|
|
|
220
220
|
@pulumi.getter(name="pluginVersion")
|
|
221
221
|
def plugin_version(self) -> Optional[pulumi.Input[str]]:
|
|
222
222
|
"""
|
|
223
|
-
The version of the
|
|
223
|
+
The version of the Kafka connector.
|
|
224
224
|
"""
|
|
225
225
|
return pulumi.get(self, "plugin_version")
|
|
226
226
|
|
|
@@ -276,7 +276,10 @@ class KafkaConnector(pulumi.CustomResource):
|
|
|
276
276
|
service_name: Optional[pulumi.Input[str]] = None,
|
|
277
277
|
__props__=None):
|
|
278
278
|
"""
|
|
279
|
-
|
|
279
|
+
Creates and manages Aiven for Apache Kafka® [connectors](https://aiven.io/docs/products/kafka/kafka-connect/concepts/list-of-connector-plugins).
|
|
280
|
+
Source connectors let you import data from an external system into a Kafka topic. Sink connectors let you export data from a topic to an external system.
|
|
281
|
+
|
|
282
|
+
You can use connectors with any Aiven for Apache Kafka® service that is integrated with an Aiven for Apache Kafka® Connect service.
|
|
280
283
|
|
|
281
284
|
## Example Usage
|
|
282
285
|
|
|
@@ -284,31 +287,31 @@ class KafkaConnector(pulumi.CustomResource):
|
|
|
284
287
|
import pulumi
|
|
285
288
|
import pulumi_aiven as aiven
|
|
286
289
|
|
|
287
|
-
|
|
288
|
-
project=
|
|
289
|
-
service_name=
|
|
290
|
-
connector_name="kafka-
|
|
290
|
+
kafka_os_connector = aiven.KafkaConnector("kafka-os-connector",
|
|
291
|
+
project=example_project["project"],
|
|
292
|
+
service_name=example_kafka["serviceName"],
|
|
293
|
+
connector_name="kafka-opensearch-connector",
|
|
291
294
|
config={
|
|
292
|
-
"
|
|
295
|
+
"name": "kafka-opensearch-connector",
|
|
296
|
+
"topics": example_topic["topicName"],
|
|
293
297
|
"connector.class": "io.aiven.kafka.connect.opensearch.OpensearchSinkConnector",
|
|
294
298
|
"type.name": "os-connector",
|
|
295
|
-
"
|
|
296
|
-
"connection.
|
|
297
|
-
"connection.
|
|
298
|
-
"connection.password": os_service1["servicePassword"],
|
|
299
|
+
"connection.url": example_os["serviceUri"],
|
|
300
|
+
"connection.username": example_os["serviceUsername"],
|
|
301
|
+
"connection.password": example_os["servicePassword"],
|
|
299
302
|
})
|
|
300
303
|
```
|
|
301
304
|
|
|
302
305
|
## Import
|
|
303
306
|
|
|
304
307
|
```sh
|
|
305
|
-
$ pulumi import aiven:index/kafkaConnector:KafkaConnector kafka-os-
|
|
308
|
+
$ pulumi import aiven:index/kafkaConnector:KafkaConnector kafka-os-connector PROJECT/SERVICE_NAME/CONNECTOR_NAME
|
|
306
309
|
```
|
|
307
310
|
|
|
308
311
|
:param str resource_name: The name of the resource.
|
|
309
312
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
310
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The Kafka
|
|
311
|
-
:param pulumi.Input[str] connector_name: The
|
|
313
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The Kafka connector configuration parameters.
|
|
314
|
+
:param pulumi.Input[str] connector_name: The Kafka connector name. Changing this property forces recreation of the resource.
|
|
312
315
|
: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.
|
|
313
316
|
: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.
|
|
314
317
|
"""
|
|
@@ -319,7 +322,10 @@ class KafkaConnector(pulumi.CustomResource):
|
|
|
319
322
|
args: KafkaConnectorArgs,
|
|
320
323
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
321
324
|
"""
|
|
322
|
-
|
|
325
|
+
Creates and manages Aiven for Apache Kafka® [connectors](https://aiven.io/docs/products/kafka/kafka-connect/concepts/list-of-connector-plugins).
|
|
326
|
+
Source connectors let you import data from an external system into a Kafka topic. Sink connectors let you export data from a topic to an external system.
|
|
327
|
+
|
|
328
|
+
You can use connectors with any Aiven for Apache Kafka® service that is integrated with an Aiven for Apache Kafka® Connect service.
|
|
323
329
|
|
|
324
330
|
## Example Usage
|
|
325
331
|
|
|
@@ -327,25 +333,25 @@ class KafkaConnector(pulumi.CustomResource):
|
|
|
327
333
|
import pulumi
|
|
328
334
|
import pulumi_aiven as aiven
|
|
329
335
|
|
|
330
|
-
|
|
331
|
-
project=
|
|
332
|
-
service_name=
|
|
333
|
-
connector_name="kafka-
|
|
336
|
+
kafka_os_connector = aiven.KafkaConnector("kafka-os-connector",
|
|
337
|
+
project=example_project["project"],
|
|
338
|
+
service_name=example_kafka["serviceName"],
|
|
339
|
+
connector_name="kafka-opensearch-connector",
|
|
334
340
|
config={
|
|
335
|
-
"
|
|
341
|
+
"name": "kafka-opensearch-connector",
|
|
342
|
+
"topics": example_topic["topicName"],
|
|
336
343
|
"connector.class": "io.aiven.kafka.connect.opensearch.OpensearchSinkConnector",
|
|
337
344
|
"type.name": "os-connector",
|
|
338
|
-
"
|
|
339
|
-
"connection.
|
|
340
|
-
"connection.
|
|
341
|
-
"connection.password": os_service1["servicePassword"],
|
|
345
|
+
"connection.url": example_os["serviceUri"],
|
|
346
|
+
"connection.username": example_os["serviceUsername"],
|
|
347
|
+
"connection.password": example_os["servicePassword"],
|
|
342
348
|
})
|
|
343
349
|
```
|
|
344
350
|
|
|
345
351
|
## Import
|
|
346
352
|
|
|
347
353
|
```sh
|
|
348
|
-
$ pulumi import aiven:index/kafkaConnector:KafkaConnector kafka-os-
|
|
354
|
+
$ pulumi import aiven:index/kafkaConnector:KafkaConnector kafka-os-connector PROJECT/SERVICE_NAME/CONNECTOR_NAME
|
|
349
355
|
```
|
|
350
356
|
|
|
351
357
|
:param str resource_name: The name of the resource.
|
|
@@ -423,14 +429,14 @@ class KafkaConnector(pulumi.CustomResource):
|
|
|
423
429
|
:param str resource_name: The unique name of the resulting resource.
|
|
424
430
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
425
431
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
426
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The Kafka
|
|
427
|
-
:param pulumi.Input[str] connector_name: The
|
|
432
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The Kafka connector configuration parameters.
|
|
433
|
+
:param pulumi.Input[str] connector_name: The Kafka connector name. Changing this property forces recreation of the resource.
|
|
428
434
|
:param pulumi.Input[str] plugin_author: The Kafka connector author.
|
|
429
435
|
:param pulumi.Input[str] plugin_class: The Kafka connector Java class.
|
|
430
436
|
:param pulumi.Input[str] plugin_doc_url: The Kafka connector documentation URL.
|
|
431
437
|
:param pulumi.Input[str] plugin_title: The Kafka connector title.
|
|
432
438
|
:param pulumi.Input[str] plugin_type: The Kafka connector type.
|
|
433
|
-
:param pulumi.Input[str] plugin_version: The version of the
|
|
439
|
+
:param pulumi.Input[str] plugin_version: The version of the Kafka connector.
|
|
434
440
|
: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.
|
|
435
441
|
: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.
|
|
436
442
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['KafkaConnectorTaskArgs']]]] tasks: List of tasks of a connector.
|
|
@@ -456,7 +462,7 @@ class KafkaConnector(pulumi.CustomResource):
|
|
|
456
462
|
@pulumi.getter
|
|
457
463
|
def config(self) -> pulumi.Output[Mapping[str, str]]:
|
|
458
464
|
"""
|
|
459
|
-
The Kafka
|
|
465
|
+
The Kafka connector configuration parameters.
|
|
460
466
|
"""
|
|
461
467
|
return pulumi.get(self, "config")
|
|
462
468
|
|
|
@@ -464,7 +470,7 @@ class KafkaConnector(pulumi.CustomResource):
|
|
|
464
470
|
@pulumi.getter(name="connectorName")
|
|
465
471
|
def connector_name(self) -> pulumi.Output[str]:
|
|
466
472
|
"""
|
|
467
|
-
The
|
|
473
|
+
The Kafka connector name. Changing this property forces recreation of the resource.
|
|
468
474
|
"""
|
|
469
475
|
return pulumi.get(self, "connector_name")
|
|
470
476
|
|
|
@@ -512,7 +518,7 @@ class KafkaConnector(pulumi.CustomResource):
|
|
|
512
518
|
@pulumi.getter(name="pluginVersion")
|
|
513
519
|
def plugin_version(self) -> pulumi.Output[str]:
|
|
514
520
|
"""
|
|
515
|
-
The version of the
|
|
521
|
+
The version of the Kafka connector.
|
|
516
522
|
"""
|
|
517
523
|
return pulumi.get(self, "plugin_version")
|
|
518
524
|
|
|
@@ -229,7 +229,7 @@ class KafkaSchemaRegistryAcl(pulumi.CustomResource):
|
|
|
229
229
|
## Import
|
|
230
230
|
|
|
231
231
|
```sh
|
|
232
|
-
$ pulumi import aiven:index/kafkaSchemaRegistryAcl:KafkaSchemaRegistryAcl foo PROJECT/SERVICE_NAME
|
|
232
|
+
$ pulumi import aiven:index/kafkaSchemaRegistryAcl:KafkaSchemaRegistryAcl foo PROJECT/SERVICE_NAME/ACL_ID
|
|
233
233
|
```
|
|
234
234
|
|
|
235
235
|
:param str resource_name: The name of the resource.
|
|
@@ -266,7 +266,7 @@ class KafkaSchemaRegistryAcl(pulumi.CustomResource):
|
|
|
266
266
|
## Import
|
|
267
267
|
|
|
268
268
|
```sh
|
|
269
|
-
$ pulumi import aiven:index/kafkaSchemaRegistryAcl:KafkaSchemaRegistryAcl foo PROJECT/SERVICE_NAME
|
|
269
|
+
$ pulumi import aiven:index/kafkaSchemaRegistryAcl:KafkaSchemaRegistryAcl foo PROJECT/SERVICE_NAME/ACL_ID
|
|
270
270
|
```
|
|
271
271
|
|
|
272
272
|
:param str resource_name: The name of the resource.
|