1. Packages
  2. Databricks
  3. API Docs
  4. Directory
Databricks v1.27.0 published on Tuesday, Dec 5, 2023 by Pulumi

databricks.Directory

Explore with Pulumi AI

databricks logo
Databricks v1.27.0 published on Tuesday, Dec 5, 2023 by Pulumi

    Import

    The resource directory can be imported using directory pathbash

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

    Create Directory Resource

    new Directory(name: string, args: DirectoryArgs, opts?: CustomResourceOptions);
    @overload
    def Directory(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  delete_recursive: Optional[bool] = None,
                  object_id: Optional[int] = None,
                  path: Optional[str] = None)
    @overload
    def Directory(resource_name: str,
                  args: DirectoryArgs,
                  opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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.

    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 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) -> 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".

    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 string

    The absolute path of the directory, beginning with "/", e.g. "/Demo".

    delete_recursive bool
    object_id int

    Unique identifier for a DIRECTORY

    path str

    The absolute path of the directory, beginning with "/", e.g. "/Demo".

    deleteRecursive Boolean
    objectId Number

    Unique identifier for a DIRECTORY

    path String

    The absolute path of the directory, beginning with "/", e.g. "/Demo".

    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.27.0 published on Tuesday, Dec 5, 2023 by Pulumi