import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get the list of all users of a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const projectUsers = ovh.CloudProject.getUsers({ * serviceName: "XXX", * }); * // Get the user ID of a previously created user with the description "S3-User" * const users = projectUsers.then(projectUsers => .filter(user => user.description == "S3-User").map(user => (user.userId))); * const s3UserId = users[0]; * export const userId = s3UserId; * ``` */ export declare function getUsers(args: GetUsersArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getUsers. */ export interface GetUsersArgs { /** * 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 getUsers. */ export interface GetUsersResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly serviceName: string; /** * The list of users of a public cloud project. */ readonly users: outputs.CloudProject.GetUsersUser[]; } /** * Get the list of all users of a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const projectUsers = ovh.CloudProject.getUsers({ * serviceName: "XXX", * }); * // Get the user ID of a previously created user with the description "S3-User" * const users = projectUsers.then(projectUsers => .filter(user => user.description == "S3-User").map(user => (user.userId))); * const s3UserId = users[0]; * export const userId = s3UserId; * ``` */ export declare function getUsersOutput(args: GetUsersOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getUsers. */ export interface GetUsersOutputArgs { /** * The ID of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; }