import * as pulumi from "@pulumi/pulumi";
/**
 * Provides a Datadog UserRole resource. This can be used to create and manage Datadog User Roles. Conflicts may occur if used together with the `datadog.User` resource's `roles` attribute or the `datadog.ServiceAccount` resource's `roles` attribute. This resource is in beta and is subject to change.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as datadog from "@pulumi/datadog";
 *
 * // Source the permissions
 * const ddPerms = datadog.getPermissions({});
 * // Create an API Key Manager role
 * const apiKeyManager = new datadog.Role("api_key_manager", {
 *     name: "API Key Manager",
 *     permissions: [
 *         {
 *             id: ddPerms.then(ddPerms => ddPerms.permissions?.apiKeysRead),
 *         },
 *         {
 *             id: ddPerms.then(ddPerms => ddPerms.permissions?.apiKeysWrite),
 *         },
 *     ],
 * });
 * const newUser = new datadog.User("new_user", {email: "new@example.com"});
 * // Assign the API Key Manager role to the user
 * const newUserWithApiKeyManagerRole = new datadog.UserRole("new_user_with_api_key_manager_role", {
 *     roleId: apiKeyManager.id,
 *     userId: newUser.id,
 * });
 * ```
 *
 * ## Import
 *
 * The `pulumi import` command can be used, for example:
 *
 * This resource is imported using userId and roleId seperated by `:`.
 *
 * ```sh
 * $ pulumi import datadog:index/userRole:UserRole user_with_admin_role "${role_id}:${user_id}"
 * ```
 */
export declare class UserRole extends pulumi.CustomResource {
    /**
     * Get an existing UserRole 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<pulumi.ID>, state?: UserRoleState, opts?: pulumi.CustomResourceOptions): UserRole;
    /**
     * Returns true if the given object is an instance of UserRole.  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 UserRole;
    /**
     * ID of the role that the user is assigned to.
     */
    readonly roleId: pulumi.Output<string>;
    /**
     * The ID of the user.
     */
    readonly userId: pulumi.Output<string>;
    /**
     * Create a UserRole 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: UserRoleArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering UserRole resources.
 */
export interface UserRoleState {
    /**
     * ID of the role that the user is assigned to.
     */
    roleId?: pulumi.Input<string | undefined>;
    /**
     * The ID of the user.
     */
    userId?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a UserRole resource.
 */
export interface UserRoleArgs {
    /**
     * ID of the role that the user is assigned to.
     */
    roleId: pulumi.Input<string>;
    /**
     * The ID of the user.
     */
    userId: pulumi.Input<string>;
}
//# sourceMappingURL=userRole.d.ts.map