@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
|
@@ -0,0 +1,93 @@
|
|
|
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 Private Link Access by using Environment ID and Private Link Access ID, in the format `<Environment ID>/<Private Link Access ID>`. The following example shows how to import a Private Link Access$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>" $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
7
|
+
*
|
|
8
|
+
* ```sh
|
|
9
|
+
* $ pulumi import confluentcloud:index/privateLinkAccess:PrivateLinkAccess my_pla env-abc123/pla-abc123
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
13
|
+
*/
|
|
14
|
+
export declare class PrivateLinkAccess extends pulumi.CustomResource {
|
|
15
|
+
/**
|
|
16
|
+
* Get an existing PrivateLinkAccess resource's state with the given name, ID, and optional extra
|
|
17
|
+
* properties used to qualify the lookup.
|
|
18
|
+
*
|
|
19
|
+
* @param name The _unique_ name of the resulting resource.
|
|
20
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
21
|
+
* @param state Any extra arguments used during the lookup.
|
|
22
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
23
|
+
*/
|
|
24
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PrivateLinkAccessState, opts?: pulumi.CustomResourceOptions): PrivateLinkAccess;
|
|
25
|
+
/**
|
|
26
|
+
* Returns true if the given object is an instance of PrivateLinkAccess. This is designed to work even
|
|
27
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
28
|
+
*/
|
|
29
|
+
static isInstance(obj: any): obj is PrivateLinkAccess;
|
|
30
|
+
readonly aws: pulumi.Output<outputs.PrivateLinkAccessAws | undefined>;
|
|
31
|
+
readonly azure: pulumi.Output<outputs.PrivateLinkAccessAzure | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* The name of the Private Link Access.
|
|
34
|
+
*/
|
|
35
|
+
readonly displayName: pulumi.Output<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Environment objects represent an isolated namespace for your Confluent resources for organizational purposes.
|
|
38
|
+
*/
|
|
39
|
+
readonly environment: pulumi.Output<outputs.PrivateLinkAccessEnvironment>;
|
|
40
|
+
/**
|
|
41
|
+
* Network represents a network (VPC) in Confluent Cloud. All Networks exist within Confluent-managed cloud provider
|
|
42
|
+
* accounts.
|
|
43
|
+
*/
|
|
44
|
+
readonly network: pulumi.Output<outputs.PrivateLinkAccessNetwork>;
|
|
45
|
+
/**
|
|
46
|
+
* Create a PrivateLinkAccess 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: PrivateLinkAccessArgs, opts?: pulumi.CustomResourceOptions);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Input properties used for looking up and filtering PrivateLinkAccess resources.
|
|
56
|
+
*/
|
|
57
|
+
export interface PrivateLinkAccessState {
|
|
58
|
+
aws?: pulumi.Input<inputs.PrivateLinkAccessAws>;
|
|
59
|
+
azure?: pulumi.Input<inputs.PrivateLinkAccessAzure>;
|
|
60
|
+
/**
|
|
61
|
+
* The name of the Private Link Access.
|
|
62
|
+
*/
|
|
63
|
+
displayName?: pulumi.Input<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Environment objects represent an isolated namespace for your Confluent resources for organizational purposes.
|
|
66
|
+
*/
|
|
67
|
+
environment?: pulumi.Input<inputs.PrivateLinkAccessEnvironment>;
|
|
68
|
+
/**
|
|
69
|
+
* Network represents a network (VPC) in Confluent Cloud. All Networks exist within Confluent-managed cloud provider
|
|
70
|
+
* accounts.
|
|
71
|
+
*/
|
|
72
|
+
network?: pulumi.Input<inputs.PrivateLinkAccessNetwork>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The set of arguments for constructing a PrivateLinkAccess resource.
|
|
76
|
+
*/
|
|
77
|
+
export interface PrivateLinkAccessArgs {
|
|
78
|
+
aws?: pulumi.Input<inputs.PrivateLinkAccessAws>;
|
|
79
|
+
azure?: pulumi.Input<inputs.PrivateLinkAccessAzure>;
|
|
80
|
+
/**
|
|
81
|
+
* The name of the Private Link Access.
|
|
82
|
+
*/
|
|
83
|
+
displayName?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Environment objects represent an isolated namespace for your Confluent resources for organizational purposes.
|
|
86
|
+
*/
|
|
87
|
+
environment: pulumi.Input<inputs.PrivateLinkAccessEnvironment>;
|
|
88
|
+
/**
|
|
89
|
+
* Network represents a network (VPC) in Confluent Cloud. All Networks exist within Confluent-managed cloud provider
|
|
90
|
+
* accounts.
|
|
91
|
+
*/
|
|
92
|
+
network: pulumi.Input<inputs.PrivateLinkAccessNetwork>;
|
|
93
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.PrivateLinkAccess = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* You can import a Private Link Access by using Environment ID and Private Link Access ID, in the format `<Environment ID>/<Private Link Access ID>`. The following example shows how to import a Private Link Access$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>" $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import confluentcloud:index/privateLinkAccess:PrivateLinkAccess my_pla env-abc123/pla-abc123
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
18
|
+
*/
|
|
19
|
+
class PrivateLinkAccess extends pulumi.CustomResource {
|
|
20
|
+
constructor(name, argsOrState, opts) {
|
|
21
|
+
let resourceInputs = {};
|
|
22
|
+
opts = opts || {};
|
|
23
|
+
if (opts.id) {
|
|
24
|
+
const state = argsOrState;
|
|
25
|
+
resourceInputs["aws"] = state ? state.aws : undefined;
|
|
26
|
+
resourceInputs["azure"] = state ? state.azure : undefined;
|
|
27
|
+
resourceInputs["displayName"] = state ? state.displayName : undefined;
|
|
28
|
+
resourceInputs["environment"] = state ? state.environment : undefined;
|
|
29
|
+
resourceInputs["network"] = state ? state.network : undefined;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
const args = argsOrState;
|
|
33
|
+
if ((!args || args.environment === undefined) && !opts.urn) {
|
|
34
|
+
throw new Error("Missing required property 'environment'");
|
|
35
|
+
}
|
|
36
|
+
if ((!args || args.network === undefined) && !opts.urn) {
|
|
37
|
+
throw new Error("Missing required property 'network'");
|
|
38
|
+
}
|
|
39
|
+
resourceInputs["aws"] = args ? args.aws : undefined;
|
|
40
|
+
resourceInputs["azure"] = args ? args.azure : undefined;
|
|
41
|
+
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
42
|
+
resourceInputs["environment"] = args ? args.environment : undefined;
|
|
43
|
+
resourceInputs["network"] = args ? args.network : undefined;
|
|
44
|
+
}
|
|
45
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
46
|
+
super(PrivateLinkAccess.__pulumiType, name, resourceInputs, opts);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get an existing PrivateLinkAccess resource's state with the given name, ID, and optional extra
|
|
50
|
+
* properties used to qualify the lookup.
|
|
51
|
+
*
|
|
52
|
+
* @param name The _unique_ name of the resulting resource.
|
|
53
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
54
|
+
* @param state Any extra arguments used during the lookup.
|
|
55
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
56
|
+
*/
|
|
57
|
+
static get(name, id, state, opts) {
|
|
58
|
+
return new PrivateLinkAccess(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Returns true if the given object is an instance of PrivateLinkAccess. This is designed to work even
|
|
62
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
63
|
+
*/
|
|
64
|
+
static isInstance(obj) {
|
|
65
|
+
if (obj === undefined || obj === null) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
return obj['__pulumiType'] === PrivateLinkAccess.__pulumiType;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.PrivateLinkAccess = PrivateLinkAccess;
|
|
72
|
+
/** @internal */
|
|
73
|
+
PrivateLinkAccess.__pulumiType = 'confluentcloud:index/privateLinkAccess:PrivateLinkAccess';
|
|
74
|
+
//# sourceMappingURL=privateLinkAccess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkAccess.js","sourceRoot":"","sources":["../privateLinkAccess.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IAoDxD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,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,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;aAAM;YACH,MAAM,IAAI,GAAG,WAAgD,CAAC;YAC9D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI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C,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CA+EC;AAjEG,gBAAgB;AACO,8BAAY,GAAG,0DAA0D,CAAC"}
|
package/provider.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The provider type for the confluent package. By default, resources use package-wide configuration
|
|
4
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
5
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
6
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
11
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
|
+
*/
|
|
13
|
+
static isInstance(obj: any): obj is Provider;
|
|
14
|
+
/**
|
|
15
|
+
* The Confluent Cloud API Key.
|
|
16
|
+
*/
|
|
17
|
+
readonly apiKey: pulumi.Output<string | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* The Confluent Cloud API Secret.
|
|
20
|
+
*/
|
|
21
|
+
readonly apiSecret: pulumi.Output<string | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* The base endpoint of Confluent Cloud API.
|
|
24
|
+
*/
|
|
25
|
+
readonly endpoint: pulumi.Output<string | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resource.
|
|
30
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
31
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
32
|
+
*/
|
|
33
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The set of arguments for constructing a Provider resource.
|
|
37
|
+
*/
|
|
38
|
+
export interface ProviderArgs {
|
|
39
|
+
/**
|
|
40
|
+
* The Confluent Cloud API Key.
|
|
41
|
+
*/
|
|
42
|
+
apiKey?: pulumi.Input<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The Confluent Cloud API Secret.
|
|
45
|
+
*/
|
|
46
|
+
apiSecret?: pulumi.Input<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The base endpoint of Confluent Cloud API.
|
|
49
|
+
*/
|
|
50
|
+
endpoint?: pulumi.Input<string>;
|
|
51
|
+
}
|
package/provider.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
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.Provider = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The provider type for the confluent package. By default, resources use package-wide configuration
|
|
10
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
11
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
12
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
13
|
+
*/
|
|
14
|
+
class Provider extends pulumi.ProviderResource {
|
|
15
|
+
/**
|
|
16
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resource.
|
|
19
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
20
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
21
|
+
*/
|
|
22
|
+
constructor(name, args, opts) {
|
|
23
|
+
let resourceInputs = {};
|
|
24
|
+
opts = opts || {};
|
|
25
|
+
{
|
|
26
|
+
resourceInputs["apiKey"] = args ? args.apiKey : undefined;
|
|
27
|
+
resourceInputs["apiSecret"] = args ? args.apiSecret : undefined;
|
|
28
|
+
resourceInputs["endpoint"] = args ? args.endpoint : undefined;
|
|
29
|
+
}
|
|
30
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
31
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
35
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
36
|
+
*/
|
|
37
|
+
static isInstance(obj) {
|
|
38
|
+
if (obj === undefined || obj === null) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.Provider = Provider;
|
|
45
|
+
/** @internal */
|
|
46
|
+
Provider.__pulumiType = 'confluentcloud';
|
|
47
|
+
//# sourceMappingURL=provider.js.map
|
package/provider.js.map
ADDED
|
@@ -0,0 +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;IA4BjD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAzCD;;;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,4BA8CC;AA7CG,gBAAgB;AACO,qBAAY,GAAG,gBAAgB,CAAC"}
|
package/roleBinding.d.ts
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Import
|
|
4
|
+
*
|
|
5
|
+
* You can import a Role Binding by using Role Binding 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/roleBinding:RoleBinding my_rb rb-f3a90de
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
12
|
+
*/
|
|
13
|
+
export declare class RoleBinding extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing RoleBinding 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?: RoleBindingState, opts?: pulumi.CustomResourceOptions): RoleBinding;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of RoleBinding. 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 RoleBinding;
|
|
29
|
+
/**
|
|
30
|
+
* A [Confluent Resource Name(CRN)](https://docs.confluent.io/cloud/current/api.html#section/Identifiers-and-URLs/Confluent-Resource-Names-(CRNs)) that specifies the scope and resource patterns necessary for the role to bind.
|
|
31
|
+
*/
|
|
32
|
+
readonly crnPattern: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* A principal User to bind the role to, for example, "User:u-111aaa" for binding to a user "u-111aaa", or "User:sa-111aaa" for binding to a service account "sa-111aaa".
|
|
35
|
+
*/
|
|
36
|
+
readonly principal: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* A name of the role to bind to the principal. See [Confluent Cloud RBAC Roles](https://docs.confluent.io/cloud/current/access-management/access-control/cloud-rbac.html#ccloud-rbac-roles) for a full list of supported role names.
|
|
39
|
+
*/
|
|
40
|
+
readonly roleName: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Create a RoleBinding resource with the given unique name, arguments, and options.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resource.
|
|
45
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
46
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
47
|
+
*/
|
|
48
|
+
constructor(name: string, args: RoleBindingArgs, opts?: pulumi.CustomResourceOptions);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Input properties used for looking up and filtering RoleBinding resources.
|
|
52
|
+
*/
|
|
53
|
+
export interface RoleBindingState {
|
|
54
|
+
/**
|
|
55
|
+
* A [Confluent Resource Name(CRN)](https://docs.confluent.io/cloud/current/api.html#section/Identifiers-and-URLs/Confluent-Resource-Names-(CRNs)) that specifies the scope and resource patterns necessary for the role to bind.
|
|
56
|
+
*/
|
|
57
|
+
crnPattern?: pulumi.Input<string>;
|
|
58
|
+
/**
|
|
59
|
+
* A principal User to bind the role to, for example, "User:u-111aaa" for binding to a user "u-111aaa", or "User:sa-111aaa" for binding to a service account "sa-111aaa".
|
|
60
|
+
*/
|
|
61
|
+
principal?: pulumi.Input<string>;
|
|
62
|
+
/**
|
|
63
|
+
* A name of the role to bind to the principal. See [Confluent Cloud RBAC Roles](https://docs.confluent.io/cloud/current/access-management/access-control/cloud-rbac.html#ccloud-rbac-roles) for a full list of supported role names.
|
|
64
|
+
*/
|
|
65
|
+
roleName?: pulumi.Input<string>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The set of arguments for constructing a RoleBinding resource.
|
|
69
|
+
*/
|
|
70
|
+
export interface RoleBindingArgs {
|
|
71
|
+
/**
|
|
72
|
+
* A [Confluent Resource Name(CRN)](https://docs.confluent.io/cloud/current/api.html#section/Identifiers-and-URLs/Confluent-Resource-Names-(CRNs)) that specifies the scope and resource patterns necessary for the role to bind.
|
|
73
|
+
*/
|
|
74
|
+
crnPattern: pulumi.Input<string>;
|
|
75
|
+
/**
|
|
76
|
+
* A principal User to bind the role to, for example, "User:u-111aaa" for binding to a user "u-111aaa", or "User:sa-111aaa" for binding to a service account "sa-111aaa".
|
|
77
|
+
*/
|
|
78
|
+
principal: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* A name of the role to bind to the principal. See [Confluent Cloud RBAC Roles](https://docs.confluent.io/cloud/current/access-management/access-control/cloud-rbac.html#ccloud-rbac-roles) for a full list of supported role names.
|
|
81
|
+
*/
|
|
82
|
+
roleName: pulumi.Input<string>;
|
|
83
|
+
}
|
package/roleBinding.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.RoleBinding = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* You can import a Role Binding by using Role Binding 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/roleBinding:RoleBinding my_rb rb-f3a90de
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
18
|
+
*/
|
|
19
|
+
class RoleBinding extends pulumi.CustomResource {
|
|
20
|
+
constructor(name, argsOrState, opts) {
|
|
21
|
+
let resourceInputs = {};
|
|
22
|
+
opts = opts || {};
|
|
23
|
+
if (opts.id) {
|
|
24
|
+
const state = argsOrState;
|
|
25
|
+
resourceInputs["crnPattern"] = state ? state.crnPattern : undefined;
|
|
26
|
+
resourceInputs["principal"] = state ? state.principal : undefined;
|
|
27
|
+
resourceInputs["roleName"] = state ? state.roleName : undefined;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
const args = argsOrState;
|
|
31
|
+
if ((!args || args.crnPattern === undefined) && !opts.urn) {
|
|
32
|
+
throw new Error("Missing required property 'crnPattern'");
|
|
33
|
+
}
|
|
34
|
+
if ((!args || args.principal === undefined) && !opts.urn) {
|
|
35
|
+
throw new Error("Missing required property 'principal'");
|
|
36
|
+
}
|
|
37
|
+
if ((!args || args.roleName === undefined) && !opts.urn) {
|
|
38
|
+
throw new Error("Missing required property 'roleName'");
|
|
39
|
+
}
|
|
40
|
+
resourceInputs["crnPattern"] = args ? args.crnPattern : undefined;
|
|
41
|
+
resourceInputs["principal"] = args ? args.principal : undefined;
|
|
42
|
+
resourceInputs["roleName"] = args ? args.roleName : undefined;
|
|
43
|
+
}
|
|
44
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
45
|
+
super(RoleBinding.__pulumiType, name, resourceInputs, opts);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing RoleBinding 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 RoleBinding(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the given object is an instance of RoleBinding. 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'] === RoleBinding.__pulumiType;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.RoleBinding = RoleBinding;
|
|
71
|
+
/** @internal */
|
|
72
|
+
RoleBinding.__pulumiType = 'confluentcloud:index/roleBinding:RoleBinding';
|
|
73
|
+
//# sourceMappingURL=roleBinding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roleBinding.js","sourceRoot":"","sources":["../roleBinding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAiDlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,IAAI,CAAC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process");
|
|
3
|
+
|
|
4
|
+
var args = process.argv.slice(2);
|
|
5
|
+
var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
|
|
6
|
+
stdio: ["ignore", "inherit", "inherit"]
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
if (res.error && res.error.code === "ENOENT") {
|
|
10
|
+
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
11
|
+
"It looks like `pulumi` is not installed on your system. " +
|
|
12
|
+
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
|
|
13
|
+
"You may try manually installing the plugin by running " +
|
|
14
|
+
"`pulumi plugin install " + args.join(" ") + "`");
|
|
15
|
+
} else if (res.error || res.status !== 0) {
|
|
16
|
+
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
17
|
+
"You may try to manually installing the plugin by running " +
|
|
18
|
+
"`pulumi plugin install " + args.join(" ") + "`");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
process.exit(0);
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Import
|
|
4
|
+
*
|
|
5
|
+
* You can import a Service Account by using Service Account 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/serviceAccount:ServiceAccount my_sa sa-abc123
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ServiceAccount extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing ServiceAccount 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?: ServiceAccountState, opts?: pulumi.CustomResourceOptions): ServiceAccount;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of ServiceAccount. 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 ServiceAccount;
|
|
29
|
+
/**
|
|
30
|
+
* (Required String) An API Version of the schema version of the Service Account, for example, `iam/v2`.
|
|
31
|
+
*/
|
|
32
|
+
readonly apiVersion: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* A free-form description of the Service Account.
|
|
35
|
+
*/
|
|
36
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* A human-readable name for the Service Account.
|
|
39
|
+
*/
|
|
40
|
+
readonly displayName: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* (Required String) A kind of the Service Account, for example, `ServiceAccount`.
|
|
43
|
+
*/
|
|
44
|
+
readonly kind: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Create a ServiceAccount 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: ServiceAccountArgs, opts?: pulumi.CustomResourceOptions);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Input properties used for looking up and filtering ServiceAccount resources.
|
|
56
|
+
*/
|
|
57
|
+
export interface ServiceAccountState {
|
|
58
|
+
/**
|
|
59
|
+
* (Required String) An API Version of the schema version of the Service Account, for example, `iam/v2`.
|
|
60
|
+
*/
|
|
61
|
+
apiVersion?: pulumi.Input<string>;
|
|
62
|
+
/**
|
|
63
|
+
* A free-form description of the Service Account.
|
|
64
|
+
*/
|
|
65
|
+
description?: pulumi.Input<string>;
|
|
66
|
+
/**
|
|
67
|
+
* A human-readable name for the Service Account.
|
|
68
|
+
*/
|
|
69
|
+
displayName?: pulumi.Input<string>;
|
|
70
|
+
/**
|
|
71
|
+
* (Required String) A kind of the Service Account, for example, `ServiceAccount`.
|
|
72
|
+
*/
|
|
73
|
+
kind?: pulumi.Input<string>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The set of arguments for constructing a ServiceAccount resource.
|
|
77
|
+
*/
|
|
78
|
+
export interface ServiceAccountArgs {
|
|
79
|
+
/**
|
|
80
|
+
* A free-form description of the Service Account.
|
|
81
|
+
*/
|
|
82
|
+
description?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* A human-readable name for the Service Account.
|
|
85
|
+
*/
|
|
86
|
+
displayName: pulumi.Input<string>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.ServiceAccount = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* You can import a Service Account by using Service Account 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/serviceAccount:ServiceAccount my_sa sa-abc123
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
18
|
+
*/
|
|
19
|
+
class ServiceAccount extends pulumi.CustomResource {
|
|
20
|
+
constructor(name, argsOrState, opts) {
|
|
21
|
+
let resourceInputs = {};
|
|
22
|
+
opts = opts || {};
|
|
23
|
+
if (opts.id) {
|
|
24
|
+
const state = argsOrState;
|
|
25
|
+
resourceInputs["apiVersion"] = state ? state.apiVersion : undefined;
|
|
26
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
27
|
+
resourceInputs["displayName"] = state ? state.displayName : undefined;
|
|
28
|
+
resourceInputs["kind"] = state ? state.kind : undefined;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
const args = argsOrState;
|
|
32
|
+
if ((!args || args.displayName === undefined) && !opts.urn) {
|
|
33
|
+
throw new Error("Missing required property 'displayName'");
|
|
34
|
+
}
|
|
35
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
36
|
+
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
37
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
38
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
39
|
+
}
|
|
40
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
41
|
+
super(ServiceAccount.__pulumiType, name, resourceInputs, opts);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing ServiceAccount resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name, id, state, opts) {
|
|
53
|
+
return new ServiceAccount(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of ServiceAccount. This is designed to work even
|
|
57
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
+
*/
|
|
59
|
+
static isInstance(obj) {
|
|
60
|
+
if (obj === undefined || obj === null) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return obj['__pulumiType'] === ServiceAccount.__pulumiType;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.ServiceAccount = ServiceAccount;
|
|
67
|
+
/** @internal */
|
|
68
|
+
ServiceAccount.__pulumiType = 'confluentcloud:index/serviceAccount:ServiceAccount';
|
|
69
|
+
//# sourceMappingURL=serviceAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceAccount.js","sourceRoot":"","sources":["../serviceAccount.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IAqDrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,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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,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCA2EC;AA7DG,gBAAgB;AACO,2BAAY,GAAG,oDAAoD,CAAC"}
|
package/types/index.d.ts
ADDED
package/types/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
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.output = exports.input = void 0;
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
const input = require("./input");
|
|
8
|
+
exports.input = input;
|
|
9
|
+
const output = require("./output");
|
|
10
|
+
exports.output = output;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|