pulumi-aiven 6.14.0a1712985279__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.

Files changed (111) hide show
  1. pulumi_aiven/account.py +2 -2
  2. pulumi_aiven/account_team.py +6 -2
  3. pulumi_aiven/account_team_member.py +4 -4
  4. pulumi_aiven/account_team_project.py +12 -8
  5. pulumi_aiven/aws_privatelink.py +4 -4
  6. pulumi_aiven/aws_vpc_peering_connection.py +8 -8
  7. pulumi_aiven/azure_privatelink.py +4 -4
  8. pulumi_aiven/azure_privatelink_connection_approval.py +102 -0
  9. pulumi_aiven/azure_vpc_peering_connection.py +6 -6
  10. pulumi_aiven/billing_group.py +2 -0
  11. pulumi_aiven/cassandra.py +2 -2
  12. pulumi_aiven/cassandra_user.py +2 -2
  13. pulumi_aiven/clickhouse.py +2 -2
  14. pulumi_aiven/clickhouse_database.py +8 -6
  15. pulumi_aiven/clickhouse_grant.py +14 -12
  16. pulumi_aiven/clickhouse_user.py +4 -4
  17. pulumi_aiven/connection_pool.py +8 -8
  18. pulumi_aiven/flink.py +2 -2
  19. pulumi_aiven/flink_application.py +6 -4
  20. pulumi_aiven/flink_application_version.py +86 -0
  21. pulumi_aiven/gcp_vpc_peering_connection.py +2 -2
  22. pulumi_aiven/get_aws_privatelink.py +4 -4
  23. pulumi_aiven/get_aws_vpc_peering_connection.py +6 -6
  24. pulumi_aiven/get_azure_privatelink.py +4 -4
  25. pulumi_aiven/get_azure_vpc_peering_connection.py +2 -2
  26. pulumi_aiven/get_cassanda.py +2 -2
  27. pulumi_aiven/get_cassandra.py +2 -2
  28. pulumi_aiven/get_cassandra_user.py +4 -4
  29. pulumi_aiven/get_clickhouse.py +2 -2
  30. pulumi_aiven/get_clickhouse_database.py +4 -4
  31. pulumi_aiven/get_clickhouse_user.py +4 -4
  32. pulumi_aiven/get_connection_pool.py +4 -4
  33. pulumi_aiven/get_flink.py +2 -2
  34. pulumi_aiven/get_flink_application.py +2 -2
  35. pulumi_aiven/get_flink_application_version.py +2 -2
  36. pulumi_aiven/get_gcp_vpc_peering_connection.py +2 -2
  37. pulumi_aiven/get_grafana.py +2 -2
  38. pulumi_aiven/get_kafka.py +2 -2
  39. pulumi_aiven/get_kafka_acl.py +4 -4
  40. pulumi_aiven/get_kafka_connect.py +2 -2
  41. pulumi_aiven/get_kafka_connector.py +4 -4
  42. pulumi_aiven/get_kafka_mirror_maker.py +2 -2
  43. pulumi_aiven/get_kafka_schema.py +4 -4
  44. pulumi_aiven/get_kafka_schema_configuration.py +4 -4
  45. pulumi_aiven/get_kafka_topic.py +4 -4
  46. pulumi_aiven/get_kafka_user.py +4 -4
  47. pulumi_aiven/get_m3_aggregator.py +2 -2
  48. pulumi_aiven/get_m3_db.py +2 -2
  49. pulumi_aiven/get_m3db_user.py +4 -4
  50. pulumi_aiven/get_mirror_maker_replication_flow.py +8 -8
  51. pulumi_aiven/get_my_sql.py +2 -2
  52. pulumi_aiven/get_mysql_database.py +4 -4
  53. pulumi_aiven/get_mysql_user.py +4 -4
  54. pulumi_aiven/get_open_search.py +2 -2
  55. pulumi_aiven/get_open_search_acl_config.py +4 -4
  56. pulumi_aiven/get_open_search_acl_rule.py +4 -4
  57. pulumi_aiven/get_opensearch_security_plugin_config.py +4 -4
  58. pulumi_aiven/get_opensearch_user.py +4 -4
  59. pulumi_aiven/get_organization_user_group.py +2 -2
  60. pulumi_aiven/get_pg.py +2 -2
  61. pulumi_aiven/get_pg_database.py +4 -4
  62. pulumi_aiven/get_pg_user.py +4 -4
  63. pulumi_aiven/get_project_user.py +2 -2
  64. pulumi_aiven/get_project_vpc.py +2 -2
  65. pulumi_aiven/get_redis.py +2 -2
  66. pulumi_aiven/get_redis_user.py +4 -4
  67. pulumi_aiven/get_service_component.py +4 -4
  68. pulumi_aiven/get_service_integration.py +2 -2
  69. pulumi_aiven/get_service_integration_endpoint.py +2 -2
  70. pulumi_aiven/get_transit_gateway_vpc_attachment.py +2 -2
  71. pulumi_aiven/grafana.py +4 -2
  72. pulumi_aiven/kafka.py +2 -2
  73. pulumi_aiven/kafka_acl.py +4 -4
  74. pulumi_aiven/kafka_connect.py +2 -2
  75. pulumi_aiven/kafka_connector.py +12 -12
  76. pulumi_aiven/kafka_mirror_maker.py +2 -2
  77. pulumi_aiven/kafka_schema.py +4 -4
  78. pulumi_aiven/kafka_schema_configuration.py +4 -4
  79. pulumi_aiven/kafka_topic.py +42 -0
  80. pulumi_aiven/kafka_user.py +2 -2
  81. pulumi_aiven/m3_aggregator.py +2 -2
  82. pulumi_aiven/m3_db.py +2 -2
  83. pulumi_aiven/m3db_user.py +2 -2
  84. pulumi_aiven/mirror_maker_replication_flow.py +8 -8
  85. pulumi_aiven/my_sql.py +2 -2
  86. pulumi_aiven/mysql_database.py +4 -4
  87. pulumi_aiven/mysql_user.py +2 -2
  88. pulumi_aiven/open_search.py +2 -2
  89. pulumi_aiven/open_search_acl_config.py +12 -12
  90. pulumi_aiven/open_search_acl_rule.py +20 -20
  91. pulumi_aiven/opensearch_security_plugin_config.py +12 -12
  92. pulumi_aiven/opensearch_user.py +2 -2
  93. pulumi_aiven/organization.py +2 -2
  94. pulumi_aiven/organization_group_project.py +36 -0
  95. pulumi_aiven/organization_user_group.py +4 -2
  96. pulumi_aiven/organization_user_group_member.py +8 -6
  97. pulumi_aiven/organizational_unit.py +6 -2
  98. pulumi_aiven/pg_database.py +4 -4
  99. pulumi_aiven/pg_user.py +2 -2
  100. pulumi_aiven/project.py +4 -4
  101. pulumi_aiven/project_user.py +2 -2
  102. pulumi_aiven/project_vpc.py +28 -0
  103. pulumi_aiven/redis.py +2 -2
  104. pulumi_aiven/redis_user.py +2 -2
  105. pulumi_aiven/service_integration.py +8 -8
  106. pulumi_aiven/transit_gateway_vpc_attachment.py +2 -2
  107. {pulumi_aiven-6.14.0a1712985279.dist-info → pulumi_aiven-6.14.0a1713345330.dist-info}/METADATA +1 -1
  108. pulumi_aiven-6.14.0a1713345330.dist-info/RECORD +150 -0
  109. pulumi_aiven-6.14.0a1712985279.dist-info/RECORD +0 -150
  110. {pulumi_aiven-6.14.0a1712985279.dist-info → pulumi_aiven-6.14.0a1713345330.dist-info}/WHEEL +0 -0
  111. {pulumi_aiven-6.14.0a1712985279.dist-info → pulumi_aiven-6.14.0a1713345330.dist-info}/top_level.txt +0 -0
pulumi_aiven/account.py CHANGED
@@ -237,7 +237,7 @@ class Account(pulumi.CustomResource):
237
237
  import pulumi
238
238
  import pulumi_aiven as aiven
239
239
 
240
- account1 = aiven.Account("account1")
240
+ account1 = aiven.Account("account1", name="<ACCOUNT_NAME>")
241
241
  ```
242
242
  <!--End PulumiCodeChooser -->
243
243
 
@@ -270,7 +270,7 @@ class Account(pulumi.CustomResource):
270
270
  import pulumi
271
271
  import pulumi_aiven as aiven
272
272
 
273
- account1 = aiven.Account("account1")
273
+ account1 = aiven.Account("account1", name="<ACCOUNT_NAME>")
274
274
  ```
275
275
  <!--End PulumiCodeChooser -->
276
276
 
@@ -161,7 +161,9 @@ class AccountTeam(pulumi.CustomResource):
161
161
  import pulumi
162
162
  import pulumi_aiven as aiven
163
163
 
164
- example_team = aiven.AccountTeam("exampleTeam", account_id=aiven_account["ACCOUNT_RESOURCE_NAME"]["account_id"])
164
+ example_team = aiven.AccountTeam("example_team",
165
+ account_id=accoun_t__resourc_e__name["accountId"],
166
+ name="Example team")
165
167
  ```
166
168
  <!--End PulumiCodeChooser -->
167
169
 
@@ -197,7 +199,9 @@ class AccountTeam(pulumi.CustomResource):
197
199
  import pulumi
198
200
  import pulumi_aiven as aiven
199
201
 
200
- example_team = aiven.AccountTeam("exampleTeam", account_id=aiven_account["ACCOUNT_RESOURCE_NAME"]["account_id"])
202
+ example_team = aiven.AccountTeam("example_team",
203
+ account_id=accoun_t__resourc_e__name["accountId"],
204
+ name="Example team")
201
205
  ```
202
206
  <!--End PulumiCodeChooser -->
203
207
 
@@ -197,8 +197,8 @@ class AccountTeamMember(pulumi.CustomResource):
197
197
  import pulumi_aiven as aiven
198
198
 
199
199
  main = aiven.AccountTeamMember("main",
200
- account_id=aiven_account["ACCOUNT_RESOURCE_NAME"]["account_id"],
201
- team_id=aiven_account_team["TEAM_RESOURCE_NAME"]["team_id"],
200
+ account_id=accoun_t__resourc_e__name["accountId"],
201
+ team_id=tea_m__resourc_e__name["teamId"],
202
202
  user_email="user+1@example.com")
203
203
  ```
204
204
  <!--End PulumiCodeChooser -->
@@ -241,8 +241,8 @@ class AccountTeamMember(pulumi.CustomResource):
241
241
  import pulumi_aiven as aiven
242
242
 
243
243
  main = aiven.AccountTeamMember("main",
244
- account_id=aiven_account["ACCOUNT_RESOURCE_NAME"]["account_id"],
245
- team_id=aiven_account_team["TEAM_RESOURCE_NAME"]["team_id"],
244
+ account_id=accoun_t__resourc_e__name["accountId"],
245
+ team_id=tea_m__resourc_e__name["teamId"],
246
246
  user_email="user+1@example.com")
247
247
  ```
248
248
  <!--End PulumiCodeChooser -->
@@ -178,12 +178,14 @@ class AccountTeamProject(pulumi.CustomResource):
178
178
  import pulumi
179
179
  import pulumi_aiven as aiven
180
180
 
181
- example_project = aiven.Project("exampleProject",
181
+ example_project = aiven.Project("example_project",
182
182
  project="project-1",
183
- account_id=aiven_account_team["ACCOUNT_RESOURCE_NAME"]["account_id"])
184
- example_team = aiven.AccountTeam("exampleTeam", account_id=aiven_account["ACCOUNT_RESOURCE_NAME"]["account_id"])
183
+ account_id=accoun_t__resourc_e__name["accountId"])
184
+ example_team = aiven.AccountTeam("example_team",
185
+ account_id=accoun_t__resourc_e__name_aiven_account["accountId"],
186
+ name="Example team")
185
187
  main = aiven.AccountTeamProject("main",
186
- account_id=aiven_account["ACCOUNT_RESOURCE_NAME"]["account_id"],
188
+ account_id=accoun_t__resourc_e__name_aiven_account["accountId"],
187
189
  team_id=example_team.team_id,
188
190
  project_name=example_project.project,
189
191
  team_type="admin")
@@ -224,12 +226,14 @@ class AccountTeamProject(pulumi.CustomResource):
224
226
  import pulumi
225
227
  import pulumi_aiven as aiven
226
228
 
227
- example_project = aiven.Project("exampleProject",
229
+ example_project = aiven.Project("example_project",
228
230
  project="project-1",
229
- account_id=aiven_account_team["ACCOUNT_RESOURCE_NAME"]["account_id"])
230
- example_team = aiven.AccountTeam("exampleTeam", account_id=aiven_account["ACCOUNT_RESOURCE_NAME"]["account_id"])
231
+ account_id=accoun_t__resourc_e__name["accountId"])
232
+ example_team = aiven.AccountTeam("example_team",
233
+ account_id=accoun_t__resourc_e__name_aiven_account["accountId"],
234
+ name="Example team")
231
235
  main = aiven.AccountTeamProject("main",
232
- account_id=aiven_account["ACCOUNT_RESOURCE_NAME"]["account_id"],
236
+ account_id=accoun_t__resourc_e__name_aiven_account["accountId"],
233
237
  team_id=example_team.team_id,
234
238
  project_name=example_project.project,
235
239
  team_type="admin")
@@ -172,8 +172,8 @@ class AwsPrivatelink(pulumi.CustomResource):
172
172
  import pulumi_aiven as aiven
173
173
 
174
174
  main = aiven.AwsPrivatelink("main",
175
- project=data["aiven_project"]["example_project"]["project"],
176
- service_name=aiven_kafka["example_kafka"]["service_name"],
175
+ project=example_project["project"],
176
+ service_name=example_kafka["serviceName"],
177
177
  principals=["arn:aws:iam::012345678901:user/mwf"])
178
178
  ```
179
179
  <!--End PulumiCodeChooser -->
@@ -207,8 +207,8 @@ class AwsPrivatelink(pulumi.CustomResource):
207
207
  import pulumi_aiven as aiven
208
208
 
209
209
  main = aiven.AwsPrivatelink("main",
210
- project=data["aiven_project"]["example_project"]["project"],
211
- service_name=aiven_kafka["example_kafka"]["service_name"],
210
+ project=example_project["project"],
211
+ service_name=example_kafka["serviceName"],
212
212
  principals=["arn:aws:iam::012345678901:user/mwf"])
213
213
  ```
214
214
  <!--End PulumiCodeChooser -->
@@ -219,13 +219,13 @@ class AwsVpcPeeringConnection(pulumi.CustomResource):
219
219
  import pulumi
220
220
  import pulumi_aiven as aiven
221
221
 
222
- example_vpc = aiven.ProjectVpc("exampleVpc",
223
- project=data["aiven_project"]["example_project"]["project"],
222
+ example_vpc = aiven.ProjectVpc("example_vpc",
223
+ project=example_project["project"],
224
224
  cloud_name="aws-us-east-2",
225
225
  network_cidr="192.168.1.0/24")
226
- aws_to_aiven_peering = aiven.AwsVpcPeeringConnection("awsToAivenPeering",
226
+ aws_to_aiven_peering = aiven.AwsVpcPeeringConnection("aws_to_aiven_peering",
227
227
  vpc_id=example_vpc.id,
228
- aws_account_id=var["aws_id"],
228
+ aws_account_id=aws_id,
229
229
  aws_vpc_id="vpc-1a2b3c4d5e6f7g8h9",
230
230
  aws_vpc_region="aws-us-east-2")
231
231
  ```
@@ -260,13 +260,13 @@ class AwsVpcPeeringConnection(pulumi.CustomResource):
260
260
  import pulumi
261
261
  import pulumi_aiven as aiven
262
262
 
263
- example_vpc = aiven.ProjectVpc("exampleVpc",
264
- project=data["aiven_project"]["example_project"]["project"],
263
+ example_vpc = aiven.ProjectVpc("example_vpc",
264
+ project=example_project["project"],
265
265
  cloud_name="aws-us-east-2",
266
266
  network_cidr="192.168.1.0/24")
267
- aws_to_aiven_peering = aiven.AwsVpcPeeringConnection("awsToAivenPeering",
267
+ aws_to_aiven_peering = aiven.AwsVpcPeeringConnection("aws_to_aiven_peering",
268
268
  vpc_id=example_vpc.id,
269
- aws_account_id=var["aws_id"],
269
+ aws_account_id=aws_id,
270
270
  aws_vpc_id="vpc-1a2b3c4d5e6f7g8h9",
271
271
  aws_vpc_region="aws-us-east-2")
272
272
  ```
@@ -204,8 +204,8 @@ class AzurePrivatelink(pulumi.CustomResource):
204
204
  import pulumi_aiven as aiven
205
205
 
206
206
  main = aiven.AzurePrivatelink("main",
207
- project=data["aiven_project"]["example_project"]["project"],
208
- service_name=aiven_kafka["example_kafka"]["service_name"],
207
+ project=example_project["project"],
208
+ service_name=example_kafka["serviceName"],
209
209
  user_subscription_ids=["00000000-0000-0000-0000-000000000000"])
210
210
  ```
211
211
  <!--End PulumiCodeChooser -->
@@ -239,8 +239,8 @@ class AzurePrivatelink(pulumi.CustomResource):
239
239
  import pulumi_aiven as aiven
240
240
 
241
241
  main = aiven.AzurePrivatelink("main",
242
- project=data["aiven_project"]["example_project"]["project"],
243
- service_name=aiven_kafka["example_kafka"]["service_name"],
242
+ project=example_project["project"],
243
+ service_name=example_kafka["serviceName"],
244
244
  user_subscription_ids=["00000000-0000-0000-0000-000000000000"])
245
245
  ```
246
246
  <!--End PulumiCodeChooser -->
@@ -165,6 +165,57 @@ class AzurePrivatelinkConnectionApproval(pulumi.CustomResource):
165
165
  """
166
166
  Approves an Azure Private Link connection to an Aiven service with an associated endpoint IP.
167
167
 
168
+ ## Example Usage
169
+
170
+ <!--Start PulumiCodeChooser -->
171
+ ```python
172
+ import pulumi
173
+ import pulumi_aiven as aiven
174
+ import pulumi_azurerm as azurerm
175
+
176
+ static_ips = []
177
+ for range in [{"value": i} for i in range(0, 2)]:
178
+ static_ips.append(aiven.StaticIp(f"static_ips-{range['value']}",
179
+ project=project_id,
180
+ cloud_name=region))
181
+ default = aiven.Pg("default",
182
+ service_name="postgres",
183
+ project=aiven_project_id,
184
+ project_vpc_id=aiven_project_vpc_id,
185
+ cloud_name=region,
186
+ plan=plan,
187
+ static_ips=[sip.static_ip_address_id for sip in static_ips],
188
+ pg_user_config=aiven.PgPgUserConfigArgs(
189
+ pg_version="13",
190
+ static_ips=True,
191
+ privatelink_access=aiven.PgPgUserConfigPrivatelinkAccessArgs(
192
+ pg=True,
193
+ pgbouncer=True,
194
+ ),
195
+ ))
196
+ privatelink = aiven.AzurePrivatelink("privatelink",
197
+ project=aiven_project_id,
198
+ service_name=default.name,
199
+ user_subscription_ids=[azure_subscription_id])
200
+ endpoint = azurerm.index.PrivateEndpoint("endpoint",
201
+ name=postgres-endpoint,
202
+ location=region,
203
+ resource_group_name=azure_resource_group.name,
204
+ subnet_id=azure_subnet_id,
205
+ private_service_connection=[{
206
+ name: default.name,
207
+ privateConnectionResourceId: privatelink.azure_service_id,
208
+ isManualConnection: True,
209
+ requestMessage: default.name,
210
+ }],
211
+ opts=pulumi.ResourceOptions(depends_on=[privatelink]))
212
+ approval = aiven.AzurePrivatelinkConnectionApproval("approval",
213
+ project=aiven_project_id,
214
+ service_name=default.service_name,
215
+ endpoint_ip_address=endpoint["privateServiceConnection"][0]["privateIpAddress"])
216
+ ```
217
+ <!--End PulumiCodeChooser -->
218
+
168
219
  ## Import
169
220
 
170
221
  ```sh
@@ -186,6 +237,57 @@ class AzurePrivatelinkConnectionApproval(pulumi.CustomResource):
186
237
  """
187
238
  Approves an Azure Private Link connection to an Aiven service with an associated endpoint IP.
188
239
 
240
+ ## Example Usage
241
+
242
+ <!--Start PulumiCodeChooser -->
243
+ ```python
244
+ import pulumi
245
+ import pulumi_aiven as aiven
246
+ import pulumi_azurerm as azurerm
247
+
248
+ static_ips = []
249
+ for range in [{"value": i} for i in range(0, 2)]:
250
+ static_ips.append(aiven.StaticIp(f"static_ips-{range['value']}",
251
+ project=project_id,
252
+ cloud_name=region))
253
+ default = aiven.Pg("default",
254
+ service_name="postgres",
255
+ project=aiven_project_id,
256
+ project_vpc_id=aiven_project_vpc_id,
257
+ cloud_name=region,
258
+ plan=plan,
259
+ static_ips=[sip.static_ip_address_id for sip in static_ips],
260
+ pg_user_config=aiven.PgPgUserConfigArgs(
261
+ pg_version="13",
262
+ static_ips=True,
263
+ privatelink_access=aiven.PgPgUserConfigPrivatelinkAccessArgs(
264
+ pg=True,
265
+ pgbouncer=True,
266
+ ),
267
+ ))
268
+ privatelink = aiven.AzurePrivatelink("privatelink",
269
+ project=aiven_project_id,
270
+ service_name=default.name,
271
+ user_subscription_ids=[azure_subscription_id])
272
+ endpoint = azurerm.index.PrivateEndpoint("endpoint",
273
+ name=postgres-endpoint,
274
+ location=region,
275
+ resource_group_name=azure_resource_group.name,
276
+ subnet_id=azure_subnet_id,
277
+ private_service_connection=[{
278
+ name: default.name,
279
+ privateConnectionResourceId: privatelink.azure_service_id,
280
+ isManualConnection: True,
281
+ requestMessage: default.name,
282
+ }],
283
+ opts=pulumi.ResourceOptions(depends_on=[privatelink]))
284
+ approval = aiven.AzurePrivatelinkConnectionApproval("approval",
285
+ project=aiven_project_id,
286
+ service_name=default.service_name,
287
+ endpoint_ip_address=endpoint["privateServiceConnection"][0]["privateIpAddress"])
288
+ ```
289
+ <!--End PulumiCodeChooser -->
290
+
189
291
  ## Import
190
292
 
191
293
  ```sh
@@ -283,11 +283,11 @@ class AzureVpcPeeringConnection(pulumi.CustomResource):
283
283
  import pulumi
284
284
  import pulumi_aiven as aiven
285
285
 
286
- example_vpc = aiven.ProjectVpc("exampleVpc",
287
- project=data["aiven_project"]["example_project"]["project"],
286
+ example_vpc = aiven.ProjectVpc("example_vpc",
287
+ project=example_project["project"],
288
288
  cloud_name="google-europe-west1",
289
289
  network_cidr="192.168.1.0/24")
290
- azure_to_aiven_peering = aiven.AzureVpcPeeringConnection("azureToAivenPeering",
290
+ azure_to_aiven_peering = aiven.AzureVpcPeeringConnection("azure_to_aiven_peering",
291
291
  vpc_id=example_vpc.id,
292
292
  azure_subscription_id="00000000-0000-0000-0000-000000000000",
293
293
  peer_resource_group="example-resource-group",
@@ -328,11 +328,11 @@ class AzureVpcPeeringConnection(pulumi.CustomResource):
328
328
  import pulumi
329
329
  import pulumi_aiven as aiven
330
330
 
331
- example_vpc = aiven.ProjectVpc("exampleVpc",
332
- project=data["aiven_project"]["example_project"]["project"],
331
+ example_vpc = aiven.ProjectVpc("example_vpc",
332
+ project=example_project["project"],
333
333
  cloud_name="google-europe-west1",
334
334
  network_cidr="192.168.1.0/24")
335
- azure_to_aiven_peering = aiven.AzureVpcPeeringConnection("azureToAivenPeering",
335
+ azure_to_aiven_peering = aiven.AzureVpcPeeringConnection("azure_to_aiven_peering",
336
336
  vpc_id=example_vpc.id,
337
337
  azure_subscription_id="00000000-0000-0000-0000-000000000000",
338
338
  peer_resource_group="example-resource-group",
@@ -551,6 +551,7 @@ class BillingGroup(pulumi.CustomResource):
551
551
  import pulumi_aiven as aiven
552
552
 
553
553
  bybg1 = aiven.BillingGroup("bybg1",
554
+ name="bybg1",
554
555
  billing_currency="USD",
555
556
  vat_id="123ABC")
556
557
  pr1 = aiven.Project("pr1",
@@ -600,6 +601,7 @@ class BillingGroup(pulumi.CustomResource):
600
601
  import pulumi_aiven as aiven
601
602
 
602
603
  bybg1 = aiven.BillingGroup("bybg1",
604
+ name="bybg1",
603
605
  billing_currency="USD",
604
606
  vat_id="123ABC")
605
607
  pr1 = aiven.Project("pr1",
pulumi_aiven/cassandra.py CHANGED
@@ -758,7 +758,7 @@ class Cassandra(pulumi.CustomResource):
758
758
  import pulumi_aiven as aiven
759
759
 
760
760
  bar = aiven.Cassandra("bar",
761
- project=data["aiven_project"]["foo"]["project"],
761
+ project=foo["project"],
762
762
  cloud_name="google-europe-west1",
763
763
  plan="startup-4",
764
764
  service_name="test-service-name",
@@ -814,7 +814,7 @@ class Cassandra(pulumi.CustomResource):
814
814
  import pulumi_aiven as aiven
815
815
 
816
816
  bar = aiven.Cassandra("bar",
817
- project=data["aiven_project"]["foo"]["project"],
817
+ project=foo["project"],
818
818
  cloud_name="google-europe-west1",
819
819
  plan="startup-4",
820
820
  service_name="test-service-name",
@@ -221,7 +221,7 @@ class CassandraUser(pulumi.CustomResource):
221
221
  import pulumi_aiven as aiven
222
222
 
223
223
  foo = aiven.CassandraUser("foo",
224
- service_name=aiven_cassandra["bar"]["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 CassandraUser(pulumi.CustomResource):
258
258
  import pulumi_aiven as aiven
259
259
 
260
260
  foo = aiven.CassandraUser("foo",
261
- service_name=aiven_cassandra["bar"]["service_name"],
261
+ service_name=bar["serviceName"],
262
262
  project="my-project",
263
263
  username="user-1",
264
264
  password="Test$1234")
@@ -758,7 +758,7 @@ class Clickhouse(pulumi.CustomResource):
758
758
  import pulumi_aiven as aiven
759
759
 
760
760
  clickhouse = aiven.Clickhouse("clickhouse",
761
- project=data["aiven_project"]["pr1"]["project"],
761
+ project=pr1["project"],
762
762
  cloud_name="google-europe-west1",
763
763
  plan="business-4",
764
764
  service_name="my-clickhouse",
@@ -808,7 +808,7 @@ class Clickhouse(pulumi.CustomResource):
808
808
  import pulumi_aiven as aiven
809
809
 
810
810
  clickhouse = aiven.Clickhouse("clickhouse",
811
- project=data["aiven_project"]["pr1"]["project"],
811
+ project=pr1["project"],
812
812
  cloud_name="google-europe-west1",
813
813
  plan="business-4",
814
814
  service_name="my-clickhouse",
@@ -181,9 +181,10 @@ class ClickhouseDatabase(pulumi.CustomResource):
181
181
  import pulumi
182
182
  import pulumi_aiven as aiven
183
183
 
184
- clickhouse_db = aiven.ClickhouseDatabase("clickhouseDb",
185
- project=aiven_clickhouse["ch"]["project"],
186
- service_name=aiven_clickhouse["ch"]["service_name"])
184
+ clickhouse_db = aiven.ClickhouseDatabase("clickhouse_db",
185
+ project=ch["project"],
186
+ service_name=ch["serviceName"],
187
+ name="my-ch-db")
187
188
  ```
188
189
  <!--End PulumiCodeChooser -->
189
190
 
@@ -218,9 +219,10 @@ class ClickhouseDatabase(pulumi.CustomResource):
218
219
  import pulumi
219
220
  import pulumi_aiven as aiven
220
221
 
221
- clickhouse_db = aiven.ClickhouseDatabase("clickhouseDb",
222
- project=aiven_clickhouse["ch"]["project"],
223
- service_name=aiven_clickhouse["ch"]["service_name"])
222
+ clickhouse_db = aiven.ClickhouseDatabase("clickhouse_db",
223
+ project=ch["project"],
224
+ service_name=ch["serviceName"],
225
+ name="my-ch-db")
224
226
  ```
225
227
  <!--End PulumiCodeChooser -->
226
228
 
@@ -247,21 +247,22 @@ class ClickhouseGrant(pulumi.CustomResource):
247
247
  import pulumi_aiven as aiven
248
248
 
249
249
  clickhouse = aiven.Clickhouse("clickhouse",
250
- project=var["aiven_project_name"],
250
+ project=aiven_project_name,
251
251
  cloud_name="google-europe-west1",
252
252
  plan="startup-8",
253
253
  service_name="exapmle-clickhouse")
254
254
  demodb = aiven.ClickhouseDatabase("demodb",
255
255
  project=clickhouse.project,
256
- service_name=clickhouse.service_name)
257
- demo_clickhouse_role = aiven.ClickhouseRole("demoClickhouseRole",
256
+ service_name=clickhouse.service_name,
257
+ name="demo")
258
+ demo = aiven.ClickhouseRole("demo",
258
259
  project=clickhouse.project,
259
260
  service_name=clickhouse.service_name,
260
261
  role="demo-role")
261
262
  demo_role_grant = aiven.ClickhouseGrant("demo-role-grant",
262
263
  project=clickhouse.project,
263
264
  service_name=clickhouse.service_name,
264
- role=demo_clickhouse_role.role,
265
+ role=demo.role,
265
266
  privilege_grants=[
266
267
  aiven.ClickhouseGrantPrivilegeGrantArgs(
267
268
  privilege="INSERT",
@@ -273,7 +274,7 @@ class ClickhouseGrant(pulumi.CustomResource):
273
274
  database=demodb.name,
274
275
  ),
275
276
  ])
276
- demo_clickhouse_user = aiven.ClickhouseUser("demoClickhouseUser",
277
+ demo_clickhouse_user = aiven.ClickhouseUser("demo",
277
278
  project=clickhouse.project,
278
279
  service_name=clickhouse.service_name,
279
280
  username="demo-user")
@@ -282,7 +283,7 @@ class ClickhouseGrant(pulumi.CustomResource):
282
283
  service_name=clickhouse.service_name,
283
284
  user=demo_clickhouse_user.username,
284
285
  role_grants=[aiven.ClickhouseGrantRoleGrantArgs(
285
- role=demo_clickhouse_role.role,
286
+ role=demo.role,
286
287
  )])
287
288
  ```
288
289
  <!--End PulumiCodeChooser -->
@@ -318,21 +319,22 @@ class ClickhouseGrant(pulumi.CustomResource):
318
319
  import pulumi_aiven as aiven
319
320
 
320
321
  clickhouse = aiven.Clickhouse("clickhouse",
321
- project=var["aiven_project_name"],
322
+ project=aiven_project_name,
322
323
  cloud_name="google-europe-west1",
323
324
  plan="startup-8",
324
325
  service_name="exapmle-clickhouse")
325
326
  demodb = aiven.ClickhouseDatabase("demodb",
326
327
  project=clickhouse.project,
327
- service_name=clickhouse.service_name)
328
- demo_clickhouse_role = aiven.ClickhouseRole("demoClickhouseRole",
328
+ service_name=clickhouse.service_name,
329
+ name="demo")
330
+ demo = aiven.ClickhouseRole("demo",
329
331
  project=clickhouse.project,
330
332
  service_name=clickhouse.service_name,
331
333
  role="demo-role")
332
334
  demo_role_grant = aiven.ClickhouseGrant("demo-role-grant",
333
335
  project=clickhouse.project,
334
336
  service_name=clickhouse.service_name,
335
- role=demo_clickhouse_role.role,
337
+ role=demo.role,
336
338
  privilege_grants=[
337
339
  aiven.ClickhouseGrantPrivilegeGrantArgs(
338
340
  privilege="INSERT",
@@ -344,7 +346,7 @@ class ClickhouseGrant(pulumi.CustomResource):
344
346
  database=demodb.name,
345
347
  ),
346
348
  ])
347
- demo_clickhouse_user = aiven.ClickhouseUser("demoClickhouseUser",
349
+ demo_clickhouse_user = aiven.ClickhouseUser("demo",
348
350
  project=clickhouse.project,
349
351
  service_name=clickhouse.service_name,
350
352
  username="demo-user")
@@ -353,7 +355,7 @@ class ClickhouseGrant(pulumi.CustomResource):
353
355
  service_name=clickhouse.service_name,
354
356
  user=demo_clickhouse_user.username,
355
357
  role_grants=[aiven.ClickhouseGrantRoleGrantArgs(
356
- role=demo_clickhouse_role.role,
358
+ role=demo.role,
357
359
  )])
358
360
  ```
359
361
  <!--End PulumiCodeChooser -->
@@ -188,8 +188,8 @@ class ClickhouseUser(pulumi.CustomResource):
188
188
  import pulumi_aiven as aiven
189
189
 
190
190
  ch_user = aiven.ClickhouseUser("ch-user",
191
- project=aiven_project["myproject"]["project"],
192
- service_name=aiven_clickhouse["myservice"]["service_name"],
191
+ project=myproject["project"],
192
+ service_name=myservice["serviceName"],
193
193
  username="<USERNAME>")
194
194
  ```
195
195
  <!--End PulumiCodeChooser -->
@@ -223,8 +223,8 @@ class ClickhouseUser(pulumi.CustomResource):
223
223
  import pulumi_aiven as aiven
224
224
 
225
225
  ch_user = aiven.ClickhouseUser("ch-user",
226
- project=aiven_project["myproject"]["project"],
227
- service_name=aiven_clickhouse["myservice"]["service_name"],
226
+ project=myproject["project"],
227
+ service_name=myservice["serviceName"],
228
228
  username="<USERNAME>")
229
229
  ```
230
230
  <!--End PulumiCodeChooser -->
@@ -287,13 +287,13 @@ class ConnectionPool(pulumi.CustomResource):
287
287
  import pulumi_aiven as aiven
288
288
 
289
289
  mytestpool = aiven.ConnectionPool("mytestpool",
290
- project=aiven_project["myproject"]["project"],
291
- service_name=aiven_pg["mypg"]["service_name"],
292
- database_name=aiven_pg_database["mypgdatabase"]["database_name"],
290
+ project=myproject["project"],
291
+ service_name=mypg["serviceName"],
292
+ database_name=mypgdatabase["databaseName"],
293
293
  pool_mode="transaction",
294
294
  pool_name="mypool",
295
295
  pool_size=10,
296
- username=aiven_pg_user["mypguser"]["username"])
296
+ username=mypguser["username"])
297
297
  ```
298
298
  <!--End PulumiCodeChooser -->
299
299
 
@@ -330,13 +330,13 @@ class ConnectionPool(pulumi.CustomResource):
330
330
  import pulumi_aiven as aiven
331
331
 
332
332
  mytestpool = aiven.ConnectionPool("mytestpool",
333
- project=aiven_project["myproject"]["project"],
334
- service_name=aiven_pg["mypg"]["service_name"],
335
- database_name=aiven_pg_database["mypgdatabase"]["database_name"],
333
+ project=myproject["project"],
334
+ service_name=mypg["serviceName"],
335
+ database_name=mypgdatabase["databaseName"],
336
336
  pool_mode="transaction",
337
337
  pool_name="mypool",
338
338
  pool_size=10,
339
- username=aiven_pg_user["mypguser"]["username"])
339
+ username=mypguser["username"])
340
340
  ```
341
341
  <!--End PulumiCodeChooser -->
342
342
 
pulumi_aiven/flink.py CHANGED
@@ -775,7 +775,7 @@ class Flink(pulumi.CustomResource):
775
775
  import pulumi_aiven as aiven
776
776
 
777
777
  flink = aiven.Flink("flink",
778
- project=data["aiven_project"]["pr1"]["project"],
778
+ project=pr1["project"],
779
779
  cloud_name="google-europe-west1",
780
780
  plan="business-4",
781
781
  service_name="my-flink",
@@ -829,7 +829,7 @@ class Flink(pulumi.CustomResource):
829
829
  import pulumi_aiven as aiven
830
830
 
831
831
  flink = aiven.Flink("flink",
832
- project=data["aiven_project"]["pr1"]["project"],
832
+ project=pr1["project"],
833
833
  cloud_name="google-europe-west1",
834
834
  plan="business-4",
835
835
  service_name="my-flink",
@@ -221,8 +221,9 @@ class FlinkApplication(pulumi.CustomResource):
221
221
  import pulumi_aiven as aiven
222
222
 
223
223
  foo = aiven.FlinkApplication("foo",
224
- project=aiven_project["foo"]["project"],
225
- service_name="flink-service-1")
224
+ project=foo_aiven_project["project"],
225
+ service_name="flink-service-1",
226
+ name="my-flink-app")
226
227
  ```
227
228
  <!--End PulumiCodeChooser -->
228
229
 
@@ -255,8 +256,9 @@ class FlinkApplication(pulumi.CustomResource):
255
256
  import pulumi_aiven as aiven
256
257
 
257
258
  foo = aiven.FlinkApplication("foo",
258
- project=aiven_project["foo"]["project"],
259
- service_name="flink-service-1")
259
+ project=foo_aiven_project["project"],
260
+ service_name="flink-service-1",
261
+ name="my-flink-app")
260
262
  ```
261
263
  <!--End PulumiCodeChooser -->
262
264