import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about a user of a redis cluster associated with a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const redisUser = ovh.CloudProject.getRedisUser({ * serviceName: "XXX", * clusterId: "YYY", * name: "ZZZ", * }); * export const redisUserCommands = redisUser.then(redisUser => redisUser.commands); * ``` */ export declare function getRedisUser(args: GetRedisUserArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getRedisUser. */ export interface GetRedisUserArgs { /** * Cluster ID */ clusterId: string; /** * Name of the user */ name: 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 getRedisUser. */ export interface GetRedisUserResult { /** * Categories of the user. */ readonly categories: string[]; /** * Channels of the user. */ readonly channels: string[]; /** * See Argument Reference above. */ readonly clusterId: string; /** * Commands of the user. */ readonly commands: string[]; /** * Date of the creation of the user. */ readonly createdAt: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Keys of the user. */ readonly keys: string[]; /** * See Argument Reference above. */ readonly name: string; /** * Current status of the user. */ readonly serviceName: string; /** * Current status of the user. */ readonly status: string; } /** * Use this data source to get information about a user of a redis cluster associated with a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const redisUser = ovh.CloudProject.getRedisUser({ * serviceName: "XXX", * clusterId: "YYY", * name: "ZZZ", * }); * export const redisUserCommands = redisUser.then(redisUser => redisUser.commands); * ``` */ export declare function getRedisUserOutput(args: GetRedisUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getRedisUser. */ export interface GetRedisUserOutputArgs { /** * Cluster ID */ clusterId: pulumi.Input; /** * Name of the user */ name: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; }