import * as pulumi from "@pulumi/pulumi"; /** * Creates a topic for 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 kafka = ovh.CloudProjectDatabase.getDatabase({ * serviceName: "XXX", * engine: "kafka", * id: "ZZZ", * }); * const topic = new ovh.cloudprojectdatabase.KafkaTopic("topic", { * serviceName: kafka.then(kafka => kafka.serviceName), * clusterId: kafka.then(kafka => kafka.id), * name: "mytopic", * minInsyncReplicas: 1, * partitions: 3, * replication: 2, * retentionBytes: 4, * retentionHours: 5, * }); * ``` * * ## Import * * OVHcloud Managed kafka clusters topics can be imported using the `service_name`, `cluster_id` and `id` of the topic, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:CloudProjectDatabase/kafkaTopic:KafkaTopic my_topic service_name/cluster_id/id * ``` */ export declare class KafkaTopic extends pulumi.CustomResource { /** * Get an existing KafkaTopic resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: KafkaTopicState, opts?: pulumi.CustomResourceOptions): KafkaTopic; /** * Returns true if the given object is an instance of KafkaTopic. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is KafkaTopic; /** * Cluster ID. */ readonly clusterId: pulumi.Output; /** * Minimum insync replica accepted for this topic. Should be superior to 0 */ readonly minInsyncReplicas: pulumi.Output; /** * Name of the topic. No spaces allowed. */ readonly name: pulumi.Output; /** * Number of partitions for this topic. Should be superior to 0 */ readonly partitions: pulumi.Output; /** * Number of replication for this topic. Should be superior to 1 */ readonly replication: pulumi.Output; /** * Number of bytes for the retention of the data for this topic. Inferior to 0 means unlimited */ readonly retentionBytes: pulumi.Output; /** * Number of hours for the retention of the data for this topic. Should be superior to -2. Inferior to 0 means unlimited */ readonly retentionHours: pulumi.Output; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * Create a KafkaTopic resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: KafkaTopicArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering KafkaTopic resources. */ export interface KafkaTopicState { /** * Cluster ID. */ clusterId?: pulumi.Input; /** * Minimum insync replica accepted for this topic. Should be superior to 0 */ minInsyncReplicas?: pulumi.Input; /** * Name of the topic. No spaces allowed. */ name?: pulumi.Input; /** * Number of partitions for this topic. Should be superior to 0 */ partitions?: pulumi.Input; /** * Number of replication for this topic. Should be superior to 1 */ replication?: pulumi.Input; /** * Number of bytes for the retention of the data for this topic. Inferior to 0 means unlimited */ retentionBytes?: pulumi.Input; /** * Number of hours for the retention of the data for this topic. Should be superior to -2. Inferior to 0 means unlimited */ retentionHours?: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; } /** * The set of arguments for constructing a KafkaTopic resource. */ export interface KafkaTopicArgs { /** * Cluster ID. */ clusterId: pulumi.Input; /** * Minimum insync replica accepted for this topic. Should be superior to 0 */ minInsyncReplicas?: pulumi.Input; /** * Name of the topic. No spaces allowed. */ name?: pulumi.Input; /** * Number of partitions for this topic. Should be superior to 0 */ partitions?: pulumi.Input; /** * Number of replication for this topic. Should be superior to 1 */ replication?: pulumi.Input; /** * Number of bytes for the retention of the data for this topic. Inferior to 0 means unlimited */ retentionBytes?: pulumi.Input; /** * Number of hours for the retention of the data for this topic. Should be superior to -2. Inferior to 0 means unlimited */ retentionHours?: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; }