import * as pulumi from "@pulumi/pulumi"; /** * With this resource, you can manage user permissions. * * !> This resource appends a permission to a user. In contrast, the `auth0.UserPermissions` resource manages all the * permissions assigned to a user. To avoid potential issues, it is recommended not to use this resource in conjunction * with the `auth0.UserPermissions` resource when managing permissions for the same user id. * * ## Example Usage * * ## Import * * This resource can be imported by specifying the * * user ID, resource identifier and permission name separated by "::" (note the double colon) * * :::: * * Example: * * ```sh * $ pulumi import auth0:index/userPermission:UserPermission permission "auth0|111111111111111111111111::https://api.travel0.com/v1::read:posts" * ``` */ export declare class UserPermission extends pulumi.CustomResource { /** * Get an existing UserPermission 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?: UserPermissionState, opts?: pulumi.CustomResourceOptions): UserPermission; /** * Returns true if the given object is an instance of UserPermission. 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 UserPermission; /** * Description of the permission. */ readonly description: pulumi.Output; /** * Name of the permission. */ readonly permission: pulumi.Output; /** * Identifier of the resource server that the permission is associated with. */ readonly resourceServerIdentifier: pulumi.Output; /** * Name of the resource server that the permission is associated with. */ readonly resourceServerName: pulumi.Output; /** * ID of the user to associate the permission to. */ readonly userId: pulumi.Output; /** * Create a UserPermission 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: UserPermissionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering UserPermission resources. */ export interface UserPermissionState { /** * Description of the permission. */ description?: pulumi.Input; /** * Name of the permission. */ permission?: pulumi.Input; /** * Identifier of the resource server that the permission is associated with. */ resourceServerIdentifier?: pulumi.Input; /** * Name of the resource server that the permission is associated with. */ resourceServerName?: pulumi.Input; /** * ID of the user to associate the permission to. */ userId?: pulumi.Input; } /** * The set of arguments for constructing a UserPermission resource. */ export interface UserPermissionArgs { /** * Name of the permission. */ permission: pulumi.Input; /** * Identifier of the resource server that the permission is associated with. */ resourceServerIdentifier: pulumi.Input; /** * ID of the user to associate the permission to. */ userId: pulumi.Input; }