import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Data source to retrieve a specific Auth0 role by `roleId` or `name`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // An Auth0 Role loaded using its name. * const some_role_by_name = auth0.getRole({ * name: "my-role", * }); * // An Auth0 Role loaded using its ID. * const some_role_by_id = auth0.getRole({ * roleId: "abcdefghkijklmnopqrstuvwxyz0123456789", * }); * ``` */ export declare function getRole(args?: GetRoleArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getRole. */ export interface GetRoleArgs { /** * The name of the role. If not provided, `roleId` must be set. */ name?: string; /** * The ID of the role. If not provided, `name` must be set. */ roleId?: string; } /** * A collection of values returned by getRole. */ export interface GetRoleResult { /** * The description of the role. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The name of the role. If not provided, `roleId` must be set. */ readonly name?: string; /** * Configuration settings for permissions (scopes) attached to the role. */ readonly permissions: outputs.GetRolePermission[]; /** * The ID of the role. If not provided, `name` must be set. */ readonly roleId?: string; /** * List of user IDs assigned to this role. Retrieves a maximum of 1000 user IDs. */ readonly users: string[]; } /** * Data source to retrieve a specific Auth0 role by `roleId` or `name`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // An Auth0 Role loaded using its name. * const some_role_by_name = auth0.getRole({ * name: "my-role", * }); * // An Auth0 Role loaded using its ID. * const some_role_by_id = auth0.getRole({ * roleId: "abcdefghkijklmnopqrstuvwxyz0123456789", * }); * ``` */ export declare function getRoleOutput(args?: GetRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getRole. */ export interface GetRoleOutputArgs { /** * The name of the role. If not provided, `roleId` must be set. */ name?: pulumi.Input; /** * The ID of the role. If not provided, `name` must be set. */ roleId?: pulumi.Input; }