1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. msk
  5. getTopic

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi
aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi

    Resource Type definition for AWS::MSK::Topic

    Using getTopic

    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 getTopic(args: GetTopicArgs, opts?: InvokeOptions): Promise<GetTopicResult>
    function getTopicOutput(args: GetTopicOutputArgs, opts?: InvokeOptions): Output<GetTopicResult>
    def get_topic(topic_arn: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetTopicResult
    def get_topic_output(topic_arn: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetTopicResult]
    func LookupTopic(ctx *Context, args *LookupTopicArgs, opts ...InvokeOption) (*LookupTopicResult, error)
    func LookupTopicOutput(ctx *Context, args *LookupTopicOutputArgs, opts ...InvokeOption) LookupTopicResultOutput

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

    public static class GetTopic 
    {
        public static Task<GetTopicResult> InvokeAsync(GetTopicArgs args, InvokeOptions? opts = null)
        public static Output<GetTopicResult> Invoke(GetTopicInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTopicResult> getTopic(GetTopicArgs args, InvokeOptions options)
    public static Output<GetTopicResult> getTopic(GetTopicArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:msk:getTopic
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TopicArn string
    The Amazon Resource Name (ARN) of the topic
    TopicArn string
    The Amazon Resource Name (ARN) of the topic
    topicArn String
    The Amazon Resource Name (ARN) of the topic
    topicArn string
    The Amazon Resource Name (ARN) of the topic
    topic_arn str
    The Amazon Resource Name (ARN) of the topic
    topicArn String
    The Amazon Resource Name (ARN) of the topic

    getTopic Result

    The following output properties are available:

    PartitionCount int
    The number of partitions for the topic
    TopicArn string
    The Amazon Resource Name (ARN) of the topic
    PartitionCount int
    The number of partitions for the topic
    TopicArn string
    The Amazon Resource Name (ARN) of the topic
    partitionCount Integer
    The number of partitions for the topic
    topicArn String
    The Amazon Resource Name (ARN) of the topic
    partitionCount number
    The number of partitions for the topic
    topicArn string
    The Amazon Resource Name (ARN) of the topic
    partition_count int
    The number of partitions for the topic
    topic_arn str
    The Amazon Resource Name (ARN) of the topic
    partitionCount Number
    The number of partitions for the topic
    topicArn String
    The Amazon Resource Name (ARN) of the topic

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.57.0
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.