@pulumi/confluentcloud 1.3.0 → 1.4.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/apiKey.d.ts +2 -2
- package/apiKey.js +4 -2
- package/apiKey.js.map +1 -1
- package/clusterLink.d.ts +91 -0
- package/clusterLink.js +74 -0
- package/clusterLink.js.map +1 -0
- package/connector.js +3 -1
- package/connector.js.map +1 -1
- package/getKafkaClientQuota.d.ts +67 -0
- package/getKafkaClientQuota.js +41 -0
- package/getKafkaClientQuota.js.map +1 -0
- package/index.d.ts +15 -0
- package/index.js +24 -1
- package/index.js.map +1 -1
- package/kafkaAcl.d.ts +9 -9
- package/kafkaAcl.js +3 -1
- package/kafkaAcl.js.map +1 -1
- package/kafkaClientQuota.d.ts +138 -0
- package/kafkaClientQuota.js +111 -0
- package/kafkaClientQuota.js.map +1 -0
- package/kafkaClusterConfig.d.ts +120 -0
- package/kafkaClusterConfig.js +100 -0
- package/kafkaClusterConfig.js.map +1 -0
- package/kafkaMirrorTopic.d.ts +82 -0
- package/kafkaMirrorTopic.js +77 -0
- package/kafkaMirrorTopic.js.map +1 -0
- package/kafkaTopic.js +3 -1
- package/kafkaTopic.js.map +1 -1
- package/network.d.ts +3 -3
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/provider.js +6 -4
- package/provider.js.map +1 -1
- package/types/input.d.ts +160 -39
- package/types/output.d.ts +143 -0
package/kafkaAcl.d.ts
CHANGED
|
@@ -38,11 +38,11 @@ export declare class KafkaAcl extends pulumi.CustomResource {
|
|
|
38
38
|
readonly host: pulumi.Output<string>;
|
|
39
39
|
readonly kafkaCluster: pulumi.Output<outputs.KafkaAclKafkaCluster>;
|
|
40
40
|
/**
|
|
41
|
-
* The operation type for the ACL. Accepted values are: `UNKNOWN`, `ANY`, `ALL`, `READ`, `WRITE`, `CREATE`, `DELETE`, `ALTER`, `DESCRIBE`, `CLUSTER_ACTION`, `DESCRIBE_CONFIGS`, `ALTER_CONFIGS`, and `IDEMPOTENT_WRITE`.
|
|
41
|
+
* The operation type for the ACL. Accepted values are: `UNKNOWN`, `ANY`, `ALL`, `READ`, `WRITE`, `CREATE`, `DELETE`, `ALTER`, `DESCRIBE`, `CLUSTER_ACTION`, `DESCRIBE_CONFIGS`, `ALTER_CONFIGS`, and `IDEMPOTENT_WRITE`. See [Authorization using ACLs](https://docs.confluent.io/platform/current/kafka/authorization.html#operations) to find mappings of `(resource_type, operation)` to one or more Kafka APIs or request types.
|
|
42
42
|
*/
|
|
43
43
|
readonly operation: pulumi.Output<string>;
|
|
44
44
|
/**
|
|
45
|
-
* The pattern type for the ACL. Accepted values are: `UNKNOWN
|
|
45
|
+
* The pattern type for the ACL. Accepted values are: `UNKNOWN`, `MATCH`, `LITERAL`, and `PREFIXED`.
|
|
46
46
|
*/
|
|
47
47
|
readonly patternType: pulumi.Output<string>;
|
|
48
48
|
/**
|
|
@@ -58,7 +58,7 @@ export declare class KafkaAcl extends pulumi.CustomResource {
|
|
|
58
58
|
*/
|
|
59
59
|
readonly resourceName: pulumi.Output<string>;
|
|
60
60
|
/**
|
|
61
|
-
* The type of the resource. Accepted values are: `UNKNOWN`, `ANY`, `TOPIC`, `GROUP`, `CLUSTER`, `TRANSACTIONAL_ID`, `DELEGATION_TOKEN`.
|
|
61
|
+
* The type of the resource. Accepted values are: `UNKNOWN`, `ANY`, `TOPIC`, `GROUP`, `CLUSTER`, `TRANSACTIONAL_ID`, `DELEGATION_TOKEN`. See [Authorization using ACLs](https://docs.confluent.io/platform/current/kafka/authorization.html#operations) to find definitions of resource types and mappings of `(resource_type, operation)` to one or more Kafka APIs or request types.
|
|
62
62
|
*/
|
|
63
63
|
readonly resourceType: pulumi.Output<string>;
|
|
64
64
|
/**
|
|
@@ -88,11 +88,11 @@ export interface KafkaAclState {
|
|
|
88
88
|
host?: pulumi.Input<string>;
|
|
89
89
|
kafkaCluster?: pulumi.Input<inputs.KafkaAclKafkaCluster>;
|
|
90
90
|
/**
|
|
91
|
-
* The operation type for the ACL. Accepted values are: `UNKNOWN`, `ANY`, `ALL`, `READ`, `WRITE`, `CREATE`, `DELETE`, `ALTER`, `DESCRIBE`, `CLUSTER_ACTION`, `DESCRIBE_CONFIGS`, `ALTER_CONFIGS`, and `IDEMPOTENT_WRITE`.
|
|
91
|
+
* The operation type for the ACL. Accepted values are: `UNKNOWN`, `ANY`, `ALL`, `READ`, `WRITE`, `CREATE`, `DELETE`, `ALTER`, `DESCRIBE`, `CLUSTER_ACTION`, `DESCRIBE_CONFIGS`, `ALTER_CONFIGS`, and `IDEMPOTENT_WRITE`. See [Authorization using ACLs](https://docs.confluent.io/platform/current/kafka/authorization.html#operations) to find mappings of `(resource_type, operation)` to one or more Kafka APIs or request types.
|
|
92
92
|
*/
|
|
93
93
|
operation?: pulumi.Input<string>;
|
|
94
94
|
/**
|
|
95
|
-
* The pattern type for the ACL. Accepted values are: `UNKNOWN
|
|
95
|
+
* The pattern type for the ACL. Accepted values are: `UNKNOWN`, `MATCH`, `LITERAL`, and `PREFIXED`.
|
|
96
96
|
*/
|
|
97
97
|
patternType?: pulumi.Input<string>;
|
|
98
98
|
/**
|
|
@@ -108,7 +108,7 @@ export interface KafkaAclState {
|
|
|
108
108
|
*/
|
|
109
109
|
resourceName?: pulumi.Input<string>;
|
|
110
110
|
/**
|
|
111
|
-
* The type of the resource. Accepted values are: `UNKNOWN`, `ANY`, `TOPIC`, `GROUP`, `CLUSTER`, `TRANSACTIONAL_ID`, `DELEGATION_TOKEN`.
|
|
111
|
+
* The type of the resource. Accepted values are: `UNKNOWN`, `ANY`, `TOPIC`, `GROUP`, `CLUSTER`, `TRANSACTIONAL_ID`, `DELEGATION_TOKEN`. See [Authorization using ACLs](https://docs.confluent.io/platform/current/kafka/authorization.html#operations) to find definitions of resource types and mappings of `(resource_type, operation)` to one or more Kafka APIs or request types.
|
|
112
112
|
*/
|
|
113
113
|
resourceType?: pulumi.Input<string>;
|
|
114
114
|
/**
|
|
@@ -130,11 +130,11 @@ export interface KafkaAclArgs {
|
|
|
130
130
|
host: pulumi.Input<string>;
|
|
131
131
|
kafkaCluster: pulumi.Input<inputs.KafkaAclKafkaCluster>;
|
|
132
132
|
/**
|
|
133
|
-
* The operation type for the ACL. Accepted values are: `UNKNOWN`, `ANY`, `ALL`, `READ`, `WRITE`, `CREATE`, `DELETE`, `ALTER`, `DESCRIBE`, `CLUSTER_ACTION`, `DESCRIBE_CONFIGS`, `ALTER_CONFIGS`, and `IDEMPOTENT_WRITE`.
|
|
133
|
+
* The operation type for the ACL. Accepted values are: `UNKNOWN`, `ANY`, `ALL`, `READ`, `WRITE`, `CREATE`, `DELETE`, `ALTER`, `DESCRIBE`, `CLUSTER_ACTION`, `DESCRIBE_CONFIGS`, `ALTER_CONFIGS`, and `IDEMPOTENT_WRITE`. See [Authorization using ACLs](https://docs.confluent.io/platform/current/kafka/authorization.html#operations) to find mappings of `(resource_type, operation)` to one or more Kafka APIs or request types.
|
|
134
134
|
*/
|
|
135
135
|
operation: pulumi.Input<string>;
|
|
136
136
|
/**
|
|
137
|
-
* The pattern type for the ACL. Accepted values are: `UNKNOWN
|
|
137
|
+
* The pattern type for the ACL. Accepted values are: `UNKNOWN`, `MATCH`, `LITERAL`, and `PREFIXED`.
|
|
138
138
|
*/
|
|
139
139
|
patternType: pulumi.Input<string>;
|
|
140
140
|
/**
|
|
@@ -150,7 +150,7 @@ export interface KafkaAclArgs {
|
|
|
150
150
|
*/
|
|
151
151
|
resourceName: pulumi.Input<string>;
|
|
152
152
|
/**
|
|
153
|
-
* The type of the resource. Accepted values are: `UNKNOWN`, `ANY`, `TOPIC`, `GROUP`, `CLUSTER`, `TRANSACTIONAL_ID`, `DELEGATION_TOKEN`.
|
|
153
|
+
* The type of the resource. Accepted values are: `UNKNOWN`, `ANY`, `TOPIC`, `GROUP`, `CLUSTER`, `TRANSACTIONAL_ID`, `DELEGATION_TOKEN`. See [Authorization using ACLs](https://docs.confluent.io/platform/current/kafka/authorization.html#operations) to find definitions of resource types and mappings of `(resource_type, operation)` to one or more Kafka APIs or request types.
|
|
154
154
|
*/
|
|
155
155
|
resourceType: pulumi.Input<string>;
|
|
156
156
|
/**
|
package/kafkaAcl.js
CHANGED
|
@@ -59,7 +59,7 @@ class KafkaAcl extends pulumi.CustomResource {
|
|
|
59
59
|
if ((!args || args.resourceType === undefined) && !opts.urn) {
|
|
60
60
|
throw new Error("Missing required property 'resourceType'");
|
|
61
61
|
}
|
|
62
|
-
resourceInputs["credentials"] = args ? args.credentials : undefined;
|
|
62
|
+
resourceInputs["credentials"] = (args === null || args === void 0 ? void 0 : args.credentials) ? pulumi.secret(args.credentials) : undefined;
|
|
63
63
|
resourceInputs["host"] = args ? args.host : undefined;
|
|
64
64
|
resourceInputs["kafkaCluster"] = args ? args.kafkaCluster : undefined;
|
|
65
65
|
resourceInputs["operation"] = args ? args.operation : undefined;
|
|
@@ -71,6 +71,8 @@ class KafkaAcl extends pulumi.CustomResource {
|
|
|
71
71
|
resourceInputs["restEndpoint"] = args ? args.restEndpoint : undefined;
|
|
72
72
|
}
|
|
73
73
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
74
|
+
const secretOpts = { additionalSecretOutputs: ["credentials"] };
|
|
75
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
74
76
|
super(KafkaAcl.__pulumiType, name, resourceInputs, opts);
|
|
75
77
|
}
|
|
76
78
|
/**
|
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;;;;;;;;;;GAUG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IA0E/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IA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;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BAmIC;AArHG,gBAAgB;AACO,qBAAY,GAAG,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
10
|
+
*
|
|
11
|
+
* const example = new confluentcloud.KafkaClientQuota("example", {
|
|
12
|
+
* displayName: "test-quota",
|
|
13
|
+
* description: "Test Quota",
|
|
14
|
+
* throughput: {
|
|
15
|
+
* ingressByteRate: "100",
|
|
16
|
+
* egressByteRate: "200",
|
|
17
|
+
* },
|
|
18
|
+
* principals: [
|
|
19
|
+
* confluent_service_account.app_manager.id,
|
|
20
|
+
* confluent_service_account.app_manager_2.id,
|
|
21
|
+
* ],
|
|
22
|
+
* kafkaCluster: {
|
|
23
|
+
* id: confluent_kafka_cluster.dedicated.id,
|
|
24
|
+
* },
|
|
25
|
+
* environment: {
|
|
26
|
+
* id: confluent_environment.development.id,
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ## Import
|
|
32
|
+
*
|
|
33
|
+
* You can import a Kafka Client Quota by using Kafka Client Quota ID. The following example shows how to import a Kafka Client Quota ID$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>" $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import confluentcloud:index/kafkaClientQuota:KafkaClientQuota example cq-abc123
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
40
|
+
*/
|
|
41
|
+
export declare class KafkaClientQuota extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing KafkaClientQuota resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: KafkaClientQuotaState, opts?: pulumi.CustomResourceOptions): KafkaClientQuota;
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of KafkaClientQuota. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj: any): obj is KafkaClientQuota;
|
|
57
|
+
/**
|
|
58
|
+
* The description of the Kafka Client Quota.
|
|
59
|
+
*/
|
|
60
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* The name of the Kafka Client Quota.
|
|
63
|
+
*/
|
|
64
|
+
readonly displayName: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Environment objects represent an isolated namespace for your Confluent resources for organizational purposes.
|
|
67
|
+
*/
|
|
68
|
+
readonly environment: pulumi.Output<outputs.KafkaClientQuotaEnvironment>;
|
|
69
|
+
readonly kafkaCluster: pulumi.Output<outputs.KafkaClientQuotaKafkaCluster>;
|
|
70
|
+
/**
|
|
71
|
+
* The list of service accounts to apply the Kafka Client Quota to. Use the special name, "default", to represent the default quota for all users and service accounts.
|
|
72
|
+
*/
|
|
73
|
+
readonly principals: pulumi.Output<string[]>;
|
|
74
|
+
/**
|
|
75
|
+
* Block for representing a Kafka Quota.
|
|
76
|
+
*/
|
|
77
|
+
readonly throughput: pulumi.Output<outputs.KafkaClientQuotaThroughput>;
|
|
78
|
+
/**
|
|
79
|
+
* Create a KafkaClientQuota resource with the given unique name, arguments, and options.
|
|
80
|
+
*
|
|
81
|
+
* @param name The _unique_ name of the resource.
|
|
82
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
83
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
84
|
+
*/
|
|
85
|
+
constructor(name: string, args: KafkaClientQuotaArgs, opts?: pulumi.CustomResourceOptions);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Input properties used for looking up and filtering KafkaClientQuota resources.
|
|
89
|
+
*/
|
|
90
|
+
export interface KafkaClientQuotaState {
|
|
91
|
+
/**
|
|
92
|
+
* The description of the Kafka Client Quota.
|
|
93
|
+
*/
|
|
94
|
+
description?: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* The name of the Kafka Client Quota.
|
|
97
|
+
*/
|
|
98
|
+
displayName?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Environment objects represent an isolated namespace for your Confluent resources for organizational purposes.
|
|
101
|
+
*/
|
|
102
|
+
environment?: pulumi.Input<inputs.KafkaClientQuotaEnvironment>;
|
|
103
|
+
kafkaCluster?: pulumi.Input<inputs.KafkaClientQuotaKafkaCluster>;
|
|
104
|
+
/**
|
|
105
|
+
* The list of service accounts to apply the Kafka Client Quota to. Use the special name, "default", to represent the default quota for all users and service accounts.
|
|
106
|
+
*/
|
|
107
|
+
principals?: pulumi.Input<pulumi.Input<string>[]>;
|
|
108
|
+
/**
|
|
109
|
+
* Block for representing a Kafka Quota.
|
|
110
|
+
*/
|
|
111
|
+
throughput?: pulumi.Input<inputs.KafkaClientQuotaThroughput>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The set of arguments for constructing a KafkaClientQuota resource.
|
|
115
|
+
*/
|
|
116
|
+
export interface KafkaClientQuotaArgs {
|
|
117
|
+
/**
|
|
118
|
+
* The description of the Kafka Client Quota.
|
|
119
|
+
*/
|
|
120
|
+
description?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The name of the Kafka Client Quota.
|
|
123
|
+
*/
|
|
124
|
+
displayName: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Environment objects represent an isolated namespace for your Confluent resources for organizational purposes.
|
|
127
|
+
*/
|
|
128
|
+
environment: pulumi.Input<inputs.KafkaClientQuotaEnvironment>;
|
|
129
|
+
kafkaCluster: pulumi.Input<inputs.KafkaClientQuotaKafkaCluster>;
|
|
130
|
+
/**
|
|
131
|
+
* The list of service accounts to apply the Kafka Client Quota to. Use the special name, "default", to represent the default quota for all users and service accounts.
|
|
132
|
+
*/
|
|
133
|
+
principals: pulumi.Input<pulumi.Input<string>[]>;
|
|
134
|
+
/**
|
|
135
|
+
* Block for representing a Kafka Quota.
|
|
136
|
+
*/
|
|
137
|
+
throughput: pulumi.Input<inputs.KafkaClientQuotaThroughput>;
|
|
138
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.KafkaClientQuota = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
14
|
+
*
|
|
15
|
+
* const example = new confluentcloud.KafkaClientQuota("example", {
|
|
16
|
+
* displayName: "test-quota",
|
|
17
|
+
* description: "Test Quota",
|
|
18
|
+
* throughput: {
|
|
19
|
+
* ingressByteRate: "100",
|
|
20
|
+
* egressByteRate: "200",
|
|
21
|
+
* },
|
|
22
|
+
* principals: [
|
|
23
|
+
* confluent_service_account.app_manager.id,
|
|
24
|
+
* confluent_service_account.app_manager_2.id,
|
|
25
|
+
* ],
|
|
26
|
+
* kafkaCluster: {
|
|
27
|
+
* id: confluent_kafka_cluster.dedicated.id,
|
|
28
|
+
* },
|
|
29
|
+
* environment: {
|
|
30
|
+
* id: confluent_environment.development.id,
|
|
31
|
+
* },
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* You can import a Kafka Client Quota by using Kafka Client Quota ID. The following example shows how to import a Kafka Client Quota ID$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>" $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import confluentcloud:index/kafkaClientQuota:KafkaClientQuota example cq-abc123
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
44
|
+
*/
|
|
45
|
+
class KafkaClientQuota extends pulumi.CustomResource {
|
|
46
|
+
constructor(name, argsOrState, opts) {
|
|
47
|
+
let resourceInputs = {};
|
|
48
|
+
opts = opts || {};
|
|
49
|
+
if (opts.id) {
|
|
50
|
+
const state = argsOrState;
|
|
51
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
52
|
+
resourceInputs["displayName"] = state ? state.displayName : undefined;
|
|
53
|
+
resourceInputs["environment"] = state ? state.environment : undefined;
|
|
54
|
+
resourceInputs["kafkaCluster"] = state ? state.kafkaCluster : undefined;
|
|
55
|
+
resourceInputs["principals"] = state ? state.principals : undefined;
|
|
56
|
+
resourceInputs["throughput"] = state ? state.throughput : undefined;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
const args = argsOrState;
|
|
60
|
+
if ((!args || args.displayName === undefined) && !opts.urn) {
|
|
61
|
+
throw new Error("Missing required property 'displayName'");
|
|
62
|
+
}
|
|
63
|
+
if ((!args || args.environment === undefined) && !opts.urn) {
|
|
64
|
+
throw new Error("Missing required property 'environment'");
|
|
65
|
+
}
|
|
66
|
+
if ((!args || args.kafkaCluster === undefined) && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'kafkaCluster'");
|
|
68
|
+
}
|
|
69
|
+
if ((!args || args.principals === undefined) && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'principals'");
|
|
71
|
+
}
|
|
72
|
+
if ((!args || args.throughput === undefined) && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'throughput'");
|
|
74
|
+
}
|
|
75
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
76
|
+
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
77
|
+
resourceInputs["environment"] = args ? args.environment : undefined;
|
|
78
|
+
resourceInputs["kafkaCluster"] = args ? args.kafkaCluster : undefined;
|
|
79
|
+
resourceInputs["principals"] = args ? args.principals : undefined;
|
|
80
|
+
resourceInputs["throughput"] = args ? args.throughput : undefined;
|
|
81
|
+
}
|
|
82
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
83
|
+
super(KafkaClientQuota.__pulumiType, name, resourceInputs, opts);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Get an existing KafkaClientQuota resource's state with the given name, ID, and optional extra
|
|
87
|
+
* properties used to qualify the lookup.
|
|
88
|
+
*
|
|
89
|
+
* @param name The _unique_ name of the resulting resource.
|
|
90
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
91
|
+
* @param state Any extra arguments used during the lookup.
|
|
92
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
93
|
+
*/
|
|
94
|
+
static get(name, id, state, opts) {
|
|
95
|
+
return new KafkaClientQuota(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Returns true if the given object is an instance of KafkaClientQuota. This is designed to work even
|
|
99
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
100
|
+
*/
|
|
101
|
+
static isInstance(obj) {
|
|
102
|
+
if (obj === undefined || obj === null) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
return obj['__pulumiType'] === KafkaClientQuota.__pulumiType;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.KafkaClientQuota = KafkaClientQuota;
|
|
109
|
+
/** @internal */
|
|
110
|
+
KafkaClientQuota.__pulumiType = 'confluentcloud:index/kafkaClientQuota:KafkaClientQuota';
|
|
111
|
+
//# sourceMappingURL=kafkaClientQuota.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kafkaClientQuota.js","sourceRoot":"","sources":["../kafkaClientQuota.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IA0DvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK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AChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;;AA1BL,4CAgGC;AAlFG,gBAAgB;AACO,6BAAY,GAAG,wDAAwD,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
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
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
14
|
+
*
|
|
15
|
+
* const orders = new confluentcloud.KafkaClusterConfig("orders", {
|
|
16
|
+
* kafkaCluster: {
|
|
17
|
+
* id: confluent_kafka_cluster.dedicated.id,
|
|
18
|
+
* },
|
|
19
|
+
* restEndpoint: confluent_kafka_cluster.dedicated.rest_endpoint,
|
|
20
|
+
* config: {
|
|
21
|
+
* "auto.create.topics.enable": "true",
|
|
22
|
+
* "log.retention.ms": "604800123",
|
|
23
|
+
* },
|
|
24
|
+
* credentials: {
|
|
25
|
+
* key: confluent_api_key["app-manager-kafka-api-key"].id,
|
|
26
|
+
* secret: confluent_api_key["app-manager-kafka-api-key"].secret,
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ## Import
|
|
32
|
+
*
|
|
33
|
+
* You can import a Kafka cluster config by using the Kafka cluster ID, 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>"
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import confluentcloud:index/kafkaClusterConfig:KafkaClusterConfig test lkc-abc123
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
40
|
+
*/
|
|
41
|
+
export declare class KafkaClusterConfig extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing KafkaClusterConfig resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: KafkaClusterConfigState, opts?: pulumi.CustomResourceOptions): KafkaClusterConfig;
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of KafkaClusterConfig. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj: any): obj is KafkaClusterConfig;
|
|
57
|
+
/**
|
|
58
|
+
* The custom cluster settings to set:
|
|
59
|
+
*/
|
|
60
|
+
readonly config: pulumi.Output<{
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
}>;
|
|
63
|
+
/**
|
|
64
|
+
* The Cluster API Credentials.
|
|
65
|
+
*/
|
|
66
|
+
readonly credentials: pulumi.Output<outputs.KafkaClusterConfigCredentials | undefined>;
|
|
67
|
+
readonly kafkaCluster: pulumi.Output<outputs.KafkaClusterConfigKafkaCluster>;
|
|
68
|
+
/**
|
|
69
|
+
* The REST endpoint of the Dedicated Kafka cluster, for example, `https://pkc-00000.us-central1.gcp.confluent.cloud:443`).
|
|
70
|
+
*/
|
|
71
|
+
readonly restEndpoint: pulumi.Output<string | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* Create a KafkaClusterConfig resource with the given unique name, arguments, and options.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resource.
|
|
76
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
77
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
78
|
+
*/
|
|
79
|
+
constructor(name: string, args: KafkaClusterConfigArgs, opts?: pulumi.CustomResourceOptions);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Input properties used for looking up and filtering KafkaClusterConfig resources.
|
|
83
|
+
*/
|
|
84
|
+
export interface KafkaClusterConfigState {
|
|
85
|
+
/**
|
|
86
|
+
* The custom cluster settings to set:
|
|
87
|
+
*/
|
|
88
|
+
config?: pulumi.Input<{
|
|
89
|
+
[key: string]: pulumi.Input<string>;
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* The Cluster API Credentials.
|
|
93
|
+
*/
|
|
94
|
+
credentials?: pulumi.Input<inputs.KafkaClusterConfigCredentials>;
|
|
95
|
+
kafkaCluster?: pulumi.Input<inputs.KafkaClusterConfigKafkaCluster>;
|
|
96
|
+
/**
|
|
97
|
+
* The REST endpoint of the Dedicated Kafka cluster, for example, `https://pkc-00000.us-central1.gcp.confluent.cloud:443`).
|
|
98
|
+
*/
|
|
99
|
+
restEndpoint?: pulumi.Input<string>;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The set of arguments for constructing a KafkaClusterConfig resource.
|
|
103
|
+
*/
|
|
104
|
+
export interface KafkaClusterConfigArgs {
|
|
105
|
+
/**
|
|
106
|
+
* The custom cluster settings to set:
|
|
107
|
+
*/
|
|
108
|
+
config: pulumi.Input<{
|
|
109
|
+
[key: string]: pulumi.Input<string>;
|
|
110
|
+
}>;
|
|
111
|
+
/**
|
|
112
|
+
* The Cluster API Credentials.
|
|
113
|
+
*/
|
|
114
|
+
credentials?: pulumi.Input<inputs.KafkaClusterConfigCredentials>;
|
|
115
|
+
kafkaCluster: pulumi.Input<inputs.KafkaClusterConfigKafkaCluster>;
|
|
116
|
+
/**
|
|
117
|
+
* The REST endpoint of the Dedicated Kafka cluster, for example, `https://pkc-00000.us-central1.gcp.confluent.cloud:443`).
|
|
118
|
+
*/
|
|
119
|
+
restEndpoint?: pulumi.Input<string>;
|
|
120
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.KafkaClusterConfig = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
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
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
18
|
+
*
|
|
19
|
+
* const orders = new confluentcloud.KafkaClusterConfig("orders", {
|
|
20
|
+
* kafkaCluster: {
|
|
21
|
+
* id: confluent_kafka_cluster.dedicated.id,
|
|
22
|
+
* },
|
|
23
|
+
* restEndpoint: confluent_kafka_cluster.dedicated.rest_endpoint,
|
|
24
|
+
* config: {
|
|
25
|
+
* "auto.create.topics.enable": "true",
|
|
26
|
+
* "log.retention.ms": "604800123",
|
|
27
|
+
* },
|
|
28
|
+
* credentials: {
|
|
29
|
+
* key: confluent_api_key["app-manager-kafka-api-key"].id,
|
|
30
|
+
* secret: confluent_api_key["app-manager-kafka-api-key"].secret,
|
|
31
|
+
* },
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* You can import a Kafka cluster config by using the Kafka cluster ID, 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>"
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import confluentcloud:index/kafkaClusterConfig:KafkaClusterConfig test lkc-abc123
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
44
|
+
*/
|
|
45
|
+
class KafkaClusterConfig extends pulumi.CustomResource {
|
|
46
|
+
constructor(name, argsOrState, opts) {
|
|
47
|
+
let resourceInputs = {};
|
|
48
|
+
opts = opts || {};
|
|
49
|
+
if (opts.id) {
|
|
50
|
+
const state = argsOrState;
|
|
51
|
+
resourceInputs["config"] = state ? state.config : undefined;
|
|
52
|
+
resourceInputs["credentials"] = state ? state.credentials : undefined;
|
|
53
|
+
resourceInputs["kafkaCluster"] = state ? state.kafkaCluster : undefined;
|
|
54
|
+
resourceInputs["restEndpoint"] = state ? state.restEndpoint : undefined;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
const args = argsOrState;
|
|
58
|
+
if ((!args || args.config === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'config'");
|
|
60
|
+
}
|
|
61
|
+
if ((!args || args.kafkaCluster === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'kafkaCluster'");
|
|
63
|
+
}
|
|
64
|
+
resourceInputs["config"] = args ? args.config : undefined;
|
|
65
|
+
resourceInputs["credentials"] = (args === null || args === void 0 ? void 0 : args.credentials) ? pulumi.secret(args.credentials) : undefined;
|
|
66
|
+
resourceInputs["kafkaCluster"] = args ? args.kafkaCluster : undefined;
|
|
67
|
+
resourceInputs["restEndpoint"] = args ? args.restEndpoint : undefined;
|
|
68
|
+
}
|
|
69
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
70
|
+
const secretOpts = { additionalSecretOutputs: ["credentials"] };
|
|
71
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
72
|
+
super(KafkaClusterConfig.__pulumiType, name, resourceInputs, opts);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get an existing KafkaClusterConfig resource's state with the given name, ID, and optional extra
|
|
76
|
+
* properties used to qualify the lookup.
|
|
77
|
+
*
|
|
78
|
+
* @param name The _unique_ name of the resulting resource.
|
|
79
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
80
|
+
* @param state Any extra arguments used during the lookup.
|
|
81
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
82
|
+
*/
|
|
83
|
+
static get(name, id, state, opts) {
|
|
84
|
+
return new KafkaClusterConfig(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Returns true if the given object is an instance of KafkaClusterConfig. This is designed to work even
|
|
88
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
89
|
+
*/
|
|
90
|
+
static isInstance(obj) {
|
|
91
|
+
if (obj === undefined || obj === null) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return obj['__pulumiType'] === KafkaClusterConfig.__pulumiType;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.KafkaClusterConfig = KafkaClusterConfig;
|
|
98
|
+
/** @internal */
|
|
99
|
+
KafkaClusterConfig.__pulumiType = 'confluentcloud:index/kafkaClusterConfig:KafkaClusterConfig';
|
|
100
|
+
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