confluentcloud.TagBinding
Explore with Pulumi AI
confluentcloud.TagBinding
provides a Tag Binding resource that enables creating, editing, and deleting Tag Bindings on Confluent Cloud.
Example Usage
Option #1: Manage multiple Schema Registry clusters in the same Pulumi Stack
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const main = confluentcloud.getKafkaTopic({
topicName: "orders",
});
const mainTagBinding = new confluentcloud.TagBinding("main", {
schemaRegistryCluster: {
id: essentials.id,
},
restEndpoint: essentials.restEndpoint,
credentials: {
key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
},
tagName: "PII",
entityName: main.then(main => `${schemaRegistryId}:${kafkaId}:${main.topicName}`),
entityType: "kafka_topic",
});
import pulumi
import pulumi_confluentcloud as confluentcloud
main = confluentcloud.get_kafka_topic(topic_name="orders")
main_tag_binding = confluentcloud.TagBinding("main",
schema_registry_cluster={
"id": essentials["id"],
},
rest_endpoint=essentials["restEndpoint"],
credentials={
"key": "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
"secret": "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
},
tag_name="PII",
entity_name=f"{schema_registry_id}:{kafka_id}:{main.topic_name}",
entity_type="kafka_topic")
package main
import (
"fmt"
"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
main, err := confluentcloud.LookupKafkaTopic(ctx, &confluentcloud.LookupKafkaTopicArgs{
TopicName: "orders",
}, nil)
if err != nil {
return err
}
_, err = confluentcloud.NewTagBinding(ctx, "main", &confluentcloud.TagBindingArgs{
SchemaRegistryCluster: &confluentcloud.TagBindingSchemaRegistryClusterArgs{
Id: pulumi.Any(essentials.Id),
},
RestEndpoint: pulumi.Any(essentials.RestEndpoint),
Credentials: &confluentcloud.TagBindingCredentialsArgs{
Key: pulumi.String("<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>"),
Secret: pulumi.String("<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>"),
},
TagName: pulumi.String("PII"),
EntityName: pulumi.Sprintf("%v:%v:%v", schemaRegistryId, kafkaId, main.TopicName),
EntityType: pulumi.String("kafka_topic"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var main = ConfluentCloud.GetKafkaTopic.Invoke(new()
{
TopicName = "orders",
});
var mainTagBinding = new ConfluentCloud.TagBinding("main", new()
{
SchemaRegistryCluster = new ConfluentCloud.Inputs.TagBindingSchemaRegistryClusterArgs
{
Id = essentials.Id,
},
RestEndpoint = essentials.RestEndpoint,
Credentials = new ConfluentCloud.Inputs.TagBindingCredentialsArgs
{
Key = "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
Secret = "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
},
TagName = "PII",
EntityName = $"{schemaRegistryId}:{kafkaId}:{main.Apply(getKafkaTopicResult => getKafkaTopicResult.TopicName)}",
EntityType = "kafka_topic",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.ConfluentcloudFunctions;
import com.pulumi.confluentcloud.inputs.GetKafkaTopicArgs;
import com.pulumi.confluentcloud.TagBinding;
import com.pulumi.confluentcloud.TagBindingArgs;
import com.pulumi.confluentcloud.inputs.TagBindingSchemaRegistryClusterArgs;
import com.pulumi.confluentcloud.inputs.TagBindingCredentialsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var main = ConfluentcloudFunctions.getKafkaTopic(GetKafkaTopicArgs.builder()
.topicName("orders")
.build());
var mainTagBinding = new TagBinding("mainTagBinding", TagBindingArgs.builder()
.schemaRegistryCluster(TagBindingSchemaRegistryClusterArgs.builder()
.id(essentials.id())
.build())
.restEndpoint(essentials.restEndpoint())
.credentials(TagBindingCredentialsArgs.builder()
.key("<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>")
.secret("<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>")
.build())
.tagName("PII")
.entityName(String.format("%s:%s:%s", schemaRegistryId,kafkaId,main.applyValue(getKafkaTopicResult -> getKafkaTopicResult.topicName())))
.entityType("kafka_topic")
.build());
}
}
resources:
mainTagBinding:
type: confluentcloud:TagBinding
name: main
properties:
schemaRegistryCluster:
id: ${essentials.id}
restEndpoint: ${essentials.restEndpoint}
credentials:
key: <Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>
secret: <Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>
tagName: PII
entityName: ${schemaRegistryId}:${kafkaId}:${main.topicName}
entityType: kafka_topic
variables:
main:
fn::invoke:
Function: confluentcloud:getKafkaTopic
Arguments:
topicName: orders
Option #2: Manage a single Schema Registry cluster in the same Pulumi Stack
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const main = confluentcloud.getKafkaTopic({
topicName: "orders",
});
const topic_tagging = new confluentcloud.TagBinding("topic-tagging", {
tagName: "PII",
entityName: main.then(main => `${schemaRegistryId}:${kafkaId}:${main.topicName}`),
entityType: "kafka_topic",
});
import pulumi
import pulumi_confluentcloud as confluentcloud
main = confluentcloud.get_kafka_topic(topic_name="orders")
topic_tagging = confluentcloud.TagBinding("topic-tagging",
tag_name="PII",
entity_name=f"{schema_registry_id}:{kafka_id}:{main.topic_name}",
entity_type="kafka_topic")
package main
import (
"fmt"
"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
main, err := confluentcloud.LookupKafkaTopic(ctx, &confluentcloud.LookupKafkaTopicArgs{
TopicName: "orders",
}, nil)
if err != nil {
return err
}
_, err = confluentcloud.NewTagBinding(ctx, "topic-tagging", &confluentcloud.TagBindingArgs{
TagName: pulumi.String("PII"),
EntityName: pulumi.Sprintf("%v:%v:%v", schemaRegistryId, kafkaId, main.TopicName),
EntityType: pulumi.String("kafka_topic"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var main = ConfluentCloud.GetKafkaTopic.Invoke(new()
{
TopicName = "orders",
});
var topic_tagging = new ConfluentCloud.TagBinding("topic-tagging", new()
{
TagName = "PII",
EntityName = $"{schemaRegistryId}:{kafkaId}:{main.Apply(getKafkaTopicResult => getKafkaTopicResult.TopicName)}",
EntityType = "kafka_topic",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.ConfluentcloudFunctions;
import com.pulumi.confluentcloud.inputs.GetKafkaTopicArgs;
import com.pulumi.confluentcloud.TagBinding;
import com.pulumi.confluentcloud.TagBindingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var main = ConfluentcloudFunctions.getKafkaTopic(GetKafkaTopicArgs.builder()
.topicName("orders")
.build());
var topic_tagging = new TagBinding("topic-tagging", TagBindingArgs.builder()
.tagName("PII")
.entityName(String.format("%s:%s:%s", schemaRegistryId,kafkaId,main.applyValue(getKafkaTopicResult -> getKafkaTopicResult.topicName())))
.entityType("kafka_topic")
.build());
}
}
resources:
topic-tagging:
type: confluentcloud:TagBinding
properties:
tagName: PII
entityName: ${schemaRegistryId}:${kafkaId}:${main.topicName}
entityType: kafka_topic
variables:
main:
fn::invoke:
Function: confluentcloud:getKafkaTopic
Arguments:
topicName: orders
Getting Started
The following end-to-end example might help to get started with Stream Catalog:
- stream-catalog
Create TagBinding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TagBinding(name: string, args: TagBindingArgs, opts?: CustomResourceOptions);
@overload
def TagBinding(resource_name: str,
args: TagBindingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TagBinding(resource_name: str,
opts: Optional[ResourceOptions] = None,
entity_name: Optional[str] = None,
entity_type: Optional[str] = None,
tag_name: Optional[str] = None,
credentials: Optional[TagBindingCredentialsArgs] = None,
rest_endpoint: Optional[str] = None,
schema_registry_cluster: Optional[TagBindingSchemaRegistryClusterArgs] = None)
func NewTagBinding(ctx *Context, name string, args TagBindingArgs, opts ...ResourceOption) (*TagBinding, error)
public TagBinding(string name, TagBindingArgs args, CustomResourceOptions? opts = null)
public TagBinding(String name, TagBindingArgs args)
public TagBinding(String name, TagBindingArgs args, CustomResourceOptions options)
type: confluentcloud:TagBinding
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TagBindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TagBindingArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TagBindingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TagBindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TagBindingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var tagBindingResource = new ConfluentCloud.TagBinding("tagBindingResource", new()
{
EntityName = "string",
EntityType = "string",
TagName = "string",
Credentials = new ConfluentCloud.Inputs.TagBindingCredentialsArgs
{
Key = "string",
Secret = "string",
},
RestEndpoint = "string",
SchemaRegistryCluster = new ConfluentCloud.Inputs.TagBindingSchemaRegistryClusterArgs
{
Id = "string",
},
});
example, err := confluentcloud.NewTagBinding(ctx, "tagBindingResource", &confluentcloud.TagBindingArgs{
EntityName: pulumi.String("string"),
EntityType: pulumi.String("string"),
TagName: pulumi.String("string"),
Credentials: &confluentcloud.TagBindingCredentialsArgs{
Key: pulumi.String("string"),
Secret: pulumi.String("string"),
},
RestEndpoint: pulumi.String("string"),
SchemaRegistryCluster: &confluentcloud.TagBindingSchemaRegistryClusterArgs{
Id: pulumi.String("string"),
},
})
var tagBindingResource = new TagBinding("tagBindingResource", TagBindingArgs.builder()
.entityName("string")
.entityType("string")
.tagName("string")
.credentials(TagBindingCredentialsArgs.builder()
.key("string")
.secret("string")
.build())
.restEndpoint("string")
.schemaRegistryCluster(TagBindingSchemaRegistryClusterArgs.builder()
.id("string")
.build())
.build());
tag_binding_resource = confluentcloud.TagBinding("tagBindingResource",
entity_name="string",
entity_type="string",
tag_name="string",
credentials={
"key": "string",
"secret": "string",
},
rest_endpoint="string",
schema_registry_cluster={
"id": "string",
})
const tagBindingResource = new confluentcloud.TagBinding("tagBindingResource", {
entityName: "string",
entityType: "string",
tagName: "string",
credentials: {
key: "string",
secret: "string",
},
restEndpoint: "string",
schemaRegistryCluster: {
id: "string",
},
});
type: confluentcloud:TagBinding
properties:
credentials:
key: string
secret: string
entityName: string
entityType: string
restEndpoint: string
schemaRegistryCluster:
id: string
tagName: string
TagBinding Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TagBinding resource accepts the following input properties:
- Entity
Name string - The qualified name of the entity., for example,
${data.confluent_schema_registry_cluster.main.id}:.:${confluent_schema.purchase.schema_identifier}
,${data.confluent_schema_registry_cluster.main.id}:${confluent_kafka_cluster.basic.id}:${confluent_kafka_topic.purchase.topic_name}
. - Entity
Type string - The entity type.
- Tag
Name string - The name of the tag to be applied, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters. - Credentials
Pulumi.
Confluent Cloud. Inputs. Tag Binding Credentials - The Cluster API Credentials.
- Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry Pulumi.Cluster Confluent Cloud. Inputs. Tag Binding Schema Registry Cluster
- Entity
Name string - The qualified name of the entity., for example,
${data.confluent_schema_registry_cluster.main.id}:.:${confluent_schema.purchase.schema_identifier}
,${data.confluent_schema_registry_cluster.main.id}:${confluent_kafka_cluster.basic.id}:${confluent_kafka_topic.purchase.topic_name}
. - Entity
Type string - The entity type.
- Tag
Name string - The name of the tag to be applied, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters. - Credentials
Tag
Binding Credentials Args - The Cluster API Credentials.
- Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry TagCluster Binding Schema Registry Cluster Args
- entity
Name String - The qualified name of the entity., for example,
${data.confluent_schema_registry_cluster.main.id}:.:${confluent_schema.purchase.schema_identifier}
,${data.confluent_schema_registry_cluster.main.id}:${confluent_kafka_cluster.basic.id}:${confluent_kafka_topic.purchase.topic_name}
. - entity
Type String - The entity type.
- tag
Name String - The name of the tag to be applied, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters. - credentials
Tag
Binding Credentials - The Cluster API Credentials.
- rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry TagCluster Binding Schema Registry Cluster
- entity
Name string - The qualified name of the entity., for example,
${data.confluent_schema_registry_cluster.main.id}:.:${confluent_schema.purchase.schema_identifier}
,${data.confluent_schema_registry_cluster.main.id}:${confluent_kafka_cluster.basic.id}:${confluent_kafka_topic.purchase.topic_name}
. - entity
Type string - The entity type.
- tag
Name string - The name of the tag to be applied, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters. - credentials
Tag
Binding Credentials - The Cluster API Credentials.
- rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry TagCluster Binding Schema Registry Cluster
- entity_
name str - The qualified name of the entity., for example,
${data.confluent_schema_registry_cluster.main.id}:.:${confluent_schema.purchase.schema_identifier}
,${data.confluent_schema_registry_cluster.main.id}:${confluent_kafka_cluster.basic.id}:${confluent_kafka_topic.purchase.topic_name}
. - entity_
type str - The entity type.
- tag_
name str - The name of the tag to be applied, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters. - credentials
Tag
Binding Credentials Args - The Cluster API Credentials.
- rest_
endpoint str - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema_
registry_ Tagcluster Binding Schema Registry Cluster Args
- entity
Name String - The qualified name of the entity., for example,
${data.confluent_schema_registry_cluster.main.id}:.:${confluent_schema.purchase.schema_identifier}
,${data.confluent_schema_registry_cluster.main.id}:${confluent_kafka_cluster.basic.id}:${confluent_kafka_topic.purchase.topic_name}
. - entity
Type String - The entity type.
- tag
Name String - The name of the tag to be applied, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters. - credentials Property Map
- The Cluster API Credentials.
- rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry Property MapCluster
Outputs
All input properties are implicitly available as output properties. Additionally, the TagBinding resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TagBinding Resource
Get an existing TagBinding resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TagBindingState, opts?: CustomResourceOptions): TagBinding
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
credentials: Optional[TagBindingCredentialsArgs] = None,
entity_name: Optional[str] = None,
entity_type: Optional[str] = None,
rest_endpoint: Optional[str] = None,
schema_registry_cluster: Optional[TagBindingSchemaRegistryClusterArgs] = None,
tag_name: Optional[str] = None) -> TagBinding
func GetTagBinding(ctx *Context, name string, id IDInput, state *TagBindingState, opts ...ResourceOption) (*TagBinding, error)
public static TagBinding Get(string name, Input<string> id, TagBindingState? state, CustomResourceOptions? opts = null)
public static TagBinding get(String name, Output<String> id, TagBindingState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Credentials
Pulumi.
Confluent Cloud. Inputs. Tag Binding Credentials - The Cluster API Credentials.
- Entity
Name string - The qualified name of the entity., for example,
${data.confluent_schema_registry_cluster.main.id}:.:${confluent_schema.purchase.schema_identifier}
,${data.confluent_schema_registry_cluster.main.id}:${confluent_kafka_cluster.basic.id}:${confluent_kafka_topic.purchase.topic_name}
. - Entity
Type string - The entity type.
- Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry Pulumi.Cluster Confluent Cloud. Inputs. Tag Binding Schema Registry Cluster - Tag
Name string - The name of the tag to be applied, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.
- Credentials
Tag
Binding Credentials Args - The Cluster API Credentials.
- Entity
Name string - The qualified name of the entity., for example,
${data.confluent_schema_registry_cluster.main.id}:.:${confluent_schema.purchase.schema_identifier}
,${data.confluent_schema_registry_cluster.main.id}:${confluent_kafka_cluster.basic.id}:${confluent_kafka_topic.purchase.topic_name}
. - Entity
Type string - The entity type.
- Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry TagCluster Binding Schema Registry Cluster Args - Tag
Name string - The name of the tag to be applied, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.
- credentials
Tag
Binding Credentials - The Cluster API Credentials.
- entity
Name String - The qualified name of the entity., for example,
${data.confluent_schema_registry_cluster.main.id}:.:${confluent_schema.purchase.schema_identifier}
,${data.confluent_schema_registry_cluster.main.id}:${confluent_kafka_cluster.basic.id}:${confluent_kafka_topic.purchase.topic_name}
. - entity
Type String - The entity type.
- rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry TagCluster Binding Schema Registry Cluster - tag
Name String - The name of the tag to be applied, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.
- credentials
Tag
Binding Credentials - The Cluster API Credentials.
- entity
Name string - The qualified name of the entity., for example,
${data.confluent_schema_registry_cluster.main.id}:.:${confluent_schema.purchase.schema_identifier}
,${data.confluent_schema_registry_cluster.main.id}:${confluent_kafka_cluster.basic.id}:${confluent_kafka_topic.purchase.topic_name}
. - entity
Type string - The entity type.
- rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry TagCluster Binding Schema Registry Cluster - tag
Name string - The name of the tag to be applied, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.
- credentials
Tag
Binding Credentials Args - The Cluster API Credentials.
- entity_
name str - The qualified name of the entity., for example,
${data.confluent_schema_registry_cluster.main.id}:.:${confluent_schema.purchase.schema_identifier}
,${data.confluent_schema_registry_cluster.main.id}:${confluent_kafka_cluster.basic.id}:${confluent_kafka_topic.purchase.topic_name}
. - entity_
type str - The entity type.
- rest_
endpoint str - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema_
registry_ Tagcluster Binding Schema Registry Cluster Args - tag_
name str - The name of the tag to be applied, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.
- credentials Property Map
- The Cluster API Credentials.
- entity
Name String - The qualified name of the entity., for example,
${data.confluent_schema_registry_cluster.main.id}:.:${confluent_schema.purchase.schema_identifier}
,${data.confluent_schema_registry_cluster.main.id}:${confluent_kafka_cluster.basic.id}:${confluent_kafka_topic.purchase.topic_name}
. - entity
Type String - The entity type.
- rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry Property MapCluster - tag
Name String - The name of the tag to be applied, for example,
PII
. The name must not be empty and consist of a letter followed by a sequence of letter, number, space, or _ characters.
Supporting Types
TagBindingCredentials, TagBindingCredentialsArgs
TagBindingSchemaRegistryCluster, TagBindingSchemaRegistryClusterArgs
- Id string
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- Id string
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id String
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id string
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id str
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id String
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
Import
You can import a Tag Binding by using the Schema Registry cluster ID, Tag name, entity name and entity type in the format <Schema Registry Cluster Id>/<Tag 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>"
$ pulumi import confluentcloud:index/tagBinding:TagBinding main lsrc-8wrx70/PII/lsrc-8wrx70:.:100001/sr_schema
!> Warning: Do not forget to delete terminal command history afterwards for security purposes.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
confluent
Terraform Provider.