@pulumi/confluentcloud 0.1.0 → 1.0.0
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/README.md +3 -0
- package/apiKey.d.ts +14 -2
- package/apiKey.js +2 -0
- package/apiKey.js.map +1 -1
- package/config/vars.d.ts +14 -2
- package/config/vars.js +22 -4
- package/config/vars.js.map +1 -1
- package/connector.d.ts +12 -0
- package/connector.js +2 -0
- package/connector.js.map +1 -1
- package/getEnvironment.d.ts +2 -0
- package/getEnvironment.js +2 -0
- package/getEnvironment.js.map +1 -1
- package/getKafkaCluster.d.ts +6 -4
- package/getKafkaCluster.js +2 -0
- package/getKafkaCluster.js.map +1 -1
- package/getKafkaTopic.d.ts +11 -9
- package/getKafkaTopic.js +4 -2
- package/getKafkaTopic.js.map +1 -1
- package/getNetwork.d.ts +2 -0
- package/getNetwork.js +2 -0
- package/getNetwork.js.map +1 -1
- package/getOrganization.d.ts +2 -0
- package/getOrganization.js +2 -0
- package/getOrganization.js.map +1 -1
- package/getPeering.d.ts +87 -0
- package/getPeering.js +51 -0
- package/getPeering.js.map +1 -0
- package/getPrivateLinkAccess.d.ts +83 -0
- package/getPrivateLinkAccess.js +51 -0
- package/getPrivateLinkAccess.js.map +1 -0
- package/getRoleBinding.d.ts +56 -0
- package/getRoleBinding.js +39 -0
- package/getRoleBinding.js.map +1 -0
- package/getServiceAccount.d.ts +2 -0
- package/getServiceAccount.js +2 -0
- package/getServiceAccount.js.map +1 -1
- package/getUser.d.ts +2 -0
- package/getUser.js +2 -0
- package/getUser.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/kafkaAcl.d.ts +15 -15
- package/kafkaAcl.js +3 -9
- package/kafkaAcl.js.map +1 -1
- package/kafkaCluster.d.ts +8 -8
- package/kafkaCluster.js +2 -2
- package/kafkaCluster.js.map +1 -1
- package/kafkaTopic.d.ts +18 -18
- package/kafkaTopic.js +3 -9
- package/kafkaTopic.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +2 -1
- package/package.json.dev +4 -3
- package/provider.d.ts +28 -4
- package/provider.js +5 -2
- package/provider.js.map +1 -1
- package/types/input.d.ts +53 -29
- package/types/output.d.ts +82 -0
package/kafkaTopic.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
3
3
|
/**
|
|
4
4
|
* ## Import
|
|
5
5
|
*
|
|
6
|
-
* 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$ export
|
|
6
|
+
* 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$ export IMPORT_KAFKA_API_KEY="<kafka_api_key>" $ export IMPORT_KAFKA_API_SECRET="<kafka_api_secret>" $ export IMPORT_KAFKA_REST_ENDPOINT="<kafka_rest_endpoint>"
|
|
7
7
|
*
|
|
8
8
|
* ```sh
|
|
9
9
|
* $ pulumi import confluentcloud:index/kafkaTopic:KafkaTopic my_topic lkc-abc123/orders-123
|
|
@@ -36,18 +36,18 @@ export declare class KafkaTopic extends pulumi.CustomResource {
|
|
|
36
36
|
/**
|
|
37
37
|
* The Cluster API Credentials.
|
|
38
38
|
*/
|
|
39
|
-
readonly credentials: pulumi.Output<outputs.KafkaTopicCredentials>;
|
|
40
|
-
/**
|
|
41
|
-
* The REST endpoint of the Kafka cluster, for example, `https://pkc-00000.us-central1.gcp.confluent.cloud:443`).
|
|
42
|
-
*/
|
|
43
|
-
readonly httpEndpoint: pulumi.Output<string>;
|
|
39
|
+
readonly credentials: pulumi.Output<outputs.KafkaTopicCredentials | undefined>;
|
|
44
40
|
readonly kafkaCluster: pulumi.Output<outputs.KafkaTopicKafkaCluster>;
|
|
45
41
|
/**
|
|
46
42
|
* The number of partitions to create in the topic. Defaults to `6`.
|
|
47
43
|
*/
|
|
48
44
|
readonly partitionsCount: pulumi.Output<number | undefined>;
|
|
49
45
|
/**
|
|
50
|
-
* The
|
|
46
|
+
* The REST endpoint of the Kafka cluster, for example, `https://pkc-00000.us-central1.gcp.confluent.cloud:443`).
|
|
47
|
+
*/
|
|
48
|
+
readonly restEndpoint: pulumi.Output<string | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* The name of the topic, for example, `orders-1`. The topic name can be up to 249 characters in length, and can include the following characters: a-z, A-Z, 0-9, . (dot), _ (underscore), and - (dash). As a best practice, we recommend against using any personally identifiable information (PII) when naming your topic.
|
|
51
51
|
*/
|
|
52
52
|
readonly topicName: pulumi.Output<string>;
|
|
53
53
|
/**
|
|
@@ -73,17 +73,17 @@ export interface KafkaTopicState {
|
|
|
73
73
|
* The Cluster API Credentials.
|
|
74
74
|
*/
|
|
75
75
|
credentials?: pulumi.Input<inputs.KafkaTopicCredentials>;
|
|
76
|
-
/**
|
|
77
|
-
* The REST endpoint of the Kafka cluster, for example, `https://pkc-00000.us-central1.gcp.confluent.cloud:443`).
|
|
78
|
-
*/
|
|
79
|
-
httpEndpoint?: pulumi.Input<string>;
|
|
80
76
|
kafkaCluster?: pulumi.Input<inputs.KafkaTopicKafkaCluster>;
|
|
81
77
|
/**
|
|
82
78
|
* The number of partitions to create in the topic. Defaults to `6`.
|
|
83
79
|
*/
|
|
84
80
|
partitionsCount?: pulumi.Input<number>;
|
|
85
81
|
/**
|
|
86
|
-
* The
|
|
82
|
+
* The REST endpoint of the Kafka cluster, for example, `https://pkc-00000.us-central1.gcp.confluent.cloud:443`).
|
|
83
|
+
*/
|
|
84
|
+
restEndpoint?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The name of the topic, for example, `orders-1`. The topic name can be up to 249 characters in length, and can include the following characters: a-z, A-Z, 0-9, . (dot), _ (underscore), and - (dash). As a best practice, we recommend against using any personally identifiable information (PII) when naming your topic.
|
|
87
87
|
*/
|
|
88
88
|
topicName?: pulumi.Input<string>;
|
|
89
89
|
}
|
|
@@ -100,18 +100,18 @@ export interface KafkaTopicArgs {
|
|
|
100
100
|
/**
|
|
101
101
|
* The Cluster API Credentials.
|
|
102
102
|
*/
|
|
103
|
-
credentials
|
|
104
|
-
/**
|
|
105
|
-
* The REST endpoint of the Kafka cluster, for example, `https://pkc-00000.us-central1.gcp.confluent.cloud:443`).
|
|
106
|
-
*/
|
|
107
|
-
httpEndpoint: pulumi.Input<string>;
|
|
103
|
+
credentials?: pulumi.Input<inputs.KafkaTopicCredentials>;
|
|
108
104
|
kafkaCluster: pulumi.Input<inputs.KafkaTopicKafkaCluster>;
|
|
109
105
|
/**
|
|
110
106
|
* The number of partitions to create in the topic. Defaults to `6`.
|
|
111
107
|
*/
|
|
112
108
|
partitionsCount?: pulumi.Input<number>;
|
|
113
109
|
/**
|
|
114
|
-
* The
|
|
110
|
+
* The REST endpoint of the Kafka cluster, for example, `https://pkc-00000.us-central1.gcp.confluent.cloud:443`).
|
|
111
|
+
*/
|
|
112
|
+
restEndpoint?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The name of the topic, for example, `orders-1`. The topic name can be up to 249 characters in length, and can include the following characters: a-z, A-Z, 0-9, . (dot), _ (underscore), and - (dash). As a best practice, we recommend against using any personally identifiable information (PII) when naming your topic.
|
|
115
115
|
*/
|
|
116
116
|
topicName: pulumi.Input<string>;
|
|
117
117
|
}
|
package/kafkaTopic.js
CHANGED
|
@@ -8,7 +8,7 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## Import
|
|
10
10
|
*
|
|
11
|
-
* 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$ export
|
|
11
|
+
* 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$ export IMPORT_KAFKA_API_KEY="<kafka_api_key>" $ export IMPORT_KAFKA_API_SECRET="<kafka_api_secret>" $ export IMPORT_KAFKA_REST_ENDPOINT="<kafka_rest_endpoint>"
|
|
12
12
|
*
|
|
13
13
|
* ```sh
|
|
14
14
|
* $ pulumi import confluentcloud:index/kafkaTopic:KafkaTopic my_topic lkc-abc123/orders-123
|
|
@@ -24,19 +24,13 @@ class KafkaTopic extends pulumi.CustomResource {
|
|
|
24
24
|
const state = argsOrState;
|
|
25
25
|
resourceInputs["config"] = state ? state.config : undefined;
|
|
26
26
|
resourceInputs["credentials"] = state ? state.credentials : undefined;
|
|
27
|
-
resourceInputs["httpEndpoint"] = state ? state.httpEndpoint : undefined;
|
|
28
27
|
resourceInputs["kafkaCluster"] = state ? state.kafkaCluster : undefined;
|
|
29
28
|
resourceInputs["partitionsCount"] = state ? state.partitionsCount : undefined;
|
|
29
|
+
resourceInputs["restEndpoint"] = state ? state.restEndpoint : undefined;
|
|
30
30
|
resourceInputs["topicName"] = state ? state.topicName : undefined;
|
|
31
31
|
}
|
|
32
32
|
else {
|
|
33
33
|
const args = argsOrState;
|
|
34
|
-
if ((!args || args.credentials === undefined) && !opts.urn) {
|
|
35
|
-
throw new Error("Missing required property 'credentials'");
|
|
36
|
-
}
|
|
37
|
-
if ((!args || args.httpEndpoint === undefined) && !opts.urn) {
|
|
38
|
-
throw new Error("Missing required property 'httpEndpoint'");
|
|
39
|
-
}
|
|
40
34
|
if ((!args || args.kafkaCluster === undefined) && !opts.urn) {
|
|
41
35
|
throw new Error("Missing required property 'kafkaCluster'");
|
|
42
36
|
}
|
|
@@ -45,9 +39,9 @@ class KafkaTopic extends pulumi.CustomResource {
|
|
|
45
39
|
}
|
|
46
40
|
resourceInputs["config"] = args ? args.config : undefined;
|
|
47
41
|
resourceInputs["credentials"] = args ? args.credentials : undefined;
|
|
48
|
-
resourceInputs["httpEndpoint"] = args ? args.httpEndpoint : undefined;
|
|
49
42
|
resourceInputs["kafkaCluster"] = args ? args.kafkaCluster : undefined;
|
|
50
43
|
resourceInputs["partitionsCount"] = args ? args.partitionsCount : undefined;
|
|
44
|
+
resourceInputs["restEndpoint"] = args ? args.restEndpoint : undefined;
|
|
51
45
|
resourceInputs["topicName"] = args ? args.topicName : undefined;
|
|
52
46
|
}
|
|
53
47
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
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;AAEzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IA0DjD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"kafkaTopic.js","sourceRoot":"","sources":["../kafkaTopic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IA0DjD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAA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G,4CAA4C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/confluentcloud",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "v1.0.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Confluent cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
15
|
-
"install": "node scripts/install-pulumi-plugin.js resource confluentcloud
|
|
15
|
+
"install": "node scripts/install-pulumi-plugin.js resource confluentcloud v1.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"typescript": "^4.3.5"
|
|
24
24
|
},
|
|
25
25
|
"pulumi": {
|
|
26
|
-
"resource": true
|
|
26
|
+
"resource": true,
|
|
27
|
+
"name": "confluentcloud"
|
|
27
28
|
}
|
|
28
29
|
}
|
package/package.json.bak
CHANGED
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/confluentcloud",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "v1.0.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Confluent cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
15
|
-
"install": "node scripts/install-pulumi-plugin.js resource confluentcloud
|
|
15
|
+
"install": "node scripts/install-pulumi-plugin.js resource confluentcloud v1.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@pulumi/pulumi": "^3.0.0"
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"typescript": "^4.3.5"
|
|
24
24
|
},
|
|
25
25
|
"pulumi": {
|
|
26
|
-
"resource": true
|
|
26
|
+
"resource": true,
|
|
27
|
+
"name": "confluentcloud"
|
|
27
28
|
}
|
|
28
29
|
}
|
package/provider.d.ts
CHANGED
|
@@ -14,15 +14,27 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
14
14
|
/**
|
|
15
15
|
* The Confluent Cloud API Key.
|
|
16
16
|
*/
|
|
17
|
-
readonly
|
|
17
|
+
readonly cloudApiKey: pulumi.Output<string | undefined>;
|
|
18
18
|
/**
|
|
19
19
|
* The Confluent Cloud API Secret.
|
|
20
20
|
*/
|
|
21
|
-
readonly
|
|
21
|
+
readonly cloudApiSecret: pulumi.Output<string | undefined>;
|
|
22
22
|
/**
|
|
23
23
|
* The base endpoint of Confluent Cloud API.
|
|
24
24
|
*/
|
|
25
25
|
readonly endpoint: pulumi.Output<string | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* The Kafka Cluster API Key.
|
|
28
|
+
*/
|
|
29
|
+
readonly kafkaApiKey: pulumi.Output<string | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* The Kafka Cluster API Secret.
|
|
32
|
+
*/
|
|
33
|
+
readonly kafkaApiSecret: pulumi.Output<string | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* The Kafka Cluster REST Endpoint.
|
|
36
|
+
*/
|
|
37
|
+
readonly kafkaRestEndpoint: pulumi.Output<string | undefined>;
|
|
26
38
|
/**
|
|
27
39
|
* Create a Provider resource with the given unique name, arguments, and options.
|
|
28
40
|
*
|
|
@@ -39,13 +51,25 @@ export interface ProviderArgs {
|
|
|
39
51
|
/**
|
|
40
52
|
* The Confluent Cloud API Key.
|
|
41
53
|
*/
|
|
42
|
-
|
|
54
|
+
cloudApiKey?: pulumi.Input<string>;
|
|
43
55
|
/**
|
|
44
56
|
* The Confluent Cloud API Secret.
|
|
45
57
|
*/
|
|
46
|
-
|
|
58
|
+
cloudApiSecret?: pulumi.Input<string>;
|
|
47
59
|
/**
|
|
48
60
|
* The base endpoint of Confluent Cloud API.
|
|
49
61
|
*/
|
|
50
62
|
endpoint?: pulumi.Input<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The Kafka Cluster API Key.
|
|
65
|
+
*/
|
|
66
|
+
kafkaApiKey?: pulumi.Input<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The Kafka Cluster API Secret.
|
|
69
|
+
*/
|
|
70
|
+
kafkaApiSecret?: pulumi.Input<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The Kafka Cluster REST Endpoint.
|
|
73
|
+
*/
|
|
74
|
+
kafkaRestEndpoint?: pulumi.Input<string>;
|
|
51
75
|
}
|
package/provider.js
CHANGED
|
@@ -23,9 +23,12 @@ class Provider extends pulumi.ProviderResource {
|
|
|
23
23
|
let resourceInputs = {};
|
|
24
24
|
opts = opts || {};
|
|
25
25
|
{
|
|
26
|
-
resourceInputs["
|
|
27
|
-
resourceInputs["
|
|
26
|
+
resourceInputs["cloudApiKey"] = args ? args.cloudApiKey : undefined;
|
|
27
|
+
resourceInputs["cloudApiSecret"] = args ? args.cloudApiSecret : undefined;
|
|
28
28
|
resourceInputs["endpoint"] = args ? args.endpoint : undefined;
|
|
29
|
+
resourceInputs["kafkaApiKey"] = args ? args.kafkaApiKey : undefined;
|
|
30
|
+
resourceInputs["kafkaApiSecret"] = args ? args.kafkaApiSecret : undefined;
|
|
31
|
+
resourceInputs["kafkaRestEndpoint"] = args ? args.kafkaRestEndpoint : undefined;
|
|
29
32
|
}
|
|
30
33
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
31
34
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yC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AI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAxDD;;;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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BA6DC;AA5DG,gBAAgB;AACO,qBAAY,GAAG,gBAAgB,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -51,25 +51,25 @@ export interface GetKafkaClusterBasicArgs {
|
|
|
51
51
|
}
|
|
52
52
|
export interface GetKafkaClusterBasic {
|
|
53
53
|
}
|
|
54
|
-
export interface
|
|
54
|
+
export interface GetKafkaClusterDedicatedArgs {
|
|
55
55
|
/**
|
|
56
56
|
* (Required Number) The number of Confluent Kafka Units (CKUs) for Dedicated cluster types. The minimum number of CKUs for `SINGLE_ZONE` dedicated clusters is `1` whereas `MULTI_ZONE` dedicated clusters must have more than `2` CKUs.
|
|
57
57
|
*/
|
|
58
|
-
cku?: number
|
|
58
|
+
cku?: pulumi.Input<number>;
|
|
59
59
|
/**
|
|
60
60
|
* (Optional String) The ID of the encryption key that is used to encrypt the data in the Kafka cluster, for example, `arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` (key Amazon Resource Name) for AWS or `projects/my-test-project/locations/global/keyRings/test-byok/cryptoKeys/test` for GCP. Append required permissions to the key policy before creating a Kafka cluster, see [Encrypt Confluent Cloud Clusters using Self-Managed Keys](https://docs.confluent.io/cloud/current/clusters/byok/index.html) for more details. At the moment, self-managed encryption keys are only available for the Dedicated clusters on AWS or GCP.
|
|
61
61
|
*/
|
|
62
|
-
encryptionKey?: string
|
|
62
|
+
encryptionKey?: pulumi.Input<string>;
|
|
63
63
|
}
|
|
64
|
-
export interface
|
|
64
|
+
export interface GetKafkaClusterDedicated {
|
|
65
65
|
/**
|
|
66
66
|
* (Required Number) The number of Confluent Kafka Units (CKUs) for Dedicated cluster types. The minimum number of CKUs for `SINGLE_ZONE` dedicated clusters is `1` whereas `MULTI_ZONE` dedicated clusters must have more than `2` CKUs.
|
|
67
67
|
*/
|
|
68
|
-
cku?:
|
|
68
|
+
cku?: number;
|
|
69
69
|
/**
|
|
70
70
|
* (Optional String) The ID of the encryption key that is used to encrypt the data in the Kafka cluster, for example, `arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` (key Amazon Resource Name) for AWS or `projects/my-test-project/locations/global/keyRings/test-byok/cryptoKeys/test` for GCP. Append required permissions to the key policy before creating a Kafka cluster, see [Encrypt Confluent Cloud Clusters using Self-Managed Keys](https://docs.confluent.io/cloud/current/clusters/byok/index.html) for more details. At the moment, self-managed encryption keys are only available for the Dedicated clusters on AWS or GCP.
|
|
71
71
|
*/
|
|
72
|
-
encryptionKey?:
|
|
72
|
+
encryptionKey?: string;
|
|
73
73
|
}
|
|
74
74
|
export interface GetKafkaClusterEnvironmentArgs {
|
|
75
75
|
/**
|
|
@@ -107,37 +107,45 @@ export interface GetKafkaTopicCredentials {
|
|
|
107
107
|
*/
|
|
108
108
|
secret: string;
|
|
109
109
|
}
|
|
110
|
-
export interface
|
|
110
|
+
export interface GetKafkaTopicKafkaCluster {
|
|
111
111
|
/**
|
|
112
112
|
* The ID of the Kafka cluster, for example, `lkc-abc123`.
|
|
113
113
|
*/
|
|
114
|
-
id:
|
|
114
|
+
id: string;
|
|
115
115
|
}
|
|
116
|
-
export interface
|
|
116
|
+
export interface GetKafkaTopicKafkaClusterArgs {
|
|
117
117
|
/**
|
|
118
118
|
* The ID of the Kafka cluster, for example, `lkc-abc123`.
|
|
119
119
|
*/
|
|
120
|
-
id: string
|
|
120
|
+
id: pulumi.Input<string>;
|
|
121
121
|
}
|
|
122
|
-
export interface
|
|
122
|
+
export interface GetNetworkAw {
|
|
123
123
|
/**
|
|
124
124
|
* (Optional String) The AWS VPC endpoint service for the network (used for Private Link) if available.
|
|
125
125
|
*/
|
|
126
|
-
privateLinkEndpointService?:
|
|
126
|
+
privateLinkEndpointService?: string;
|
|
127
127
|
/**
|
|
128
128
|
* (Required String) The AWS VPC ID for the network.
|
|
129
129
|
*/
|
|
130
|
-
vpc?:
|
|
130
|
+
vpc?: string;
|
|
131
131
|
}
|
|
132
|
-
export interface
|
|
132
|
+
export interface GetNetworkAwArgs {
|
|
133
133
|
/**
|
|
134
134
|
* (Optional String) The AWS VPC endpoint service for the network (used for Private Link) if available.
|
|
135
135
|
*/
|
|
136
|
-
privateLinkEndpointService?: string
|
|
136
|
+
privateLinkEndpointService?: pulumi.Input<string>;
|
|
137
137
|
/**
|
|
138
138
|
* (Required String) The AWS VPC ID for the network.
|
|
139
139
|
*/
|
|
140
|
-
vpc?: string
|
|
140
|
+
vpc?: pulumi.Input<string>;
|
|
141
|
+
}
|
|
142
|
+
export interface GetNetworkAzureArgs {
|
|
143
|
+
/**
|
|
144
|
+
* (Optional Map) The mapping of zones to Private Link Service Aliases if available. Keys are zones and values are [Azure Private Link Service Aliases](https://docs.microsoft.com/en-us/azure/private-link/private-link-service-overview#share-your-service).
|
|
145
|
+
*/
|
|
146
|
+
privateLinkServiceAliases?: pulumi.Input<{
|
|
147
|
+
[key: string]: pulumi.Input<string>;
|
|
148
|
+
}>;
|
|
141
149
|
}
|
|
142
150
|
export interface GetNetworkAzure {
|
|
143
151
|
/**
|
|
@@ -147,13 +155,11 @@ export interface GetNetworkAzure {
|
|
|
147
155
|
[key: string]: string;
|
|
148
156
|
};
|
|
149
157
|
}
|
|
150
|
-
export interface
|
|
158
|
+
export interface GetNetworkEnvironment {
|
|
151
159
|
/**
|
|
152
|
-
*
|
|
160
|
+
* The ID of the Environment that the Network belongs to, for example, `env-xyz456`.
|
|
153
161
|
*/
|
|
154
|
-
|
|
155
|
-
[key: string]: pulumi.Input<string>;
|
|
156
|
-
}>;
|
|
162
|
+
id: string;
|
|
157
163
|
}
|
|
158
164
|
export interface GetNetworkEnvironmentArgs {
|
|
159
165
|
/**
|
|
@@ -161,11 +167,15 @@ export interface GetNetworkEnvironmentArgs {
|
|
|
161
167
|
*/
|
|
162
168
|
id: pulumi.Input<string>;
|
|
163
169
|
}
|
|
164
|
-
export interface
|
|
170
|
+
export interface GetNetworkGcpArgs {
|
|
165
171
|
/**
|
|
166
|
-
*
|
|
172
|
+
* (Required String) The GCP project.
|
|
167
173
|
*/
|
|
168
|
-
|
|
174
|
+
project?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* (Required String) The GCP VPC network name.
|
|
177
|
+
*/
|
|
178
|
+
vpcNetwork?: pulumi.Input<string>;
|
|
169
179
|
}
|
|
170
180
|
export interface GetNetworkGcp {
|
|
171
181
|
/**
|
|
@@ -177,15 +187,29 @@ export interface GetNetworkGcp {
|
|
|
177
187
|
*/
|
|
178
188
|
vpcNetwork?: string;
|
|
179
189
|
}
|
|
180
|
-
export interface
|
|
190
|
+
export interface GetPeeringEnvironment {
|
|
181
191
|
/**
|
|
182
|
-
*
|
|
192
|
+
* The ID of the Environment that the Peering belongs to, for example, `env-xyz456`.
|
|
183
193
|
*/
|
|
184
|
-
|
|
194
|
+
id: string;
|
|
195
|
+
}
|
|
196
|
+
export interface GetPeeringEnvironmentArgs {
|
|
185
197
|
/**
|
|
186
|
-
*
|
|
198
|
+
* The ID of the Environment that the Peering belongs to, for example, `env-xyz456`.
|
|
187
199
|
*/
|
|
188
|
-
|
|
200
|
+
id: pulumi.Input<string>;
|
|
201
|
+
}
|
|
202
|
+
export interface GetPrivateLinkAccessEnvironment {
|
|
203
|
+
/**
|
|
204
|
+
* The ID of the Environment that the Private Link Access belongs to, for example, `env-xyz456`.
|
|
205
|
+
*/
|
|
206
|
+
id: string;
|
|
207
|
+
}
|
|
208
|
+
export interface GetPrivateLinkAccessEnvironmentArgs {
|
|
209
|
+
/**
|
|
210
|
+
* The ID of the Environment that the Private Link Access belongs to, for example, `env-xyz456`.
|
|
211
|
+
*/
|
|
212
|
+
id: pulumi.Input<string>;
|
|
189
213
|
}
|
|
190
214
|
export interface KafkaAclCredentials {
|
|
191
215
|
/**
|
package/types/output.d.ts
CHANGED
|
@@ -122,6 +122,88 @@ export interface GetNetworkGcp {
|
|
|
122
122
|
*/
|
|
123
123
|
vpcNetwork: string;
|
|
124
124
|
}
|
|
125
|
+
export interface GetPeeringAw {
|
|
126
|
+
/**
|
|
127
|
+
* (Required String) The AWS Account ID of the peer VPC owner. You can find your AWS Account ID [here](https://console.aws.amazon.com/billing/home?#/account) under **My Account** section of the AWS Management Console. Must be a **12 character string**.
|
|
128
|
+
*/
|
|
129
|
+
account: string;
|
|
130
|
+
/**
|
|
131
|
+
* (Required String) The region of the Azure peer VNet.
|
|
132
|
+
*/
|
|
133
|
+
customerRegion: string;
|
|
134
|
+
/**
|
|
135
|
+
* (Required String) The AWS VPC CIDR blocks or subsets. This must be from the supported CIDR blocks and must not overlap with your Confluent Cloud CIDR block or any other network peering connection VPC CIDR (learn more about the requirements [here](https://docs.confluent.io/cloud/current/networking/peering/aws-peering.html#vpc-peering-on-aws)). You can find AWS VPC CIDR [here](https://console.aws.amazon.com/vpc/) under **Your VPCs > Target VPC > Details** section of the AWS Management Console.
|
|
136
|
+
*/
|
|
137
|
+
routes: string[];
|
|
138
|
+
/**
|
|
139
|
+
* (Required String) The AWS VPC ID of the peer VPC that you're peering with Confluent Cloud. You can find your AWS VPC ID [here](https://console.aws.amazon.com/vpc/) under **Your VPCs** section of the AWS Management Console. Must start with `vpc-`.
|
|
140
|
+
*/
|
|
141
|
+
vpc: string;
|
|
142
|
+
}
|
|
143
|
+
export interface GetPeeringAzure {
|
|
144
|
+
/**
|
|
145
|
+
* (Required String) The region of the Azure peer VNet.
|
|
146
|
+
*/
|
|
147
|
+
customerRegion: string;
|
|
148
|
+
/**
|
|
149
|
+
* (Required String) The Tenant ID that represents an organization in Azure Active Directory. You can find your Azure Tenant ID in the [Azure Portal under Azure Active Directory](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Overview). Must be a valid **32 character UUID string**.
|
|
150
|
+
*/
|
|
151
|
+
tenant: string;
|
|
152
|
+
/**
|
|
153
|
+
* (Required String) The resource (composite) ID of the peer Virtual Network that you're peering with Confluent Cloud, in the format `/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.Network/virtualNetworks/<VNet name>`. You can find Subscription ID, Resource Group Name and your VNet name under **Virtual Networks > Target VNet > Essentials** section of your [Microsoft Azure Portal](https://portal.azure.com/).
|
|
154
|
+
*/
|
|
155
|
+
vnet: string;
|
|
156
|
+
}
|
|
157
|
+
export interface GetPeeringEnvironment {
|
|
158
|
+
/**
|
|
159
|
+
* The ID of the Environment that the Peering belongs to, for example, `env-xyz456`.
|
|
160
|
+
*/
|
|
161
|
+
id: string;
|
|
162
|
+
}
|
|
163
|
+
export interface GetPeeringGcp {
|
|
164
|
+
/**
|
|
165
|
+
* (Optional Boolean) The Import Custom Routes option enables connectivity to a Confluent Cloud cluster in Google Cloud from customer premise or other clouds, such as AWS and Azure, through a customer VPC that is peered with Confluent Cloud in the same region. Defaults to `false`. Learn more about considerations / limitations of the Import Custom Routes option [here](https://docs.confluent.io/cloud/current/networking/peering/gcp-peering.html#import-custom-routes).
|
|
166
|
+
*/
|
|
167
|
+
importCustomRoutes: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* (Required String) The GCP Project ID. You can find your Google Cloud Project ID under **Project ID** section of your [Google Cloud Console dashboard](https://console.cloud.google.com/home/dashboard).
|
|
170
|
+
*/
|
|
171
|
+
project: string;
|
|
172
|
+
/**
|
|
173
|
+
* (Required String) The VPC network name that you're peering to Confluent Cloud. You can find your VPC network name under **VPC Networks** section of your [Google Cloud Console](https://console.cloud.google.com/networking/networks/list).
|
|
174
|
+
*/
|
|
175
|
+
vpcNetwork: string;
|
|
176
|
+
}
|
|
177
|
+
export interface GetPeeringNetwork {
|
|
178
|
+
/**
|
|
179
|
+
* The ID of the Environment that the Peering belongs to, for example, `env-xyz456`.
|
|
180
|
+
*/
|
|
181
|
+
id: string;
|
|
182
|
+
}
|
|
183
|
+
export interface GetPrivateLinkAccessAw {
|
|
184
|
+
/**
|
|
185
|
+
* (Required String) The AWS account ID to enable for the Private Link Access. You can find your AWS account ID [here](https://console.aws.amazon.com/billing/home?#/account) under **My Account** in your AWS Management Console. Must be a **12 character string**.
|
|
186
|
+
*/
|
|
187
|
+
account: string;
|
|
188
|
+
}
|
|
189
|
+
export interface GetPrivateLinkAccessAzure {
|
|
190
|
+
/**
|
|
191
|
+
* (Required String) The Azure subscription ID to enable for the Private Link Access. You can find your Azure subscription ID in the subscription section of your [Microsoft Azure Portal](https://portal.azure.com/#blade/Microsoft_Azure_Billing/SubscriptionsBlade). Must be a valid **32 character UUID string**.
|
|
192
|
+
*/
|
|
193
|
+
subscription: string;
|
|
194
|
+
}
|
|
195
|
+
export interface GetPrivateLinkAccessEnvironment {
|
|
196
|
+
/**
|
|
197
|
+
* The ID of the Environment that the Private Link Access belongs to, for example, `env-xyz456`.
|
|
198
|
+
*/
|
|
199
|
+
id: string;
|
|
200
|
+
}
|
|
201
|
+
export interface GetPrivateLinkAccessNetwork {
|
|
202
|
+
/**
|
|
203
|
+
* The ID of the Environment that the Private Link Access belongs to, for example, `env-xyz456`.
|
|
204
|
+
*/
|
|
205
|
+
id: string;
|
|
206
|
+
}
|
|
125
207
|
export interface KafkaAclCredentials {
|
|
126
208
|
/**
|
|
127
209
|
* The Kafka API Key.
|