@pulumi/confluentcloud 0.0.1-alpha.1654438618
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/LICENSE +202 -0
- package/README.md +336 -0
- package/apiKey.d.ts +110 -0
- package/apiKey.js +77 -0
- package/apiKey.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +12 -0
- package/config/vars.js +25 -0
- package/config/vars.js.map +1 -0
- package/connector.d.ts +97 -0
- package/connector.js +73 -0
- package/connector.js.map +1 -0
- package/environment.d.ts +67 -0
- package/environment.js +65 -0
- package/environment.js.map +1 -0
- package/getEnvironment.d.ts +72 -0
- package/getEnvironment.js +50 -0
- package/getEnvironment.js.map +1 -0
- package/getKafkaCluster.d.ts +143 -0
- package/getKafkaCluster.js +55 -0
- package/getKafkaCluster.js.map +1 -0
- package/getKafkaTopic.d.ts +80 -0
- package/getKafkaTopic.js +48 -0
- package/getKafkaTopic.js.map +1 -0
- package/getNetwork.d.ts +142 -0
- package/getNetwork.js +55 -0
- package/getNetwork.js.map +1 -0
- package/getOrganization.d.ts +28 -0
- package/getOrganization.js +29 -0
- package/getOrganization.js.map +1 -0
- package/getServiceAccount.d.ts +73 -0
- package/getServiceAccount.js +43 -0
- package/getServiceAccount.js.map +1 -0
- package/getUser.d.ts +99 -0
- package/getUser.js +62 -0
- package/getUser.js.map +1 -0
- package/index.d.ts +22 -0
- package/index.js +111 -0
- package/index.js.map +1 -0
- package/kafkaAcl.d.ts +159 -0
- package/kafkaAcl.js +108 -0
- package/kafkaAcl.js.map +1 -0
- package/kafkaCluster.d.ts +190 -0
- package/kafkaCluster.js +101 -0
- package/kafkaCluster.js.map +1 -0
- package/kafkaTopic.d.ts +117 -0
- package/kafkaTopic.js +82 -0
- package/kafkaTopic.js.map +1 -0
- package/network.d.ts +208 -0
- package/network.js +96 -0
- package/network.js.map +1 -0
- package/package.json +28 -0
- package/package.json.bak +28 -0
- package/package.json.dev +28 -0
- package/peering.d.ts +96 -0
- package/peering.js +76 -0
- package/peering.js.map +1 -0
- package/privateLinkAccess.d.ts +93 -0
- package/privateLinkAccess.js +74 -0
- package/privateLinkAccess.js.map +1 -0
- package/provider.d.ts +51 -0
- package/provider.js +47 -0
- package/provider.js.map +1 -0
- package/roleBinding.d.ts +83 -0
- package/roleBinding.js +73 -0
- package/roleBinding.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/serviceAccount.d.ts +87 -0
- package/serviceAccount.js +69 -0
- package/serviceAccount.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +363 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +298 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +57 -0
- package/utilities.js.map +1 -0
package/apiKey.js
ADDED
|
@@ -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.ApiKey = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* You can import a Kafka API Key by using the Environment ID and Kafka API Key ID in the format `<Environment ID>/<Kafka API Key ID>`, for example$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>" $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>" $ export API_KEY_SECRET="<api_key_secret>" # Option #1Kafka API Key
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import confluentcloud:index/apiKey:ApiKey example_kafka_api_key "env-abc123/UTT6WDRXX7FHD2GV"
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* You can import a Cloud API Key by using Cloud API Key ID, for example$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>" $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>" $ export API_KEY_SECRET="<api_key_secret>" # Option #2Cloud API Key
|
|
18
|
+
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import confluentcloud:index/apiKey:ApiKey example_cloud_api_key "4UEXOMMWIBE5KZQG"
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
24
|
+
*/
|
|
25
|
+
class ApiKey extends pulumi.CustomResource {
|
|
26
|
+
constructor(name, argsOrState, opts) {
|
|
27
|
+
let resourceInputs = {};
|
|
28
|
+
opts = opts || {};
|
|
29
|
+
if (opts.id) {
|
|
30
|
+
const state = argsOrState;
|
|
31
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
32
|
+
resourceInputs["displayName"] = state ? state.displayName : undefined;
|
|
33
|
+
resourceInputs["managedResource"] = state ? state.managedResource : undefined;
|
|
34
|
+
resourceInputs["owner"] = state ? state.owner : undefined;
|
|
35
|
+
resourceInputs["secret"] = state ? state.secret : undefined;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
const args = argsOrState;
|
|
39
|
+
if ((!args || args.owner === undefined) && !opts.urn) {
|
|
40
|
+
throw new Error("Missing required property 'owner'");
|
|
41
|
+
}
|
|
42
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
43
|
+
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
44
|
+
resourceInputs["managedResource"] = args ? args.managedResource : undefined;
|
|
45
|
+
resourceInputs["owner"] = args ? args.owner : undefined;
|
|
46
|
+
resourceInputs["secret"] = undefined /*out*/;
|
|
47
|
+
}
|
|
48
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
49
|
+
super(ApiKey.__pulumiType, name, resourceInputs, opts);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing ApiKey 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 ApiKey(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Returns true if the given object is an instance of ApiKey. 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'] === ApiKey.__pulumiType;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.ApiKey = ApiKey;
|
|
75
|
+
/** @internal */
|
|
76
|
+
ApiKey.__pulumiType = 'confluentcloud:index/apiKey:ApiKey';
|
|
77
|
+
//# sourceMappingURL=apiKey.js.map
|
package/apiKey.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKey.js","sourceRoot":"","sources":["../apiKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAyD7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,I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,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;IA/ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBAiFC;AAnEG,gBAAgB;AACO,mBAAY,GAAG,oCAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./vars";
|
package/config/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
// Export members:
|
|
20
|
+
__exportStar(require("./vars"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
|
package/config/vars.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Confluent Cloud API Key.
|
|
3
|
+
*/
|
|
4
|
+
export declare const apiKey: string | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* The Confluent Cloud API Secret.
|
|
7
|
+
*/
|
|
8
|
+
export declare const apiSecret: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* The base endpoint of Confluent Cloud API.
|
|
11
|
+
*/
|
|
12
|
+
export declare const endpoint: string | undefined;
|
package/config/vars.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const __config = new pulumi.Config("confluentcloud");
|
|
7
|
+
Object.defineProperty(exports, "apiKey", {
|
|
8
|
+
get() {
|
|
9
|
+
return __config.get("apiKey");
|
|
10
|
+
},
|
|
11
|
+
enumerable: true,
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "apiSecret", {
|
|
14
|
+
get() {
|
|
15
|
+
return __config.get("apiSecret");
|
|
16
|
+
},
|
|
17
|
+
enumerable: true,
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "endpoint", {
|
|
20
|
+
get() {
|
|
21
|
+
return __config.get("endpoint");
|
|
22
|
+
},
|
|
23
|
+
enumerable: true,
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=vars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAMrD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/connector.d.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* ## Import
|
|
5
|
+
*
|
|
6
|
+
* You can import a connector by using Environment ID, Kafka cluster ID, and connector's name, in the format `<Environment ID>/<Kafka cluster ID>/<Connector name>`, for example$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>" $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
7
|
+
*
|
|
8
|
+
* ```sh
|
|
9
|
+
* $ pulumi import confluentcloud:index/connector:Connector my_connector "env-abc123/lkc-abc123/S3_SINKConnector_0"
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare class Connector extends pulumi.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get an existing Connector resource's state with the given name, ID, and optional extra
|
|
15
|
+
* properties used to qualify the lookup.
|
|
16
|
+
*
|
|
17
|
+
* @param name The _unique_ name of the resulting resource.
|
|
18
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
19
|
+
* @param state Any extra arguments used during the lookup.
|
|
20
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
21
|
+
*/
|
|
22
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ConnectorState, opts?: pulumi.CustomResourceOptions): Connector;
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of Connector. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj: any): obj is Connector;
|
|
28
|
+
/**
|
|
29
|
+
* The custom connector _nonsensitive_ configuration settings to set:
|
|
30
|
+
*/
|
|
31
|
+
readonly configNonsensitive: pulumi.Output<{
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* The custom connector _sensitive_ configuration settings to set:
|
|
36
|
+
*/
|
|
37
|
+
readonly configSensitive: pulumi.Output<{
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
}>;
|
|
40
|
+
/**
|
|
41
|
+
* Environment objects represent an isolated namespace for your Confluent resources for organizational purposes.
|
|
42
|
+
*/
|
|
43
|
+
readonly environment: pulumi.Output<outputs.ConnectorEnvironment>;
|
|
44
|
+
readonly kafkaCluster: pulumi.Output<outputs.ConnectorKafkaCluster>;
|
|
45
|
+
/**
|
|
46
|
+
* Create a Connector resource with the given unique name, arguments, and options.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resource.
|
|
49
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
50
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
51
|
+
*/
|
|
52
|
+
constructor(name: string, args: ConnectorArgs, opts?: pulumi.CustomResourceOptions);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Input properties used for looking up and filtering Connector resources.
|
|
56
|
+
*/
|
|
57
|
+
export interface ConnectorState {
|
|
58
|
+
/**
|
|
59
|
+
* The custom connector _nonsensitive_ configuration settings to set:
|
|
60
|
+
*/
|
|
61
|
+
configNonsensitive?: pulumi.Input<{
|
|
62
|
+
[key: string]: pulumi.Input<string>;
|
|
63
|
+
}>;
|
|
64
|
+
/**
|
|
65
|
+
* The custom connector _sensitive_ configuration settings to set:
|
|
66
|
+
*/
|
|
67
|
+
configSensitive?: pulumi.Input<{
|
|
68
|
+
[key: string]: pulumi.Input<string>;
|
|
69
|
+
}>;
|
|
70
|
+
/**
|
|
71
|
+
* Environment objects represent an isolated namespace for your Confluent resources for organizational purposes.
|
|
72
|
+
*/
|
|
73
|
+
environment?: pulumi.Input<inputs.ConnectorEnvironment>;
|
|
74
|
+
kafkaCluster?: pulumi.Input<inputs.ConnectorKafkaCluster>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The set of arguments for constructing a Connector resource.
|
|
78
|
+
*/
|
|
79
|
+
export interface ConnectorArgs {
|
|
80
|
+
/**
|
|
81
|
+
* The custom connector _nonsensitive_ configuration settings to set:
|
|
82
|
+
*/
|
|
83
|
+
configNonsensitive: pulumi.Input<{
|
|
84
|
+
[key: string]: pulumi.Input<string>;
|
|
85
|
+
}>;
|
|
86
|
+
/**
|
|
87
|
+
* The custom connector _sensitive_ configuration settings to set:
|
|
88
|
+
*/
|
|
89
|
+
configSensitive?: pulumi.Input<{
|
|
90
|
+
[key: string]: pulumi.Input<string>;
|
|
91
|
+
}>;
|
|
92
|
+
/**
|
|
93
|
+
* Environment objects represent an isolated namespace for your Confluent resources for organizational purposes.
|
|
94
|
+
*/
|
|
95
|
+
environment: pulumi.Input<inputs.ConnectorEnvironment>;
|
|
96
|
+
kafkaCluster: pulumi.Input<inputs.ConnectorKafkaCluster>;
|
|
97
|
+
}
|
package/connector.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
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.Connector = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* You can import a connector by using Environment ID, Kafka cluster ID, and connector's name, in the format `<Environment ID>/<Kafka cluster ID>/<Connector name>`, for example$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>" $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import confluentcloud:index/connector:Connector my_connector "env-abc123/lkc-abc123/S3_SINKConnector_0"
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class Connector extends pulumi.CustomResource {
|
|
18
|
+
constructor(name, argsOrState, opts) {
|
|
19
|
+
let resourceInputs = {};
|
|
20
|
+
opts = opts || {};
|
|
21
|
+
if (opts.id) {
|
|
22
|
+
const state = argsOrState;
|
|
23
|
+
resourceInputs["configNonsensitive"] = state ? state.configNonsensitive : undefined;
|
|
24
|
+
resourceInputs["configSensitive"] = state ? state.configSensitive : undefined;
|
|
25
|
+
resourceInputs["environment"] = state ? state.environment : undefined;
|
|
26
|
+
resourceInputs["kafkaCluster"] = state ? state.kafkaCluster : undefined;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
const args = argsOrState;
|
|
30
|
+
if ((!args || args.configNonsensitive === undefined) && !opts.urn) {
|
|
31
|
+
throw new Error("Missing required property 'configNonsensitive'");
|
|
32
|
+
}
|
|
33
|
+
if ((!args || args.environment === undefined) && !opts.urn) {
|
|
34
|
+
throw new Error("Missing required property 'environment'");
|
|
35
|
+
}
|
|
36
|
+
if ((!args || args.kafkaCluster === undefined) && !opts.urn) {
|
|
37
|
+
throw new Error("Missing required property 'kafkaCluster'");
|
|
38
|
+
}
|
|
39
|
+
resourceInputs["configNonsensitive"] = args ? args.configNonsensitive : undefined;
|
|
40
|
+
resourceInputs["configSensitive"] = args ? args.configSensitive : undefined;
|
|
41
|
+
resourceInputs["environment"] = args ? args.environment : undefined;
|
|
42
|
+
resourceInputs["kafkaCluster"] = args ? args.kafkaCluster : undefined;
|
|
43
|
+
}
|
|
44
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
45
|
+
super(Connector.__pulumiType, name, resourceInputs, opts);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing Connector resource's state with the given name, ID, and optional extra
|
|
49
|
+
* properties used to qualify the lookup.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resulting resource.
|
|
52
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
53
|
+
* @param state Any extra arguments used during the lookup.
|
|
54
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
|
+
*/
|
|
56
|
+
static get(name, id, state, opts) {
|
|
57
|
+
return new Connector(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the given object is an instance of Connector. This is designed to work even
|
|
61
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
62
|
+
*/
|
|
63
|
+
static isInstance(obj) {
|
|
64
|
+
if (obj === undefined || obj === null) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return obj['__pulumiType'] === Connector.__pulumiType;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.Connector = Connector;
|
|
71
|
+
/** @internal */
|
|
72
|
+
Connector.__pulumiType = 'confluentcloud:index/connector:Connector';
|
|
73
|
+
//# sourceMappingURL=connector.js.map
|
package/connector.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../connector.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAkDhD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,C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KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IA5ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;;AA1BL,8BA8EC;AAhEG,gBAAgB;AACO,sBAAY,GAAG,0CAA0C,CAAC"}
|
package/environment.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Import
|
|
4
|
+
*
|
|
5
|
+
* You can import an Environment by using Environment ID, for example$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>" $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import confluentcloud:index/environment:Environment my_env env-abc123
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
12
|
+
*/
|
|
13
|
+
export declare class Environment extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing Environment resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param state Any extra arguments used during the lookup.
|
|
21
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
|
+
*/
|
|
23
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EnvironmentState, opts?: pulumi.CustomResourceOptions): Environment;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Environment. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj: any): obj is Environment;
|
|
29
|
+
/**
|
|
30
|
+
* A human-readable name for the Environment. Start and end the name with alphanumeric characters, for example, "Development". The name can contain hyphens and underscores.
|
|
31
|
+
*/
|
|
32
|
+
readonly displayName: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* (Required String) The Confluent Resource Name of the Environment, for example, `crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-abc123`.
|
|
35
|
+
*/
|
|
36
|
+
readonly resourceName: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Create a Environment resource with the given unique name, arguments, and options.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resource.
|
|
41
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
42
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
43
|
+
*/
|
|
44
|
+
constructor(name: string, args: EnvironmentArgs, opts?: pulumi.CustomResourceOptions);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Input properties used for looking up and filtering Environment resources.
|
|
48
|
+
*/
|
|
49
|
+
export interface EnvironmentState {
|
|
50
|
+
/**
|
|
51
|
+
* A human-readable name for the Environment. Start and end the name with alphanumeric characters, for example, "Development". The name can contain hyphens and underscores.
|
|
52
|
+
*/
|
|
53
|
+
displayName?: pulumi.Input<string>;
|
|
54
|
+
/**
|
|
55
|
+
* (Required String) The Confluent Resource Name of the Environment, for example, `crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-abc123`.
|
|
56
|
+
*/
|
|
57
|
+
resourceName?: pulumi.Input<string>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The set of arguments for constructing a Environment resource.
|
|
61
|
+
*/
|
|
62
|
+
export interface EnvironmentArgs {
|
|
63
|
+
/**
|
|
64
|
+
* A human-readable name for the Environment. Start and end the name with alphanumeric characters, for example, "Development". The name can contain hyphens and underscores.
|
|
65
|
+
*/
|
|
66
|
+
displayName: pulumi.Input<string>;
|
|
67
|
+
}
|
package/environment.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
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.Environment = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* You can import an Environment by using Environment ID, for example$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>" $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import confluentcloud:index/environment:Environment my_env env-abc123
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
18
|
+
*/
|
|
19
|
+
class Environment extends pulumi.CustomResource {
|
|
20
|
+
constructor(name, argsOrState, opts) {
|
|
21
|
+
let resourceInputs = {};
|
|
22
|
+
opts = opts || {};
|
|
23
|
+
if (opts.id) {
|
|
24
|
+
const state = argsOrState;
|
|
25
|
+
resourceInputs["displayName"] = state ? state.displayName : undefined;
|
|
26
|
+
resourceInputs["resourceName"] = state ? state.resourceName : undefined;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
const args = argsOrState;
|
|
30
|
+
if ((!args || args.displayName === undefined) && !opts.urn) {
|
|
31
|
+
throw new Error("Missing required property 'displayName'");
|
|
32
|
+
}
|
|
33
|
+
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
34
|
+
resourceInputs["resourceName"] = undefined /*out*/;
|
|
35
|
+
}
|
|
36
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
37
|
+
super(Environment.__pulumiType, name, resourceInputs, opts);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Get an existing Environment 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, id, state, opts) {
|
|
49
|
+
return new Environment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Returns true if the given object is an instance of Environment. This is designed to work even
|
|
53
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
54
|
+
*/
|
|
55
|
+
static isInstance(obj) {
|
|
56
|
+
if (obj === undefined || obj === null) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
return obj['__pulumiType'] === Environment.__pulumiType;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.Environment = Environment;
|
|
63
|
+
/** @internal */
|
|
64
|
+
Environment.__pulumiType = 'confluentcloud:index/environment:Environment';
|
|
65
|
+
//# sourceMappingURL=environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../environment.ts"],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QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCA+DC;AAjDG,gBAAgB;AACO,wBAAY,GAAG,8CAA8C,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* `confluentcloud.Environment` describes an Environment data source.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
10
|
+
*
|
|
11
|
+
* const exampleUsingIdEnvironment = confluentcloud.getEnvironment({
|
|
12
|
+
* id: "env-abc123",
|
|
13
|
+
* });
|
|
14
|
+
* export const exampleUsingId = exampleUsingIdEnvironment;
|
|
15
|
+
* const exampleUsingNameEnvironment = confluentcloud.getEnvironment({
|
|
16
|
+
* displayName: "stag",
|
|
17
|
+
* });
|
|
18
|
+
* const exampleUsingNameServiceAccount = confluentcloud.getServiceAccount({
|
|
19
|
+
* displayName: "test_sa",
|
|
20
|
+
* });
|
|
21
|
+
* const test_role_binding = new confluentcloud.RoleBinding("test-role-binding", {
|
|
22
|
+
* principal: exampleUsingNameServiceAccount.then(exampleUsingNameServiceAccount => `User:${exampleUsingNameServiceAccount.id}`),
|
|
23
|
+
* roleName: "EnvironmentAdmin",
|
|
24
|
+
* crnPattern: exampleUsingNameEnvironment.then(exampleUsingNameEnvironment => exampleUsingNameEnvironment.resourceName),
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function getEnvironment(args?: GetEnvironmentArgs, opts?: pulumi.InvokeOptions): Promise<GetEnvironmentResult>;
|
|
29
|
+
/**
|
|
30
|
+
* A collection of arguments for invoking getEnvironment.
|
|
31
|
+
*/
|
|
32
|
+
export interface GetEnvironmentArgs {
|
|
33
|
+
/**
|
|
34
|
+
* A human-readable name for the Environment.
|
|
35
|
+
*/
|
|
36
|
+
displayName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The ID of the Environment, for example, `env-abc123`.
|
|
39
|
+
*/
|
|
40
|
+
id?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A collection of values returned by getEnvironment.
|
|
44
|
+
*/
|
|
45
|
+
export interface GetEnvironmentResult {
|
|
46
|
+
/**
|
|
47
|
+
* (Required String) A human-readable name for the Environment.
|
|
48
|
+
*/
|
|
49
|
+
readonly displayName: string;
|
|
50
|
+
/**
|
|
51
|
+
* (Required String) The ID of the Environment, for example, `env-abc123`.
|
|
52
|
+
*/
|
|
53
|
+
readonly id: string;
|
|
54
|
+
/**
|
|
55
|
+
* (Required String) The Confluent Resource Name of the Environment, for example, `crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-abc123`.
|
|
56
|
+
*/
|
|
57
|
+
readonly resourceName: string;
|
|
58
|
+
}
|
|
59
|
+
export declare function getEnvironmentOutput(args?: GetEnvironmentOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetEnvironmentResult>;
|
|
60
|
+
/**
|
|
61
|
+
* A collection of arguments for invoking getEnvironment.
|
|
62
|
+
*/
|
|
63
|
+
export interface GetEnvironmentOutputArgs {
|
|
64
|
+
/**
|
|
65
|
+
* A human-readable name for the Environment.
|
|
66
|
+
*/
|
|
67
|
+
displayName?: pulumi.Input<string>;
|
|
68
|
+
/**
|
|
69
|
+
* The ID of the Environment, for example, `env-abc123`.
|
|
70
|
+
*/
|
|
71
|
+
id?: pulumi.Input<string>;
|
|
72
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.getEnvironmentOutput = exports.getEnvironment = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* `confluentcloud.Environment` describes an Environment data source.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
16
|
+
*
|
|
17
|
+
* const exampleUsingIdEnvironment = confluentcloud.getEnvironment({
|
|
18
|
+
* id: "env-abc123",
|
|
19
|
+
* });
|
|
20
|
+
* export const exampleUsingId = exampleUsingIdEnvironment;
|
|
21
|
+
* const exampleUsingNameEnvironment = confluentcloud.getEnvironment({
|
|
22
|
+
* displayName: "stag",
|
|
23
|
+
* });
|
|
24
|
+
* const exampleUsingNameServiceAccount = confluentcloud.getServiceAccount({
|
|
25
|
+
* displayName: "test_sa",
|
|
26
|
+
* });
|
|
27
|
+
* const test_role_binding = new confluentcloud.RoleBinding("test-role-binding", {
|
|
28
|
+
* principal: exampleUsingNameServiceAccount.then(exampleUsingNameServiceAccount => `User:${exampleUsingNameServiceAccount.id}`),
|
|
29
|
+
* roleName: "EnvironmentAdmin",
|
|
30
|
+
* crnPattern: exampleUsingNameEnvironment.then(exampleUsingNameEnvironment => exampleUsingNameEnvironment.resourceName),
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
function getEnvironment(args, opts) {
|
|
35
|
+
args = args || {};
|
|
36
|
+
if (!opts) {
|
|
37
|
+
opts = {};
|
|
38
|
+
}
|
|
39
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
40
|
+
return pulumi.runtime.invoke("confluentcloud:index/getEnvironment:getEnvironment", {
|
|
41
|
+
"displayName": args.displayName,
|
|
42
|
+
"id": args.id,
|
|
43
|
+
}, opts);
|
|
44
|
+
}
|
|
45
|
+
exports.getEnvironment = getEnvironment;
|
|
46
|
+
function getEnvironmentOutput(args, opts) {
|
|
47
|
+
return pulumi.output(args).apply(a => getEnvironment(a, opts));
|
|
48
|
+
}
|
|
49
|
+
exports.getEnvironmentOutput = getEnvironmentOutput;
|
|
50
|
+
//# sourceMappingURL=getEnvironment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEnvironment.js","sourceRoot":"","sources":["../getEnvironment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,wCAWC;AAkCD,SAAgB,oBAAoB,CAAC,IAA+B,EAAE,IAA2B;IAC7F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,oDAEC"}
|