import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
 * Provides a Datadog role resource. This can be used to create and manage Datadog roles.
 *
 * ## 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),
 *         },
 *     ],
 * });
 * ```
 *
 * ## Import
 *
 * The `pulumi import` command can be used, for example:
 *
 * Roles can be imported using their ID, e.g.
 *
 * ```sh
 * $ pulumi import datadog:index/role:Role example_role 000000-0000-0000-0000-000000000000
 * ```
 */
export declare class Role extends pulumi.CustomResource {
    /**
     * Get an existing Role 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?: RoleState, opts?: pulumi.CustomResourceOptions): Role;
    /**
     * Returns true if the given object is an instance of Role.  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 Role;
    /**
     * If set to `true`, the role does not have default (restricted) permissions unless they are explicitly set. The `includeRestricted` attribute for the `datadog.getPermissions` data source must be set to `true` to manage default permissions in Terraform.
     */
    readonly defaultPermissionsOptOut: pulumi.Output<boolean | undefined>;
    /**
     * Name of the role.
     */
    readonly name: pulumi.Output<string>;
    /**
     * Set of objects containing the permission ID and the name of the permissions granted to this role.
     */
    readonly permissions: pulumi.Output<outputs.RolePermission[] | undefined>;
    /**
     * Number of users that have this role. **Deprecated.** This field is no longer set and will be removed in a future release.
     *
     * @deprecated This field is no longer set and will be removed in a future release.
     */
    readonly userCount: pulumi.Output<number>;
    /**
     * If set to `false`, skip the validation call done during plan.
     */
    readonly validate: pulumi.Output<boolean | undefined>;
    /**
     * Create a Role 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: RoleArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering Role resources.
 */
export interface RoleState {
    /**
     * If set to `true`, the role does not have default (restricted) permissions unless they are explicitly set. The `includeRestricted` attribute for the `datadog.getPermissions` data source must be set to `true` to manage default permissions in Terraform.
     */
    defaultPermissionsOptOut?: pulumi.Input<boolean | undefined>;
    /**
     * Name of the role.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * Set of objects containing the permission ID and the name of the permissions granted to this role.
     */
    permissions?: pulumi.Input<pulumi.Input<inputs.RolePermission>[] | undefined>;
    /**
     * Number of users that have this role. **Deprecated.** This field is no longer set and will be removed in a future release.
     *
     * @deprecated This field is no longer set and will be removed in a future release.
     */
    userCount?: pulumi.Input<number | undefined>;
    /**
     * If set to `false`, skip the validation call done during plan.
     */
    validate?: pulumi.Input<boolean | undefined>;
}
/**
 * The set of arguments for constructing a Role resource.
 */
export interface RoleArgs {
    /**
     * If set to `true`, the role does not have default (restricted) permissions unless they are explicitly set. The `includeRestricted` attribute for the `datadog.getPermissions` data source must be set to `true` to manage default permissions in Terraform.
     */
    defaultPermissionsOptOut?: pulumi.Input<boolean | undefined>;
    /**
     * Name of the role.
     */
    name: pulumi.Input<string>;
    /**
     * Set of objects containing the permission ID and the name of the permissions granted to this role.
     */
    permissions?: pulumi.Input<pulumi.Input<inputs.RolePermission>[] | undefined>;
    /**
     * If set to `false`, skip the validation call done during plan.
     */
    validate?: pulumi.Input<boolean | undefined>;
}
//# sourceMappingURL=role.d.ts.map