@pulumi/confluentcloud 1.15.0-alpha.1683350728 → 1.15.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.
@@ -0,0 +1,120 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * ## Import
6
+ *
7
+ * You can import a Business Metadata by using the Schema Registry cluster ID, Business Metadata name in the format `<Schema Registry cluster ID>/<Business Metadata name>`, for example$ export IMPORT_SCHEMA_REGISTRY_API_KEY="<schema_registry_api_key>" $ export IMPORT_SCHEMA_REGISTRY_API_SECRET="<schema_registry_api_secret>" $ export IMPORT_SCHEMA_REGISTRY_REST_ENDPOINT="<schema_registry_rest_endpoint>"
8
+ *
9
+ * ```sh
10
+ * $ pulumi import confluentcloud:index/businessMetadata:BusinessMetadata pii lsrc-8wrx70/PII
11
+ * ```
12
+ *
13
+ * !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
14
+ */
15
+ export declare class BusinessMetadata extends pulumi.CustomResource {
16
+ /**
17
+ * Get an existing BusinessMetadata 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?: BusinessMetadataState, opts?: pulumi.CustomResourceOptions): BusinessMetadata;
26
+ /**
27
+ * Returns true if the given object is an instance of BusinessMetadata. 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 BusinessMetadata;
31
+ /**
32
+ * The list of attribute definitions (see [Business Metadata](https://docs.confluent.io/cloud/current/stream-governance/stream-catalog.html#business-metadata-for-schemas) for more details):
33
+ */
34
+ readonly attributeDefinitions: pulumi.Output<outputs.BusinessMetadataAttributeDefinition[]>;
35
+ /**
36
+ * The Cluster API Credentials.
37
+ */
38
+ readonly credentials: pulumi.Output<outputs.BusinessMetadataCredentials | undefined>;
39
+ /**
40
+ * The description of the Business Metadata.
41
+ */
42
+ readonly description: pulumi.Output<string | undefined>;
43
+ /**
44
+ * The name of the attribute.
45
+ */
46
+ readonly name: pulumi.Output<string>;
47
+ /**
48
+ * The REST endpoint of the Schema Registry cluster, for example, `https://psrc-00000.us-central1.gcp.confluent.cloud:443`).
49
+ */
50
+ readonly restEndpoint: pulumi.Output<string | undefined>;
51
+ readonly schemaRegistryCluster: pulumi.Output<outputs.BusinessMetadataSchemaRegistryCluster | undefined>;
52
+ /**
53
+ * (Required Integer) The version of the Business Metadata, for example, `1`.
54
+ */
55
+ readonly version: pulumi.Output<number>;
56
+ /**
57
+ * Create a BusinessMetadata resource with the given unique name, arguments, and options.
58
+ *
59
+ * @param name The _unique_ name of the resource.
60
+ * @param args The arguments to use to populate this resource's properties.
61
+ * @param opts A bag of options that control this resource's behavior.
62
+ */
63
+ constructor(name: string, args?: BusinessMetadataArgs, opts?: pulumi.CustomResourceOptions);
64
+ }
65
+ /**
66
+ * Input properties used for looking up and filtering BusinessMetadata resources.
67
+ */
68
+ export interface BusinessMetadataState {
69
+ /**
70
+ * The list of attribute definitions (see [Business Metadata](https://docs.confluent.io/cloud/current/stream-governance/stream-catalog.html#business-metadata-for-schemas) for more details):
71
+ */
72
+ attributeDefinitions?: pulumi.Input<pulumi.Input<inputs.BusinessMetadataAttributeDefinition>[]>;
73
+ /**
74
+ * The Cluster API Credentials.
75
+ */
76
+ credentials?: pulumi.Input<inputs.BusinessMetadataCredentials>;
77
+ /**
78
+ * The description of the Business Metadata.
79
+ */
80
+ description?: pulumi.Input<string>;
81
+ /**
82
+ * The name of the attribute.
83
+ */
84
+ name?: pulumi.Input<string>;
85
+ /**
86
+ * The REST endpoint of the Schema Registry cluster, for example, `https://psrc-00000.us-central1.gcp.confluent.cloud:443`).
87
+ */
88
+ restEndpoint?: pulumi.Input<string>;
89
+ schemaRegistryCluster?: pulumi.Input<inputs.BusinessMetadataSchemaRegistryCluster>;
90
+ /**
91
+ * (Required Integer) The version of the Business Metadata, for example, `1`.
92
+ */
93
+ version?: pulumi.Input<number>;
94
+ }
95
+ /**
96
+ * The set of arguments for constructing a BusinessMetadata resource.
97
+ */
98
+ export interface BusinessMetadataArgs {
99
+ /**
100
+ * The list of attribute definitions (see [Business Metadata](https://docs.confluent.io/cloud/current/stream-governance/stream-catalog.html#business-metadata-for-schemas) for more details):
101
+ */
102
+ attributeDefinitions?: pulumi.Input<pulumi.Input<inputs.BusinessMetadataAttributeDefinition>[]>;
103
+ /**
104
+ * The Cluster API Credentials.
105
+ */
106
+ credentials?: pulumi.Input<inputs.BusinessMetadataCredentials>;
107
+ /**
108
+ * The description of the Business Metadata.
109
+ */
110
+ description?: pulumi.Input<string>;
111
+ /**
112
+ * The name of the attribute.
113
+ */
114
+ name?: pulumi.Input<string>;
115
+ /**
116
+ * The REST endpoint of the Schema Registry cluster, for example, `https://psrc-00000.us-central1.gcp.confluent.cloud:443`).
117
+ */
118
+ restEndpoint?: pulumi.Input<string>;
119
+ schemaRegistryCluster?: pulumi.Input<inputs.BusinessMetadataSchemaRegistryCluster>;
120
+ }
@@ -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.BusinessMetadata = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Import
10
+ *
11
+ * You can import a Business Metadata by using the Schema Registry cluster ID, Business Metadata name in the format `<Schema Registry cluster ID>/<Business Metadata name>`, for example$ export IMPORT_SCHEMA_REGISTRY_API_KEY="<schema_registry_api_key>" $ export IMPORT_SCHEMA_REGISTRY_API_SECRET="<schema_registry_api_secret>" $ export IMPORT_SCHEMA_REGISTRY_REST_ENDPOINT="<schema_registry_rest_endpoint>"
12
+ *
13
+ * ```sh
14
+ * $ pulumi import confluentcloud:index/businessMetadata:BusinessMetadata pii lsrc-8wrx70/PII
15
+ * ```
16
+ *
17
+ * !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
18
+ */
19
+ class BusinessMetadata extends pulumi.CustomResource {
20
+ /**
21
+ * Get an existing BusinessMetadata resource's state with the given name, ID, and optional extra
22
+ * properties used to qualify the lookup.
23
+ *
24
+ * @param name The _unique_ name of the resulting resource.
25
+ * @param id The _unique_ provider ID of the resource to lookup.
26
+ * @param state Any extra arguments used during the lookup.
27
+ * @param opts Optional settings to control the behavior of the CustomResource.
28
+ */
29
+ static get(name, id, state, opts) {
30
+ return new BusinessMetadata(name, state, Object.assign(Object.assign({}, opts), { id: id }));
31
+ }
32
+ /**
33
+ * Returns true if the given object is an instance of BusinessMetadata. This is designed to work even
34
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
35
+ */
36
+ static isInstance(obj) {
37
+ if (obj === undefined || obj === null) {
38
+ return false;
39
+ }
40
+ return obj['__pulumiType'] === BusinessMetadata.__pulumiType;
41
+ }
42
+ constructor(name, argsOrState, opts) {
43
+ let resourceInputs = {};
44
+ opts = opts || {};
45
+ if (opts.id) {
46
+ const state = argsOrState;
47
+ resourceInputs["attributeDefinitions"] = state ? state.attributeDefinitions : undefined;
48
+ resourceInputs["credentials"] = state ? state.credentials : undefined;
49
+ resourceInputs["description"] = state ? state.description : undefined;
50
+ resourceInputs["name"] = state ? state.name : undefined;
51
+ resourceInputs["restEndpoint"] = state ? state.restEndpoint : undefined;
52
+ resourceInputs["schemaRegistryCluster"] = state ? state.schemaRegistryCluster : undefined;
53
+ resourceInputs["version"] = state ? state.version : undefined;
54
+ }
55
+ else {
56
+ const args = argsOrState;
57
+ resourceInputs["attributeDefinitions"] = args ? args.attributeDefinitions : undefined;
58
+ resourceInputs["credentials"] = (args === null || args === void 0 ? void 0 : args.credentials) ? pulumi.secret(args.credentials) : undefined;
59
+ resourceInputs["description"] = args ? args.description : undefined;
60
+ resourceInputs["name"] = args ? args.name : undefined;
61
+ resourceInputs["restEndpoint"] = args ? args.restEndpoint : undefined;
62
+ resourceInputs["schemaRegistryCluster"] = args ? args.schemaRegistryCluster : undefined;
63
+ resourceInputs["version"] = undefined /*out*/;
64
+ }
65
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
66
+ const secretOpts = { additionalSecretOutputs: ["credentials"] };
67
+ opts = pulumi.mergeOptions(opts, secretOpts);
68
+ super(BusinessMetadata.__pulumiType, name, resourceInputs, opts);
69
+ }
70
+ }
71
+ exports.BusinessMetadata = BusinessMetadata;
72
+ /** @internal */
73
+ BusinessMetadata.__pulumiType = 'confluentcloud:index/businessMetadata:BusinessMetadata';
74
+ //# sourceMappingURL=businessMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"businessMetadata.js","sourceRoot":"","sources":["../businessMetadata.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAoCD,YAA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AAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAxFL,4CAyFC;AA3EG,gBAAgB;AACO,6BAAY,GAAG,wDAAwD,CAAC"}
@@ -0,0 +1,130 @@
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 Business Metadata Binding by using the Schema Registry cluster ID, Business Metadata name, entity name and entity type in the format `<Schema Registry Cluster Id>/<Business Metadata Name>/<Entity Name>/<Entity Type>`, for example$ export IMPORT_SCHEMA_REGISTRY_API_KEY="<schema_registry_api_key>" $ export IMPORT_SCHEMA_REGISTRY_API_SECRET="<schema_registry_api_secret>" $ export IMPORT_SCHEMA_REGISTRY_REST_ENDPOINT="<schema_registry_rest_endpoint>"
8
+ *
9
+ * ```sh
10
+ * $ pulumi import confluentcloud:index/businessMetadataBinding:BusinessMetadataBinding main lsrc-8wrx70/PII/lsrc-8wrx70:.:100001/sr_schema
11
+ * ```
12
+ *
13
+ * !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
14
+ */
15
+ export declare class BusinessMetadataBinding extends pulumi.CustomResource {
16
+ /**
17
+ * Get an existing BusinessMetadataBinding 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?: BusinessMetadataBindingState, opts?: pulumi.CustomResourceOptions): BusinessMetadataBinding;
26
+ /**
27
+ * Returns true if the given object is an instance of BusinessMetadataBinding. 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 BusinessMetadataBinding;
31
+ /**
32
+ * The block of key-value pair attributes.
33
+ */
34
+ readonly attributes: pulumi.Output<{
35
+ [key: string]: string;
36
+ }>;
37
+ /**
38
+ * The name of the Business Metadata to be applied, for example, `PII`.
39
+ */
40
+ readonly businessMetadataName: pulumi.Output<string>;
41
+ /**
42
+ * The Cluster API Credentials.
43
+ */
44
+ readonly credentials: pulumi.Output<outputs.BusinessMetadataBindingCredentials | undefined>;
45
+ /**
46
+ * The qualified name of the entity., for example, `lsrc-8wrx70:.:100001`.
47
+ */
48
+ readonly entityName: pulumi.Output<string>;
49
+ /**
50
+ * The entity type, for example, `srSchema`. Refer to the [Entity types](https://docs.confluent.io/cloud/current/stream-governance/stream-catalog-rest-apis.html#entity-types) to learn more about entity types.
51
+ */
52
+ readonly entityType: pulumi.Output<string>;
53
+ /**
54
+ * The REST endpoint of the Schema Registry cluster, for example, `https://psrc-00000.us-central1.gcp.confluent.cloud:443`).
55
+ */
56
+ readonly restEndpoint: pulumi.Output<string | undefined>;
57
+ readonly schemaRegistryCluster: pulumi.Output<outputs.BusinessMetadataBindingSchemaRegistryCluster | undefined>;
58
+ /**
59
+ * Create a BusinessMetadataBinding resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name: string, args: BusinessMetadataBindingArgs, opts?: pulumi.CustomResourceOptions);
66
+ }
67
+ /**
68
+ * Input properties used for looking up and filtering BusinessMetadataBinding resources.
69
+ */
70
+ export interface BusinessMetadataBindingState {
71
+ /**
72
+ * The block of key-value pair attributes.
73
+ */
74
+ attributes?: pulumi.Input<{
75
+ [key: string]: pulumi.Input<string>;
76
+ }>;
77
+ /**
78
+ * The name of the Business Metadata to be applied, for example, `PII`.
79
+ */
80
+ businessMetadataName?: pulumi.Input<string>;
81
+ /**
82
+ * The Cluster API Credentials.
83
+ */
84
+ credentials?: pulumi.Input<inputs.BusinessMetadataBindingCredentials>;
85
+ /**
86
+ * The qualified name of the entity., for example, `lsrc-8wrx70:.:100001`.
87
+ */
88
+ entityName?: pulumi.Input<string>;
89
+ /**
90
+ * The entity type, for example, `srSchema`. Refer to the [Entity types](https://docs.confluent.io/cloud/current/stream-governance/stream-catalog-rest-apis.html#entity-types) to learn more about entity types.
91
+ */
92
+ entityType?: pulumi.Input<string>;
93
+ /**
94
+ * The REST endpoint of the Schema Registry cluster, for example, `https://psrc-00000.us-central1.gcp.confluent.cloud:443`).
95
+ */
96
+ restEndpoint?: pulumi.Input<string>;
97
+ schemaRegistryCluster?: pulumi.Input<inputs.BusinessMetadataBindingSchemaRegistryCluster>;
98
+ }
99
+ /**
100
+ * The set of arguments for constructing a BusinessMetadataBinding resource.
101
+ */
102
+ export interface BusinessMetadataBindingArgs {
103
+ /**
104
+ * The block of key-value pair attributes.
105
+ */
106
+ attributes?: pulumi.Input<{
107
+ [key: string]: pulumi.Input<string>;
108
+ }>;
109
+ /**
110
+ * The name of the Business Metadata to be applied, for example, `PII`.
111
+ */
112
+ businessMetadataName: pulumi.Input<string>;
113
+ /**
114
+ * The Cluster API Credentials.
115
+ */
116
+ credentials?: pulumi.Input<inputs.BusinessMetadataBindingCredentials>;
117
+ /**
118
+ * The qualified name of the entity., for example, `lsrc-8wrx70:.:100001`.
119
+ */
120
+ entityName: pulumi.Input<string>;
121
+ /**
122
+ * The entity type, for example, `srSchema`. Refer to the [Entity types](https://docs.confluent.io/cloud/current/stream-governance/stream-catalog-rest-apis.html#entity-types) to learn more about entity types.
123
+ */
124
+ entityType: pulumi.Input<string>;
125
+ /**
126
+ * The REST endpoint of the Schema Registry cluster, for example, `https://psrc-00000.us-central1.gcp.confluent.cloud:443`).
127
+ */
128
+ restEndpoint?: pulumi.Input<string>;
129
+ schemaRegistryCluster?: pulumi.Input<inputs.BusinessMetadataBindingSchemaRegistryCluster>;
130
+ }
@@ -0,0 +1,83 @@
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.BusinessMetadataBinding = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Import
10
+ *
11
+ * You can import a Business Metadata Binding by using the Schema Registry cluster ID, Business Metadata name, entity name and entity type in the format `<Schema Registry Cluster Id>/<Business Metadata Name>/<Entity Name>/<Entity Type>`, for example$ export IMPORT_SCHEMA_REGISTRY_API_KEY="<schema_registry_api_key>" $ export IMPORT_SCHEMA_REGISTRY_API_SECRET="<schema_registry_api_secret>" $ export IMPORT_SCHEMA_REGISTRY_REST_ENDPOINT="<schema_registry_rest_endpoint>"
12
+ *
13
+ * ```sh
14
+ * $ pulumi import confluentcloud:index/businessMetadataBinding:BusinessMetadataBinding main lsrc-8wrx70/PII/lsrc-8wrx70:.:100001/sr_schema
15
+ * ```
16
+ *
17
+ * !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
18
+ */
19
+ class BusinessMetadataBinding extends pulumi.CustomResource {
20
+ /**
21
+ * Get an existing BusinessMetadataBinding resource's state with the given name, ID, and optional extra
22
+ * properties used to qualify the lookup.
23
+ *
24
+ * @param name The _unique_ name of the resulting resource.
25
+ * @param id The _unique_ provider ID of the resource to lookup.
26
+ * @param state Any extra arguments used during the lookup.
27
+ * @param opts Optional settings to control the behavior of the CustomResource.
28
+ */
29
+ static get(name, id, state, opts) {
30
+ return new BusinessMetadataBinding(name, state, Object.assign(Object.assign({}, opts), { id: id }));
31
+ }
32
+ /**
33
+ * Returns true if the given object is an instance of BusinessMetadataBinding. This is designed to work even
34
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
35
+ */
36
+ static isInstance(obj) {
37
+ if (obj === undefined || obj === null) {
38
+ return false;
39
+ }
40
+ return obj['__pulumiType'] === BusinessMetadataBinding.__pulumiType;
41
+ }
42
+ constructor(name, argsOrState, opts) {
43
+ let resourceInputs = {};
44
+ opts = opts || {};
45
+ if (opts.id) {
46
+ const state = argsOrState;
47
+ resourceInputs["attributes"] = state ? state.attributes : undefined;
48
+ resourceInputs["businessMetadataName"] = state ? state.businessMetadataName : undefined;
49
+ resourceInputs["credentials"] = state ? state.credentials : undefined;
50
+ resourceInputs["entityName"] = state ? state.entityName : undefined;
51
+ resourceInputs["entityType"] = state ? state.entityType : undefined;
52
+ resourceInputs["restEndpoint"] = state ? state.restEndpoint : undefined;
53
+ resourceInputs["schemaRegistryCluster"] = state ? state.schemaRegistryCluster : undefined;
54
+ }
55
+ else {
56
+ const args = argsOrState;
57
+ if ((!args || args.businessMetadataName === undefined) && !opts.urn) {
58
+ throw new Error("Missing required property 'businessMetadataName'");
59
+ }
60
+ if ((!args || args.entityName === undefined) && !opts.urn) {
61
+ throw new Error("Missing required property 'entityName'");
62
+ }
63
+ if ((!args || args.entityType === undefined) && !opts.urn) {
64
+ throw new Error("Missing required property 'entityType'");
65
+ }
66
+ resourceInputs["attributes"] = args ? args.attributes : undefined;
67
+ resourceInputs["businessMetadataName"] = args ? args.businessMetadataName : undefined;
68
+ resourceInputs["credentials"] = (args === null || args === void 0 ? void 0 : args.credentials) ? pulumi.secret(args.credentials) : undefined;
69
+ resourceInputs["entityName"] = args ? args.entityName : undefined;
70
+ resourceInputs["entityType"] = args ? args.entityType : undefined;
71
+ resourceInputs["restEndpoint"] = args ? args.restEndpoint : undefined;
72
+ resourceInputs["schemaRegistryCluster"] = args ? args.schemaRegistryCluster : undefined;
73
+ }
74
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
75
+ const secretOpts = { additionalSecretOutputs: ["credentials"] };
76
+ opts = pulumi.mergeOptions(opts, secretOpts);
77
+ super(BusinessMetadataBinding.__pulumiType, name, resourceInputs, opts);
78
+ }
79
+ }
80
+ exports.BusinessMetadataBinding = BusinessMetadataBinding;
81
+ /** @internal */
82
+ BusinessMetadataBinding.__pulumiType = 'confluentcloud:index/businessMetadataBinding:BusinessMetadataBinding';
83
+ //# sourceMappingURL=businessMetadataBinding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"businessMetadataBinding.js","sourceRoot":"","sources":["../businessMetadataBinding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAA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,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AAjGL,0DAkGC;AApFG,gBAAgB;AACO,oCAAY,GAAG,sEAAsE,CAAC"}
@@ -0,0 +1,63 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ export declare function getBusinessMetadata(args: GetBusinessMetadataArgs, opts?: pulumi.InvokeOptions): Promise<GetBusinessMetadataResult>;
5
+ /**
6
+ * A collection of arguments for invoking getBusinessMetadata.
7
+ */
8
+ export interface GetBusinessMetadataArgs {
9
+ credentials?: inputs.GetBusinessMetadataCredentials;
10
+ /**
11
+ * The name of the Business Metadata, for example, `PII`.
12
+ */
13
+ name: string;
14
+ /**
15
+ * The REST endpoint of the Schema Registry cluster, for example, `https://psrc-00000.us-central1.gcp.confluent.cloud:443`).
16
+ */
17
+ restEndpoint?: string;
18
+ schemaRegistryCluster?: inputs.GetBusinessMetadataSchemaRegistryCluster;
19
+ }
20
+ /**
21
+ * A collection of values returned by getBusinessMetadata.
22
+ */
23
+ export interface GetBusinessMetadataResult {
24
+ /**
25
+ * (Optional List) The list of attribute definitions (see [Business Metadata](https://docs.confluent.io/cloud/current/stream-governance/stream-catalog.html#business-metadata-for-schemas) for more details):
26
+ */
27
+ readonly attributeDefinitions: outputs.GetBusinessMetadataAttributeDefinition[];
28
+ readonly credentials?: outputs.GetBusinessMetadataCredentials;
29
+ /**
30
+ * (Optional String) The description of this attribute.
31
+ */
32
+ readonly description: string;
33
+ /**
34
+ * (Required String) The ID of the Business Metadata, in the format `<Schema Registry cluster ID>/<Business Metadata name>`, for example, `lsrc-8wrx70/PII`.
35
+ */
36
+ readonly id: string;
37
+ /**
38
+ * (Required String) The name of the attribute.
39
+ */
40
+ readonly name: string;
41
+ readonly restEndpoint?: string;
42
+ readonly schemaRegistryCluster?: outputs.GetBusinessMetadataSchemaRegistryCluster;
43
+ /**
44
+ * (Required Integer) The version of the Business Metadata, for example, `1`.
45
+ */
46
+ readonly version: number;
47
+ }
48
+ export declare function getBusinessMetadataOutput(args: GetBusinessMetadataOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetBusinessMetadataResult>;
49
+ /**
50
+ * A collection of arguments for invoking getBusinessMetadata.
51
+ */
52
+ export interface GetBusinessMetadataOutputArgs {
53
+ credentials?: pulumi.Input<inputs.GetBusinessMetadataCredentialsArgs>;
54
+ /**
55
+ * The name of the Business Metadata, for example, `PII`.
56
+ */
57
+ name: pulumi.Input<string>;
58
+ /**
59
+ * The REST endpoint of the Schema Registry cluster, for example, `https://psrc-00000.us-central1.gcp.confluent.cloud:443`).
60
+ */
61
+ restEndpoint?: pulumi.Input<string>;
62
+ schemaRegistryCluster?: pulumi.Input<inputs.GetBusinessMetadataSchemaRegistryClusterArgs>;
63
+ }
@@ -0,0 +1,22 @@
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.getBusinessMetadataOutput = exports.getBusinessMetadata = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ function getBusinessMetadata(args, opts) {
9
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
+ return pulumi.runtime.invoke("confluentcloud:index/getBusinessMetadata:getBusinessMetadata", {
11
+ "credentials": args.credentials,
12
+ "name": args.name,
13
+ "restEndpoint": args.restEndpoint,
14
+ "schemaRegistryCluster": args.schemaRegistryCluster,
15
+ }, opts);
16
+ }
17
+ exports.getBusinessMetadata = getBusinessMetadata;
18
+ function getBusinessMetadataOutput(args, opts) {
19
+ return pulumi.output(args).apply((a) => getBusinessMetadata(a, opts));
20
+ }
21
+ exports.getBusinessMetadataOutput = getBusinessMetadataOutput;
22
+ //# sourceMappingURL=getBusinessMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBusinessMetadata.js","sourceRoot":"","sources":["../getBusinessMetadata.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAE1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8DAA8D,EAAE;QACzF,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,uBAAuB,EAAE,IAAI,CAAC,qBAAqB;KACtD,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,kDASC;AA8CD,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9E,CAAC;AAFD,8DAEC"}
@@ -0,0 +1,72 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ export declare function getBusinessMetadataBinding(args: GetBusinessMetadataBindingArgs, opts?: pulumi.InvokeOptions): Promise<GetBusinessMetadataBindingResult>;
5
+ /**
6
+ * A collection of arguments for invoking getBusinessMetadataBinding.
7
+ */
8
+ export interface GetBusinessMetadataBindingArgs {
9
+ /**
10
+ * The name of the Business Metadata to be applied, for example, `PII`.
11
+ */
12
+ businessMetadataName: string;
13
+ credentials?: inputs.GetBusinessMetadataBindingCredentials;
14
+ /**
15
+ * The qualified name of the entity., for example, `lsrc-8wrx70:.:100001`.
16
+ */
17
+ entityName: string;
18
+ /**
19
+ * The entity type, for example, `srSchema`.
20
+ */
21
+ entityType: string;
22
+ /**
23
+ * The REST endpoint of the Schema Registry cluster, for example, `https://psrc-00000.us-central1.gcp.confluent.cloud:443`).
24
+ */
25
+ restEndpoint?: string;
26
+ schemaRegistryCluster?: inputs.GetBusinessMetadataBindingSchemaRegistryCluster;
27
+ }
28
+ /**
29
+ * A collection of values returned by getBusinessMetadataBinding.
30
+ */
31
+ export interface GetBusinessMetadataBindingResult {
32
+ /**
33
+ * (Optional Map) The block of key-value pair attributes.
34
+ */
35
+ readonly attributes: {
36
+ [key: string]: string;
37
+ };
38
+ readonly businessMetadataName: string;
39
+ readonly credentials?: outputs.GetBusinessMetadataBindingCredentials;
40
+ readonly entityName: string;
41
+ readonly entityType: string;
42
+ /**
43
+ * (Required String) The ID of the Business Metadata Binding, in the format `<Schema Registry Cluster Id>/<Business Metadata Name>/<Entity Name>/<Entity Type>`, for example, `lsrc-8wrx70/PII/lsrc-8wrx70:.:100001/sr_schema`.
44
+ */
45
+ readonly id: string;
46
+ readonly restEndpoint?: string;
47
+ readonly schemaRegistryCluster?: outputs.GetBusinessMetadataBindingSchemaRegistryCluster;
48
+ }
49
+ export declare function getBusinessMetadataBindingOutput(args: GetBusinessMetadataBindingOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetBusinessMetadataBindingResult>;
50
+ /**
51
+ * A collection of arguments for invoking getBusinessMetadataBinding.
52
+ */
53
+ export interface GetBusinessMetadataBindingOutputArgs {
54
+ /**
55
+ * The name of the Business Metadata to be applied, for example, `PII`.
56
+ */
57
+ businessMetadataName: pulumi.Input<string>;
58
+ credentials?: pulumi.Input<inputs.GetBusinessMetadataBindingCredentialsArgs>;
59
+ /**
60
+ * The qualified name of the entity., for example, `lsrc-8wrx70:.:100001`.
61
+ */
62
+ entityName: pulumi.Input<string>;
63
+ /**
64
+ * The entity type, for example, `srSchema`.
65
+ */
66
+ entityType: pulumi.Input<string>;
67
+ /**
68
+ * The REST endpoint of the Schema Registry cluster, for example, `https://psrc-00000.us-central1.gcp.confluent.cloud:443`).
69
+ */
70
+ restEndpoint?: pulumi.Input<string>;
71
+ schemaRegistryCluster?: pulumi.Input<inputs.GetBusinessMetadataBindingSchemaRegistryClusterArgs>;
72
+ }
@@ -0,0 +1,24 @@
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.getBusinessMetadataBindingOutput = exports.getBusinessMetadataBinding = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ function getBusinessMetadataBinding(args, opts) {
9
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
+ return pulumi.runtime.invoke("confluentcloud:index/getBusinessMetadataBinding:getBusinessMetadataBinding", {
11
+ "businessMetadataName": args.businessMetadataName,
12
+ "credentials": args.credentials,
13
+ "entityName": args.entityName,
14
+ "entityType": args.entityType,
15
+ "restEndpoint": args.restEndpoint,
16
+ "schemaRegistryCluster": args.schemaRegistryCluster,
17
+ }, opts);
18
+ }
19
+ exports.getBusinessMetadataBinding = getBusinessMetadataBinding;
20
+ function getBusinessMetadataBindingOutput(args, opts) {
21
+ return pulumi.output(args).apply((a) => getBusinessMetadataBinding(a, opts));
22
+ }
23
+ exports.getBusinessMetadataBindingOutput = getBusinessMetadataBindingOutput;
24
+ //# sourceMappingURL=getBusinessMetadataBinding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBusinessMetadataBinding.js","sourceRoot":"","sources":["../getBusinessMetadataBinding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,0BAA0B,CAAC,IAAoC,EAAE,IAA2B;IAExG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4EAA4E,EAAE;QACvG,sBAAsB,EAAE,IAAI,CAAC,oBAAoB;QACjD,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,uBAAuB,EAAE,IAAI,CAAC,qBAAqB;KACtD,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,gEAWC;AA6CD,SAAgB,gCAAgC,CAAC,IAA0C,EAAE,IAA2B;IACpH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,0BAA0B,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACrF,CAAC;AAFD,4EAEC"}