@pulumi/confluentcloud 2.9.0 → 2.9.1-alpha.1730411108
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.
- package/businessMetadata.d.ts +59 -0
- package/businessMetadata.js +59 -0
- package/businessMetadata.js.map +1 -1
- package/businessMetadataBinding.d.ts +59 -0
- package/businessMetadataBinding.js +59 -0
- package/businessMetadataBinding.js.map +1 -1
- package/catalogEntityAttributes.d.ts +116 -0
- package/catalogEntityAttributes.js +116 -0
- package/catalogEntityAttributes.js.map +1 -1
- package/flinkStatement.d.ts +57 -2
- package/flinkStatement.js +57 -2
- package/flinkStatement.js.map +1 -1
- package/getBusinessMetadata.d.ts +74 -0
- package/getBusinessMetadata.js +74 -0
- package/getBusinessMetadata.js.map +1 -1
- package/getBusinessMetadataBinding.d.ts +82 -0
- package/getBusinessMetadataBinding.js +82 -0
- package/getBusinessMetadataBinding.js.map +1 -1
- package/getKafkaTopic.d.ts +78 -0
- package/getKafkaTopic.js +78 -0
- package/getKafkaTopic.js.map +1 -1
- package/getSchema.d.ts +82 -0
- package/getSchema.js +82 -0
- package/getSchema.js.map +1 -1
- package/getSchemaRegistryClusterConfig.d.ts +72 -0
- package/getSchemaRegistryClusterConfig.js +72 -0
- package/getSchemaRegistryClusterConfig.js.map +1 -1
- package/getSchemaRegistryClusterMode.d.ts +72 -0
- package/getSchemaRegistryClusterMode.js +72 -0
- package/getSchemaRegistryClusterMode.js.map +1 -1
- package/getSchemaRegistryDek.d.ts +78 -0
- package/getSchemaRegistryDek.js +78 -0
- package/getSchemaRegistryDek.js.map +1 -1
- package/getSchemaRegistryKek.d.ts +74 -0
- package/getSchemaRegistryKek.js +74 -0
- package/getSchemaRegistryKek.js.map +1 -1
- package/getSchemas.d.ts +94 -0
- package/getSchemas.js +94 -0
- package/getSchemas.js.map +1 -1
- package/getSubjectConfig.d.ts +14 -0
- package/getSubjectConfig.js +14 -0
- package/getSubjectConfig.js.map +1 -1
- package/getSubjectMode.d.ts +78 -0
- package/getSubjectMode.js +78 -0
- package/getSubjectMode.js.map +1 -1
- package/getTag.d.ts +74 -0
- package/getTag.js +74 -0
- package/getTag.js.map +1 -1
- package/getTagBinding.d.ts +82 -0
- package/getTagBinding.js +82 -0
- package/getTagBinding.js.map +1 -1
- package/kafkaAcl.d.ts +86 -2
- package/kafkaAcl.js +86 -2
- package/kafkaAcl.js.map +1 -1
- package/kafkaClusterConfig.d.ts +42 -2
- package/kafkaClusterConfig.js +42 -2
- package/kafkaClusterConfig.js.map +1 -1
- package/kafkaTopic.d.ts +57 -2
- package/kafkaTopic.js +57 -2
- package/kafkaTopic.js.map +1 -1
- package/package.json +2 -2
- package/schema.d.ts +2 -0
- package/schema.js +2 -0
- package/schema.js.map +1 -1
- package/schemaExporter.d.ts +52 -0
- package/schemaExporter.js +52 -0
- package/schemaExporter.js.map +1 -1
- package/schemaRegistryClusterConfig.d.ts +30 -0
- package/schemaRegistryClusterConfig.js +30 -0
- package/schemaRegistryClusterConfig.js.map +1 -1
- package/schemaRegistryClusterMode.d.ts +30 -0
- package/schemaRegistryClusterMode.js +30 -0
- package/schemaRegistryClusterMode.js.map +1 -1
- package/schemaRegistryDek.d.ts +45 -0
- package/schemaRegistryDek.js +45 -0
- package/schemaRegistryDek.js.map +1 -1
- package/schemaRegistryKek.d.ts +51 -0
- package/schemaRegistryKek.js +51 -0
- package/schemaRegistryKek.js.map +1 -1
- package/subjectConfig.d.ts +34 -0
- package/subjectConfig.js +34 -0
- package/subjectConfig.js.map +1 -1
- package/subjectMode.d.ts +34 -0
- package/subjectMode.js +34 -0
- package/subjectMode.js.map +1 -1
- package/tag.d.ts +43 -0
- package/tag.js +43 -0
- package/tag.js.map +1 -1
- package/tagBinding.d.ts +51 -0
- package/tagBinding.js +51 -0
- package/tagBinding.js.map +1 -1
package/kafkaAcl.js
CHANGED
|
@@ -6,11 +6,95 @@ exports.KafkaAcl = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
10
|
+
*
|
|
11
|
+
* `confluentcloud.KafkaAcl` provides a Kafka ACL resource that enables creating and deleting Kafka ACLs on Confluent Cloud.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ### Option #1: Manage multiple Kafka clusters in the same Pulumi Stack
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
20
|
+
*
|
|
21
|
+
* const describe_basic_cluster = new confluentcloud.KafkaAcl("describe-basic-cluster", {
|
|
22
|
+
* kafkaCluster: {
|
|
23
|
+
* id: basic_cluster.id,
|
|
24
|
+
* },
|
|
25
|
+
* resourceType: "CLUSTER",
|
|
26
|
+
* resourceName: "kafka-cluster",
|
|
27
|
+
* patternType: "LITERAL",
|
|
28
|
+
* principal: "User:sa-xyz123",
|
|
29
|
+
* host: "*",
|
|
30
|
+
* operation: "DESCRIBE",
|
|
31
|
+
* permission: "ALLOW",
|
|
32
|
+
* restEndpoint: basic_cluster.restEndpoint,
|
|
33
|
+
* credentials: {
|
|
34
|
+
* key: app_manager_kafka_api_key.id,
|
|
35
|
+
* secret: app_manager_kafka_api_key.secret,
|
|
36
|
+
* },
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* ### Option #2: Manage a single Kafka cluster in the same Pulumi Stack
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
45
|
+
*
|
|
46
|
+
* const describe_basic_cluster = new confluentcloud.KafkaAcl("describe-basic-cluster", {
|
|
47
|
+
* resourceType: "CLUSTER",
|
|
48
|
+
* resourceName: "kafka-cluster",
|
|
49
|
+
* patternType: "LITERAL",
|
|
50
|
+
* principal: "User:sa-xyz123",
|
|
51
|
+
* host: "*",
|
|
52
|
+
* operation: "DESCRIBE",
|
|
53
|
+
* permission: "ALLOW",
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* ## Getting Started
|
|
58
|
+
*
|
|
59
|
+
* The following end-to-end examples might help to get started with `confluentcloud.KafkaAcl` resource:
|
|
60
|
+
* * `basic-kafka-acls`: _Basic_ Kafka cluster with authorization using ACLs
|
|
61
|
+
* * `basic-kafka-acls-with-alias`: _Basic_ Kafka cluster with authorization using ACLs
|
|
62
|
+
* * `standard-kafka-acls`: _Standard_ Kafka cluster with authorization using ACLs
|
|
63
|
+
* * `dedicated-public-kafka-acls`: _Dedicated_ Kafka cluster that is accessible over the public internet with authorization using ACLs
|
|
64
|
+
* * `dedicated-privatelink-aws-kafka-acls`: _Dedicated_ Kafka cluster on AWS that is accessible via PrivateLink connections with authorization using ACLs
|
|
65
|
+
* * `dedicated-privatelink-azure-kafka-acls`: _Dedicated_ Kafka cluster on Azure that is accessible via PrivateLink connections with authorization using ACLs
|
|
66
|
+
* * `dedicated-private-service-connect-gcp-kafka-acls`: _Dedicated_ Kafka cluster on GCP that is accessible via Private Service Connect connections with authorization using ACLs
|
|
67
|
+
* * `dedicated-private-service-connect-gcp-kafka-rbac`: _Dedicated_ Kafka cluster on GCP that is accessible via Private Service Connect connections with authorization using RBAC
|
|
68
|
+
* * `dedicated-vnet-peering-azure-kafka-acls`: _Dedicated_ Kafka cluster on Azure that is accessible via VPC Peering connections with authorization using ACLs
|
|
69
|
+
* * `dedicated-vpc-peering-aws-kafka-acls`: _Dedicated_ Kafka cluster on AWS that is accessible via VPC Peering connections with authorization using ACLs
|
|
70
|
+
* * `dedicated-vpc-peering-gcp-kafka-acls`: _Dedicated_ Kafka cluster on GCP that is accessible via VPC Peering connections with authorization using ACLs
|
|
71
|
+
* * `dedicated-transit-gateway-attachment-aws-kafka-acls`: _Dedicated_ Kafka cluster on AWS that is accessible via Transit Gateway Endpoint with authorization using ACLs
|
|
72
|
+
* * `dedicated-transit-gateway-attachment-aws-kafka-rbac`: _Dedicated_ Kafka cluster on AWS that is accessible via Transit Gateway Endpoint with authorization using RBAC
|
|
73
|
+
* * `enterprise-privatelinkattachment-aws-kafka-acls`: _Enterprise_ Kafka cluster on AWS that is accessible via PrivateLink connections with authorization using ACLs
|
|
74
|
+
*
|
|
75
|
+
* ## Other Example Usages
|
|
76
|
+
*
|
|
77
|
+
* ```typescript
|
|
78
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
79
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
80
|
+
*
|
|
81
|
+
* // https://github.com/confluentinc/terraform-provider-confluent/issues/241
|
|
82
|
+
* const app_producer_write_on_topic = new confluentcloud.KafkaAcl("app-producer-write-on-topic", {
|
|
83
|
+
* resourceType: "TOPIC",
|
|
84
|
+
* resourceName: orders.topicName,
|
|
85
|
+
* patternType: "LITERAL",
|
|
86
|
+
* principal: `User:${_this.id}`,
|
|
87
|
+
* host: "*",
|
|
88
|
+
* operation: "WRITE",
|
|
89
|
+
* permission: "ALLOW",
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
9
93
|
* ## Import
|
|
10
94
|
*
|
|
11
95
|
* You can import Kafka ACLs by using the Kafka cluster ID and attributes of `confluent_kafka_acl` resource in the format `<Kafka cluster ID>/<Kafka ACL resource type>#<Kafka ACL resource name>#<Kafka ACL pattern type>#<Kafka ACL principal>#<Kafka ACL host>#<Kafka ACL operation>#<Kafka ACL permission>`, for example:
|
|
12
96
|
*
|
|
13
|
-
* Option #1: Manage multiple Kafka clusters in the same
|
|
97
|
+
* Option #1: Manage multiple Kafka clusters in the same Pulumi Stack
|
|
14
98
|
*
|
|
15
99
|
* $ export IMPORT_KAFKA_API_KEY="<kafka_api_key>"
|
|
16
100
|
*
|
|
@@ -22,7 +106,7 @@ const utilities = require("./utilities");
|
|
|
22
106
|
* $ pulumi import confluentcloud:index/kafkaAcl:KafkaAcl describe-cluster "lkc-12345/CLUSTER#kafka-cluster#LITERAL#User:sa-xyz123#*#DESCRIBE#ALLOW"
|
|
23
107
|
* ```
|
|
24
108
|
*
|
|
25
|
-
* Option #2: Manage a single Kafka cluster in the same
|
|
109
|
+
* Option #2: Manage a single Kafka cluster in the same Pulumi Stack
|
|
26
110
|
*
|
|
27
111
|
* $ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
|
|
28
112
|
*
|
package/kafkaAcl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kafkaAcl.js","sourceRoot":"","sources":["../kafkaAcl.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"kafkaAcl.js","sourceRoot":"","sources":["../kafkaAcl.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgHG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO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C,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA/HL,4BAgIC;AAlHG,gBAAgB;AACO,qBAAY,GAAG,wCAAwC,CAAC"}
|
package/kafkaClusterConfig.d.ts
CHANGED
|
@@ -2,11 +2,51 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
6
|
+
*
|
|
7
|
+
* `confluentcloud.KafkaClusterConfig` provides a Kafka cluster config resource that enables updating configs on a Dedicated Kafka cluster on Confluent Cloud.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ### Option #1: Manage multiple Kafka clusters in the same Pulumi Stack
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
16
|
+
*
|
|
17
|
+
* const orders = new confluentcloud.KafkaClusterConfig("orders", {
|
|
18
|
+
* kafkaCluster: {
|
|
19
|
+
* id: dedicated.id,
|
|
20
|
+
* },
|
|
21
|
+
* restEndpoint: dedicated.restEndpoint,
|
|
22
|
+
* config: {
|
|
23
|
+
* "auto.create.topics.enable": "true",
|
|
24
|
+
* "log.retention.ms": "604800123",
|
|
25
|
+
* },
|
|
26
|
+
* credentials: {
|
|
27
|
+
* key: app_manager_kafka_api_key.id,
|
|
28
|
+
* secret: app_manager_kafka_api_key.secret,
|
|
29
|
+
* },
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ### Option #2: Manage a single Kafka cluster in the same Pulumi Stack
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
38
|
+
*
|
|
39
|
+
* const orders = new confluentcloud.KafkaClusterConfig("orders", {config: {
|
|
40
|
+
* "auto.create.topics.enable": "true",
|
|
41
|
+
* "log.retention.ms": "604800123",
|
|
42
|
+
* }});
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
5
45
|
* ## Import
|
|
6
46
|
*
|
|
7
47
|
* You can import a Kafka cluster config by using the Kafka cluster ID, for example:
|
|
8
48
|
*
|
|
9
|
-
* Option #1: Manage multiple Kafka clusters in the same
|
|
49
|
+
* Option #1: Manage multiple Kafka clusters in the same Pulumi Stack
|
|
10
50
|
*
|
|
11
51
|
* $ export IMPORT_KAFKA_API_KEY="<kafka_api_key>"
|
|
12
52
|
*
|
|
@@ -18,7 +58,7 @@ import * as outputs from "./types/output";
|
|
|
18
58
|
* $ pulumi import confluentcloud:index/kafkaClusterConfig:KafkaClusterConfig test lkc-abc123
|
|
19
59
|
* ```
|
|
20
60
|
*
|
|
21
|
-
* Option #2: Manage a single Kafka cluster in the same
|
|
61
|
+
* Option #2: Manage a single Kafka cluster in the same Pulumi Stack
|
|
22
62
|
*
|
|
23
63
|
* ```sh
|
|
24
64
|
* $ pulumi import confluentcloud:index/kafkaClusterConfig:KafkaClusterConfig test lkc-abc123
|
package/kafkaClusterConfig.js
CHANGED
|
@@ -6,11 +6,51 @@ exports.KafkaClusterConfig = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
10
|
+
*
|
|
11
|
+
* `confluentcloud.KafkaClusterConfig` provides a Kafka cluster config resource that enables updating configs on a Dedicated Kafka cluster on Confluent Cloud.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ### Option #1: Manage multiple Kafka clusters in the same Pulumi Stack
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
20
|
+
*
|
|
21
|
+
* const orders = new confluentcloud.KafkaClusterConfig("orders", {
|
|
22
|
+
* kafkaCluster: {
|
|
23
|
+
* id: dedicated.id,
|
|
24
|
+
* },
|
|
25
|
+
* restEndpoint: dedicated.restEndpoint,
|
|
26
|
+
* config: {
|
|
27
|
+
* "auto.create.topics.enable": "true",
|
|
28
|
+
* "log.retention.ms": "604800123",
|
|
29
|
+
* },
|
|
30
|
+
* credentials: {
|
|
31
|
+
* key: app_manager_kafka_api_key.id,
|
|
32
|
+
* secret: app_manager_kafka_api_key.secret,
|
|
33
|
+
* },
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* ### Option #2: Manage a single Kafka cluster in the same Pulumi Stack
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
42
|
+
*
|
|
43
|
+
* const orders = new confluentcloud.KafkaClusterConfig("orders", {config: {
|
|
44
|
+
* "auto.create.topics.enable": "true",
|
|
45
|
+
* "log.retention.ms": "604800123",
|
|
46
|
+
* }});
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
9
49
|
* ## Import
|
|
10
50
|
*
|
|
11
51
|
* You can import a Kafka cluster config by using the Kafka cluster ID, for example:
|
|
12
52
|
*
|
|
13
|
-
* Option #1: Manage multiple Kafka clusters in the same
|
|
53
|
+
* Option #1: Manage multiple Kafka clusters in the same Pulumi Stack
|
|
14
54
|
*
|
|
15
55
|
* $ export IMPORT_KAFKA_API_KEY="<kafka_api_key>"
|
|
16
56
|
*
|
|
@@ -22,7 +62,7 @@ const utilities = require("./utilities");
|
|
|
22
62
|
* $ pulumi import confluentcloud:index/kafkaClusterConfig:KafkaClusterConfig test lkc-abc123
|
|
23
63
|
* ```
|
|
24
64
|
*
|
|
25
|
-
* Option #2: Manage a single Kafka cluster in the same
|
|
65
|
+
* Option #2: Manage a single Kafka cluster in the same Pulumi Stack
|
|
26
66
|
*
|
|
27
67
|
* ```sh
|
|
28
68
|
* $ pulumi import confluentcloud:index/kafkaClusterConfig:KafkaClusterConfig test lkc-abc123
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kafkaClusterConfig.js","sourceRoot":"","sources":["../kafkaClusterConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"kafkaClusterConfig.js","sourceRoot":"","sources":["../kafkaClusterConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAA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AAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAzEL,gDA0EC;AA5DG,gBAAgB;AACO,+BAAY,GAAG,4DAA4D,CAAC"}
|
package/kafkaTopic.d.ts
CHANGED
|
@@ -2,11 +2,66 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ### Option #1: Manage multiple Kafka clusters in the same Pulumi Stack
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
12
|
+
*
|
|
13
|
+
* const orders = new confluentcloud.KafkaTopic("orders", {
|
|
14
|
+
* kafkaCluster: {
|
|
15
|
+
* id: basic_cluster.id,
|
|
16
|
+
* },
|
|
17
|
+
* topicName: "orders",
|
|
18
|
+
* restEndpoint: basic_cluster.restEndpoint,
|
|
19
|
+
* credentials: {
|
|
20
|
+
* key: app_manager_kafka_api_key.id,
|
|
21
|
+
* secret: app_manager_kafka_api_key.secret,
|
|
22
|
+
* },
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ### Option #2: Manage a single Kafka cluster in the same Pulumi Stack
|
|
27
|
+
*
|
|
28
|
+
* ```typescript
|
|
29
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
30
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
31
|
+
*
|
|
32
|
+
* const orders = new confluentcloud.KafkaTopic("orders", {topicName: "orders"});
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Getting Started
|
|
36
|
+
*
|
|
37
|
+
* The following end-to-end examples might help to get started with `confluentcloud.KafkaTopic` resource:
|
|
38
|
+
* * `basic-kafka-acls`: _Basic_ Kafka cluster with authorization using ACLs
|
|
39
|
+
* * `basic-kafka-acls-with-alias`: _Basic_ Kafka cluster with authorization using ACLs
|
|
40
|
+
* * `standard-kafka-acls`: _Standard_ Kafka cluster with authorization using ACLs
|
|
41
|
+
* * `standard-kafka-rbac`: _Standard_ Kafka cluster with authorization using RBAC
|
|
42
|
+
* * `dedicated-public-kafka-acls`: _Dedicated_ Kafka cluster that is accessible over the public internet with authorization using ACLs
|
|
43
|
+
* * `dedicated-public-kafka-rbac`: _Dedicated_ Kafka cluster that is accessible over the public internet with authorization using RBAC
|
|
44
|
+
* * `dedicated-privatelink-aws-kafka-acls`: _Dedicated_ Kafka cluster on AWS that is accessible via PrivateLink connections with authorization using ACLs
|
|
45
|
+
* * `dedicated-privatelink-aws-kafka-rbac`: _Dedicated_ Kafka cluster on AWS that is accessible via PrivateLink connections with authorization using RBAC
|
|
46
|
+
* * `dedicated-privatelink-azure-kafka-rbac`: _Dedicated_ Kafka cluster on Azure that is accessible via PrivateLink connections with authorization using RBAC
|
|
47
|
+
* * `dedicated-privatelink-azure-kafka-acls`: _Dedicated_ Kafka cluster on Azure that is accessible via PrivateLink connections with authorization using ACLs
|
|
48
|
+
* * `dedicated-private-service-connect-gcp-kafka-acls`: _Dedicated_ Kafka cluster on GCP that is accessible via Private Service Connect connections with authorization using ACLs
|
|
49
|
+
* * `dedicated-private-service-connect-gcp-kafka-rbac`: _Dedicated_ Kafka cluster on GCP that is accessible via Private Service Connect connections with authorization using RBAC
|
|
50
|
+
* * `dedicated-vnet-peering-azure-kafka-acls`: _Dedicated_ Kafka cluster on Azure that is accessible via VPC Peering connections with authorization using ACLs
|
|
51
|
+
* * `dedicated-vnet-peering-azure-kafka-rbac`: _Dedicated_ Kafka cluster on Azure that is accessible via VPC Peering connections with authorization using RBAC
|
|
52
|
+
* * `dedicated-vpc-peering-aws-kafka-acls`: _Dedicated_ Kafka cluster on AWS that is accessible via VPC Peering connections with authorization using ACLs
|
|
53
|
+
* * `dedicated-vpc-peering-aws-kafka-rbac`: _Dedicated_ Kafka cluster on AWS that is accessible via VPC Peering connections with authorization using RBAC
|
|
54
|
+
* * `dedicated-vpc-peering-gcp-kafka-acls`: _Dedicated_ Kafka cluster on GCP that is accessible via VPC Peering connections with authorization using ACLs
|
|
55
|
+
* * `dedicated-vpc-peering-gcp-kafka-rbac`: _Dedicated_ Kafka cluster on GCP that is accessible via VPC Peering connections with authorization using RBAC
|
|
56
|
+
* * `dedicated-transit-gateway-attachment-aws-kafka-acls`: _Dedicated_ Kafka cluster on AWS that is accessible via Transit Gateway Endpoint with authorization using ACLs
|
|
57
|
+
* * `dedicated-transit-gateway-attachment-aws-kafka-rbac`: _Dedicated_ Kafka cluster on AWS that is accessible via Transit Gateway Endpoint with authorization using RBAC
|
|
58
|
+
* * `enterprise-privatelinkattachment-aws-kafka-acls`: _Enterprise_ Kafka cluster on AWS that is accessible via PrivateLink connections with authorization using ACLs
|
|
59
|
+
*
|
|
5
60
|
* ## Import
|
|
6
61
|
*
|
|
7
62
|
* You can import a Kafka topic by using the Kafka cluster ID and Kafka topic name in the format `<Kafka cluster ID>/<Kafka topic name>`, for example:
|
|
8
63
|
*
|
|
9
|
-
* Option #1: Manage multiple Kafka clusters in the same
|
|
64
|
+
* Option #1: Manage multiple Kafka clusters in the same Pulumi Stack
|
|
10
65
|
*
|
|
11
66
|
* $ export IMPORT_KAFKA_API_KEY="<kafka_api_key>"
|
|
12
67
|
*
|
|
@@ -18,7 +73,7 @@ import * as outputs from "./types/output";
|
|
|
18
73
|
* $ pulumi import confluentcloud:index/kafkaTopic:KafkaTopic my_topic lkc-abc123/orders-123
|
|
19
74
|
* ```
|
|
20
75
|
*
|
|
21
|
-
* Option #2: Manage a single Kafka cluster in the same
|
|
76
|
+
* Option #2: Manage a single Kafka cluster in the same Pulumi Stack
|
|
22
77
|
*
|
|
23
78
|
* ```sh
|
|
24
79
|
* $ pulumi import confluentcloud:index/kafkaTopic:KafkaTopic my_topic lkc-abc123/orders-123
|
package/kafkaTopic.js
CHANGED
|
@@ -6,11 +6,66 @@ exports.KafkaTopic = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ### Option #1: Manage multiple Kafka clusters in the same Pulumi Stack
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
16
|
+
*
|
|
17
|
+
* const orders = new confluentcloud.KafkaTopic("orders", {
|
|
18
|
+
* kafkaCluster: {
|
|
19
|
+
* id: basic_cluster.id,
|
|
20
|
+
* },
|
|
21
|
+
* topicName: "orders",
|
|
22
|
+
* restEndpoint: basic_cluster.restEndpoint,
|
|
23
|
+
* credentials: {
|
|
24
|
+
* key: app_manager_kafka_api_key.id,
|
|
25
|
+
* secret: app_manager_kafka_api_key.secret,
|
|
26
|
+
* },
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ### Option #2: Manage a single Kafka cluster in the same Pulumi Stack
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
35
|
+
*
|
|
36
|
+
* const orders = new confluentcloud.KafkaTopic("orders", {topicName: "orders"});
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ## Getting Started
|
|
40
|
+
*
|
|
41
|
+
* The following end-to-end examples might help to get started with `confluentcloud.KafkaTopic` resource:
|
|
42
|
+
* * `basic-kafka-acls`: _Basic_ Kafka cluster with authorization using ACLs
|
|
43
|
+
* * `basic-kafka-acls-with-alias`: _Basic_ Kafka cluster with authorization using ACLs
|
|
44
|
+
* * `standard-kafka-acls`: _Standard_ Kafka cluster with authorization using ACLs
|
|
45
|
+
* * `standard-kafka-rbac`: _Standard_ Kafka cluster with authorization using RBAC
|
|
46
|
+
* * `dedicated-public-kafka-acls`: _Dedicated_ Kafka cluster that is accessible over the public internet with authorization using ACLs
|
|
47
|
+
* * `dedicated-public-kafka-rbac`: _Dedicated_ Kafka cluster that is accessible over the public internet with authorization using RBAC
|
|
48
|
+
* * `dedicated-privatelink-aws-kafka-acls`: _Dedicated_ Kafka cluster on AWS that is accessible via PrivateLink connections with authorization using ACLs
|
|
49
|
+
* * `dedicated-privatelink-aws-kafka-rbac`: _Dedicated_ Kafka cluster on AWS that is accessible via PrivateLink connections with authorization using RBAC
|
|
50
|
+
* * `dedicated-privatelink-azure-kafka-rbac`: _Dedicated_ Kafka cluster on Azure that is accessible via PrivateLink connections with authorization using RBAC
|
|
51
|
+
* * `dedicated-privatelink-azure-kafka-acls`: _Dedicated_ Kafka cluster on Azure that is accessible via PrivateLink connections with authorization using ACLs
|
|
52
|
+
* * `dedicated-private-service-connect-gcp-kafka-acls`: _Dedicated_ Kafka cluster on GCP that is accessible via Private Service Connect connections with authorization using ACLs
|
|
53
|
+
* * `dedicated-private-service-connect-gcp-kafka-rbac`: _Dedicated_ Kafka cluster on GCP that is accessible via Private Service Connect connections with authorization using RBAC
|
|
54
|
+
* * `dedicated-vnet-peering-azure-kafka-acls`: _Dedicated_ Kafka cluster on Azure that is accessible via VPC Peering connections with authorization using ACLs
|
|
55
|
+
* * `dedicated-vnet-peering-azure-kafka-rbac`: _Dedicated_ Kafka cluster on Azure that is accessible via VPC Peering connections with authorization using RBAC
|
|
56
|
+
* * `dedicated-vpc-peering-aws-kafka-acls`: _Dedicated_ Kafka cluster on AWS that is accessible via VPC Peering connections with authorization using ACLs
|
|
57
|
+
* * `dedicated-vpc-peering-aws-kafka-rbac`: _Dedicated_ Kafka cluster on AWS that is accessible via VPC Peering connections with authorization using RBAC
|
|
58
|
+
* * `dedicated-vpc-peering-gcp-kafka-acls`: _Dedicated_ Kafka cluster on GCP that is accessible via VPC Peering connections with authorization using ACLs
|
|
59
|
+
* * `dedicated-vpc-peering-gcp-kafka-rbac`: _Dedicated_ Kafka cluster on GCP that is accessible via VPC Peering connections with authorization using RBAC
|
|
60
|
+
* * `dedicated-transit-gateway-attachment-aws-kafka-acls`: _Dedicated_ Kafka cluster on AWS that is accessible via Transit Gateway Endpoint with authorization using ACLs
|
|
61
|
+
* * `dedicated-transit-gateway-attachment-aws-kafka-rbac`: _Dedicated_ Kafka cluster on AWS that is accessible via Transit Gateway Endpoint with authorization using RBAC
|
|
62
|
+
* * `enterprise-privatelinkattachment-aws-kafka-acls`: _Enterprise_ Kafka cluster on AWS that is accessible via PrivateLink connections with authorization using ACLs
|
|
63
|
+
*
|
|
9
64
|
* ## Import
|
|
10
65
|
*
|
|
11
66
|
* You can import a Kafka topic by using the Kafka cluster ID and Kafka topic name in the format `<Kafka cluster ID>/<Kafka topic name>`, for example:
|
|
12
67
|
*
|
|
13
|
-
* Option #1: Manage multiple Kafka clusters in the same
|
|
68
|
+
* Option #1: Manage multiple Kafka clusters in the same Pulumi Stack
|
|
14
69
|
*
|
|
15
70
|
* $ export IMPORT_KAFKA_API_KEY="<kafka_api_key>"
|
|
16
71
|
*
|
|
@@ -22,7 +77,7 @@ const utilities = require("./utilities");
|
|
|
22
77
|
* $ pulumi import confluentcloud:index/kafkaTopic:KafkaTopic my_topic lkc-abc123/orders-123
|
|
23
78
|
* ```
|
|
24
79
|
*
|
|
25
|
-
* Option #2: Manage a single Kafka cluster in the same
|
|
80
|
+
* Option #2: Manage a single Kafka cluster in the same Pulumi Stack
|
|
26
81
|
*
|
|
27
82
|
* ```sh
|
|
28
83
|
* $ pulumi import confluentcloud:index/kafkaTopic:KafkaTopic my_topic lkc-abc123/orders-123
|
package/kafkaTopic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kafkaTopic.js","sourceRoot":"","sources":["../kafkaTopic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"kafkaTopic.js","sourceRoot":"","sources":["../kafkaTopic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyIG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,I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Y,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA3FL,gCA4FC;AA9EG,gBAAgB;AACO,uBAAY,GAAG,4CAA4C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/confluentcloud",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.1-alpha.1730411108",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Confluent cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"pulumi": {
|
|
25
25
|
"resource": true,
|
|
26
26
|
"name": "confluentcloud",
|
|
27
|
-
"version": "2.9.
|
|
27
|
+
"version": "2.9.1-alpha.1730411108"
|
|
28
28
|
}
|
|
29
29
|
}
|
package/schema.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
5
7
|
* ## Import
|
|
6
8
|
*
|
|
7
9
|
* You can import a Schema by using the Schema Registry cluster ID, Subject name, and unique identifier (or `latest` when `recreate_on_update = false`) of the Schema in the format `<Schema Registry cluster ID>/<Subject name>/<Schema identifier>`, for example:
|
package/schema.js
CHANGED
|
@@ -6,6 +6,8 @@ exports.Schema = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
9
11
|
* ## Import
|
|
10
12
|
*
|
|
11
13
|
* You can import a Schema by using the Schema Registry cluster ID, Subject name, and unique identifier (or `latest` when `recreate_on_update = false`) of the Schema in the format `<Schema Registry cluster ID>/<Subject name>/<Schema identifier>`, for example:
|
package/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../schema.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../schema.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IAgED,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,QAAQ,CA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AACO,mBAAY,GAAG,oCAAoC,CAAC"}
|
package/schemaExporter.d.ts
CHANGED
|
@@ -2,6 +2,58 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
6
|
+
*
|
|
7
|
+
* `confluentcloud.SchemaExporter` provides a Schema Exporter resource that enables creating, editing, and deleting Schema Exporters on Confluent Cloud.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ### Option #1: Manage multiple Schema Registry clusters in the same Pulumi Stack
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
16
|
+
*
|
|
17
|
+
* const main = new confluentcloud.SchemaExporter("main", {
|
|
18
|
+
* schemaRegistryCluster: {
|
|
19
|
+
* id: essentials.id,
|
|
20
|
+
* },
|
|
21
|
+
* restEndpoint: essentials.restEndpoint,
|
|
22
|
+
* credentials: {
|
|
23
|
+
* key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
|
|
24
|
+
* secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
|
|
25
|
+
* },
|
|
26
|
+
* name: "test-exporter",
|
|
27
|
+
* subjects: ["foo"],
|
|
28
|
+
* destinationSchemaRegistryCluster: {
|
|
29
|
+
* restEndpoint: destination.restEndpoint,
|
|
30
|
+
* credentials: {
|
|
31
|
+
* key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>",
|
|
32
|
+
* secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>",
|
|
33
|
+
* },
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ### Option #2: Manage a single Schema Registry cluster in the same Pulumi Stack
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
43
|
+
*
|
|
44
|
+
* const main = new confluentcloud.SchemaExporter("main", {
|
|
45
|
+
* name: "test-exporter",
|
|
46
|
+
* subjects: ["foo"],
|
|
47
|
+
* destinationSchemaRegistryCluster: {
|
|
48
|
+
* restEndpoint: destination.restEndpoint,
|
|
49
|
+
* credentials: {
|
|
50
|
+
* key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>",
|
|
51
|
+
* secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>",
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
5
57
|
* ## Import
|
|
6
58
|
*
|
|
7
59
|
* You can import a Schema Exporter by using the Schema Registry cluster ID, Schema Exporter name in the format `<Schema Registry cluster ID>/<Schema Exporter name>`, for example:
|
package/schemaExporter.js
CHANGED
|
@@ -6,6 +6,58 @@ exports.SchemaExporter = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
10
|
+
*
|
|
11
|
+
* `confluentcloud.SchemaExporter` provides a Schema Exporter resource that enables creating, editing, and deleting Schema Exporters on Confluent Cloud.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ### Option #1: Manage multiple Schema Registry clusters in the same Pulumi Stack
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
20
|
+
*
|
|
21
|
+
* const main = new confluentcloud.SchemaExporter("main", {
|
|
22
|
+
* schemaRegistryCluster: {
|
|
23
|
+
* id: essentials.id,
|
|
24
|
+
* },
|
|
25
|
+
* restEndpoint: essentials.restEndpoint,
|
|
26
|
+
* credentials: {
|
|
27
|
+
* key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
|
|
28
|
+
* secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
|
|
29
|
+
* },
|
|
30
|
+
* name: "test-exporter",
|
|
31
|
+
* subjects: ["foo"],
|
|
32
|
+
* destinationSchemaRegistryCluster: {
|
|
33
|
+
* restEndpoint: destination.restEndpoint,
|
|
34
|
+
* credentials: {
|
|
35
|
+
* key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>",
|
|
36
|
+
* secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>",
|
|
37
|
+
* },
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* ### Option #2: Manage a single Schema Registry cluster in the same Pulumi Stack
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
47
|
+
*
|
|
48
|
+
* const main = new confluentcloud.SchemaExporter("main", {
|
|
49
|
+
* name: "test-exporter",
|
|
50
|
+
* subjects: ["foo"],
|
|
51
|
+
* destinationSchemaRegistryCluster: {
|
|
52
|
+
* restEndpoint: destination.restEndpoint,
|
|
53
|
+
* credentials: {
|
|
54
|
+
* key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.destination>",
|
|
55
|
+
* secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.destination>",
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
9
61
|
* ## Import
|
|
10
62
|
*
|
|
11
63
|
* You can import a Schema Exporter by using the Schema Registry cluster ID, Schema Exporter name in the format `<Schema Registry cluster ID>/<Schema Exporter name>`, for example:
|
package/schemaExporter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaExporter.js","sourceRoot":"","sources":["../schemaExporter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"schemaExporter.js","sourceRoot":"","sources":["../schemaExporter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAqDD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,C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