UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

97 lines (96 loc) 4.23 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * > This resource can only be used with a workspace-level provider! * * The `databricks.RestrictWorkspaceAdminsSetting` resource lets you control the capabilities of workspace admins. * * With the status set to `ALLOW_ALL`, workspace admins can: * * 1. Create service principal personal access tokens on behalf of any service principal in their workspace. * 2. Change a job owner to any user in the workspace. * 3. Change the job runAs setting to any user in their workspace or a service principal on which they have the Service Principal User role. * * With the status set to `RESTRICT_TOKENS_AND_JOB_RUN_AS`, workspace admins can: * * 1. Only create personal access tokens on behalf of service principals on which they have the Service Principal User role. * 2. Only change a job owner to themselves. * 3. Only change the job runAs setting to themselves a service principal on which they have the Service Principal User role. * * > Only account admins can update the setting. And the account admin must be part of the workspace to change the setting status. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = new databricks.RestrictWorkspaceAdminsSetting("this", {restrictWorkspaceAdmins: { * status: "RESTRICT_TOKENS_AND_JOB_RUN_AS", * }}); * ``` * * ## Import * * This resource can be imported by predefined name `global`: * * bash * * ```sh * $ pulumi import databricks:index/restrictWorkspaceAdminsSetting:RestrictWorkspaceAdminsSetting this global * ``` */ export declare class RestrictWorkspaceAdminsSetting extends pulumi.CustomResource { /** * Get an existing RestrictWorkspaceAdminsSetting 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?: RestrictWorkspaceAdminsSettingState, opts?: pulumi.CustomResourceOptions): RestrictWorkspaceAdminsSetting; /** * Returns true if the given object is an instance of RestrictWorkspaceAdminsSetting. 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 RestrictWorkspaceAdminsSetting; readonly etag: pulumi.Output<string>; /** * The configuration details. */ readonly restrictWorkspaceAdmins: pulumi.Output<outputs.RestrictWorkspaceAdminsSettingRestrictWorkspaceAdmins>; readonly settingName: pulumi.Output<string>; /** * Create a RestrictWorkspaceAdminsSetting 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: RestrictWorkspaceAdminsSettingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RestrictWorkspaceAdminsSetting resources. */ export interface RestrictWorkspaceAdminsSettingState { etag?: pulumi.Input<string>; /** * The configuration details. */ restrictWorkspaceAdmins?: pulumi.Input<inputs.RestrictWorkspaceAdminsSettingRestrictWorkspaceAdmins>; settingName?: pulumi.Input<string>; } /** * The set of arguments for constructing a RestrictWorkspaceAdminsSetting resource. */ export interface RestrictWorkspaceAdminsSettingArgs { etag?: pulumi.Input<string>; /** * The configuration details. */ restrictWorkspaceAdmins: pulumi.Input<inputs.RestrictWorkspaceAdminsSettingRestrictWorkspaceAdmins>; settingName?: pulumi.Input<string>; }