@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
116 lines (115 loc) • 4.7 kB
TypeScript
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 an account-level provider!
*
* The `databricks.DisableLegacyFeaturesSetting` resource allows you to disable legacy features on newly created workspaces.
*
* > Before disabling legacy features, make sure that default catalog for the workspace is set to value different than `hiveMetastore`! You can set it using the databricks.DefaultNamespaceSetting resource.
*
* When this setting is on, the following applies to new workspaces:
*
* - Disables the use of DBFS root and mounts.
* - Hive Metastore will not be provisioned.
* - Disables the use of 'No-isolation clusters'.
* - Disables Databricks Runtime versions prior to 13.3LTS
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* // Change default catalog to anything than `hive_metastore`
* const _this = new databricks.DefaultNamespaceSetting("this", {namespace: {
* value: "default_catalog",
* }});
* // Disable legacy features
* const thisDisableLegacyFeaturesSetting = new databricks.DisableLegacyFeaturesSetting("this", {disableLegacyFeatures: {
* value: true,
* }});
* ```
*
* ## Related Resources
*
* The following resources are often used in the same context:
*
* * databricks.DisableLegacyAccessSetting to disable legacy access, enabled by default when creating new workspaces with the `disableLegacyFeatures` account level setting turned on.
* * databricks.DisableLegacyDbfsSetting to disable legacy DBFS, enabled by default when creating new workspaces with the `disableLegacyFeatures` account level setting turned on.
*
* ## Import
*
* This resource can be imported by predefined name `global`:
*
* hcl
*
* import {
*
* to = databricks_disable_legacy_features_setting.this
*
* id = "global"
*
* }
*
* Alternatively, when using `terraform` version 1.4 or earlier, import using the `pulumi import` command:
*
* bash
*
* ```sh
* $ pulumi import databricks:index/disableLegacyFeaturesSetting:DisableLegacyFeaturesSetting this global
* ```
*/
export declare class DisableLegacyFeaturesSetting extends pulumi.CustomResource {
/**
* Get an existing DisableLegacyFeaturesSetting 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?: DisableLegacyFeaturesSettingState, opts?: pulumi.CustomResourceOptions): DisableLegacyFeaturesSetting;
/**
* Returns true if the given object is an instance of DisableLegacyFeaturesSetting. 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 DisableLegacyFeaturesSetting;
/**
* block with following attributes:
*/
readonly disableLegacyFeatures: pulumi.Output<outputs.DisableLegacyFeaturesSettingDisableLegacyFeatures>;
readonly etag: pulumi.Output<string>;
readonly settingName: pulumi.Output<string>;
/**
* Create a DisableLegacyFeaturesSetting 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: DisableLegacyFeaturesSettingArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering DisableLegacyFeaturesSetting resources.
*/
export interface DisableLegacyFeaturesSettingState {
/**
* block with following attributes:
*/
disableLegacyFeatures?: pulumi.Input<inputs.DisableLegacyFeaturesSettingDisableLegacyFeatures>;
etag?: pulumi.Input<string>;
settingName?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a DisableLegacyFeaturesSetting resource.
*/
export interface DisableLegacyFeaturesSettingArgs {
/**
* block with following attributes:
*/
disableLegacyFeatures: pulumi.Input<inputs.DisableLegacyFeaturesSettingDisableLegacyFeatures>;
etag?: pulumi.Input<string>;
settingName?: pulumi.Input<string>;
}