1. Packages
  2. Databricks Provider
  3. API Docs
  4. DisableLegacyFeaturesSetting
Databricks v1.70.0 published on Friday, May 9, 2025 by Pulumi

databricks.DisableLegacyFeaturesSetting

Explore with Pulumi AI

databricks logo
Databricks v1.70.0 published on Friday, May 9, 2025 by Pulumi

    This resource can only be used with an account-level provider!

    This setting is currently in private preview, and only available for enrolled customers.

    The databricks.DisableLegacyFeaturesSetting resource allows you to disable legacy features on newly created workspaces.

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const _this = new databricks.DisableLegacyFeaturesSetting("this", {disableLegacyFeatures: {
        value: true,
    }});
    
    import pulumi
    import pulumi_databricks as databricks
    
    this = databricks.DisableLegacyFeaturesSetting("this", disable_legacy_features={
        "value": True,
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewDisableLegacyFeaturesSetting(ctx, "this", &databricks.DisableLegacyFeaturesSettingArgs{
    			DisableLegacyFeatures: &databricks.DisableLegacyFeaturesSettingDisableLegacyFeaturesArgs{
    				Value: pulumi.Bool(true),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = new Databricks.DisableLegacyFeaturesSetting("this", new()
        {
            DisableLegacyFeatures = new Databricks.Inputs.DisableLegacyFeaturesSettingDisableLegacyFeaturesArgs
            {
                Value = true,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.DisableLegacyFeaturesSetting;
    import com.pulumi.databricks.DisableLegacyFeaturesSettingArgs;
    import com.pulumi.databricks.inputs.DisableLegacyFeaturesSettingDisableLegacyFeaturesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var this_ = new DisableLegacyFeaturesSetting("this", DisableLegacyFeaturesSettingArgs.builder()
                .disableLegacyFeatures(DisableLegacyFeaturesSettingDisableLegacyFeaturesArgs.builder()
                    .value(true)
                    .build())
                .build());
    
        }
    }
    
    resources:
      this:
        type: databricks:DisableLegacyFeaturesSetting
        properties:
          disableLegacyFeatures:
            value: true
    

    Create DisableLegacyFeaturesSetting Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DisableLegacyFeaturesSetting(name: string, args: DisableLegacyFeaturesSettingArgs, opts?: CustomResourceOptions);
    @overload
    def DisableLegacyFeaturesSetting(resource_name: str,
                                     args: DisableLegacyFeaturesSettingArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def DisableLegacyFeaturesSetting(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     disable_legacy_features: Optional[DisableLegacyFeaturesSettingDisableLegacyFeaturesArgs] = None,
                                     etag: Optional[str] = None,
                                     setting_name: Optional[str] = None)
    func NewDisableLegacyFeaturesSetting(ctx *Context, name string, args DisableLegacyFeaturesSettingArgs, opts ...ResourceOption) (*DisableLegacyFeaturesSetting, error)
    public DisableLegacyFeaturesSetting(string name, DisableLegacyFeaturesSettingArgs args, CustomResourceOptions? opts = null)
    public DisableLegacyFeaturesSetting(String name, DisableLegacyFeaturesSettingArgs args)
    public DisableLegacyFeaturesSetting(String name, DisableLegacyFeaturesSettingArgs args, CustomResourceOptions options)
    
    type: databricks:DisableLegacyFeaturesSetting
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DisableLegacyFeaturesSettingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DisableLegacyFeaturesSettingArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DisableLegacyFeaturesSettingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DisableLegacyFeaturesSettingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DisableLegacyFeaturesSettingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var disableLegacyFeaturesSettingResource = new Databricks.DisableLegacyFeaturesSetting("disableLegacyFeaturesSettingResource", new()
    {
        DisableLegacyFeatures = new Databricks.Inputs.DisableLegacyFeaturesSettingDisableLegacyFeaturesArgs
        {
            Value = false,
        },
        Etag = "string",
        SettingName = "string",
    });
    
    example, err := databricks.NewDisableLegacyFeaturesSetting(ctx, "disableLegacyFeaturesSettingResource", &databricks.DisableLegacyFeaturesSettingArgs{
    	DisableLegacyFeatures: &databricks.DisableLegacyFeaturesSettingDisableLegacyFeaturesArgs{
    		Value: pulumi.Bool(false),
    	},
    	Etag:        pulumi.String("string"),
    	SettingName: pulumi.String("string"),
    })
    
    var disableLegacyFeaturesSettingResource = new DisableLegacyFeaturesSetting("disableLegacyFeaturesSettingResource", DisableLegacyFeaturesSettingArgs.builder()
        .disableLegacyFeatures(DisableLegacyFeaturesSettingDisableLegacyFeaturesArgs.builder()
            .value(false)
            .build())
        .etag("string")
        .settingName("string")
        .build());
    
    disable_legacy_features_setting_resource = databricks.DisableLegacyFeaturesSetting("disableLegacyFeaturesSettingResource",
        disable_legacy_features={
            "value": False,
        },
        etag="string",
        setting_name="string")
    
    const disableLegacyFeaturesSettingResource = new databricks.DisableLegacyFeaturesSetting("disableLegacyFeaturesSettingResource", {
        disableLegacyFeatures: {
            value: false,
        },
        etag: "string",
        settingName: "string",
    });
    
    type: databricks:DisableLegacyFeaturesSetting
    properties:
        disableLegacyFeatures:
            value: false
        etag: string
        settingName: string
    

    DisableLegacyFeaturesSetting Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DisableLegacyFeaturesSetting resource accepts the following input properties:

    disableLegacyFeatures Property Map
    block with following attributes:
    etag String
    settingName String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DisableLegacyFeaturesSetting resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DisableLegacyFeaturesSetting Resource

    Get an existing DisableLegacyFeaturesSetting resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DisableLegacyFeaturesSettingState, opts?: CustomResourceOptions): DisableLegacyFeaturesSetting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            disable_legacy_features: Optional[DisableLegacyFeaturesSettingDisableLegacyFeaturesArgs] = None,
            etag: Optional[str] = None,
            setting_name: Optional[str] = None) -> DisableLegacyFeaturesSetting
    func GetDisableLegacyFeaturesSetting(ctx *Context, name string, id IDInput, state *DisableLegacyFeaturesSettingState, opts ...ResourceOption) (*DisableLegacyFeaturesSetting, error)
    public static DisableLegacyFeaturesSetting Get(string name, Input<string> id, DisableLegacyFeaturesSettingState? state, CustomResourceOptions? opts = null)
    public static DisableLegacyFeaturesSetting get(String name, Output<String> id, DisableLegacyFeaturesSettingState state, CustomResourceOptions options)
    resources:  _:    type: databricks:DisableLegacyFeaturesSetting    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    disableLegacyFeatures Property Map
    block with following attributes:
    etag String
    settingName String

    Supporting Types

    DisableLegacyFeaturesSettingDisableLegacyFeatures, DisableLegacyFeaturesSettingDisableLegacyFeaturesArgs

    Value bool
    The boolean value for the setting.
    Value bool
    The boolean value for the setting.
    value Boolean
    The boolean value for the setting.
    value boolean
    The boolean value for the setting.
    value bool
    The boolean value for the setting.
    value Boolean
    The boolean value for the setting.

    Import

    This resource can be imported by predefined name global:

    bash

    $ pulumi import databricks:index/disableLegacyFeaturesSetting:DisableLegacyFeaturesSetting this global
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Databricks v1.70.0 published on Friday, May 9, 2025 by Pulumi