import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a topic of a kafka cluster associated with a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const topic = ovh.CloudProjectDatabase.getKafkaTopic({ * serviceName: "XXX", * clusterId: "YYY", * id: "ZZZ", * }); * export const topicName = topic.then(topic => topic.name); * ``` */ export declare function getKafkaTopic(args: GetKafkaTopicArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getKafkaTopic. */ export interface GetKafkaTopicArgs { /** * Cluster ID */ clusterId: string; /** * Topic ID */ id: string; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: string; } /** * A collection of values returned by getKafkaTopic. */ export interface GetKafkaTopicResult { /** * See Argument Reference above. */ readonly clusterId: string; /** * See Argument Reference above. */ readonly id: string; /** * Minimum insync replica accepted for this topic. */ readonly minInsyncReplicas: number; /** * Name of the topic. */ readonly name: string; /** * Number of partitions for this topic. */ readonly partitions: number; /** * Number of replication for this topic. */ readonly replication: number; /** * Number of bytes for the retention of the data for this topic. Inferior to 0 mean Unlimited */ readonly retentionBytes: number; /** * Number of hours for the retention of the data for this topic. Inferior to 0 mean Unlimited */ readonly retentionHours: number; /** * See Argument Reference above. */ readonly serviceName: string; } /** * Use this data source to get information about a topic of a kafka cluster associated with a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const topic = ovh.CloudProjectDatabase.getKafkaTopic({ * serviceName: "XXX", * clusterId: "YYY", * id: "ZZZ", * }); * export const topicName = topic.then(topic => topic.name); * ``` */ export declare function getKafkaTopicOutput(args: GetKafkaTopicOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getKafkaTopic. */ export interface GetKafkaTopicOutputArgs { /** * Cluster ID */ clusterId: pulumi.Input; /** * Topic ID */ id: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; }