pulumi-aiven 6.14.0a1713330923__py3-none-any.whl → 6.14.0a1713345330__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/account.py +2 -2
- pulumi_aiven/account_team.py +6 -2
- pulumi_aiven/account_team_member.py +4 -4
- pulumi_aiven/account_team_project.py +12 -8
- pulumi_aiven/aws_privatelink.py +4 -4
- pulumi_aiven/aws_vpc_peering_connection.py +8 -8
- pulumi_aiven/azure_privatelink.py +4 -4
- pulumi_aiven/azure_privatelink_connection_approval.py +102 -0
- pulumi_aiven/azure_vpc_peering_connection.py +6 -6
- pulumi_aiven/billing_group.py +2 -0
- pulumi_aiven/cassandra.py +2 -2
- pulumi_aiven/cassandra_user.py +2 -2
- pulumi_aiven/clickhouse.py +2 -2
- pulumi_aiven/clickhouse_database.py +8 -6
- pulumi_aiven/clickhouse_grant.py +14 -12
- pulumi_aiven/clickhouse_user.py +4 -4
- pulumi_aiven/connection_pool.py +8 -8
- pulumi_aiven/flink.py +2 -2
- pulumi_aiven/flink_application.py +6 -4
- pulumi_aiven/flink_application_version.py +86 -0
- pulumi_aiven/gcp_vpc_peering_connection.py +2 -2
- pulumi_aiven/get_aws_privatelink.py +4 -4
- pulumi_aiven/get_aws_vpc_peering_connection.py +6 -6
- pulumi_aiven/get_azure_privatelink.py +4 -4
- pulumi_aiven/get_azure_vpc_peering_connection.py +2 -2
- pulumi_aiven/get_cassanda.py +2 -2
- pulumi_aiven/get_cassandra.py +2 -2
- pulumi_aiven/get_cassandra_user.py +4 -4
- pulumi_aiven/get_clickhouse.py +2 -2
- pulumi_aiven/get_clickhouse_database.py +4 -4
- pulumi_aiven/get_clickhouse_user.py +4 -4
- pulumi_aiven/get_connection_pool.py +4 -4
- pulumi_aiven/get_flink.py +2 -2
- pulumi_aiven/get_flink_application.py +2 -2
- pulumi_aiven/get_flink_application_version.py +2 -2
- pulumi_aiven/get_gcp_vpc_peering_connection.py +2 -2
- pulumi_aiven/get_grafana.py +2 -2
- pulumi_aiven/get_kafka.py +2 -2
- pulumi_aiven/get_kafka_acl.py +4 -4
- pulumi_aiven/get_kafka_connect.py +2 -2
- pulumi_aiven/get_kafka_connector.py +4 -4
- pulumi_aiven/get_kafka_mirror_maker.py +2 -2
- pulumi_aiven/get_kafka_schema.py +4 -4
- pulumi_aiven/get_kafka_schema_configuration.py +4 -4
- pulumi_aiven/get_kafka_topic.py +4 -4
- pulumi_aiven/get_kafka_user.py +4 -4
- pulumi_aiven/get_m3_aggregator.py +2 -2
- pulumi_aiven/get_m3_db.py +2 -2
- pulumi_aiven/get_m3db_user.py +4 -4
- pulumi_aiven/get_mirror_maker_replication_flow.py +8 -8
- pulumi_aiven/get_my_sql.py +2 -2
- pulumi_aiven/get_mysql_database.py +4 -4
- pulumi_aiven/get_mysql_user.py +4 -4
- pulumi_aiven/get_open_search.py +2 -2
- pulumi_aiven/get_open_search_acl_config.py +4 -4
- pulumi_aiven/get_open_search_acl_rule.py +4 -4
- pulumi_aiven/get_opensearch_security_plugin_config.py +4 -4
- pulumi_aiven/get_opensearch_user.py +4 -4
- pulumi_aiven/get_organization_user_group.py +2 -2
- pulumi_aiven/get_pg.py +2 -2
- pulumi_aiven/get_pg_database.py +4 -4
- pulumi_aiven/get_pg_user.py +4 -4
- pulumi_aiven/get_project_user.py +2 -2
- pulumi_aiven/get_project_vpc.py +2 -2
- pulumi_aiven/get_redis.py +2 -2
- pulumi_aiven/get_redis_user.py +4 -4
- pulumi_aiven/get_service_component.py +4 -4
- pulumi_aiven/get_service_integration.py +2 -2
- pulumi_aiven/get_service_integration_endpoint.py +2 -2
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +2 -2
- pulumi_aiven/grafana.py +4 -2
- pulumi_aiven/kafka.py +2 -2
- pulumi_aiven/kafka_acl.py +4 -4
- pulumi_aiven/kafka_connect.py +2 -2
- pulumi_aiven/kafka_connector.py +12 -12
- pulumi_aiven/kafka_mirror_maker.py +2 -2
- pulumi_aiven/kafka_schema.py +4 -4
- pulumi_aiven/kafka_schema_configuration.py +4 -4
- pulumi_aiven/kafka_topic.py +42 -0
- pulumi_aiven/kafka_user.py +2 -2
- pulumi_aiven/m3_aggregator.py +2 -2
- pulumi_aiven/m3_db.py +2 -2
- pulumi_aiven/m3db_user.py +2 -2
- pulumi_aiven/mirror_maker_replication_flow.py +8 -8
- pulumi_aiven/my_sql.py +2 -2
- pulumi_aiven/mysql_database.py +4 -4
- pulumi_aiven/mysql_user.py +2 -2
- pulumi_aiven/open_search.py +2 -2
- pulumi_aiven/open_search_acl_config.py +12 -12
- pulumi_aiven/open_search_acl_rule.py +20 -20
- pulumi_aiven/opensearch_security_plugin_config.py +12 -12
- pulumi_aiven/opensearch_user.py +2 -2
- pulumi_aiven/organization.py +2 -2
- pulumi_aiven/organization_group_project.py +36 -0
- pulumi_aiven/organization_user_group.py +4 -2
- pulumi_aiven/organization_user_group_member.py +8 -6
- pulumi_aiven/organizational_unit.py +6 -2
- pulumi_aiven/pg_database.py +4 -4
- pulumi_aiven/pg_user.py +2 -2
- pulumi_aiven/project.py +4 -4
- pulumi_aiven/project_user.py +2 -2
- pulumi_aiven/project_vpc.py +28 -0
- pulumi_aiven/redis.py +2 -2
- pulumi_aiven/redis_user.py +2 -2
- pulumi_aiven/service_integration.py +8 -8
- pulumi_aiven/transit_gateway_vpc_attachment.py +2 -2
- {pulumi_aiven-6.14.0a1713330923.dist-info → pulumi_aiven-6.14.0a1713345330.dist-info}/METADATA +1 -1
- pulumi_aiven-6.14.0a1713345330.dist-info/RECORD +150 -0
- pulumi_aiven-6.14.0a1713330923.dist-info/RECORD +0 -150
- {pulumi_aiven-6.14.0a1713330923.dist-info → pulumi_aiven-6.14.0a1713345330.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.14.0a1713330923.dist-info → pulumi_aiven-6.14.0a1713345330.dist-info}/top_level.txt +0 -0
pulumi_aiven/kafka_connector.py
CHANGED
|
@@ -286,17 +286,17 @@ class KafkaConnector(pulumi.CustomResource):
|
|
|
286
286
|
import pulumi_aiven as aiven
|
|
287
287
|
|
|
288
288
|
kafka_os_con1 = aiven.KafkaConnector("kafka-os-con1",
|
|
289
|
-
project=
|
|
290
|
-
service_name=
|
|
289
|
+
project=kafka_con_project1["project"],
|
|
290
|
+
service_name=kafka_service1["serviceName"],
|
|
291
291
|
connector_name="kafka-os-con1",
|
|
292
292
|
config={
|
|
293
|
-
"topics":
|
|
293
|
+
"topics": kafka_topic1["topicName"],
|
|
294
294
|
"connector.class": "io.aiven.kafka.connect.opensearch.OpensearchSinkConnector",
|
|
295
295
|
"type.name": "os-connector",
|
|
296
296
|
"name": "kafka-os-con1",
|
|
297
|
-
"connection.url":
|
|
298
|
-
"connection.username":
|
|
299
|
-
"connection.password":
|
|
297
|
+
"connection.url": os_service1["serviceUri"],
|
|
298
|
+
"connection.username": os_service1["serviceUsername"],
|
|
299
|
+
"connection.password": os_service1["servicePassword"],
|
|
300
300
|
})
|
|
301
301
|
```
|
|
302
302
|
<!--End PulumiCodeChooser -->
|
|
@@ -331,17 +331,17 @@ class KafkaConnector(pulumi.CustomResource):
|
|
|
331
331
|
import pulumi_aiven as aiven
|
|
332
332
|
|
|
333
333
|
kafka_os_con1 = aiven.KafkaConnector("kafka-os-con1",
|
|
334
|
-
project=
|
|
335
|
-
service_name=
|
|
334
|
+
project=kafka_con_project1["project"],
|
|
335
|
+
service_name=kafka_service1["serviceName"],
|
|
336
336
|
connector_name="kafka-os-con1",
|
|
337
337
|
config={
|
|
338
|
-
"topics":
|
|
338
|
+
"topics": kafka_topic1["topicName"],
|
|
339
339
|
"connector.class": "io.aiven.kafka.connect.opensearch.OpensearchSinkConnector",
|
|
340
340
|
"type.name": "os-connector",
|
|
341
341
|
"name": "kafka-os-con1",
|
|
342
|
-
"connection.url":
|
|
343
|
-
"connection.username":
|
|
344
|
-
"connection.password":
|
|
342
|
+
"connection.url": os_service1["serviceUri"],
|
|
343
|
+
"connection.username": os_service1["serviceUsername"],
|
|
344
|
+
"connection.password": os_service1["servicePassword"],
|
|
345
345
|
})
|
|
346
346
|
```
|
|
347
347
|
<!--End PulumiCodeChooser -->
|
|
@@ -846,7 +846,7 @@ class KafkaMirrorMaker(pulumi.CustomResource):
|
|
|
846
846
|
import pulumi_aiven as aiven
|
|
847
847
|
|
|
848
848
|
mm1 = aiven.KafkaMirrorMaker("mm1",
|
|
849
|
-
project=
|
|
849
|
+
project=pr1["project"],
|
|
850
850
|
cloud_name="google-europe-west1",
|
|
851
851
|
plan="startup-4",
|
|
852
852
|
service_name="my-mm1",
|
|
@@ -923,7 +923,7 @@ class KafkaMirrorMaker(pulumi.CustomResource):
|
|
|
923
923
|
import pulumi_aiven as aiven
|
|
924
924
|
|
|
925
925
|
mm1 = aiven.KafkaMirrorMaker("mm1",
|
|
926
|
-
project=
|
|
926
|
+
project=pr1["project"],
|
|
927
927
|
cloud_name="google-europe-west1",
|
|
928
928
|
plan="startup-4",
|
|
929
929
|
service_name="my-mm1",
|
pulumi_aiven/kafka_schema.py
CHANGED
|
@@ -254,8 +254,8 @@ class KafkaSchema(pulumi.CustomResource):
|
|
|
254
254
|
import pulumi_aiven as aiven
|
|
255
255
|
|
|
256
256
|
kafka_schema1 = aiven.KafkaSchema("kafka-schema1",
|
|
257
|
-
project=
|
|
258
|
-
service_name=
|
|
257
|
+
project=kafka_schemas_project1["project"],
|
|
258
|
+
service_name=kafka_service1["serviceName"],
|
|
259
259
|
subject_name="kafka-schema1",
|
|
260
260
|
compatibility_level="FORWARD",
|
|
261
261
|
schema=\"\"\" {
|
|
@@ -309,8 +309,8 @@ class KafkaSchema(pulumi.CustomResource):
|
|
|
309
309
|
import pulumi_aiven as aiven
|
|
310
310
|
|
|
311
311
|
kafka_schema1 = aiven.KafkaSchema("kafka-schema1",
|
|
312
|
-
project=
|
|
313
|
-
service_name=
|
|
312
|
+
project=kafka_schemas_project1["project"],
|
|
313
|
+
service_name=kafka_service1["serviceName"],
|
|
314
314
|
subject_name="kafka-schema1",
|
|
315
315
|
compatibility_level="FORWARD",
|
|
316
316
|
schema=\"\"\" {
|
|
@@ -141,8 +141,8 @@ class KafkaSchemaConfiguration(pulumi.CustomResource):
|
|
|
141
141
|
import pulumi_aiven as aiven
|
|
142
142
|
|
|
143
143
|
config = aiven.KafkaSchemaConfiguration("config",
|
|
144
|
-
project=
|
|
145
|
-
service_name=
|
|
144
|
+
project=kafka_schemas_project1["project"],
|
|
145
|
+
service_name=kafka_service1["serviceName"],
|
|
146
146
|
compatibility_level="BACKWARD")
|
|
147
147
|
```
|
|
148
148
|
<!--End PulumiCodeChooser -->
|
|
@@ -176,8 +176,8 @@ class KafkaSchemaConfiguration(pulumi.CustomResource):
|
|
|
176
176
|
import pulumi_aiven as aiven
|
|
177
177
|
|
|
178
178
|
config = aiven.KafkaSchemaConfiguration("config",
|
|
179
|
-
project=
|
|
180
|
-
service_name=
|
|
179
|
+
project=kafka_schemas_project1["project"],
|
|
180
|
+
service_name=kafka_service1["serviceName"],
|
|
181
181
|
compatibility_level="BACKWARD")
|
|
182
182
|
```
|
|
183
183
|
<!--End PulumiCodeChooser -->
|
pulumi_aiven/kafka_topic.py
CHANGED
|
@@ -301,6 +301,27 @@ class KafkaTopic(pulumi.CustomResource):
|
|
|
301
301
|
"""
|
|
302
302
|
The Kafka Topic resource allows the creation and management of Aiven Kafka Topics.
|
|
303
303
|
|
|
304
|
+
## Example Usage
|
|
305
|
+
|
|
306
|
+
<!--Start PulumiCodeChooser -->
|
|
307
|
+
```python
|
|
308
|
+
import pulumi
|
|
309
|
+
import pulumi_aiven as aiven
|
|
310
|
+
|
|
311
|
+
mytesttopic = aiven.KafkaTopic("mytesttopic",
|
|
312
|
+
project=myproject["project"],
|
|
313
|
+
service_name=myservice["serviceName"],
|
|
314
|
+
topic_name="<TOPIC_NAME>",
|
|
315
|
+
partitions=5,
|
|
316
|
+
replication=3,
|
|
317
|
+
termination_protection=True,
|
|
318
|
+
config=aiven.KafkaTopicConfigArgs(
|
|
319
|
+
flush_ms="10",
|
|
320
|
+
cleanup_policy="compact,delete",
|
|
321
|
+
))
|
|
322
|
+
```
|
|
323
|
+
<!--End PulumiCodeChooser -->
|
|
324
|
+
|
|
304
325
|
## Import
|
|
305
326
|
|
|
306
327
|
```sh
|
|
@@ -328,6 +349,27 @@ class KafkaTopic(pulumi.CustomResource):
|
|
|
328
349
|
"""
|
|
329
350
|
The Kafka Topic resource allows the creation and management of Aiven Kafka Topics.
|
|
330
351
|
|
|
352
|
+
## Example Usage
|
|
353
|
+
|
|
354
|
+
<!--Start PulumiCodeChooser -->
|
|
355
|
+
```python
|
|
356
|
+
import pulumi
|
|
357
|
+
import pulumi_aiven as aiven
|
|
358
|
+
|
|
359
|
+
mytesttopic = aiven.KafkaTopic("mytesttopic",
|
|
360
|
+
project=myproject["project"],
|
|
361
|
+
service_name=myservice["serviceName"],
|
|
362
|
+
topic_name="<TOPIC_NAME>",
|
|
363
|
+
partitions=5,
|
|
364
|
+
replication=3,
|
|
365
|
+
termination_protection=True,
|
|
366
|
+
config=aiven.KafkaTopicConfigArgs(
|
|
367
|
+
flush_ms="10",
|
|
368
|
+
cleanup_policy="compact,delete",
|
|
369
|
+
))
|
|
370
|
+
```
|
|
371
|
+
<!--End PulumiCodeChooser -->
|
|
372
|
+
|
|
331
373
|
## Import
|
|
332
374
|
|
|
333
375
|
```sh
|
pulumi_aiven/kafka_user.py
CHANGED
|
@@ -221,7 +221,7 @@ class KafkaUser(pulumi.CustomResource):
|
|
|
221
221
|
import pulumi_aiven as aiven
|
|
222
222
|
|
|
223
223
|
foo = aiven.KafkaUser("foo",
|
|
224
|
-
service_name=
|
|
224
|
+
service_name=bar["serviceName"],
|
|
225
225
|
project="my-project",
|
|
226
226
|
username="user-1",
|
|
227
227
|
password="Test$1234")
|
|
@@ -258,7 +258,7 @@ class KafkaUser(pulumi.CustomResource):
|
|
|
258
258
|
import pulumi_aiven as aiven
|
|
259
259
|
|
|
260
260
|
foo = aiven.KafkaUser("foo",
|
|
261
|
-
service_name=
|
|
261
|
+
service_name=bar["serviceName"],
|
|
262
262
|
project="my-project",
|
|
263
263
|
username="user-1",
|
|
264
264
|
password="Test$1234")
|
pulumi_aiven/m3_aggregator.py
CHANGED
|
@@ -846,7 +846,7 @@ class M3Aggregator(pulumi.CustomResource):
|
|
|
846
846
|
import pulumi_aiven as aiven
|
|
847
847
|
|
|
848
848
|
m3a = aiven.M3Aggregator("m3a",
|
|
849
|
-
project=
|
|
849
|
+
project=foo["project"],
|
|
850
850
|
cloud_name="google-europe-west1",
|
|
851
851
|
plan="business-8",
|
|
852
852
|
service_name="my-m3a",
|
|
@@ -920,7 +920,7 @@ class M3Aggregator(pulumi.CustomResource):
|
|
|
920
920
|
import pulumi_aiven as aiven
|
|
921
921
|
|
|
922
922
|
m3a = aiven.M3Aggregator("m3a",
|
|
923
|
-
project=
|
|
923
|
+
project=foo["project"],
|
|
924
924
|
cloud_name="google-europe-west1",
|
|
925
925
|
plan="business-8",
|
|
926
926
|
service_name="my-m3a",
|
pulumi_aiven/m3_db.py
CHANGED
|
@@ -846,7 +846,7 @@ class M3Db(pulumi.CustomResource):
|
|
|
846
846
|
import pulumi_aiven as aiven
|
|
847
847
|
|
|
848
848
|
m3 = aiven.M3Db("m3",
|
|
849
|
-
project=
|
|
849
|
+
project=foo["project"],
|
|
850
850
|
cloud_name="google-europe-west1",
|
|
851
851
|
plan="business-8",
|
|
852
852
|
service_name="my-m3db",
|
|
@@ -924,7 +924,7 @@ class M3Db(pulumi.CustomResource):
|
|
|
924
924
|
import pulumi_aiven as aiven
|
|
925
925
|
|
|
926
926
|
m3 = aiven.M3Db("m3",
|
|
927
|
-
project=
|
|
927
|
+
project=foo["project"],
|
|
928
928
|
cloud_name="google-europe-west1",
|
|
929
929
|
plan="business-8",
|
|
930
930
|
service_name="my-m3db",
|
pulumi_aiven/m3db_user.py
CHANGED
|
@@ -189,7 +189,7 @@ class M3dbUser(pulumi.CustomResource):
|
|
|
189
189
|
import pulumi_aiven as aiven
|
|
190
190
|
|
|
191
191
|
foo = aiven.M3dbUser("foo",
|
|
192
|
-
service_name=
|
|
192
|
+
service_name=bar["serviceName"],
|
|
193
193
|
project="my-project",
|
|
194
194
|
username="user-1",
|
|
195
195
|
password="Test$1234")
|
|
@@ -226,7 +226,7 @@ class M3dbUser(pulumi.CustomResource):
|
|
|
226
226
|
import pulumi_aiven as aiven
|
|
227
227
|
|
|
228
228
|
foo = aiven.M3dbUser("foo",
|
|
229
|
-
service_name=
|
|
229
|
+
service_name=bar["serviceName"],
|
|
230
230
|
project="my-project",
|
|
231
231
|
username="user-1",
|
|
232
232
|
password="Test$1234")
|
|
@@ -466,10 +466,10 @@ class MirrorMakerReplicationFlow(pulumi.CustomResource):
|
|
|
466
466
|
import pulumi_aiven as aiven
|
|
467
467
|
|
|
468
468
|
f1 = aiven.MirrorMakerReplicationFlow("f1",
|
|
469
|
-
project=
|
|
470
|
-
service_name=
|
|
471
|
-
source_cluster=
|
|
472
|
-
target_cluster=
|
|
469
|
+
project=kafka_mm_project1["project"],
|
|
470
|
+
service_name=mm["serviceName"],
|
|
471
|
+
source_cluster=source["serviceName"],
|
|
472
|
+
target_cluster=target["serviceName"],
|
|
473
473
|
enable=True,
|
|
474
474
|
topics=[".*"],
|
|
475
475
|
topics_blacklists=[
|
|
@@ -519,10 +519,10 @@ class MirrorMakerReplicationFlow(pulumi.CustomResource):
|
|
|
519
519
|
import pulumi_aiven as aiven
|
|
520
520
|
|
|
521
521
|
f1 = aiven.MirrorMakerReplicationFlow("f1",
|
|
522
|
-
project=
|
|
523
|
-
service_name=
|
|
524
|
-
source_cluster=
|
|
525
|
-
target_cluster=
|
|
522
|
+
project=kafka_mm_project1["project"],
|
|
523
|
+
service_name=mm["serviceName"],
|
|
524
|
+
source_cluster=source["serviceName"],
|
|
525
|
+
target_cluster=target["serviceName"],
|
|
526
526
|
enable=True,
|
|
527
527
|
topics=[".*"],
|
|
528
528
|
topics_blacklists=[
|
pulumi_aiven/my_sql.py
CHANGED
|
@@ -846,7 +846,7 @@ class MySql(pulumi.CustomResource):
|
|
|
846
846
|
import pulumi_aiven as aiven
|
|
847
847
|
|
|
848
848
|
mysql1 = aiven.MySql("mysql1",
|
|
849
|
-
project=
|
|
849
|
+
project=foo["project"],
|
|
850
850
|
cloud_name="google-europe-west1",
|
|
851
851
|
plan="business-4",
|
|
852
852
|
service_name="my-mysql1",
|
|
@@ -927,7 +927,7 @@ class MySql(pulumi.CustomResource):
|
|
|
927
927
|
import pulumi_aiven as aiven
|
|
928
928
|
|
|
929
929
|
mysql1 = aiven.MySql("mysql1",
|
|
930
|
-
project=
|
|
930
|
+
project=foo["project"],
|
|
931
931
|
cloud_name="google-europe-west1",
|
|
932
932
|
plan="business-4",
|
|
933
933
|
service_name="my-mysql1",
|
pulumi_aiven/mysql_database.py
CHANGED
|
@@ -177,8 +177,8 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
177
177
|
import pulumi_aiven as aiven
|
|
178
178
|
|
|
179
179
|
mydatabase = aiven.MysqlDatabase("mydatabase",
|
|
180
|
-
project=
|
|
181
|
-
service_name=
|
|
180
|
+
project=myproject["project"],
|
|
181
|
+
service_name=mymysql["serviceName"],
|
|
182
182
|
database_name="<DATABASE_NAME>")
|
|
183
183
|
```
|
|
184
184
|
<!--End PulumiCodeChooser -->
|
|
@@ -214,8 +214,8 @@ class MysqlDatabase(pulumi.CustomResource):
|
|
|
214
214
|
import pulumi_aiven as aiven
|
|
215
215
|
|
|
216
216
|
mydatabase = aiven.MysqlDatabase("mydatabase",
|
|
217
|
-
project=
|
|
218
|
-
service_name=
|
|
217
|
+
project=myproject["project"],
|
|
218
|
+
service_name=mymysql["serviceName"],
|
|
219
219
|
database_name="<DATABASE_NAME>")
|
|
220
220
|
```
|
|
221
221
|
<!--End PulumiCodeChooser -->
|
pulumi_aiven/mysql_user.py
CHANGED
|
@@ -254,7 +254,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
254
254
|
import pulumi_aiven as aiven
|
|
255
255
|
|
|
256
256
|
foo = aiven.MysqlUser("foo",
|
|
257
|
-
service_name=
|
|
257
|
+
service_name=bar["serviceName"],
|
|
258
258
|
project="my-project",
|
|
259
259
|
username="user-1",
|
|
260
260
|
password="Test$1234")
|
|
@@ -292,7 +292,7 @@ class MysqlUser(pulumi.CustomResource):
|
|
|
292
292
|
import pulumi_aiven as aiven
|
|
293
293
|
|
|
294
294
|
foo = aiven.MysqlUser("foo",
|
|
295
|
-
service_name=
|
|
295
|
+
service_name=bar["serviceName"],
|
|
296
296
|
project="my-project",
|
|
297
297
|
username="user-1",
|
|
298
298
|
password="Test$1234")
|
pulumi_aiven/open_search.py
CHANGED
|
@@ -758,7 +758,7 @@ class OpenSearch(pulumi.CustomResource):
|
|
|
758
758
|
import pulumi_aiven as aiven
|
|
759
759
|
|
|
760
760
|
os1 = aiven.OpenSearch("os1",
|
|
761
|
-
project=
|
|
761
|
+
project=pr1["project"],
|
|
762
762
|
cloud_name="google-europe-west1",
|
|
763
763
|
plan="startup-4",
|
|
764
764
|
service_name="my-os1",
|
|
@@ -819,7 +819,7 @@ class OpenSearch(pulumi.CustomResource):
|
|
|
819
819
|
import pulumi_aiven as aiven
|
|
820
820
|
|
|
821
821
|
os1 = aiven.OpenSearch("os1",
|
|
822
|
-
project=
|
|
822
|
+
project=pr1["project"],
|
|
823
823
|
cloud_name="google-europe-west1",
|
|
824
824
|
plan="startup-4",
|
|
825
825
|
service_name="my-os1",
|
|
@@ -173,20 +173,20 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
173
173
|
import pulumi
|
|
174
174
|
import pulumi_aiven as aiven
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
foo = aiven.get_project(project="example_project")
|
|
177
177
|
bar = aiven.OpenSearch("bar",
|
|
178
|
-
project=
|
|
178
|
+
project=foo.project,
|
|
179
179
|
cloud_name="google-europe-west1",
|
|
180
180
|
plan="startup-4",
|
|
181
181
|
service_name="example_service_name",
|
|
182
182
|
maintenance_window_dow="monday",
|
|
183
183
|
maintenance_window_time="10:00:00")
|
|
184
|
-
foo_opensearch_user = aiven.OpensearchUser("
|
|
184
|
+
foo_opensearch_user = aiven.OpensearchUser("foo",
|
|
185
185
|
service_name=bar.service_name,
|
|
186
|
-
project=
|
|
186
|
+
project=foo.project,
|
|
187
187
|
username="user-example")
|
|
188
|
-
foo_open_search_acl_config = aiven.OpenSearchAclConfig("
|
|
189
|
-
project=
|
|
188
|
+
foo_open_search_acl_config = aiven.OpenSearchAclConfig("foo",
|
|
189
|
+
project=foo.project,
|
|
190
190
|
service_name=bar.service_name,
|
|
191
191
|
enabled=True,
|
|
192
192
|
extended_acl=False)
|
|
@@ -222,20 +222,20 @@ class OpenSearchAclConfig(pulumi.CustomResource):
|
|
|
222
222
|
import pulumi
|
|
223
223
|
import pulumi_aiven as aiven
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
foo = aiven.get_project(project="example_project")
|
|
226
226
|
bar = aiven.OpenSearch("bar",
|
|
227
|
-
project=
|
|
227
|
+
project=foo.project,
|
|
228
228
|
cloud_name="google-europe-west1",
|
|
229
229
|
plan="startup-4",
|
|
230
230
|
service_name="example_service_name",
|
|
231
231
|
maintenance_window_dow="monday",
|
|
232
232
|
maintenance_window_time="10:00:00")
|
|
233
|
-
foo_opensearch_user = aiven.OpensearchUser("
|
|
233
|
+
foo_opensearch_user = aiven.OpensearchUser("foo",
|
|
234
234
|
service_name=bar.service_name,
|
|
235
|
-
project=
|
|
235
|
+
project=foo.project,
|
|
236
236
|
username="user-example")
|
|
237
|
-
foo_open_search_acl_config = aiven.OpenSearchAclConfig("
|
|
238
|
-
project=
|
|
237
|
+
foo_open_search_acl_config = aiven.OpenSearchAclConfig("foo",
|
|
238
|
+
project=foo.project,
|
|
239
239
|
service_name=bar.service_name,
|
|
240
240
|
enabled=True,
|
|
241
241
|
extended_acl=False)
|
|
@@ -203,17 +203,17 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
203
203
|
import pulumi
|
|
204
204
|
import pulumi_aiven as aiven
|
|
205
205
|
|
|
206
|
-
os_user = aiven.OpensearchUser("
|
|
207
|
-
project=
|
|
208
|
-
service_name=
|
|
206
|
+
os_user = aiven.OpensearchUser("os_user",
|
|
207
|
+
project=aiven_project_name,
|
|
208
|
+
service_name=os_test["serviceName"],
|
|
209
209
|
username="documentation-user-1")
|
|
210
|
-
os_user2 = aiven.OpensearchUser("
|
|
211
|
-
project=
|
|
212
|
-
service_name=
|
|
210
|
+
os_user2 = aiven.OpensearchUser("os_user_2",
|
|
211
|
+
project=aiven_project_name,
|
|
212
|
+
service_name=os_test["serviceName"],
|
|
213
213
|
username="documentation-user-2")
|
|
214
|
-
os_acls_config = aiven.OpenSearchAclConfig("
|
|
215
|
-
project=
|
|
216
|
-
service_name=
|
|
214
|
+
os_acls_config = aiven.OpenSearchAclConfig("os_acls_config",
|
|
215
|
+
project=aiven_project_name,
|
|
216
|
+
service_name=os_test["serviceName"],
|
|
217
217
|
enabled=True,
|
|
218
218
|
extended_acl=False)
|
|
219
219
|
acl_rules = [
|
|
@@ -246,7 +246,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
246
246
|
os_acl_rule = []
|
|
247
247
|
def create_os_acl_rule(range_body):
|
|
248
248
|
for range in [{"key": k, "value": v} for [k, v] in enumerate(range_body)]:
|
|
249
|
-
os_acl_rule.append(aiven.OpenSearchAclRule(f"
|
|
249
|
+
os_acl_rule.append(aiven.OpenSearchAclRule(f"os_acl_rule-{range['key']}",
|
|
250
250
|
project=os_acls_config.project,
|
|
251
251
|
service_name=os_acls_config.service_name,
|
|
252
252
|
username=range["value"]["username"],
|
|
@@ -287,17 +287,17 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
287
287
|
import pulumi
|
|
288
288
|
import pulumi_aiven as aiven
|
|
289
289
|
|
|
290
|
-
os_user = aiven.OpensearchUser("
|
|
291
|
-
project=
|
|
292
|
-
service_name=
|
|
290
|
+
os_user = aiven.OpensearchUser("os_user",
|
|
291
|
+
project=aiven_project_name,
|
|
292
|
+
service_name=os_test["serviceName"],
|
|
293
293
|
username="documentation-user-1")
|
|
294
|
-
os_user2 = aiven.OpensearchUser("
|
|
295
|
-
project=
|
|
296
|
-
service_name=
|
|
294
|
+
os_user2 = aiven.OpensearchUser("os_user_2",
|
|
295
|
+
project=aiven_project_name,
|
|
296
|
+
service_name=os_test["serviceName"],
|
|
297
297
|
username="documentation-user-2")
|
|
298
|
-
os_acls_config = aiven.OpenSearchAclConfig("
|
|
299
|
-
project=
|
|
300
|
-
service_name=
|
|
298
|
+
os_acls_config = aiven.OpenSearchAclConfig("os_acls_config",
|
|
299
|
+
project=aiven_project_name,
|
|
300
|
+
service_name=os_test["serviceName"],
|
|
301
301
|
enabled=True,
|
|
302
302
|
extended_acl=False)
|
|
303
303
|
acl_rules = [
|
|
@@ -330,7 +330,7 @@ class OpenSearchAclRule(pulumi.CustomResource):
|
|
|
330
330
|
os_acl_rule = []
|
|
331
331
|
def create_os_acl_rule(range_body):
|
|
332
332
|
for range in [{"key": k, "value": v} for [k, v] in enumerate(range_body)]:
|
|
333
|
-
os_acl_rule.append(aiven.OpenSearchAclRule(f"
|
|
333
|
+
os_acl_rule.append(aiven.OpenSearchAclRule(f"os_acl_rule-{range['key']}",
|
|
334
334
|
project=os_acls_config.project,
|
|
335
335
|
service_name=os_acls_config.service_name,
|
|
336
336
|
username=range["value"]["username"],
|
|
@@ -187,20 +187,20 @@ class OpensearchSecurityPluginConfig(pulumi.CustomResource):
|
|
|
187
187
|
import pulumi
|
|
188
188
|
import pulumi_aiven as aiven
|
|
189
189
|
|
|
190
|
-
|
|
190
|
+
foo = aiven.get_project(project="example_project")
|
|
191
191
|
bar = aiven.OpenSearch("bar",
|
|
192
|
-
project=
|
|
192
|
+
project=foo.project,
|
|
193
193
|
cloud_name="google-europe-west1",
|
|
194
194
|
plan="startup-4",
|
|
195
195
|
service_name="example_service_name",
|
|
196
196
|
maintenance_window_dow="monday",
|
|
197
197
|
maintenance_window_time="10:00:00")
|
|
198
|
-
foo_opensearch_user = aiven.OpensearchUser("
|
|
198
|
+
foo_opensearch_user = aiven.OpensearchUser("foo",
|
|
199
199
|
service_name=bar.service_name,
|
|
200
|
-
project=
|
|
200
|
+
project=foo.project,
|
|
201
201
|
username="user-example")
|
|
202
|
-
foo_opensearch_security_plugin_config = aiven.OpensearchSecurityPluginConfig("
|
|
203
|
-
project=
|
|
202
|
+
foo_opensearch_security_plugin_config = aiven.OpensearchSecurityPluginConfig("foo",
|
|
203
|
+
project=foo.project,
|
|
204
204
|
service_name=bar.service_name,
|
|
205
205
|
admin_password="ThisIsATest123^=^")
|
|
206
206
|
```
|
|
@@ -234,20 +234,20 @@ class OpensearchSecurityPluginConfig(pulumi.CustomResource):
|
|
|
234
234
|
import pulumi
|
|
235
235
|
import pulumi_aiven as aiven
|
|
236
236
|
|
|
237
|
-
|
|
237
|
+
foo = aiven.get_project(project="example_project")
|
|
238
238
|
bar = aiven.OpenSearch("bar",
|
|
239
|
-
project=
|
|
239
|
+
project=foo.project,
|
|
240
240
|
cloud_name="google-europe-west1",
|
|
241
241
|
plan="startup-4",
|
|
242
242
|
service_name="example_service_name",
|
|
243
243
|
maintenance_window_dow="monday",
|
|
244
244
|
maintenance_window_time="10:00:00")
|
|
245
|
-
foo_opensearch_user = aiven.OpensearchUser("
|
|
245
|
+
foo_opensearch_user = aiven.OpensearchUser("foo",
|
|
246
246
|
service_name=bar.service_name,
|
|
247
|
-
project=
|
|
247
|
+
project=foo.project,
|
|
248
248
|
username="user-example")
|
|
249
|
-
foo_opensearch_security_plugin_config = aiven.OpensearchSecurityPluginConfig("
|
|
250
|
-
project=
|
|
249
|
+
foo_opensearch_security_plugin_config = aiven.OpensearchSecurityPluginConfig("foo",
|
|
250
|
+
project=foo.project,
|
|
251
251
|
service_name=bar.service_name,
|
|
252
252
|
admin_password="ThisIsATest123^=^")
|
|
253
253
|
```
|
pulumi_aiven/opensearch_user.py
CHANGED
|
@@ -189,7 +189,7 @@ class OpensearchUser(pulumi.CustomResource):
|
|
|
189
189
|
import pulumi_aiven as aiven
|
|
190
190
|
|
|
191
191
|
foo = aiven.OpensearchUser("foo",
|
|
192
|
-
service_name=
|
|
192
|
+
service_name=bar["serviceName"],
|
|
193
193
|
project="my-project",
|
|
194
194
|
username="user-1",
|
|
195
195
|
password="Test$1234")
|
|
@@ -226,7 +226,7 @@ class OpensearchUser(pulumi.CustomResource):
|
|
|
226
226
|
import pulumi_aiven as aiven
|
|
227
227
|
|
|
228
228
|
foo = aiven.OpensearchUser("foo",
|
|
229
|
-
service_name=
|
|
229
|
+
service_name=bar["serviceName"],
|
|
230
230
|
project="my-project",
|
|
231
231
|
username="user-1",
|
|
232
232
|
password="Test$1234")
|
pulumi_aiven/organization.py
CHANGED
|
@@ -151,7 +151,7 @@ class Organization(pulumi.CustomResource):
|
|
|
151
151
|
import pulumi
|
|
152
152
|
import pulumi_aiven as aiven
|
|
153
153
|
|
|
154
|
-
main = aiven.Organization("main")
|
|
154
|
+
main = aiven.Organization("main", name="Example organization")
|
|
155
155
|
```
|
|
156
156
|
<!--End PulumiCodeChooser -->
|
|
157
157
|
|
|
@@ -181,7 +181,7 @@ class Organization(pulumi.CustomResource):
|
|
|
181
181
|
import pulumi
|
|
182
182
|
import pulumi_aiven as aiven
|
|
183
183
|
|
|
184
|
-
main = aiven.Organization("main")
|
|
184
|
+
main = aiven.Organization("main", name="Example organization")
|
|
185
185
|
```
|
|
186
186
|
<!--End PulumiCodeChooser -->
|
|
187
187
|
|
|
@@ -159,6 +159,24 @@ class OrganizationGroupProject(pulumi.CustomResource):
|
|
|
159
159
|
"""
|
|
160
160
|
Adds and manages a [group](https://aiven.io/docs/platform/concepts/projects_accounts_access#groups) of users as [members of a project](https://aiven.io/docs/platform/reference/project-member-privileges).
|
|
161
161
|
|
|
162
|
+
## Example Usage
|
|
163
|
+
|
|
164
|
+
<!--Start PulumiCodeChooser -->
|
|
165
|
+
```python
|
|
166
|
+
import pulumi
|
|
167
|
+
import pulumi_aiven as aiven
|
|
168
|
+
|
|
169
|
+
example = aiven.OrganizationUserGroup("example",
|
|
170
|
+
description="Example group of users.",
|
|
171
|
+
organization_id=main["id"],
|
|
172
|
+
name="Example group")
|
|
173
|
+
example_organization_user_group_project = aiven.index.OrganizationUserGroupProject("example",
|
|
174
|
+
group_id=example.group_id,
|
|
175
|
+
project=example_aiven_project.project,
|
|
176
|
+
role=admin)
|
|
177
|
+
```
|
|
178
|
+
<!--End PulumiCodeChooser -->
|
|
179
|
+
|
|
162
180
|
## Import
|
|
163
181
|
|
|
164
182
|
```sh
|
|
@@ -180,6 +198,24 @@ class OrganizationGroupProject(pulumi.CustomResource):
|
|
|
180
198
|
"""
|
|
181
199
|
Adds and manages a [group](https://aiven.io/docs/platform/concepts/projects_accounts_access#groups) of users as [members of a project](https://aiven.io/docs/platform/reference/project-member-privileges).
|
|
182
200
|
|
|
201
|
+
## Example Usage
|
|
202
|
+
|
|
203
|
+
<!--Start PulumiCodeChooser -->
|
|
204
|
+
```python
|
|
205
|
+
import pulumi
|
|
206
|
+
import pulumi_aiven as aiven
|
|
207
|
+
|
|
208
|
+
example = aiven.OrganizationUserGroup("example",
|
|
209
|
+
description="Example group of users.",
|
|
210
|
+
organization_id=main["id"],
|
|
211
|
+
name="Example group")
|
|
212
|
+
example_organization_user_group_project = aiven.index.OrganizationUserGroupProject("example",
|
|
213
|
+
group_id=example.group_id,
|
|
214
|
+
project=example_aiven_project.project,
|
|
215
|
+
role=admin)
|
|
216
|
+
```
|
|
217
|
+
<!--End PulumiCodeChooser -->
|
|
218
|
+
|
|
183
219
|
## Import
|
|
184
220
|
|
|
185
221
|
```sh
|
|
@@ -190,7 +190,8 @@ class OrganizationUserGroup(pulumi.CustomResource):
|
|
|
190
190
|
|
|
191
191
|
example = aiven.OrganizationUserGroup("example",
|
|
192
192
|
description="Example group of users.",
|
|
193
|
-
organization_id=
|
|
193
|
+
organization_id=main["id"],
|
|
194
|
+
name="Example group")
|
|
194
195
|
```
|
|
195
196
|
<!--End PulumiCodeChooser -->
|
|
196
197
|
|
|
@@ -224,7 +225,8 @@ class OrganizationUserGroup(pulumi.CustomResource):
|
|
|
224
225
|
|
|
225
226
|
example = aiven.OrganizationUserGroup("example",
|
|
226
227
|
description="Example group of users.",
|
|
227
|
-
organization_id=
|
|
228
|
+
organization_id=main["id"],
|
|
229
|
+
name="Example group")
|
|
228
230
|
```
|
|
229
231
|
<!--End PulumiCodeChooser -->
|
|
230
232
|
|