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 LookupKafkaTopic in the Go SDK.

public static class GetKafkaTopic {
    public static Task<GetKafkaTopicResult> InvokeAsync(GetKafkaTopicArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Project string
ServiceName string
TopicName string
CleanupPolicy string
ClientTimeout GetKafkaTopicClientTimeoutArgs
MinimumInSyncReplicas int
Partitions int
Replication int
RetentionBytes int
RetentionHours int
TerminationProtection bool
Project string
ServiceName string
TopicName string
CleanupPolicy string
ClientTimeout GetKafkaTopicClientTimeout
MinimumInSyncReplicas int
Partitions int
Replication int
RetentionBytes int
RetentionHours int
TerminationProtection bool
project string
serviceName string
topicName string
cleanupPolicy string
clientTimeout GetKafkaTopicClientTimeout
minimumInSyncReplicas number
partitions number
replication number
retentionBytes number
retentionHours number
terminationProtection boolean
project str
service_name str
topic_name str
cleanup_policy str
client_timeout Dict[GetKafkaTopicClientTimeout]
minimum_in_sync_replicas float
partitions float
replication float
retention_bytes float
retention_hours float
termination_protection bool

GetKafkaTopic Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Project string
ServiceName string
TopicName string
CleanupPolicy string
ClientTimeout GetKafkaTopicClientTimeout
MinimumInSyncReplicas int
Partitions int
Replication int
RetentionBytes int
RetentionHours int
TerminationProtection bool
Id string

The provider-assigned unique ID for this managed resource.

Project string
ServiceName string
TopicName string
CleanupPolicy string
ClientTimeout GetKafkaTopicClientTimeout
MinimumInSyncReplicas int
Partitions int
Replication int
RetentionBytes int
RetentionHours int
TerminationProtection bool
id string

The provider-assigned unique ID for this managed resource.

project string
serviceName string
topicName string
cleanupPolicy string
clientTimeout GetKafkaTopicClientTimeout
minimumInSyncReplicas number
partitions number
replication number
retentionBytes number
retentionHours number
terminationProtection 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[GetKafkaTopicClientTimeout]
minimum_in_sync_replicas float
partitions float
replication float
retention_bytes float
retention_hours float
termination_protection bool

Supporting Types

GetKafkaTopicClientTimeout

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Create string
Read string
Create string
Read string
create string
read string
create str
read str

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.