1. Packages
  2. Databricks
  3. API Docs
  4. CatalogWorkspaceBinding
Databricks v1.24.0 published on Wednesday, Sep 27, 2023 by Pulumi

databricks.CatalogWorkspaceBinding

Explore with Pulumi AI

databricks logo
Databricks v1.24.0 published on Wednesday, Sep 27, 2023 by Pulumi

    Import

    -> Note Importing this resource is not currently supported.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var sandboxCatalog = new Databricks.Catalog("sandboxCatalog", new()
        {
            IsolationMode = "ISOLATED",
        });
    
        var sandboxCatalogWorkspaceBinding = new Databricks.CatalogWorkspaceBinding("sandboxCatalogWorkspaceBinding", new()
        {
            CatalogName = sandboxCatalog.Name,
            WorkspaceId = databricks_mws_workspaces.Other.Workspace_id,
        });
    
    });
    
    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 {
    		sandboxCatalog, err := databricks.NewCatalog(ctx, "sandboxCatalog", &databricks.CatalogArgs{
    			IsolationMode: pulumi.String("ISOLATED"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = databricks.NewCatalogWorkspaceBinding(ctx, "sandboxCatalogWorkspaceBinding", &databricks.CatalogWorkspaceBindingArgs{
    			CatalogName: sandboxCatalog.Name,
    			WorkspaceId: pulumi.Any(databricks_mws_workspaces.Other.Workspace_id),
    		})
    		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.Catalog;
    import com.pulumi.databricks.CatalogArgs;
    import com.pulumi.databricks.CatalogWorkspaceBinding;
    import com.pulumi.databricks.CatalogWorkspaceBindingArgs;
    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 sandboxCatalog = new Catalog("sandboxCatalog", CatalogArgs.builder()        
                .isolationMode("ISOLATED")
                .build());
    
            var sandboxCatalogWorkspaceBinding = new CatalogWorkspaceBinding("sandboxCatalogWorkspaceBinding", CatalogWorkspaceBindingArgs.builder()        
                .catalogName(sandboxCatalog.name())
                .workspaceId(databricks_mws_workspaces.other().workspace_id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_databricks as databricks
    
    sandbox_catalog = databricks.Catalog("sandboxCatalog", isolation_mode="ISOLATED")
    sandbox_catalog_workspace_binding = databricks.CatalogWorkspaceBinding("sandboxCatalogWorkspaceBinding",
        catalog_name=sandbox_catalog.name,
        workspace_id=databricks_mws_workspaces["other"]["workspace_id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const sandboxCatalog = new databricks.Catalog("sandboxCatalog", {isolationMode: "ISOLATED"});
    const sandboxCatalogWorkspaceBinding = new databricks.CatalogWorkspaceBinding("sandboxCatalogWorkspaceBinding", {
        catalogName: sandboxCatalog.name,
        workspaceId: databricks_mws_workspaces.other.workspace_id,
    });
    
    resources:
      sandboxCatalog:
        type: databricks:Catalog
        properties:
          isolationMode: ISOLATED
      sandboxCatalogWorkspaceBinding:
        type: databricks:CatalogWorkspaceBinding
        properties:
          catalogName: ${sandboxCatalog.name}
          workspaceId: ${databricks_mws_workspaces.other.workspace_id}
    

    Create CatalogWorkspaceBinding Resource

    new CatalogWorkspaceBinding(name: string, args: CatalogWorkspaceBindingArgs, opts?: CustomResourceOptions);
    @overload
    def CatalogWorkspaceBinding(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                catalog_name: Optional[str] = None,
                                workspace_id: Optional[str] = None)
    @overload
    def CatalogWorkspaceBinding(resource_name: str,
                                args: CatalogWorkspaceBindingArgs,
                                opts: Optional[ResourceOptions] = None)
    func NewCatalogWorkspaceBinding(ctx *Context, name string, args CatalogWorkspaceBindingArgs, opts ...ResourceOption) (*CatalogWorkspaceBinding, error)
    public CatalogWorkspaceBinding(string name, CatalogWorkspaceBindingArgs args, CustomResourceOptions? opts = null)
    public CatalogWorkspaceBinding(String name, CatalogWorkspaceBindingArgs args)
    public CatalogWorkspaceBinding(String name, CatalogWorkspaceBindingArgs args, CustomResourceOptions options)
    
    type: databricks:CatalogWorkspaceBinding
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args CatalogWorkspaceBindingArgs
    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 CatalogWorkspaceBindingArgs
    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 CatalogWorkspaceBindingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CatalogWorkspaceBindingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CatalogWorkspaceBindingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CatalogWorkspaceBinding 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 CatalogWorkspaceBinding resource accepts the following input properties:

    CatalogName string

    Name of Catalog. Change forces creation of a new resource.

    WorkspaceId string

    ID of the workspace. Change forces creation of a new resource.

    CatalogName string

    Name of Catalog. Change forces creation of a new resource.

    WorkspaceId string

    ID of the workspace. Change forces creation of a new resource.

    catalogName String

    Name of Catalog. Change forces creation of a new resource.

    workspaceId String

    ID of the workspace. Change forces creation of a new resource.

    catalogName string

    Name of Catalog. Change forces creation of a new resource.

    workspaceId string

    ID of the workspace. Change forces creation of a new resource.

    catalog_name str

    Name of Catalog. Change forces creation of a new resource.

    workspace_id str

    ID of the workspace. Change forces creation of a new resource.

    catalogName String

    Name of Catalog. Change forces creation of a new resource.

    workspaceId String

    ID of the workspace. Change forces creation of a new resource.

    Outputs

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

    Get an existing CatalogWorkspaceBinding 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?: CatalogWorkspaceBindingState, opts?: CustomResourceOptions): CatalogWorkspaceBinding
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            catalog_name: Optional[str] = None,
            workspace_id: Optional[str] = None) -> CatalogWorkspaceBinding
    func GetCatalogWorkspaceBinding(ctx *Context, name string, id IDInput, state *CatalogWorkspaceBindingState, opts ...ResourceOption) (*CatalogWorkspaceBinding, error)
    public static CatalogWorkspaceBinding Get(string name, Input<string> id, CatalogWorkspaceBindingState? state, CustomResourceOptions? opts = null)
    public static CatalogWorkspaceBinding get(String name, Output<String> id, CatalogWorkspaceBindingState 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:
    CatalogName string

    Name of Catalog. Change forces creation of a new resource.

    WorkspaceId string

    ID of the workspace. Change forces creation of a new resource.

    CatalogName string

    Name of Catalog. Change forces creation of a new resource.

    WorkspaceId string

    ID of the workspace. Change forces creation of a new resource.

    catalogName String

    Name of Catalog. Change forces creation of a new resource.

    workspaceId String

    ID of the workspace. Change forces creation of a new resource.

    catalogName string

    Name of Catalog. Change forces creation of a new resource.

    workspaceId string

    ID of the workspace. Change forces creation of a new resource.

    catalog_name str

    Name of Catalog. Change forces creation of a new resource.

    workspace_id str

    ID of the workspace. Change forces creation of a new resource.

    catalogName String

    Name of Catalog. Change forces creation of a new resource.

    workspaceId String

    ID of the workspace. Change forces creation of a new resource.

    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.24.0 published on Wednesday, Sep 27, 2023 by Pulumi