@pulumi/confluentcloud 1.4.0-alpha.1666123324 → 1.5.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.
Files changed (61) hide show
  1. package/apiKey.d.ts +2 -2
  2. package/apiKey.js +4 -2
  3. package/apiKey.js.map +1 -1
  4. package/clusterLink.d.ts +91 -0
  5. package/clusterLink.js +74 -0
  6. package/clusterLink.js.map +1 -0
  7. package/connector.d.ts +6 -6
  8. package/connector.js +3 -1
  9. package/connector.js.map +1 -1
  10. package/getKafkaClientQuota.d.ts +70 -0
  11. package/getKafkaClientQuota.js +44 -0
  12. package/getKafkaClientQuota.js.map +1 -0
  13. package/getKsqlCluster.d.ts +3 -0
  14. package/getKsqlCluster.js +3 -0
  15. package/getKsqlCluster.js.map +1 -1
  16. package/getStreamGovernanceRegion.d.ts +71 -0
  17. package/getStreamGovernanceRegion.js +46 -0
  18. package/getStreamGovernanceRegion.js.map +1 -0
  19. package/getStreatGovernanceCluster.d.ts +96 -0
  20. package/getStreatGovernanceCluster.js +54 -0
  21. package/getStreatGovernanceCluster.js.map +1 -0
  22. package/getTransitGatewayAttachment.d.ts +83 -0
  23. package/getTransitGatewayAttachment.js +54 -0
  24. package/getTransitGatewayAttachment.js.map +1 -0
  25. package/identityPool.d.ts +0 -3
  26. package/identityPool.js +0 -3
  27. package/identityPool.js.map +1 -1
  28. package/identityProvider.d.ts +0 -3
  29. package/identityProvider.js +0 -3
  30. package/identityProvider.js.map +1 -1
  31. package/index.d.ts +30 -0
  32. package/index.js +44 -1
  33. package/index.js.map +1 -1
  34. package/kafkaAcl.d.ts +9 -9
  35. package/kafkaAcl.js +3 -1
  36. package/kafkaAcl.js.map +1 -1
  37. package/kafkaClientQuota.d.ts +138 -0
  38. package/kafkaClientQuota.js +111 -0
  39. package/kafkaClientQuota.js.map +1 -0
  40. package/kafkaClusterConfig.d.ts +123 -0
  41. package/kafkaClusterConfig.js +103 -0
  42. package/kafkaClusterConfig.js.map +1 -0
  43. package/kafkaMirrorTopic.d.ts +82 -0
  44. package/kafkaMirrorTopic.js +77 -0
  45. package/kafkaMirrorTopic.js.map +1 -0
  46. package/kafkaTopic.d.ts +1 -1
  47. package/kafkaTopic.js +4 -2
  48. package/kafkaTopic.js.map +1 -1
  49. package/network.d.ts +3 -3
  50. package/package.json +2 -2
  51. package/package.json.dev +2 -2
  52. package/provider.js +6 -4
  53. package/provider.js.map +1 -1
  54. package/streamGovernanceCluster.d.ts +139 -0
  55. package/streamGovernanceCluster.js +106 -0
  56. package/streamGovernanceCluster.js.map +1 -0
  57. package/transitGatewayAttachment.d.ts +100 -0
  58. package/transitGatewayAttachment.js +72 -0
  59. package/transitGatewayAttachment.js.map +1 -0
  60. package/types/input.d.ts +253 -50
  61. package/types/output.d.ts +253 -10
@@ -0,0 +1,82 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * ## Import
6
+ *
7
+ * You can import a Kafka mirror topic by using the Kafka cluster ID, cluster link name, and Kafka topic name in the format `<Kafka cluster ID>/<Cluster link name>/<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>"
8
+ *
9
+ * ```sh
10
+ * $ pulumi import confluentcloud:index/kafkaMirrorTopic:KafkaMirrorTopic my_mirror_topic lkc-abc123/my-cluster-link/orders-123
11
+ * ```
12
+ *
13
+ * !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
14
+ */
15
+ export declare class KafkaMirrorTopic extends pulumi.CustomResource {
16
+ /**
17
+ * Get an existing KafkaMirrorTopic resource's state with the given name, ID, and optional extra
18
+ * properties used to qualify the lookup.
19
+ *
20
+ * @param name The _unique_ name of the resulting resource.
21
+ * @param id The _unique_ provider ID of the resource to lookup.
22
+ * @param state Any extra arguments used during the lookup.
23
+ * @param opts Optional settings to control the behavior of the CustomResource.
24
+ */
25
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: KafkaMirrorTopicState, opts?: pulumi.CustomResourceOptions): KafkaMirrorTopic;
26
+ /**
27
+ * Returns true if the given object is an instance of KafkaMirrorTopic. This is designed to work even
28
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
+ */
30
+ static isInstance(obj: any): obj is KafkaMirrorTopic;
31
+ readonly clusterLink: pulumi.Output<outputs.KafkaMirrorTopicClusterLink>;
32
+ readonly kafkaCluster: pulumi.Output<outputs.KafkaMirrorTopicKafkaCluster>;
33
+ /**
34
+ * The name of the mirror topic. Only required when there is a prefix configured on the cluster link. For example, when `<prefix>` is configured for the cluster link, the mirror topic name has to be of the format `<prefix><source_topic_name>`.
35
+ */
36
+ readonly mirrorTopicName: pulumi.Output<string>;
37
+ readonly sourceKafkaTopic: pulumi.Output<outputs.KafkaMirrorTopicSourceKafkaTopic>;
38
+ /**
39
+ * The status of the mirror topic. The supported values are `"ACTIVE"`, `"PAUSED"`, `"PROMOTED"`, `"FAILED_OVER"`. Pausing (`"ACTIVE" > "PAUSED"`), resuming (`"PAUSED" > "ACTIVE"`), promoting, and failing over a mirror topic is supported via an update operation. Defaults to `"ACTIVE"`.
40
+ */
41
+ readonly status: pulumi.Output<string>;
42
+ /**
43
+ * Create a KafkaMirrorTopic resource with the given unique name, arguments, and options.
44
+ *
45
+ * @param name The _unique_ name of the resource.
46
+ * @param args The arguments to use to populate this resource's properties.
47
+ * @param opts A bag of options that control this resource's behavior.
48
+ */
49
+ constructor(name: string, args: KafkaMirrorTopicArgs, opts?: pulumi.CustomResourceOptions);
50
+ }
51
+ /**
52
+ * Input properties used for looking up and filtering KafkaMirrorTopic resources.
53
+ */
54
+ export interface KafkaMirrorTopicState {
55
+ clusterLink?: pulumi.Input<inputs.KafkaMirrorTopicClusterLink>;
56
+ kafkaCluster?: pulumi.Input<inputs.KafkaMirrorTopicKafkaCluster>;
57
+ /**
58
+ * The name of the mirror topic. Only required when there is a prefix configured on the cluster link. For example, when `<prefix>` is configured for the cluster link, the mirror topic name has to be of the format `<prefix><source_topic_name>`.
59
+ */
60
+ mirrorTopicName?: pulumi.Input<string>;
61
+ sourceKafkaTopic?: pulumi.Input<inputs.KafkaMirrorTopicSourceKafkaTopic>;
62
+ /**
63
+ * The status of the mirror topic. The supported values are `"ACTIVE"`, `"PAUSED"`, `"PROMOTED"`, `"FAILED_OVER"`. Pausing (`"ACTIVE" > "PAUSED"`), resuming (`"PAUSED" > "ACTIVE"`), promoting, and failing over a mirror topic is supported via an update operation. Defaults to `"ACTIVE"`.
64
+ */
65
+ status?: pulumi.Input<string>;
66
+ }
67
+ /**
68
+ * The set of arguments for constructing a KafkaMirrorTopic resource.
69
+ */
70
+ export interface KafkaMirrorTopicArgs {
71
+ clusterLink: pulumi.Input<inputs.KafkaMirrorTopicClusterLink>;
72
+ kafkaCluster: pulumi.Input<inputs.KafkaMirrorTopicKafkaCluster>;
73
+ /**
74
+ * The name of the mirror topic. Only required when there is a prefix configured on the cluster link. For example, when `<prefix>` is configured for the cluster link, the mirror topic name has to be of the format `<prefix><source_topic_name>`.
75
+ */
76
+ mirrorTopicName?: pulumi.Input<string>;
77
+ sourceKafkaTopic: pulumi.Input<inputs.KafkaMirrorTopicSourceKafkaTopic>;
78
+ /**
79
+ * The status of the mirror topic. The supported values are `"ACTIVE"`, `"PAUSED"`, `"PROMOTED"`, `"FAILED_OVER"`. Pausing (`"ACTIVE" > "PAUSED"`), resuming (`"PAUSED" > "ACTIVE"`), promoting, and failing over a mirror topic is supported via an update operation. Defaults to `"ACTIVE"`.
80
+ */
81
+ status?: pulumi.Input<string>;
82
+ }
@@ -0,0 +1,77 @@
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.KafkaMirrorTopic = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Import
10
+ *
11
+ * You can import a Kafka mirror topic by using the Kafka cluster ID, cluster link name, and Kafka topic name in the format `<Kafka cluster ID>/<Cluster link name>/<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
+ *
13
+ * ```sh
14
+ * $ pulumi import confluentcloud:index/kafkaMirrorTopic:KafkaMirrorTopic my_mirror_topic lkc-abc123/my-cluster-link/orders-123
15
+ * ```
16
+ *
17
+ * !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
18
+ */
19
+ class KafkaMirrorTopic extends pulumi.CustomResource {
20
+ constructor(name, argsOrState, opts) {
21
+ let resourceInputs = {};
22
+ opts = opts || {};
23
+ if (opts.id) {
24
+ const state = argsOrState;
25
+ resourceInputs["clusterLink"] = state ? state.clusterLink : undefined;
26
+ resourceInputs["kafkaCluster"] = state ? state.kafkaCluster : undefined;
27
+ resourceInputs["mirrorTopicName"] = state ? state.mirrorTopicName : undefined;
28
+ resourceInputs["sourceKafkaTopic"] = state ? state.sourceKafkaTopic : undefined;
29
+ resourceInputs["status"] = state ? state.status : undefined;
30
+ }
31
+ else {
32
+ const args = argsOrState;
33
+ if ((!args || args.clusterLink === undefined) && !opts.urn) {
34
+ throw new Error("Missing required property 'clusterLink'");
35
+ }
36
+ if ((!args || args.kafkaCluster === undefined) && !opts.urn) {
37
+ throw new Error("Missing required property 'kafkaCluster'");
38
+ }
39
+ if ((!args || args.sourceKafkaTopic === undefined) && !opts.urn) {
40
+ throw new Error("Missing required property 'sourceKafkaTopic'");
41
+ }
42
+ resourceInputs["clusterLink"] = args ? args.clusterLink : undefined;
43
+ resourceInputs["kafkaCluster"] = args ? args.kafkaCluster : undefined;
44
+ resourceInputs["mirrorTopicName"] = args ? args.mirrorTopicName : undefined;
45
+ resourceInputs["sourceKafkaTopic"] = args ? args.sourceKafkaTopic : undefined;
46
+ resourceInputs["status"] = args ? args.status : undefined;
47
+ }
48
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
49
+ super(KafkaMirrorTopic.__pulumiType, name, resourceInputs, opts);
50
+ }
51
+ /**
52
+ * Get an existing KafkaMirrorTopic resource's state with the given name, ID, and optional extra
53
+ * properties used to qualify the lookup.
54
+ *
55
+ * @param name The _unique_ name of the resulting resource.
56
+ * @param id The _unique_ provider ID of the resource to lookup.
57
+ * @param state Any extra arguments used during the lookup.
58
+ * @param opts Optional settings to control the behavior of the CustomResource.
59
+ */
60
+ static get(name, id, state, opts) {
61
+ return new KafkaMirrorTopic(name, state, Object.assign(Object.assign({}, opts), { id: id }));
62
+ }
63
+ /**
64
+ * Returns true if the given object is an instance of KafkaMirrorTopic. This is designed to work even
65
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
66
+ */
67
+ static isInstance(obj) {
68
+ if (obj === undefined || obj === null) {
69
+ return false;
70
+ }
71
+ return obj['__pulumiType'] === KafkaMirrorTopic.__pulumiType;
72
+ }
73
+ }
74
+ exports.KafkaMirrorTopic = KafkaMirrorTopic;
75
+ /** @internal */
76
+ KafkaMirrorTopic.__pulumiType = 'confluentcloud:index/kafkaMirrorTopic:KafkaMirrorTopic';
77
+ //# sourceMappingURL=kafkaMirrorTopic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kafkaMirrorTopic.js","sourceRoot":"","sources":["../kafkaMirrorTopic.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAgDvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI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ic.d.ts CHANGED
@@ -30,7 +30,7 @@ import * as outputs from "./types/output";
30
30
  *
31
31
  * = confluent_kafka_cluster.basic-cluster.rest_endpoint
32
32
  *
33
- * # https://docs.confluent.io/cloud/current/clusters/broker-config.html#custom-topic-settings-for-all-cluster-types
33
+ * # https://docs.confluent.io/cloud/current/clusters/broker-config.html#custom-topic-settings-for-all-cluster-types-supported-by-kafka-rest-api-and-terraform-provider
34
34
  *
35
35
  * config = {
36
36
  *
package/kafkaTopic.js CHANGED
@@ -34,7 +34,7 @@ const utilities = require("./utilities");
34
34
  *
35
35
  * = confluent_kafka_cluster.basic-cluster.rest_endpoint
36
36
  *
37
- * # https://docs.confluent.io/cloud/current/clusters/broker-config.html#custom-topic-settings-for-all-cluster-types
37
+ * # https://docs.confluent.io/cloud/current/clusters/broker-config.html#custom-topic-settings-for-all-cluster-types-supported-by-kafka-rest-api-and-terraform-provider
38
38
  *
39
39
  * config = {
40
40
  *
@@ -119,7 +119,7 @@ class KafkaTopic extends pulumi.CustomResource {
119
119
  throw new Error("Missing required property 'topicName'");
120
120
  }
121
121
  resourceInputs["config"] = args ? args.config : undefined;
122
- resourceInputs["credentials"] = args ? args.credentials : undefined;
122
+ resourceInputs["credentials"] = (args === null || args === void 0 ? void 0 : args.credentials) ? pulumi.secret(args.credentials) : undefined;
123
123
  resourceInputs["httpEndpoint"] = args ? args.httpEndpoint : undefined;
124
124
  resourceInputs["kafkaCluster"] = args ? args.kafkaCluster : undefined;
125
125
  resourceInputs["partitionsCount"] = args ? args.partitionsCount : undefined;
@@ -127,6 +127,8 @@ class KafkaTopic extends pulumi.CustomResource {
127
127
  resourceInputs["topicName"] = args ? args.topicName : undefined;
128
128
  }
129
129
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
130
+ const secretOpts = { additionalSecretOutputs: ["credentials"] };
131
+ opts = pulumi.mergeOptions(opts, secretOpts);
130
132
  super(KafkaTopic.__pulumiType, name, resourceInputs, opts);
131
133
  }
132
134
  /**
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;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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;;AA1BL,gCAiGC;AAnFG,gBAAgB;AACO,uBAAY,GAAG,4CAA4C,CAAC"}
package/network.d.ts CHANGED
@@ -80,7 +80,7 @@ export declare class Network extends pulumi.CustomResource {
80
80
  }>;
81
81
  /**
82
82
  * The 3 availability zones for this network. They can optionally be specified for AWS networks
83
- * used with Private Link. Otherwise, they are automatically chosen by Confluent Cloud.
83
+ * used with Private Link and for GCP networks used with Private Service Connect. Otherwise, they are automatically chosen by Confluent Cloud.
84
84
  * On AWS, zones are AWS [AZ IDs](https://docs.aws.amazon.com/ram/latest/userguide/working-with-az-ids.html), for example, `use1-az3`.
85
85
  * On GCP, zones are GCP [zones](https://cloud.google.com/compute/docs/regions-zones), for example, `us-central1-c`.
86
86
  * On Azure, zones are Confluent-chosen names (for example, `1`, `2`, `3`) since Azure does not have universal zone identifiers.
@@ -151,7 +151,7 @@ export interface NetworkState {
151
151
  }>;
152
152
  /**
153
153
  * The 3 availability zones for this network. They can optionally be specified for AWS networks
154
- * used with Private Link. Otherwise, they are automatically chosen by Confluent Cloud.
154
+ * used with Private Link and for GCP networks used with Private Service Connect. Otherwise, they are automatically chosen by Confluent Cloud.
155
155
  * On AWS, zones are AWS [AZ IDs](https://docs.aws.amazon.com/ram/latest/userguide/working-with-az-ids.html), for example, `use1-az3`.
156
156
  * On GCP, zones are GCP [zones](https://cloud.google.com/compute/docs/regions-zones), for example, `us-central1-c`.
157
157
  * On Azure, zones are Confluent-chosen names (for example, `1`, `2`, `3`) since Azure does not have universal zone identifiers.
@@ -200,7 +200,7 @@ export interface NetworkArgs {
200
200
  region: pulumi.Input<string>;
201
201
  /**
202
202
  * The 3 availability zones for this network. They can optionally be specified for AWS networks
203
- * used with Private Link. Otherwise, they are automatically chosen by Confluent Cloud.
203
+ * used with Private Link and for GCP networks used with Private Service Connect. Otherwise, they are automatically chosen by Confluent Cloud.
204
204
  * On AWS, zones are AWS [AZ IDs](https://docs.aws.amazon.com/ram/latest/userguide/working-with-az-ids.html), for example, `use1-az3`.
205
205
  * On GCP, zones are GCP [zones](https://cloud.google.com/compute/docs/regions-zones), for example, `us-central1-c`.
206
206
  * On Azure, zones are Confluent-chosen names (for example, `1`, `2`, `3`) since Azure does not have universal zone identifiers.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/confluentcloud",
3
- "version": "v1.4.0-alpha.1666123324+a201ce50",
3
+ "version": "v1.5.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 v1.4.0-alpha.1666123324+a201ce50"
15
+ "install": "node scripts/install-pulumi-plugin.js resource confluentcloud v1.5.0"
16
16
  },
17
17
  "dependencies": {
18
18
  "@pulumi/pulumi": "^3.0.0"
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/confluentcloud",
3
- "version": "v1.4.0-alpha.1666123324+a201ce50",
3
+ "version": "v1.5.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 v1.4.0-alpha.1666123324+a201ce50"
15
+ "install": "node scripts/install-pulumi-plugin.js resource confluentcloud v1.5.0"
16
16
  },
17
17
  "dependencies": {
18
18
  "@pulumi/pulumi": "^3.0.0"
package/provider.js CHANGED
@@ -23,14 +23,16 @@ class Provider extends pulumi.ProviderResource {
23
23
  let resourceInputs = {};
24
24
  opts = opts || {};
25
25
  {
26
- resourceInputs["cloudApiKey"] = args ? args.cloudApiKey : undefined;
27
- resourceInputs["cloudApiSecret"] = args ? args.cloudApiSecret : undefined;
26
+ resourceInputs["cloudApiKey"] = (args === null || args === void 0 ? void 0 : args.cloudApiKey) ? pulumi.secret(args.cloudApiKey) : undefined;
27
+ resourceInputs["cloudApiSecret"] = (args === null || args === void 0 ? void 0 : args.cloudApiSecret) ? pulumi.secret(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;
29
+ resourceInputs["kafkaApiKey"] = (args === null || args === void 0 ? void 0 : args.kafkaApiKey) ? pulumi.secret(args.kafkaApiKey) : undefined;
30
+ resourceInputs["kafkaApiSecret"] = (args === null || args === void 0 ? void 0 : args.kafkaApiSecret) ? pulumi.secret(args.kafkaApiSecret) : undefined;
31
31
  resourceInputs["kafkaRestEndpoint"] = args ? args.kafkaRestEndpoint : undefined;
32
32
  }
33
33
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
34
+ const secretOpts = { additionalSecretOutputs: ["cloudApiKey", "cloudApiSecret", "kafkaApiKey", "kafkaApiSecret"] };
35
+ opts = pulumi.mergeOptions(opts, secretOpts);
34
36
  super(Provider.__pulumiType, name, resourceInputs, opts);
35
37
  }
36
38
  /**
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAwCjD;;;;;;OA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YACzG,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;SACnF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACnH,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;IA1DD;;;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,4BA+DC;AA9DG,gBAAgB;AACO,qBAAY,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,139 @@
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 development = new confluentcloud.Environment("development", {});
12
+ * const example = confluentcloud.getStreamGovernanceRegion({
13
+ * cloud: "AWS",
14
+ * region: "us-east-2",
15
+ * "package": "ESSENTIALS",
16
+ * });
17
+ * const essentials = new confluentcloud.StreamGovernanceCluster("essentials", {
18
+ * "package": example.then(example => example["package"]),
19
+ * environment: {
20
+ * id: development.id,
21
+ * },
22
+ * region: {
23
+ * id: example.then(example => example.id),
24
+ * },
25
+ * });
26
+ * ```
27
+ *
28
+ * ## Import
29
+ *
30
+ * You can import a Stream Governance cluster by using Environment ID and Stream Governance cluster ID, in the format `<Environment ID>/<Stream Governance cluster ID>`, for example$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>" $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
31
+ *
32
+ * ```sh
33
+ * $ pulumi import confluentcloud:index/streamGovernanceCluster:StreamGovernanceCluster example env-abc123/lsrc-abc123
34
+ * ```
35
+ *
36
+ * !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
37
+ */
38
+ export declare class StreamGovernanceCluster extends pulumi.CustomResource {
39
+ /**
40
+ * Get an existing StreamGovernanceCluster resource's state with the given name, ID, and optional extra
41
+ * properties used to qualify the lookup.
42
+ *
43
+ * @param name The _unique_ name of the resulting resource.
44
+ * @param id The _unique_ provider ID of the resource to lookup.
45
+ * @param state Any extra arguments used during the lookup.
46
+ * @param opts Optional settings to control the behavior of the CustomResource.
47
+ */
48
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: StreamGovernanceClusterState, opts?: pulumi.CustomResourceOptions): StreamGovernanceCluster;
49
+ /**
50
+ * Returns true if the given object is an instance of StreamGovernanceCluster. This is designed to work even
51
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
+ */
53
+ static isInstance(obj: any): obj is StreamGovernanceCluster;
54
+ /**
55
+ * (Required String) An API Version of the schema version of the Stream Governance cluster, for example, `stream-governance/v2`.
56
+ */
57
+ readonly apiVersion: pulumi.Output<string>;
58
+ /**
59
+ * (Required String) The name of the Stream Governance cluster, for example, `Stream Governance Package`.
60
+ */
61
+ readonly displayName: pulumi.Output<string>;
62
+ /**
63
+ * Environment objects represent an isolated namespace for your Confluent resources for organizational purposes.
64
+ */
65
+ readonly environment: pulumi.Output<outputs.StreamGovernanceClusterEnvironment>;
66
+ /**
67
+ * (Required String) The HTTP endpoint of the Stream Governance cluster, for example, `https://psrc-00000.us-west-2.aws.confluent.cloud`.
68
+ */
69
+ readonly httpEndpoint: pulumi.Output<string>;
70
+ /**
71
+ * (Required String) A kind of the Stream Governance cluster, for example, `Cluster`.
72
+ */
73
+ readonly kind: pulumi.Output<string>;
74
+ /**
75
+ * The type of the billing package. Accepted values are: `ESSENTIALS` and `ADVANCED`.
76
+ */
77
+ readonly package: pulumi.Output<string>;
78
+ readonly region: pulumi.Output<outputs.StreamGovernanceClusterRegion>;
79
+ /**
80
+ * (Required String) The Confluent Resource Name of the Stream Governance cluster, for example, `crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-abc123/schema-registry=lsrc-abc123`.
81
+ */
82
+ readonly resourceName: pulumi.Output<string>;
83
+ /**
84
+ * Create a StreamGovernanceCluster resource with the given unique name, arguments, and options.
85
+ *
86
+ * @param name The _unique_ name of the resource.
87
+ * @param args The arguments to use to populate this resource's properties.
88
+ * @param opts A bag of options that control this resource's behavior.
89
+ */
90
+ constructor(name: string, args: StreamGovernanceClusterArgs, opts?: pulumi.CustomResourceOptions);
91
+ }
92
+ /**
93
+ * Input properties used for looking up and filtering StreamGovernanceCluster resources.
94
+ */
95
+ export interface StreamGovernanceClusterState {
96
+ /**
97
+ * (Required String) An API Version of the schema version of the Stream Governance cluster, for example, `stream-governance/v2`.
98
+ */
99
+ apiVersion?: pulumi.Input<string>;
100
+ /**
101
+ * (Required String) The name of the Stream Governance cluster, for example, `Stream Governance Package`.
102
+ */
103
+ displayName?: pulumi.Input<string>;
104
+ /**
105
+ * Environment objects represent an isolated namespace for your Confluent resources for organizational purposes.
106
+ */
107
+ environment?: pulumi.Input<inputs.StreamGovernanceClusterEnvironment>;
108
+ /**
109
+ * (Required String) The HTTP endpoint of the Stream Governance cluster, for example, `https://psrc-00000.us-west-2.aws.confluent.cloud`.
110
+ */
111
+ httpEndpoint?: pulumi.Input<string>;
112
+ /**
113
+ * (Required String) A kind of the Stream Governance cluster, for example, `Cluster`.
114
+ */
115
+ kind?: pulumi.Input<string>;
116
+ /**
117
+ * The type of the billing package. Accepted values are: `ESSENTIALS` and `ADVANCED`.
118
+ */
119
+ package?: pulumi.Input<string>;
120
+ region?: pulumi.Input<inputs.StreamGovernanceClusterRegion>;
121
+ /**
122
+ * (Required String) The Confluent Resource Name of the Stream Governance cluster, for example, `crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-abc123/schema-registry=lsrc-abc123`.
123
+ */
124
+ resourceName?: pulumi.Input<string>;
125
+ }
126
+ /**
127
+ * The set of arguments for constructing a StreamGovernanceCluster resource.
128
+ */
129
+ export interface StreamGovernanceClusterArgs {
130
+ /**
131
+ * Environment objects represent an isolated namespace for your Confluent resources for organizational purposes.
132
+ */
133
+ environment: pulumi.Input<inputs.StreamGovernanceClusterEnvironment>;
134
+ /**
135
+ * The type of the billing package. Accepted values are: `ESSENTIALS` and `ADVANCED`.
136
+ */
137
+ package: pulumi.Input<string>;
138
+ region: pulumi.Input<inputs.StreamGovernanceClusterRegion>;
139
+ }
@@ -0,0 +1,106 @@
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.StreamGovernanceCluster = 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 development = new confluentcloud.Environment("development", {});
16
+ * const example = confluentcloud.getStreamGovernanceRegion({
17
+ * cloud: "AWS",
18
+ * region: "us-east-2",
19
+ * "package": "ESSENTIALS",
20
+ * });
21
+ * const essentials = new confluentcloud.StreamGovernanceCluster("essentials", {
22
+ * "package": example.then(example => example["package"]),
23
+ * environment: {
24
+ * id: development.id,
25
+ * },
26
+ * region: {
27
+ * id: example.then(example => example.id),
28
+ * },
29
+ * });
30
+ * ```
31
+ *
32
+ * ## Import
33
+ *
34
+ * You can import a Stream Governance cluster by using Environment ID and Stream Governance cluster ID, in the format `<Environment ID>/<Stream Governance cluster ID>`, for example$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>" $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
35
+ *
36
+ * ```sh
37
+ * $ pulumi import confluentcloud:index/streamGovernanceCluster:StreamGovernanceCluster example env-abc123/lsrc-abc123
38
+ * ```
39
+ *
40
+ * !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
41
+ */
42
+ class StreamGovernanceCluster extends pulumi.CustomResource {
43
+ constructor(name, argsOrState, opts) {
44
+ let resourceInputs = {};
45
+ opts = opts || {};
46
+ if (opts.id) {
47
+ const state = argsOrState;
48
+ resourceInputs["apiVersion"] = state ? state.apiVersion : undefined;
49
+ resourceInputs["displayName"] = state ? state.displayName : undefined;
50
+ resourceInputs["environment"] = state ? state.environment : undefined;
51
+ resourceInputs["httpEndpoint"] = state ? state.httpEndpoint : undefined;
52
+ resourceInputs["kind"] = state ? state.kind : undefined;
53
+ resourceInputs["package"] = state ? state.package : undefined;
54
+ resourceInputs["region"] = state ? state.region : undefined;
55
+ resourceInputs["resourceName"] = state ? state.resourceName : undefined;
56
+ }
57
+ else {
58
+ const args = argsOrState;
59
+ if ((!args || args.environment === undefined) && !opts.urn) {
60
+ throw new Error("Missing required property 'environment'");
61
+ }
62
+ if ((!args || args.package === undefined) && !opts.urn) {
63
+ throw new Error("Missing required property 'package'");
64
+ }
65
+ if ((!args || args.region === undefined) && !opts.urn) {
66
+ throw new Error("Missing required property 'region'");
67
+ }
68
+ resourceInputs["environment"] = args ? args.environment : undefined;
69
+ resourceInputs["package"] = args ? args.package : undefined;
70
+ resourceInputs["region"] = args ? args.region : undefined;
71
+ resourceInputs["apiVersion"] = undefined /*out*/;
72
+ resourceInputs["displayName"] = undefined /*out*/;
73
+ resourceInputs["httpEndpoint"] = undefined /*out*/;
74
+ resourceInputs["kind"] = undefined /*out*/;
75
+ resourceInputs["resourceName"] = undefined /*out*/;
76
+ }
77
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
78
+ super(StreamGovernanceCluster.__pulumiType, name, resourceInputs, opts);
79
+ }
80
+ /**
81
+ * Get an existing StreamGovernanceCluster resource's state with the given name, ID, and optional extra
82
+ * properties used to qualify the lookup.
83
+ *
84
+ * @param name The _unique_ name of the resulting resource.
85
+ * @param id The _unique_ provider ID of the resource to lookup.
86
+ * @param state Any extra arguments used during the lookup.
87
+ * @param opts Optional settings to control the behavior of the CustomResource.
88
+ */
89
+ static get(name, id, state, opts) {
90
+ return new StreamGovernanceCluster(name, state, Object.assign(Object.assign({}, opts), { id: id }));
91
+ }
92
+ /**
93
+ * Returns true if the given object is an instance of StreamGovernanceCluster. This is designed to work even
94
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
95
+ */
96
+ static isInstance(obj) {
97
+ if (obj === undefined || obj === null) {
98
+ return false;
99
+ }
100
+ return obj['__pulumiType'] === StreamGovernanceCluster.__pulumiType;
101
+ }
102
+ }
103
+ exports.StreamGovernanceCluster = StreamGovernanceCluster;
104
+ /** @internal */
105
+ StreamGovernanceCluster.__pulumiType = 'confluentcloud:index/streamGovernanceCluster:StreamGovernanceCluster';
106
+ //# sourceMappingURL=streamGovernanceCluster.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streamGovernanceCluster.js","sourceRoot":"","sources":["../streamGovernanceCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAkE9D,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAA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