GetKafkaTopic
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var mytesttopic = Output.Create(Aiven.GetKafkaTopic.InvokeAsync(new Aiven.GetKafkaTopicArgs
{
Project = data.Aiven_service.Myservice.Project,
ServiceName = data.Aiven_service.Myservice.Service_name,
TopicName = "<TOPIC_NAME>",
}));
}
}
Coming soon!
import pulumi
import pulumi_aiven as aiven
mytesttopic = aiven.get_kafka_topic(project=data["aiven..Service"]["myservice"]["project"],
service_name=data["aiven..Service"]["myservice"]["service_name"],
topic_name="<TOPIC_NAME>")import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const mytesttopic = aiven.getKafkaTopic({
project: data.aiven_service.myservice.project,
serviceName: data.aiven_service.myservice.service_name,
topicName: "<TOPIC_NAME>",
});Using GetKafkaTopic
function getKafkaTopic(args: GetKafkaTopicArgs, opts?: InvokeOptions): Promise<GetKafkaTopicResult>function get_kafka_topic(cleanup_policy=None, client_timeout=None, minimum_in_sync_replicas=None, partitions=None, project=None, replication=None, retention_bytes=None, retention_hours=None, service_name=None, termination_protection=None, topic_name=None, opts=None)func LookupKafkaTopic(ctx *Context, args *LookupKafkaTopicArgs, opts ...InvokeOption) (*LookupKafkaTopicResult, error)Note: This function is named
LookupKafkaTopicin the Go SDK.
public static class GetKafkaTopic {
public static Task<GetKafkaTopicResult> InvokeAsync(GetKafkaTopicArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetKafkaTopic Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Project string
- Service
Name string - Topic
Name string - Cleanup
Policy string - Client
Timeout GetKafka Topic Client Timeout - Minimum
In intSync Replicas - Partitions int
- Replication int
- Retention
Bytes int - Retention
Hours int - Termination
Protection bool
- Id string
The provider-assigned unique ID for this managed resource.
- Project string
- Service
Name string - Topic
Name string - Cleanup
Policy string - Client
Timeout GetKafka Topic Client Timeout - Minimum
In intSync Replicas - Partitions int
- Replication int
- Retention
Bytes int - Retention
Hours int - Termination
Protection bool
- id string
The provider-assigned unique ID for this managed resource.
- project string
- service
Name string - topic
Name string - cleanup
Policy string - client
Timeout GetKafka Topic Client Timeout - minimum
In numberSync Replicas - partitions number
- replication number
- retention
Bytes number - retention
Hours number - termination
Protection boolean
- id str
The provider-assigned unique ID for this managed resource.
- project str
- service_
name str - topic_
name str - cleanup_
policy str - client_
timeout Dict[GetKafka Topic Client Timeout] - minimum_
in_ floatsync_ replicas - partitions float
- replication float
- retention_
bytes float - retention_
hours float - termination_
protection bool
Supporting Types
GetKafkaTopicClientTimeout
Package Details
- Repository
- https://github.com/pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.