import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Gets information about an Aiven for Apache Kafka® topic. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const example = aiven.getKafkaTopic({ * project: "my-project", * serviceName: "my-kafka", * topicName: "mytopic", * }); * ``` */ export declare function getKafkaTopic(args: GetKafkaTopicArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getKafkaTopic. */ export interface GetKafkaTopicArgs { /** * [Advanced parameters](https://aiven.io/docs/products/kafka/reference/advanced-params) to configure topics. Removing the block won't reset the topic configuration to default values. Instead, the topic will retain its last known configuration. */ configs?: inputs.GetKafkaTopicConfig[]; /** * Project name. */ project: string; /** * Service name. */ serviceName: string; /** * Topic tags. */ tags?: inputs.GetKafkaTopicTag[]; timeouts?: inputs.GetKafkaTopicTimeouts; /** * Kafka topic name. */ topicName: string; } /** * A collection of values returned by getKafkaTopic. */ export interface GetKafkaTopicResult { /** * [Advanced parameters](https://aiven.io/docs/products/kafka/reference/advanced-params) to configure topics. Removing the block won't reset the topic configuration to default values. Instead, the topic will retain its last known configuration. */ readonly configs?: outputs.GetKafkaTopicConfig[]; /** * Resource ID composed as: `project/service_name/topic_name`. */ readonly id: string; /** * The user group that owns this topic. */ readonly ownerUserGroupId: string; /** * Number of partitions. */ readonly partitions: number; /** * Project name. */ readonly project: string; /** * Number of replicas. */ readonly replication: number; /** * Service name. */ readonly serviceName: string; /** * Topic tags. */ readonly tags?: outputs.GetKafkaTopicTag[]; /** * Client-side deletion protection that prevents the resource from being deleted by Terraform. **Resource can still be deleted in the Aiven Console**. The default value is `false`. **Deprecated**: Instead, use `preventDestroy` * * @deprecated Instead, use [`preventDestroy`](https://developer.hashicorp.com/terraform/tutorials/state/resource-lifecycle#prevent-resource-deletion) */ readonly terminationProtection: boolean; readonly timeouts?: outputs.GetKafkaTopicTimeouts; /** * Topic description. */ readonly topicDescription: string; /** * Kafka topic name. */ readonly topicName: string; } /** * Gets information about an Aiven for Apache Kafka® topic. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const example = aiven.getKafkaTopic({ * project: "my-project", * serviceName: "my-kafka", * topicName: "mytopic", * }); * ``` */ export declare function getKafkaTopicOutput(args: GetKafkaTopicOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getKafkaTopic. */ export interface GetKafkaTopicOutputArgs { /** * [Advanced parameters](https://aiven.io/docs/products/kafka/reference/advanced-params) to configure topics. Removing the block won't reset the topic configuration to default values. Instead, the topic will retain its last known configuration. */ configs?: pulumi.Input[] | undefined>; /** * Project name. */ project: pulumi.Input; /** * Service name. */ serviceName: pulumi.Input; /** * Topic tags. */ tags?: pulumi.Input[] | undefined>; timeouts?: pulumi.Input; /** * Kafka topic name. */ topicName: pulumi.Input; } //# sourceMappingURL=getKafkaTopic.d.ts.map