pulumi-confluentcloud 2.42.0__py3-none-any.whl → 2.54.0a1766503424__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.
@@ -224,6 +224,98 @@ class ApiKey(pulumi.CustomResource):
224
224
  """
225
225
  ## Example Usage
226
226
 
227
+ ### Example Kafka API Key
228
+ ```python
229
+ import pulumi
230
+ import pulumi_confluentcloud as confluentcloud
231
+
232
+ app_manager_kafka_api_key = confluentcloud.ApiKey("app-manager-kafka-api-key",
233
+ display_name="app-manager-kafka-api-key",
234
+ description="Kafka API Key that is owned by 'app-manager' service account",
235
+ owner={
236
+ "id": app_manager["id"],
237
+ "api_version": app_manager["apiVersion"],
238
+ "kind": app_manager["kind"],
239
+ },
240
+ managed_resource={
241
+ "id": basic["id"],
242
+ "api_version": basic["apiVersion"],
243
+ "kind": basic["kind"],
244
+ "environments": [{
245
+ "id": staging["id"],
246
+ }],
247
+ })
248
+ ```
249
+
250
+ ### Example ksqlDB API Key
251
+ ```python
252
+ import pulumi
253
+ import pulumi_confluentcloud as confluentcloud
254
+
255
+ ksqldb_api_key = confluentcloud.ApiKey("ksqldb-api-key",
256
+ display_name="ksqldb-api-key",
257
+ description="KsqlDB API Key that is owned by 'app-manager' service account",
258
+ owner={
259
+ "id": app_manager["id"],
260
+ "api_version": app_manager["apiVersion"],
261
+ "kind": app_manager["kind"],
262
+ },
263
+ managed_resource={
264
+ "id": main["id"],
265
+ "api_version": main["apiVersion"],
266
+ "kind": main["kind"],
267
+ "environments": [{
268
+ "id": staging["id"],
269
+ }],
270
+ })
271
+ ```
272
+
273
+ ### Example Schema Registry API Key
274
+ ```python
275
+ import pulumi
276
+ import pulumi_confluentcloud as confluentcloud
277
+
278
+ env_manager_schema_registry_api_key = confluentcloud.ApiKey("env-manager-schema-registry-api-key",
279
+ display_name="env-manager-schema-registry-api-key",
280
+ description="Schema Registry API Key that is owned by 'env-manager' service account",
281
+ owner={
282
+ "id": env_manager["id"],
283
+ "api_version": env_manager["apiVersion"],
284
+ "kind": env_manager["kind"],
285
+ },
286
+ managed_resource={
287
+ "id": essentials["id"],
288
+ "api_version": essentials["apiVersion"],
289
+ "kind": essentials["kind"],
290
+ "environments": [{
291
+ "id": staging["id"],
292
+ }],
293
+ })
294
+ ```
295
+
296
+ ### Example Flink API Key
297
+ ```python
298
+ import pulumi
299
+ import pulumi_confluentcloud as confluentcloud
300
+
301
+ env_manager_flink_api_key = confluentcloud.ApiKey("env-manager-flink-api-key",
302
+ display_name="env-manager-flink-api-key",
303
+ description="Flink API Key that is owned by 'env-manager' service account",
304
+ owner={
305
+ "id": env_manager["id"],
306
+ "api_version": env_manager["apiVersion"],
307
+ "kind": env_manager["kind"],
308
+ },
309
+ managed_resource={
310
+ "id": example["id"],
311
+ "api_version": example["apiVersion"],
312
+ "kind": example["kind"],
313
+ "environments": [{
314
+ "id": staging["id"],
315
+ }],
316
+ })
317
+ ```
318
+
227
319
  ### Example Tableflow API Key
228
320
  ```python
229
321
  import pulumi
@@ -333,6 +425,98 @@ class ApiKey(pulumi.CustomResource):
333
425
  """
334
426
  ## Example Usage
335
427
 
428
+ ### Example Kafka API Key
429
+ ```python
430
+ import pulumi
431
+ import pulumi_confluentcloud as confluentcloud
432
+
433
+ app_manager_kafka_api_key = confluentcloud.ApiKey("app-manager-kafka-api-key",
434
+ display_name="app-manager-kafka-api-key",
435
+ description="Kafka API Key that is owned by 'app-manager' service account",
436
+ owner={
437
+ "id": app_manager["id"],
438
+ "api_version": app_manager["apiVersion"],
439
+ "kind": app_manager["kind"],
440
+ },
441
+ managed_resource={
442
+ "id": basic["id"],
443
+ "api_version": basic["apiVersion"],
444
+ "kind": basic["kind"],
445
+ "environments": [{
446
+ "id": staging["id"],
447
+ }],
448
+ })
449
+ ```
450
+
451
+ ### Example ksqlDB API Key
452
+ ```python
453
+ import pulumi
454
+ import pulumi_confluentcloud as confluentcloud
455
+
456
+ ksqldb_api_key = confluentcloud.ApiKey("ksqldb-api-key",
457
+ display_name="ksqldb-api-key",
458
+ description="KsqlDB API Key that is owned by 'app-manager' service account",
459
+ owner={
460
+ "id": app_manager["id"],
461
+ "api_version": app_manager["apiVersion"],
462
+ "kind": app_manager["kind"],
463
+ },
464
+ managed_resource={
465
+ "id": main["id"],
466
+ "api_version": main["apiVersion"],
467
+ "kind": main["kind"],
468
+ "environments": [{
469
+ "id": staging["id"],
470
+ }],
471
+ })
472
+ ```
473
+
474
+ ### Example Schema Registry API Key
475
+ ```python
476
+ import pulumi
477
+ import pulumi_confluentcloud as confluentcloud
478
+
479
+ env_manager_schema_registry_api_key = confluentcloud.ApiKey("env-manager-schema-registry-api-key",
480
+ display_name="env-manager-schema-registry-api-key",
481
+ description="Schema Registry API Key that is owned by 'env-manager' service account",
482
+ owner={
483
+ "id": env_manager["id"],
484
+ "api_version": env_manager["apiVersion"],
485
+ "kind": env_manager["kind"],
486
+ },
487
+ managed_resource={
488
+ "id": essentials["id"],
489
+ "api_version": essentials["apiVersion"],
490
+ "kind": essentials["kind"],
491
+ "environments": [{
492
+ "id": staging["id"],
493
+ }],
494
+ })
495
+ ```
496
+
497
+ ### Example Flink API Key
498
+ ```python
499
+ import pulumi
500
+ import pulumi_confluentcloud as confluentcloud
501
+
502
+ env_manager_flink_api_key = confluentcloud.ApiKey("env-manager-flink-api-key",
503
+ display_name="env-manager-flink-api-key",
504
+ description="Flink API Key that is owned by 'env-manager' service account",
505
+ owner={
506
+ "id": env_manager["id"],
507
+ "api_version": env_manager["apiVersion"],
508
+ "kind": env_manager["kind"],
509
+ },
510
+ managed_resource={
511
+ "id": example["id"],
512
+ "api_version": example["apiVersion"],
513
+ "kind": example["kind"],
514
+ "environments": [{
515
+ "id": staging["id"],
516
+ }],
517
+ })
518
+ ```
519
+
336
520
  ### Example Tableflow API Key
337
521
  ```python
338
522
  import pulumi
@@ -333,6 +333,30 @@ class CatalogEntityAttributes(pulumi.CustomResource):
333
333
  ```
334
334
  > **Note:** We also support `schema_registry_rest_endpoint` instead of `catalog_rest_endpoint` for the time being.
335
335
 
336
+ ## Import
337
+
338
+ You can import a Catalog Entity Attributes resource by using the Schema Registry Cluster ID, Entity name in the format `<Schema Registry Cluster ID>/<Entity Type>/<Entity Name>/<Comma-Delimited-Attributes>`, for example:
339
+
340
+ Option #1: Manage multiple Catalog Entity Attributes in the same Pulumi Stack
341
+
342
+ $ export IMPORT_SCHEMA_REGISTRY_API_KEY="<schema_registry_api_key>"
343
+
344
+ $ export IMPORT_SCHEMA_REGISTRY_API_SECRET="<schema_registry_api_secret>"
345
+
346
+ $ export IMPORT_SCHEMA_REGISTRY_REST_ENDPOINT="<schema_registry_rest_endpoint>"
347
+
348
+ ```sh
349
+ $ pulumi import confluentcloud:index/catalogEntityAttributes:CatalogEntityAttributes environment lsrc-abc123/cf_environment/env-abc123/owner,description,ownerEmail
350
+ ```
351
+
352
+ Option #2: Manage a single Catalog Entity Attributes in the same Pulumi Stack
353
+
354
+ ```sh
355
+ $ pulumi import confluentcloud:index/catalogEntityAttributes:CatalogEntityAttributes environment lsrc-abc123/cf_environment/env-abc123/owner,description,ownerEmail
356
+ ```
357
+
358
+ !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
359
+
336
360
  :param str resource_name: The name of the resource.
337
361
  :param pulumi.ResourceOptions opts: Options for the resource.
338
362
  :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] attributes: The attributes.
@@ -451,6 +475,30 @@ class CatalogEntityAttributes(pulumi.CustomResource):
451
475
  ```
452
476
  > **Note:** We also support `schema_registry_rest_endpoint` instead of `catalog_rest_endpoint` for the time being.
453
477
 
478
+ ## Import
479
+
480
+ You can import a Catalog Entity Attributes resource by using the Schema Registry Cluster ID, Entity name in the format `<Schema Registry Cluster ID>/<Entity Type>/<Entity Name>/<Comma-Delimited-Attributes>`, for example:
481
+
482
+ Option #1: Manage multiple Catalog Entity Attributes in the same Pulumi Stack
483
+
484
+ $ export IMPORT_SCHEMA_REGISTRY_API_KEY="<schema_registry_api_key>"
485
+
486
+ $ export IMPORT_SCHEMA_REGISTRY_API_SECRET="<schema_registry_api_secret>"
487
+
488
+ $ export IMPORT_SCHEMA_REGISTRY_REST_ENDPOINT="<schema_registry_rest_endpoint>"
489
+
490
+ ```sh
491
+ $ pulumi import confluentcloud:index/catalogEntityAttributes:CatalogEntityAttributes environment lsrc-abc123/cf_environment/env-abc123/owner,description,ownerEmail
492
+ ```
493
+
494
+ Option #2: Manage a single Catalog Entity Attributes in the same Pulumi Stack
495
+
496
+ ```sh
497
+ $ pulumi import confluentcloud:index/catalogEntityAttributes:CatalogEntityAttributes environment lsrc-abc123/cf_environment/env-abc123/owner,description,ownerEmail
498
+ ```
499
+
500
+ !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
501
+
454
502
  :param str resource_name: The name of the resource.
455
503
  :param CatalogEntityAttributesArgs args: The arguments to use to populate this resource's properties.
456
504
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -246,6 +246,32 @@ class DnsForwarder(pulumi.CustomResource):
246
246
  })
247
247
  ```
248
248
 
249
+ ### Option #2: Create using ForwardViaGcpDnsZones method
250
+
251
+ ```python
252
+ import pulumi
253
+ import pulumi_confluentcloud as confluentcloud
254
+
255
+ development = confluentcloud.Environment("development", display_name="Development")
256
+ main = confluentcloud.DnsForwarder("main",
257
+ display_name="dns_forwarder",
258
+ environment={
259
+ "id": development.id,
260
+ },
261
+ domains=[
262
+ "example.com",
263
+ "domainname.com",
264
+ ],
265
+ gateway={
266
+ "id": main_confluent_network["gateway"][0]["id"],
267
+ },
268
+ forward_via_gcp_zones=[{
269
+ "domainMappings": {
270
+ "example.com": "zone-1,project-1",
271
+ },
272
+ }])
273
+ ```
274
+
249
275
  ## Import
250
276
 
251
277
  You can import a DNS Forwarder by using Environment ID and DNS Forwarder ID, in the format `<Environment ID>/<DNS Forwarder ID>`. The following example shows how to import a DNS Forwarder:
@@ -306,6 +332,32 @@ class DnsForwarder(pulumi.CustomResource):
306
332
  })
307
333
  ```
308
334
 
335
+ ### Option #2: Create using ForwardViaGcpDnsZones method
336
+
337
+ ```python
338
+ import pulumi
339
+ import pulumi_confluentcloud as confluentcloud
340
+
341
+ development = confluentcloud.Environment("development", display_name="Development")
342
+ main = confluentcloud.DnsForwarder("main",
343
+ display_name="dns_forwarder",
344
+ environment={
345
+ "id": development.id,
346
+ },
347
+ domains=[
348
+ "example.com",
349
+ "domainname.com",
350
+ ],
351
+ gateway={
352
+ "id": main_confluent_network["gateway"][0]["id"],
353
+ },
354
+ forward_via_gcp_zones=[{
355
+ "domainMappings": {
356
+ "example.com": "zone-1,project-1",
357
+ },
358
+ }])
359
+ ```
360
+
309
361
  ## Import
310
362
 
311
363
  You can import a DNS Forwarder by using Environment ID and DNS Forwarder ID, in the format `<Environment ID>/<DNS Forwarder ID>`. The following example shows how to import a DNS Forwarder:
@@ -135,6 +135,36 @@ def get_catalog_integration(credentials: Optional[Union['GetCatalogIntegrationCr
135
135
 
136
136
  ## Example Usage
137
137
 
138
+ ### Option #1: Manage multiple Catalog Integrations in the same Pulumi Stack
139
+
140
+ ```python
141
+ import pulumi
142
+ import pulumi_confluentcloud as confluentcloud
143
+
144
+ example = confluentcloud.get_catalog_integration(environment={
145
+ "id": staging["id"],
146
+ },
147
+ kafka_cluster={
148
+ "id": staging_confluent_kafka_cluster["id"],
149
+ },
150
+ id="tci-abc123",
151
+ credentials={
152
+ "key": env_admin_tableflow_api_key["id"],
153
+ "secret": env_admin_tableflow_api_key["secret"],
154
+ })
155
+ pulumi.export("retention-ms", example.retention_ms)
156
+ ```
157
+
158
+ ### Option #2: Manage a single Catalog Integration in the same Pulumi Stack
159
+
160
+ ```python
161
+ import pulumi
162
+ import pulumi_confluentcloud as confluentcloud
163
+
164
+ example = confluentcloud.get_catalog_integration(id="tci-abc123")
165
+ pulumi.export("retention-ms", example.retention_ms)
166
+ ```
167
+
138
168
 
139
169
  :param _builtins.str id: The ID of the Catalog Integration, for example, `tci-abc123`.
140
170
  """
@@ -167,6 +197,36 @@ def get_catalog_integration_output(credentials: Optional[pulumi.Input[Optional[U
167
197
 
168
198
  ## Example Usage
169
199
 
200
+ ### Option #1: Manage multiple Catalog Integrations in the same Pulumi Stack
201
+
202
+ ```python
203
+ import pulumi
204
+ import pulumi_confluentcloud as confluentcloud
205
+
206
+ example = confluentcloud.get_catalog_integration(environment={
207
+ "id": staging["id"],
208
+ },
209
+ kafka_cluster={
210
+ "id": staging_confluent_kafka_cluster["id"],
211
+ },
212
+ id="tci-abc123",
213
+ credentials={
214
+ "key": env_admin_tableflow_api_key["id"],
215
+ "secret": env_admin_tableflow_api_key["secret"],
216
+ })
217
+ pulumi.export("retention-ms", example.retention_ms)
218
+ ```
219
+
220
+ ### Option #2: Manage a single Catalog Integration in the same Pulumi Stack
221
+
222
+ ```python
223
+ import pulumi
224
+ import pulumi_confluentcloud as confluentcloud
225
+
226
+ example = confluentcloud.get_catalog_integration(id="tci-abc123")
227
+ pulumi.export("retention-ms", example.retention_ms)
228
+ ```
229
+
170
230
 
171
231
  :param _builtins.str id: The ID of the Catalog Integration, for example, `tci-abc123`.
172
232
  """
@@ -0,0 +1,136 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
18
+
19
+ __all__ = [
20
+ 'GetKafkaClustersResult',
21
+ 'AwaitableGetKafkaClustersResult',
22
+ 'get_kafka_clusters',
23
+ 'get_kafka_clusters_output',
24
+ ]
25
+
26
+ @pulumi.output_type
27
+ class GetKafkaClustersResult:
28
+ """
29
+ A collection of values returned by getKafkaClusters.
30
+ """
31
+ def __init__(__self__, clusters=None, environment=None, id=None):
32
+ if clusters and not isinstance(clusters, list):
33
+ raise TypeError("Expected argument 'clusters' to be a list")
34
+ pulumi.set(__self__, "clusters", clusters)
35
+ if environment and not isinstance(environment, dict):
36
+ raise TypeError("Expected argument 'environment' to be a dict")
37
+ pulumi.set(__self__, "environment", environment)
38
+ if id and not isinstance(id, str):
39
+ raise TypeError("Expected argument 'id' to be a str")
40
+ pulumi.set(__self__, "id", id)
41
+
42
+ @_builtins.property
43
+ @pulumi.getter
44
+ def clusters(self) -> Sequence['outputs.GetKafkaClustersClusterResult']:
45
+ """
46
+ (Required List of Object) List of Kafka clusters. Each Kafka cluster object exports the following attributes:
47
+ """
48
+ return pulumi.get(self, "clusters")
49
+
50
+ @_builtins.property
51
+ @pulumi.getter
52
+ def environment(self) -> 'outputs.GetKafkaClustersEnvironmentResult':
53
+ """
54
+ (Required Object) exports the following attributes:
55
+ """
56
+ return pulumi.get(self, "environment")
57
+
58
+ @_builtins.property
59
+ @pulumi.getter
60
+ def id(self) -> _builtins.str:
61
+ """
62
+ The provider-assigned unique ID for this managed resource.
63
+ """
64
+ return pulumi.get(self, "id")
65
+
66
+
67
+ class AwaitableGetKafkaClustersResult(GetKafkaClustersResult):
68
+ # pylint: disable=using-constant-test
69
+ def __await__(self):
70
+ if False:
71
+ yield self
72
+ return GetKafkaClustersResult(
73
+ clusters=self.clusters,
74
+ environment=self.environment,
75
+ id=self.id)
76
+
77
+
78
+ def get_kafka_clusters(environment: Optional[Union['GetKafkaClustersEnvironmentArgs', 'GetKafkaClustersEnvironmentArgsDict']] = None,
79
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetKafkaClustersResult:
80
+ """
81
+ [![General Availability](https://img.shields.io/badge/Lifecycle%20Stage-General%20Availability-%2345c6e8)](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
82
+
83
+ `get_kafka_clusters` describes a data source for Kafka Clusters.
84
+
85
+ ## Example Usage
86
+
87
+ ```python
88
+ import pulumi
89
+ import pulumi_confluentcloud as confluentcloud
90
+
91
+ main = confluentcloud.get_kafka_clusters(environment={
92
+ "id": "env-123abc",
93
+ })
94
+ ```
95
+
96
+
97
+ :param Union['GetKafkaClustersEnvironmentArgs', 'GetKafkaClustersEnvironmentArgsDict'] environment: (Required Object) exports the following attributes:
98
+ """
99
+ __args__ = dict()
100
+ __args__['environment'] = environment
101
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
102
+ __ret__ = pulumi.runtime.invoke('confluentcloud:index/getKafkaClusters:getKafkaClusters', __args__, opts=opts, typ=GetKafkaClustersResult).value
103
+
104
+ return AwaitableGetKafkaClustersResult(
105
+ clusters=pulumi.get(__ret__, 'clusters'),
106
+ environment=pulumi.get(__ret__, 'environment'),
107
+ id=pulumi.get(__ret__, 'id'))
108
+ def get_kafka_clusters_output(environment: Optional[pulumi.Input[Union['GetKafkaClustersEnvironmentArgs', 'GetKafkaClustersEnvironmentArgsDict']]] = None,
109
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetKafkaClustersResult]:
110
+ """
111
+ [![General Availability](https://img.shields.io/badge/Lifecycle%20Stage-General%20Availability-%2345c6e8)](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
112
+
113
+ `get_kafka_clusters` describes a data source for Kafka Clusters.
114
+
115
+ ## Example Usage
116
+
117
+ ```python
118
+ import pulumi
119
+ import pulumi_confluentcloud as confluentcloud
120
+
121
+ main = confluentcloud.get_kafka_clusters(environment={
122
+ "id": "env-123abc",
123
+ })
124
+ ```
125
+
126
+
127
+ :param Union['GetKafkaClustersEnvironmentArgs', 'GetKafkaClustersEnvironmentArgsDict'] environment: (Required Object) exports the following attributes:
128
+ """
129
+ __args__ = dict()
130
+ __args__['environment'] = environment
131
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
132
+ __ret__ = pulumi.runtime.invoke_output('confluentcloud:index/getKafkaClusters:getKafkaClusters', __args__, opts=opts, typ=GetKafkaClustersResult)
133
+ return __ret__.apply(lambda __response__: GetKafkaClustersResult(
134
+ clusters=pulumi.get(__response__, 'clusters'),
135
+ environment=pulumi.get(__response__, 'environment'),
136
+ id=pulumi.get(__response__, 'id')))
@@ -73,7 +73,6 @@ class GetPrivateLinkAttachmentResult:
73
73
  def azures(self) -> Sequence['outputs.GetPrivateLinkAttachmentAzureResult']:
74
74
  """
75
75
  (Optional Configuration Block) supports the following:
76
- - `private_link_service_alias ` - (Required String) Azure Private Link service alias for the availability zone.
77
76
  """
78
77
  return pulumi.get(self, "azures")
79
78