databricks logo
Databricks v1.14.0, May 23 23

databricks.WorkspaceConf

Explore with Pulumi AI

Import

-> Note Importing this resource is not currently supported.

Example Usage

Allows specification of custom configuration properties for expert usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;

return await Deployment.RunAsync(() => 
{
    var @this = new Databricks.WorkspaceConf("this", new()
    {
        CustomConfig = 
        {
            { "enableIpAccessLists", 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.NewWorkspaceConf(ctx, "this", &databricks.WorkspaceConfArgs{
			CustomConfig: pulumi.AnyMap{
				"enableIpAccessLists": pulumi.Any(true),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.WorkspaceConf;
import com.pulumi.databricks.WorkspaceConfArgs;
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 WorkspaceConf("this", WorkspaceConfArgs.builder()        
            .customConfig(Map.of("enableIpAccessLists", true))
            .build());

    }
}
import pulumi
import pulumi_databricks as databricks

this = databricks.WorkspaceConf("this", custom_config={
    "enableIpAccessLists": True,
})
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";

const _this = new databricks.WorkspaceConf("this", {customConfig: {
    enableIpAccessLists: true,
}});
resources:
  this:
    type: databricks:WorkspaceConf
    properties:
      customConfig:
        enableIpAccessLists: true

Create WorkspaceConf Resource

new WorkspaceConf(name: string, args?: WorkspaceConfArgs, opts?: CustomResourceOptions);
@overload
def WorkspaceConf(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  custom_config: Optional[Mapping[str, Any]] = None)
@overload
def WorkspaceConf(resource_name: str,
                  args: Optional[WorkspaceConfArgs] = None,
                  opts: Optional[ResourceOptions] = None)
func NewWorkspaceConf(ctx *Context, name string, args *WorkspaceConfArgs, opts ...ResourceOption) (*WorkspaceConf, error)
public WorkspaceConf(string name, WorkspaceConfArgs? args = null, CustomResourceOptions? opts = null)
public WorkspaceConf(String name, WorkspaceConfArgs args)
public WorkspaceConf(String name, WorkspaceConfArgs args, CustomResourceOptions options)
type: databricks:WorkspaceConf
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args WorkspaceConfArgs
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 WorkspaceConfArgs
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 WorkspaceConfArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args WorkspaceConfArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args WorkspaceConfArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

WorkspaceConf Resource Properties

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

Inputs

The WorkspaceConf resource accepts the following input properties:

CustomConfig Dictionary<string, object>

Key-value map of strings that represent workspace configuration. Upon resource deletion, properties that start with enable or enforce will be reset to false value, regardless of initial default one.

CustomConfig map[string]interface{}

Key-value map of strings that represent workspace configuration. Upon resource deletion, properties that start with enable or enforce will be reset to false value, regardless of initial default one.

customConfig Map<String,Object>

Key-value map of strings that represent workspace configuration. Upon resource deletion, properties that start with enable or enforce will be reset to false value, regardless of initial default one.

customConfig {[key: string]: any}

Key-value map of strings that represent workspace configuration. Upon resource deletion, properties that start with enable or enforce will be reset to false value, regardless of initial default one.

custom_config Mapping[str, Any]

Key-value map of strings that represent workspace configuration. Upon resource deletion, properties that start with enable or enforce will be reset to false value, regardless of initial default one.

customConfig Map<Any>

Key-value map of strings that represent workspace configuration. Upon resource deletion, properties that start with enable or enforce will be reset to false value, regardless of initial default one.

Outputs

All input properties are implicitly available as output properties. Additionally, the WorkspaceConf 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 WorkspaceConf Resource

Get an existing WorkspaceConf 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?: WorkspaceConfState, opts?: CustomResourceOptions): WorkspaceConf
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        custom_config: Optional[Mapping[str, Any]] = None) -> WorkspaceConf
func GetWorkspaceConf(ctx *Context, name string, id IDInput, state *WorkspaceConfState, opts ...ResourceOption) (*WorkspaceConf, error)
public static WorkspaceConf Get(string name, Input<string> id, WorkspaceConfState? state, CustomResourceOptions? opts = null)
public static WorkspaceConf get(String name, Output<String> id, WorkspaceConfState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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:
CustomConfig Dictionary<string, object>

Key-value map of strings that represent workspace configuration. Upon resource deletion, properties that start with enable or enforce will be reset to false value, regardless of initial default one.

CustomConfig map[string]interface{}

Key-value map of strings that represent workspace configuration. Upon resource deletion, properties that start with enable or enforce will be reset to false value, regardless of initial default one.

customConfig Map<String,Object>

Key-value map of strings that represent workspace configuration. Upon resource deletion, properties that start with enable or enforce will be reset to false value, regardless of initial default one.

customConfig {[key: string]: any}

Key-value map of strings that represent workspace configuration. Upon resource deletion, properties that start with enable or enforce will be reset to false value, regardless of initial default one.

custom_config Mapping[str, Any]

Key-value map of strings that represent workspace configuration. Upon resource deletion, properties that start with enable or enforce will be reset to false value, regardless of initial default one.

customConfig Map<Any>

Key-value map of strings that represent workspace configuration. Upon resource deletion, properties that start with enable or enforce will be reset to false value, regardless of initial default one.

Package Details

Repository
databricks pulumi/pulumi-databricks
License
Apache-2.0
Notes

This Pulumi package is based on the databricks Terraform Provider.