Kafka v3.8.0 published on Monday, Aug 26, 2024 by Pulumi
kafka.getTopic
Explore with Pulumi AI
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(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]
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: kafka:getTopic
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Name string
- name String
- name string
- name str
- name 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
- Replication
Factor int
- Config map[string]string
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Partitions int
- Replication
Factor int
- config Map<String,String>
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- partitions Integer
- replication
Factor Integer
- config {[key: string]: string}
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- partitions number
- replication
Factor 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
- replication
Factor Number
Package Details
- Repository
- Kafka pulumi/pulumi-kafka
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
kafka
Terraform Provider.