1. Packages
  2. Kafka Provider
  3. API Docs
  4. getTopic
Kafka v3.9.0 published on Sunday, Mar 9, 2025 by Pulumi

kafka.getTopic

Explore with Pulumi AI

Kafka v3.9.0 published on Sunday, Mar 9, 2025 by Pulumi

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

> 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)
}
Copy
public static CompletableFuture<GetTopicResult> getTopic(GetTopicArgs args, InvokeOptions options)
public static Output<GetTopicResult> getTopic(GetTopicArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: kafka:getTopic
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name This property is required. string
name This property is required. String
name This property is required. string
name This property is required. str
name This property is required. String

getTopic Result

The following output properties are available:

Config Dictionary<string, string>
Id string
The provider-assigned unique ID for this managed resource.
Name string
Partitions int
ReplicationFactor int
Config map[string]string
Id string
The provider-assigned unique ID for this managed resource.
Name string
Partitions int
ReplicationFactor int
config Map<String,String>
id String
The provider-assigned unique ID for this managed resource.
name String
partitions Integer
replicationFactor Integer
config {[key: string]: string}
id string
The provider-assigned unique ID for this managed resource.
name string
partitions number
replicationFactor number
config Mapping[str, str]
id str
The provider-assigned unique ID for this managed resource.
name str
partitions int
replication_factor int
config Map<String>
id String
The provider-assigned unique ID for this managed resource.
name String
partitions Number
replicationFactor Number

Package Details

Repository
Kafka pulumi/pulumi-kafka
License
Apache-2.0
Notes
This Pulumi package is based on the kafka Terraform Provider.
Kafka v3.9.0 published on Sunday, Mar 9, 2025 by Pulumi