import * as pulumi from "@pulumi/pulumi"; /** * Creates a schema registry ACL 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 schemaRegistryAcl = new ovh.cloudprojectdatabase.KafkaSchemaRegistryAcl("schema_registry_acl", { * serviceName: kafka.then(kafka => kafka.serviceName), * clusterId: kafka.then(kafka => kafka.id), * permission: "schema_registry_read", * resource: "Subject:myResource", * username: "johndoe", * }); * ``` * * ## Import * * OVHcloud Managed Kafka clusters schema registry ACLs can be imported using the `service_name`, `cluster_id` and `id` of the schema registry ACL, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:CloudProjectDatabase/kafkaSchemaRegistryAcl:KafkaSchemaRegistryAcl my_schemaRegistryAcl service_name/cluster_id/id * ``` */ export declare class KafkaSchemaRegistryAcl extends pulumi.CustomResource { /** * Get an existing KafkaSchemaRegistryAcl 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?: KafkaSchemaRegistryAclState, opts?: pulumi.CustomResourceOptions): KafkaSchemaRegistryAcl; /** * Returns true if the given object is an instance of KafkaSchemaRegistryAcl. 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 KafkaSchemaRegistryAcl; /** * Cluster ID. */ readonly clusterId: pulumi.Output; /** * Permission to give to this username on this resource. Available permissions: */ readonly permission: pulumi.Output; /** * Resource affected by this schema registry ACL. */ readonly resource: pulumi.Output; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * Username affected by this schema registry ACL. */ readonly username: pulumi.Output; /** * Create a KafkaSchemaRegistryAcl 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: KafkaSchemaRegistryAclArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering KafkaSchemaRegistryAcl resources. */ export interface KafkaSchemaRegistryAclState { /** * Cluster ID. */ clusterId?: pulumi.Input; /** * Permission to give to this username on this resource. Available permissions: */ permission?: pulumi.Input; /** * Resource affected by this schema registry ACL. */ resource?: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Username affected by this schema registry ACL. */ username?: pulumi.Input; } /** * The set of arguments for constructing a KafkaSchemaRegistryAcl resource. */ export interface KafkaSchemaRegistryAclArgs { /** * Cluster ID. */ clusterId: pulumi.Input; /** * Permission to give to this username on this resource. Available permissions: */ permission: pulumi.Input; /** * Resource affected by this schema registry ACL. */ resource: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Username affected by this schema registry ACL. */ username: pulumi.Input; }