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, 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; /** * Name of the role. */ readonly name: pulumi.Output; /** * Set of objects containing the permission ID and the name of the permissions granted to this role. */ readonly permissions: pulumi.Output; /** * Number of users that have this role. */ readonly userCount: pulumi.Output; /** * If set to `false`, skip the validation call done during plan. */ readonly validate: pulumi.Output; /** * 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; /** * Name of the role. */ name?: pulumi.Input; /** * Set of objects containing the permission ID and the name of the permissions granted to this role. */ permissions?: pulumi.Input[]>; /** * Number of users that have this role. */ userCount?: pulumi.Input; /** * If set to `false`, skip the validation call done during plan. */ validate?: pulumi.Input; } /** * 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; /** * Name of the role. */ name: pulumi.Input; /** * Set of objects containing the permission ID and the name of the permissions granted to this role. */ permissions?: pulumi.Input[]>; /** * If set to `false`, skip the validation call done during plan. */ validate?: pulumi.Input; }