databricks logo
Databricks v1.14.0, May 23 23

databricks.DbfsFile

Explore with Pulumi AI

Import

The resource dbfs file can be imported using the path of the filebash

 $ pulumi import databricks:index/dbfsFile:DbfsFile this <path>

Create DbfsFile Resource

new DbfsFile(name: string, args: DbfsFileArgs, opts?: CustomResourceOptions);
@overload
def DbfsFile(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             content_base64: Optional[str] = None,
             md5: Optional[str] = None,
             path: Optional[str] = None,
             source: Optional[str] = None)
@overload
def DbfsFile(resource_name: str,
             args: DbfsFileArgs,
             opts: Optional[ResourceOptions] = None)
func NewDbfsFile(ctx *Context, name string, args DbfsFileArgs, opts ...ResourceOption) (*DbfsFile, error)
public DbfsFile(string name, DbfsFileArgs args, CustomResourceOptions? opts = null)
public DbfsFile(String name, DbfsFileArgs args)
public DbfsFile(String name, DbfsFileArgs args, CustomResourceOptions options)
type: databricks:DbfsFile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

Path string

The path of the file in which you wish to save.

ContentBase64 string
Md5 string
Source string

The full absolute path to the file. Conflicts with content_base64.

Path string

The path of the file in which you wish to save.

ContentBase64 string
Md5 string
Source string

The full absolute path to the file. Conflicts with content_base64.

path String

The path of the file in which you wish to save.

contentBase64 String
md5 String
source String

The full absolute path to the file. Conflicts with content_base64.

path string

The path of the file in which you wish to save.

contentBase64 string
md5 string
source string

The full absolute path to the file. Conflicts with content_base64.

path str

The path of the file in which you wish to save.

content_base64 str
md5 str
source str

The full absolute path to the file. Conflicts with content_base64.

path String

The path of the file in which you wish to save.

contentBase64 String
md5 String
source String

The full absolute path to the file. Conflicts with content_base64.

Outputs

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

DbfsPath string

Path, but with dbfs: prefix.

FileSize int

The file size of the file that is being tracked by this resource in bytes.

Id string

The provider-assigned unique ID for this managed resource.

DbfsPath string

Path, but with dbfs: prefix.

FileSize int

The file size of the file that is being tracked by this resource in bytes.

Id string

The provider-assigned unique ID for this managed resource.

dbfsPath String

Path, but with dbfs: prefix.

fileSize Integer

The file size of the file that is being tracked by this resource in bytes.

id String

The provider-assigned unique ID for this managed resource.

dbfsPath string

Path, but with dbfs: prefix.

fileSize number

The file size of the file that is being tracked by this resource in bytes.

id string

The provider-assigned unique ID for this managed resource.

dbfs_path str

Path, but with dbfs: prefix.

file_size int

The file size of the file that is being tracked by this resource in bytes.

id str

The provider-assigned unique ID for this managed resource.

dbfsPath String

Path, but with dbfs: prefix.

fileSize Number

The file size of the file that is being tracked by this resource in bytes.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing DbfsFile Resource

Get an existing DbfsFile 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?: DbfsFileState, opts?: CustomResourceOptions): DbfsFile
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        content_base64: Optional[str] = None,
        dbfs_path: Optional[str] = None,
        file_size: Optional[int] = None,
        md5: Optional[str] = None,
        path: Optional[str] = None,
        source: Optional[str] = None) -> DbfsFile
func GetDbfsFile(ctx *Context, name string, id IDInput, state *DbfsFileState, opts ...ResourceOption) (*DbfsFile, error)
public static DbfsFile Get(string name, Input<string> id, DbfsFileState? state, CustomResourceOptions? opts = null)
public static DbfsFile get(String name, Output<String> id, DbfsFileState 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:
ContentBase64 string
DbfsPath string

Path, but with dbfs: prefix.

FileSize int

The file size of the file that is being tracked by this resource in bytes.

Md5 string
Path string

The path of the file in which you wish to save.

Source string

The full absolute path to the file. Conflicts with content_base64.

ContentBase64 string
DbfsPath string

Path, but with dbfs: prefix.

FileSize int

The file size of the file that is being tracked by this resource in bytes.

Md5 string
Path string

The path of the file in which you wish to save.

Source string

The full absolute path to the file. Conflicts with content_base64.

contentBase64 String
dbfsPath String

Path, but with dbfs: prefix.

fileSize Integer

The file size of the file that is being tracked by this resource in bytes.

md5 String
path String

The path of the file in which you wish to save.

source String

The full absolute path to the file. Conflicts with content_base64.

contentBase64 string
dbfsPath string

Path, but with dbfs: prefix.

fileSize number

The file size of the file that is being tracked by this resource in bytes.

md5 string
path string

The path of the file in which you wish to save.

source string

The full absolute path to the file. Conflicts with content_base64.

content_base64 str
dbfs_path str

Path, but with dbfs: prefix.

file_size int

The file size of the file that is being tracked by this resource in bytes.

md5 str
path str

The path of the file in which you wish to save.

source str

The full absolute path to the file. Conflicts with content_base64.

contentBase64 String
dbfsPath String

Path, but with dbfs: prefix.

fileSize Number

The file size of the file that is being tracked by this resource in bytes.

md5 String
path String

The path of the file in which you wish to save.

source String

The full absolute path to the file. Conflicts with content_base64.

Package Details

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

This Pulumi package is based on the databricks Terraform Provider.