data "upstash_kafka_topic_data" "kafkaTopicData" {
  topic_id = resource.upstash_kafka_topic.exampleKafkaTopic.topic_id
}
data "upstash_kafka_topic_data" "kafkaTopicData" {
  topic_id = resource.upstash_kafka_topic.exampleKafkaTopic.topic_id
}

Schema

Required

topic_id
string
required
Unique Topic ID for requested kafka topic

Read-Only

cleanup_policy
string
Cleanup policy will be used in the topic (compact or delete)
cluster_id
string
ID of the cluster the topic will be deployed in
creation_time
number
Creation time of the topic
id
string
The ID of this resource.
max_message_size
map(string)
Max message size in the topic
multizone
bool
Whether multizone replication is enabled
partitions
map(string)
The number of partitions the topic will have
password
string
Password to be used in authenticating to the cluster
region
string
Region of the kafka topic. Possible values (may change) are: eu-west-1, us-east-1
rest_endpoint
string
REST Endpoint of the kafka topic
retention_size
number
The number of partitions the topic will have
retention_time
string
Retention time of messages in the topic
state
string
State of the credential. active or deleted
tcp_endpoint
string
TCP Endpoint of the kafka topic
topic_id
string
Unique Cluster ID for created topic
username
string
Base64 encoded username to be used in authenticating to the cluster