1. Packages
  2. Databricks
  3. API Docs
  4. Directory
Databricks v1.46.3 published on Tuesday, Jul 16, 2024 by Pulumi

databricks.Directory

Explore with Pulumi AI

databricks logo
Databricks v1.46.3 published on Tuesday, Jul 16, 2024 by Pulumi

    Import

    The resource directory can be imported using directory path:

    bash

    $ pulumi import databricks:index/directory:Directory this /path/to/directory
    

    Create Directory Resource

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

    Constructor syntax

    new Directory(name: string, args: DirectoryArgs, opts?: CustomResourceOptions);
    @overload
    def Directory(resource_name: str,
                  args: DirectoryArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Directory(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  path: Optional[str] = None,
                  delete_recursive: Optional[bool] = None,
                  object_id: Optional[int] = None)
    func NewDirectory(ctx *Context, name string, args DirectoryArgs, opts ...ResourceOption) (*Directory, error)
    public Directory(string name, DirectoryArgs args, CustomResourceOptions? opts = null)
    public Directory(String name, DirectoryArgs args)
    public Directory(String name, DirectoryArgs args, CustomResourceOptions options)
    
    type: databricks:Directory
    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 DirectoryArgs
    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 DirectoryArgs
    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 DirectoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DirectoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DirectoryArgs
    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 directoryResource = new Databricks.Directory("directoryResource", new()
    {
        Path = "string",
        DeleteRecursive = false,
        ObjectId = 0,
    });
    
    example, err := databricks.NewDirectory(ctx, "directoryResource", &databricks.DirectoryArgs{
    	Path:            pulumi.String("string"),
    	DeleteRecursive: pulumi.Bool(false),
    	ObjectId:        pulumi.Int(0),
    })
    
    var directoryResource = new Directory("directoryResource", DirectoryArgs.builder()
        .path("string")
        .deleteRecursive(false)
        .objectId(0)
        .build());
    
    directory_resource = databricks.Directory("directoryResource",
        path="string",
        delete_recursive=False,
        object_id=0)
    
    const directoryResource = new databricks.Directory("directoryResource", {
        path: "string",
        deleteRecursive: false,
        objectId: 0,
    });
    
    type: databricks:Directory
    properties:
        deleteRecursive: false
        objectId: 0
        path: string
    

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

    Path string
    The absolute path of the directory, beginning with "/", e.g. "/Demo".
    DeleteRecursive bool
    ObjectId int
    Unique identifier for a DIRECTORY
    Path string
    The absolute path of the directory, beginning with "/", e.g. "/Demo".
    DeleteRecursive bool
    ObjectId int
    Unique identifier for a DIRECTORY
    path String
    The absolute path of the directory, beginning with "/", e.g. "/Demo".
    deleteRecursive Boolean
    objectId Integer
    Unique identifier for a DIRECTORY
    path string
    The absolute path of the directory, beginning with "/", e.g. "/Demo".
    deleteRecursive boolean
    objectId number
    Unique identifier for a DIRECTORY
    path str
    The absolute path of the directory, beginning with "/", e.g. "/Demo".
    delete_recursive bool
    object_id int
    Unique identifier for a DIRECTORY
    path String
    The absolute path of the directory, beginning with "/", e.g. "/Demo".
    deleteRecursive Boolean
    objectId Number
    Unique identifier for a DIRECTORY

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    WorkspacePath string
    path on Workspace File System (WSFS) in form of /Workspace + path
    Id string
    The provider-assigned unique ID for this managed resource.
    WorkspacePath string
    path on Workspace File System (WSFS) in form of /Workspace + path
    id String
    The provider-assigned unique ID for this managed resource.
    workspacePath String
    path on Workspace File System (WSFS) in form of /Workspace + path
    id string
    The provider-assigned unique ID for this managed resource.
    workspacePath string
    path on Workspace File System (WSFS) in form of /Workspace + path
    id str
    The provider-assigned unique ID for this managed resource.
    workspace_path str
    path on Workspace File System (WSFS) in form of /Workspace + path
    id String
    The provider-assigned unique ID for this managed resource.
    workspacePath String
    path on Workspace File System (WSFS) in form of /Workspace + path

    Look up Existing Directory Resource

    Get an existing Directory 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?: DirectoryState, opts?: CustomResourceOptions): Directory
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            delete_recursive: Optional[bool] = None,
            object_id: Optional[int] = None,
            path: Optional[str] = None,
            workspace_path: Optional[str] = None) -> Directory
    func GetDirectory(ctx *Context, name string, id IDInput, state *DirectoryState, opts ...ResourceOption) (*Directory, error)
    public static Directory Get(string name, Input<string> id, DirectoryState? state, CustomResourceOptions? opts = null)
    public static Directory get(String name, Output<String> id, DirectoryState 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:
    DeleteRecursive bool
    ObjectId int
    Unique identifier for a DIRECTORY
    Path string
    The absolute path of the directory, beginning with "/", e.g. "/Demo".
    WorkspacePath string
    path on Workspace File System (WSFS) in form of /Workspace + path
    DeleteRecursive bool
    ObjectId int
    Unique identifier for a DIRECTORY
    Path string
    The absolute path of the directory, beginning with "/", e.g. "/Demo".
    WorkspacePath string
    path on Workspace File System (WSFS) in form of /Workspace + path
    deleteRecursive Boolean
    objectId Integer
    Unique identifier for a DIRECTORY
    path String
    The absolute path of the directory, beginning with "/", e.g. "/Demo".
    workspacePath String
    path on Workspace File System (WSFS) in form of /Workspace + path
    deleteRecursive boolean
    objectId number
    Unique identifier for a DIRECTORY
    path string
    The absolute path of the directory, beginning with "/", e.g. "/Demo".
    workspacePath string
    path on Workspace File System (WSFS) in form of /Workspace + path
    delete_recursive bool
    object_id int
    Unique identifier for a DIRECTORY
    path str
    The absolute path of the directory, beginning with "/", e.g. "/Demo".
    workspace_path str
    path on Workspace File System (WSFS) in form of /Workspace + path
    deleteRecursive Boolean
    objectId Number
    Unique identifier for a DIRECTORY
    path String
    The absolute path of the directory, beginning with "/", e.g. "/Demo".
    workspacePath String
    path on Workspace File System (WSFS) in form of /Workspace + path

    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.46.3 published on Tuesday, Jul 16, 2024 by Pulumi