1. Packages
  2. Packages
  3. Confluent Provider
  4. API Docs
  5. getRtceTopic
Viewing docs for Confluent v2.69.0
published on Friday, May 15, 2026 by Pulumi
confluentcloud logo
Viewing docs for Confluent v2.69.0
published on Friday, May 15, 2026 by Pulumi

    General Availability

    confluentcloud.RtceTopic describes a RtceTopic data source.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as confluentcloud from "@pulumi/confluentcloud";
    
    export = async () => {
        const example = await confluentcloud.getRtceTopic({
            topicName: "orders_topic",
            environment: {
                id: "env-xyz456",
            },
            kafkaCluster: {
                id: "lkc-abc123",
            },
        });
        return {
            example: example,
        };
    }
    
    import pulumi
    import pulumi_confluentcloud as confluentcloud
    
    example = confluentcloud.get_rtce_topic(topic_name="orders_topic",
        environment={
            "id": "env-xyz456",
        },
        kafka_cluster={
            "id": "lkc-abc123",
        })
    pulumi.export("example", example)
    
    package main
    
    import (
    	"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 {
    		example, err := confluentcloud.GetRtceTopic(ctx, &confluentcloud.LookupRtceTopicArgs{
    			TopicName: "orders_topic",
    			Environment: confluentcloud.GetRtceTopicEnvironment{
    				Id: "env-xyz456",
    			},
    			KafkaCluster: confluentcloud.GetRtceTopicKafkaCluster{
    				Id: "lkc-abc123",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("example", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ConfluentCloud = Pulumi.ConfluentCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = ConfluentCloud.GetRtceTopic.Invoke(new()
        {
            TopicName = "orders_topic",
            Environment = new ConfluentCloud.Inputs.GetRtceTopicEnvironmentInputArgs
            {
                Id = "env-xyz456",
            },
            KafkaCluster = new ConfluentCloud.Inputs.GetRtceTopicKafkaClusterInputArgs
            {
                Id = "lkc-abc123",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["example"] = example,
        };
    });
    
    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.GetRtceTopicArgs;
    import com.pulumi.confluentcloud.inputs.GetRtceTopicEnvironmentArgs;
    import com.pulumi.confluentcloud.inputs.GetRtceTopicKafkaClusterArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 example = ConfluentcloudFunctions.getRtceTopic(GetRtceTopicArgs.builder()
                .topicName("orders_topic")
                .environment(GetRtceTopicEnvironmentArgs.builder()
                    .id("env-xyz456")
                    .build())
                .kafkaCluster(GetRtceTopicKafkaClusterArgs.builder()
                    .id("lkc-abc123")
                    .build())
                .build());
    
            ctx.export("example", example);
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: confluentcloud:getRtceTopic
          arguments:
            topicName: orders_topic
            environment:
              id: env-xyz456
            kafkaCluster:
              id: lkc-abc123
    outputs:
      example: ${example}
    
    Example coming soon!
    

    Using getRtceTopic

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getRtceTopic(args: GetRtceTopicArgs, opts?: InvokeOptions): Promise<GetRtceTopicResult>
    function getRtceTopicOutput(args: GetRtceTopicOutputArgs, opts?: InvokeOptions): Output<GetRtceTopicResult>
    def get_rtce_topic(environment: Optional[GetRtceTopicEnvironment] = None,
                       kafka_cluster: Optional[GetRtceTopicKafkaCluster] = None,
                       topic_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRtceTopicResult
    def get_rtce_topic_output(environment: pulumi.Input[Optional[GetRtceTopicEnvironmentArgs]] = None,
                       kafka_cluster: pulumi.Input[Optional[GetRtceTopicKafkaClusterArgs]] = None,
                       topic_name: pulumi.Input[Optional[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetRtceTopicResult]
    func LookupRtceTopic(ctx *Context, args *LookupRtceTopicArgs, opts ...InvokeOption) (*LookupRtceTopicResult, error)
    func LookupRtceTopicOutput(ctx *Context, args *LookupRtceTopicOutputArgs, opts ...InvokeOption) LookupRtceTopicResultOutput

    > Note: This function is named LookupRtceTopic in the Go SDK.

    public static class GetRtceTopic 
    {
        public static Task<GetRtceTopicResult> InvokeAsync(GetRtceTopicArgs args, InvokeOptions? opts = null)
        public static Output<GetRtceTopicResult> Invoke(GetRtceTopicInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRtceTopicResult> getRtceTopic(GetRtceTopicArgs args, InvokeOptions options)
    public static Output<GetRtceTopicResult> getRtceTopic(GetRtceTopicArgs args, InvokeOptions options)
    
    fn::invoke:
      function: confluentcloud:index/getRtceTopic:getRtceTopic
      arguments:
        # arguments dictionary
    data "confluentcloud_getrtcetopic" "name" {
        # arguments
    }

    The following arguments are supported:

    Environment Pulumi.ConfluentCloud.Inputs.GetRtceTopicEnvironment
    Supports the following:
    KafkaCluster Pulumi.ConfluentCloud.Inputs.GetRtceTopicKafkaCluster
    The Kafka Cluster for the RtceTopic. Supports the following:
    TopicName string
    The Kafka topic name containing the data for the RTCE topic.
    Environment GetRtceTopicEnvironment
    Supports the following:
    KafkaCluster GetRtceTopicKafkaCluster
    The Kafka Cluster for the RtceTopic. Supports the following:
    TopicName string
    The Kafka topic name containing the data for the RTCE topic.
    environment object
    Supports the following:
    kafka_cluster object
    The Kafka Cluster for the RtceTopic. Supports the following:
    topic_name string
    The Kafka topic name containing the data for the RTCE topic.
    environment GetRtceTopicEnvironment
    Supports the following:
    kafkaCluster GetRtceTopicKafkaCluster
    The Kafka Cluster for the RtceTopic. Supports the following:
    topicName String
    The Kafka topic name containing the data for the RTCE topic.
    environment GetRtceTopicEnvironment
    Supports the following:
    kafkaCluster GetRtceTopicKafkaCluster
    The Kafka Cluster for the RtceTopic. Supports the following:
    topicName string
    The Kafka topic name containing the data for the RTCE topic.
    environment GetRtceTopicEnvironment
    Supports the following:
    kafka_cluster GetRtceTopicKafkaCluster
    The Kafka Cluster for the RtceTopic. Supports the following:
    topic_name str
    The Kafka topic name containing the data for the RTCE topic.
    environment Property Map
    Supports the following:
    kafkaCluster Property Map
    The Kafka Cluster for the RtceTopic. Supports the following:
    topicName String
    The Kafka topic name containing the data for the RTCE topic.

    getRtceTopic Result

    The following output properties are available:

    ApiVersion string
    (String) API Version defines the schema version of this representation of a resource.
    Cloud string
    (String) The cloud provider where the RTCE topic is deployed.
    Description string
    (String) A model-readable description of the RTCE topic.
    Environment Pulumi.ConfluentCloud.Outputs.GetRtceTopicEnvironment
    Id string
    The provider-assigned unique ID for this managed resource.
    KafkaCluster Pulumi.ConfluentCloud.Outputs.GetRtceTopicKafkaCluster
    Kind string
    (String) Kind defines the object this REST resource represents.
    Region string
    (String) The cloud region where the RTCE topic is deployed.
    ResourceName string
    (String) The Confluent Resource Name of the resource.
    TopicName string
    ApiVersion string
    (String) API Version defines the schema version of this representation of a resource.
    Cloud string
    (String) The cloud provider where the RTCE topic is deployed.
    Description string
    (String) A model-readable description of the RTCE topic.
    Environment GetRtceTopicEnvironment
    Id string
    The provider-assigned unique ID for this managed resource.
    KafkaCluster GetRtceTopicKafkaCluster
    Kind string
    (String) Kind defines the object this REST resource represents.
    Region string
    (String) The cloud region where the RTCE topic is deployed.
    ResourceName string
    (String) The Confluent Resource Name of the resource.
    TopicName string
    api_version string
    (String) API Version defines the schema version of this representation of a resource.
    cloud string
    (String) The cloud provider where the RTCE topic is deployed.
    description string
    (String) A model-readable description of the RTCE topic.
    environment object
    id string
    The provider-assigned unique ID for this managed resource.
    kafka_cluster object
    kind string
    (String) Kind defines the object this REST resource represents.
    region string
    (String) The cloud region where the RTCE topic is deployed.
    resource_name string
    (String) The Confluent Resource Name of the resource.
    topic_name string
    apiVersion String
    (String) API Version defines the schema version of this representation of a resource.
    cloud String
    (String) The cloud provider where the RTCE topic is deployed.
    description String
    (String) A model-readable description of the RTCE topic.
    environment GetRtceTopicEnvironment
    id String
    The provider-assigned unique ID for this managed resource.
    kafkaCluster GetRtceTopicKafkaCluster
    kind String
    (String) Kind defines the object this REST resource represents.
    region String
    (String) The cloud region where the RTCE topic is deployed.
    resourceName String
    (String) The Confluent Resource Name of the resource.
    topicName String
    apiVersion string
    (String) API Version defines the schema version of this representation of a resource.
    cloud string
    (String) The cloud provider where the RTCE topic is deployed.
    description string
    (String) A model-readable description of the RTCE topic.
    environment GetRtceTopicEnvironment
    id string
    The provider-assigned unique ID for this managed resource.
    kafkaCluster GetRtceTopicKafkaCluster
    kind string
    (String) Kind defines the object this REST resource represents.
    region string
    (String) The cloud region where the RTCE topic is deployed.
    resourceName string
    (String) The Confluent Resource Name of the resource.
    topicName string
    api_version str
    (String) API Version defines the schema version of this representation of a resource.
    cloud str
    (String) The cloud provider where the RTCE topic is deployed.
    description str
    (String) A model-readable description of the RTCE topic.
    environment GetRtceTopicEnvironment
    id str
    The provider-assigned unique ID for this managed resource.
    kafka_cluster GetRtceTopicKafkaCluster
    kind str
    (String) Kind defines the object this REST resource represents.
    region str
    (String) The cloud region where the RTCE topic is deployed.
    resource_name str
    (String) The Confluent Resource Name of the resource.
    topic_name str
    apiVersion String
    (String) API Version defines the schema version of this representation of a resource.
    cloud String
    (String) The cloud provider where the RTCE topic is deployed.
    description String
    (String) A model-readable description of the RTCE topic.
    environment Property Map
    id String
    The provider-assigned unique ID for this managed resource.
    kafkaCluster Property Map
    kind String
    (String) Kind defines the object this REST resource represents.
    region String
    (String) The cloud region where the RTCE topic is deployed.
    resourceName String
    (String) The Confluent Resource Name of the resource.
    topicName String

    Supporting Types

    GetRtceTopicEnvironment

    Id string
    The ID of the Environment that the RtceTopic belongs to, for example, env-xyz456.
    Id string
    The ID of the Environment that the RtceTopic belongs to, for example, env-xyz456.
    id string
    The ID of the Environment that the RtceTopic belongs to, for example, env-xyz456.
    id String
    The ID of the Environment that the RtceTopic belongs to, for example, env-xyz456.
    id string
    The ID of the Environment that the RtceTopic belongs to, for example, env-xyz456.
    id str
    The ID of the Environment that the RtceTopic belongs to, for example, env-xyz456.
    id String
    The ID of the Environment that the RtceTopic belongs to, for example, env-xyz456.

    GetRtceTopicKafkaCluster

    Id string
    The ID of the Kafka Cluster, for example, lkc-abc123.
    Id string
    The ID of the Kafka Cluster, for example, lkc-abc123.
    id string
    The ID of the Kafka Cluster, for example, lkc-abc123.
    id String
    The ID of the Kafka Cluster, for example, lkc-abc123.
    id string
    The ID of the Kafka Cluster, for example, lkc-abc123.
    id str
    The ID of the Kafka Cluster, for example, lkc-abc123.
    id String
    The ID of the Kafka Cluster, for example, lkc-abc123.

    Package Details

    Repository
    Confluent Cloud pulumi/pulumi-confluentcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the confluent Terraform Provider.
    confluentcloud logo
    Viewing docs for Confluent v2.69.0
    published on Friday, May 15, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.