Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
published on Friday, Jul 3, 2026 by OlivierPaquien
Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
published on Friday, Jul 3, 2026 by OlivierPaquien
Create File Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new File(name: string, args: FileArgs, opts?: CustomResourceOptions);@overload
def File(resource_name: str,
args: FileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def File(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_path: Optional[str] = None,
authentication: Optional[_root_inputs.RemoteFileAuthenticationArgs] = None,
checksum: Optional[str] = None,
extract: Optional[_root_inputs.RemoteFileExtractArgs] = None,
parents: Optional[bool] = None,
polling: Optional[_root_inputs.RemoteFilePollingArgs] = None,
source_content: Optional[str] = None,
source_local_file: Optional[str] = None,
source_remote_file: Optional[str] = None,
source_url: Optional[str] = None)func NewFile(ctx *Context, name string, args FileArgs, opts ...ResourceOption) (*File, error)public File(string name, FileArgs args, CustomResourceOptions? opts = null)type: freebox:downloads:File
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "freebox_downloads_file" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args FileArgs
- 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 FileArgs
- 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 FileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FileArgs
- 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 fileResource = new Freebox.Downloads.File("fileResource", new()
{
DestinationPath = "string",
Authentication = new Freebox.Inputs.RemoteFileAuthenticationArgs
{
BasicAuth = new Freebox.Inputs.RemoteFileBasicAuthArgs
{
Password = "string",
Username = "string",
},
},
Checksum = "string",
Extract = new Freebox.Inputs.RemoteFileExtractArgs
{
DestinationPath = "string",
Overwrite = false,
Password = "string",
},
Parents = false,
Polling = new Freebox.Inputs.RemoteFilePollingArgs
{
ChecksumCompute = new Freebox.Inputs.PollingSpecArgs
{
Interval = 0,
Timeout = 0,
},
Copy = new Freebox.Inputs.PollingSpecArgs
{
Interval = 0,
Timeout = 0,
},
Delete = new Freebox.Inputs.PollingSpecArgs
{
Interval = 0,
Timeout = 0,
},
Download = new Freebox.Inputs.PollingSpecArgs
{
Interval = 0,
Timeout = 0,
},
Extract = new Freebox.Inputs.PollingSpecArgs
{
Interval = 0,
Timeout = 0,
},
Move = new Freebox.Inputs.PollingSpecArgs
{
Interval = 0,
Timeout = 0,
},
Upload = new Freebox.Inputs.PollingSpecArgs
{
Interval = 0,
Timeout = 0,
},
},
SourceContent = "string",
SourceLocalFile = "string",
SourceRemoteFile = "string",
SourceUrl = "string",
});
example, err := downloads.NewFile(ctx, "fileResource", &downloads.FileArgs{
DestinationPath: pulumi.String("string"),
Authentication: &freebox.RemoteFileAuthenticationArgs{
BasicAuth: &freebox.RemoteFileBasicAuthArgs{
Password: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
Checksum: pulumi.String("string"),
Extract: &freebox.RemoteFileExtractArgs{
DestinationPath: pulumi.String("string"),
Overwrite: pulumi.Bool(false),
Password: pulumi.String("string"),
},
Parents: pulumi.Bool(false),
Polling: &freebox.RemoteFilePollingArgs{
ChecksumCompute: &freebox.PollingSpecArgs{
Interval: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
Copy: &freebox.PollingSpecArgs{
Interval: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
Delete: &freebox.PollingSpecArgs{
Interval: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
Download: &freebox.PollingSpecArgs{
Interval: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
Extract: &freebox.PollingSpecArgs{
Interval: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
Move: &freebox.PollingSpecArgs{
Interval: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
Upload: &freebox.PollingSpecArgs{
Interval: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
},
SourceContent: pulumi.String("string"),
SourceLocalFile: pulumi.String("string"),
SourceRemoteFile: pulumi.String("string"),
SourceUrl: pulumi.String("string"),
})
resource "freebox_downloads_file" "fileResource" {
destination_path = "string"
authentication = {
basic_auth = {
password = "string"
username = "string"
}
}
checksum = "string"
extract = {
destination_path = "string"
overwrite = false
password = "string"
}
parents = false
polling = {
checksum_compute = {
interval = 0
timeout = 0
}
copy = {
interval = 0
timeout = 0
}
delete = {
interval = 0
timeout = 0
}
download = {
interval = 0
timeout = 0
}
extract = {
interval = 0
timeout = 0
}
move = {
interval = 0
timeout = 0
}
upload = {
interval = 0
timeout = 0
}
}
source_content = "string"
source_local_file = "string"
source_remote_file = "string"
source_url = "string"
}
var fileResource = new File("fileResource", FileArgs.builder()
.destinationPath("string")
.authentication(RemoteFileAuthenticationArgs.builder()
.basicAuth(RemoteFileBasicAuthArgs.builder()
.password("string")
.username("string")
.build())
.build())
.checksum("string")
.extract(RemoteFileExtractArgs.builder()
.destinationPath("string")
.overwrite(false)
.password("string")
.build())
.parents(false)
.polling(RemoteFilePollingArgs.builder()
.checksumCompute(PollingSpecArgs.builder()
.interval(0)
.timeout(0)
.build())
.copy(PollingSpecArgs.builder()
.interval(0)
.timeout(0)
.build())
.delete(PollingSpecArgs.builder()
.interval(0)
.timeout(0)
.build())
.download(PollingSpecArgs.builder()
.interval(0)
.timeout(0)
.build())
.extract(PollingSpecArgs.builder()
.interval(0)
.timeout(0)
.build())
.move(PollingSpecArgs.builder()
.interval(0)
.timeout(0)
.build())
.upload(PollingSpecArgs.builder()
.interval(0)
.timeout(0)
.build())
.build())
.sourceContent("string")
.sourceLocalFile("string")
.sourceRemoteFile("string")
.sourceUrl("string")
.build());
file_resource = freebox.downloads.File("fileResource",
destination_path="string",
authentication={
"basic_auth": {
"password": "string",
"username": "string",
},
},
checksum="string",
extract={
"destination_path": "string",
"overwrite": False,
"password": "string",
},
parents=False,
polling={
"checksum_compute": {
"interval": 0,
"timeout": 0,
},
"copy": {
"interval": 0,
"timeout": 0,
},
"delete": {
"interval": 0,
"timeout": 0,
},
"download": {
"interval": 0,
"timeout": 0,
},
"extract": {
"interval": 0,
"timeout": 0,
},
"move": {
"interval": 0,
"timeout": 0,
},
"upload": {
"interval": 0,
"timeout": 0,
},
},
source_content="string",
source_local_file="string",
source_remote_file="string",
source_url="string")
const fileResource = new freebox.downloads.File("fileResource", {
destinationPath: "string",
authentication: {
basicAuth: {
password: "string",
username: "string",
},
},
checksum: "string",
extract: {
destinationPath: "string",
overwrite: false,
password: "string",
},
parents: false,
polling: {
checksumCompute: {
interval: 0,
timeout: 0,
},
copy: {
interval: 0,
timeout: 0,
},
"delete": {
interval: 0,
timeout: 0,
},
download: {
interval: 0,
timeout: 0,
},
extract: {
interval: 0,
timeout: 0,
},
move: {
interval: 0,
timeout: 0,
},
upload: {
interval: 0,
timeout: 0,
},
},
sourceContent: "string",
sourceLocalFile: "string",
sourceRemoteFile: "string",
sourceUrl: "string",
});
type: freebox:downloads:File
properties:
authentication:
basicAuth:
password: string
username: string
checksum: string
destinationPath: string
extract:
destinationPath: string
overwrite: false
password: string
parents: false
polling:
checksumCompute:
interval: 0
timeout: 0
copy:
interval: 0
timeout: 0
delete:
interval: 0
timeout: 0
download:
interval: 0
timeout: 0
extract:
interval: 0
timeout: 0
move:
interval: 0
timeout: 0
upload:
interval: 0
timeout: 0
sourceContent: string
sourceLocalFile: string
sourceRemoteFile: string
sourceUrl: string
File Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The File resource accepts the following input properties:
- Destination
Path string - Path on the Freebox where the file will be stored.
- Authentication
Olivier
Paquien. Pulumi. Freebox. Inputs. Remote File Authentication - Checksum string
- Expected checksum (method:value). Computed after create if omitted.
- Extract
Olivier
Paquien. Pulumi. Freebox. Inputs. Remote File Extract - Parents bool
- Create parent directories if missing.
- Polling
Olivier
Paquien. Pulumi. Freebox. Inputs. Remote File Polling - Source
Content string - Inline file content to upload.
- Source
Local stringFile - Path to a local file to upload (relative to the Pulumi engine).
- Source
Remote stringFile - Path to an existing file on the Freebox to copy.
- Source
Url string - URL of the file to download.
- Destination
Path string - Path on the Freebox where the file will be stored.
- Authentication
Remote
File Authentication Args - Checksum string
- Expected checksum (method:value). Computed after create if omitted.
- Extract
Remote
File Extract Args - Parents bool
- Create parent directories if missing.
- Polling
Remote
File Polling Args - Source
Content string - Inline file content to upload.
- Source
Local stringFile - Path to a local file to upload (relative to the Pulumi engine).
- Source
Remote stringFile - Path to an existing file on the Freebox to copy.
- Source
Url string - URL of the file to download.
- destination_
path string - Path on the Freebox where the file will be stored.
- authentication object
- checksum string
- Expected checksum (method:value). Computed after create if omitted.
- extract object
- parents bool
- Create parent directories if missing.
- polling object
- source_
content string - Inline file content to upload.
- source_
local_ stringfile - Path to a local file to upload (relative to the Pulumi engine).
- source_
remote_ stringfile - Path to an existing file on the Freebox to copy.
- source_
url string - URL of the file to download.
- destination
Path String - Path on the Freebox where the file will be stored.
- authentication
Remote
File Authentication - checksum String
- Expected checksum (method:value). Computed after create if omitted.
- extract
Remote
File Extract - parents Boolean
- Create parent directories if missing.
- polling
Remote
File Polling - source
Content String - Inline file content to upload.
- source
Local StringFile - Path to a local file to upload (relative to the Pulumi engine).
- source
Remote StringFile - Path to an existing file on the Freebox to copy.
- source
Url String - URL of the file to download.
- destination
Path string - Path on the Freebox where the file will be stored.
- authentication
Remote
File Authentication - checksum string
- Expected checksum (method:value). Computed after create if omitted.
- extract
Remote
File Extract - parents boolean
- Create parent directories if missing.
- polling
Remote
File Polling - source
Content string - Inline file content to upload.
- source
Local stringFile - Path to a local file to upload (relative to the Pulumi engine).
- source
Remote stringFile - Path to an existing file on the Freebox to copy.
- source
Url string - URL of the file to download.
- destination_
path str - Path on the Freebox where the file will be stored.
- authentication
Remote
File Authentication Args - checksum str
- Expected checksum (method:value). Computed after create if omitted.
- extract
Remote
File Extract Args - parents bool
- Create parent directories if missing.
- polling
Remote
File Polling Args - source_
content str - Inline file content to upload.
- source_
local_ strfile - Path to a local file to upload (relative to the Pulumi engine).
- source_
remote_ strfile - Path to an existing file on the Freebox to copy.
- source_
url str - URL of the file to download.
- destination
Path String - Path on the Freebox where the file will be stored.
- authentication Property Map
- checksum String
- Expected checksum (method:value). Computed after create if omitted.
- extract Property Map
- parents Boolean
- Create parent directories if missing.
- polling Property Map
- source
Content String - Inline file content to upload.
- source
Local StringFile - Path to a local file to upload (relative to the Pulumi engine).
- source
Remote StringFile - Path to an existing file on the Freebox to copy.
- source
Url String - URL of the file to download.
Outputs
All input properties are implicitly available as output properties. Additionally, the File resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Size
On intDisk - Size in bytes of the file on disk.
- Id string
- The provider-assigned unique ID for this managed resource.
- Size
On intDisk - Size in bytes of the file on disk.
- id string
- The provider-assigned unique ID for this managed resource.
- size_
on_ numberdisk - Size in bytes of the file on disk.
- id String
- The provider-assigned unique ID for this managed resource.
- size
On IntegerDisk - Size in bytes of the file on disk.
- id string
- The provider-assigned unique ID for this managed resource.
- size
On numberDisk - Size in bytes of the file on disk.
- id str
- The provider-assigned unique ID for this managed resource.
- size_
on_ intdisk - Size in bytes of the file on disk.
- id String
- The provider-assigned unique ID for this managed resource.
- size
On NumberDisk - Size in bytes of the file on disk.
Supporting Types
PollingSpec, PollingSpecArgs
RemoteFileAuthentication, RemoteFileAuthenticationArgs
RemoteFileBasicAuth, RemoteFileBasicAuthArgs
RemoteFileExtract, RemoteFileExtractArgs
- Destination
Path string - Overwrite bool
- Password string
- Destination
Path string - Overwrite bool
- Password string
- destination_
path string - overwrite bool
- password string
- destination
Path String - overwrite Boolean
- password String
- destination
Path string - overwrite boolean
- password string
- destination_
path str - overwrite bool
- password str
- destination
Path String - overwrite Boolean
- password String
RemoteFilePolling, RemoteFilePollingArgs
- Checksum
Compute OlivierPaquien. Pulumi. Freebox. Inputs. Polling Spec - Copy
Olivier
Paquien. Pulumi. Freebox. Inputs. Polling Spec - Delete
Olivier
Paquien. Pulumi. Freebox. Inputs. Polling Spec - Download
Olivier
Paquien. Pulumi. Freebox. Inputs. Polling Spec - Extract
Olivier
Paquien. Pulumi. Freebox. Inputs. Polling Spec - Move
Olivier
Paquien. Pulumi. Freebox. Inputs. Polling Spec - Upload
Olivier
Paquien. Pulumi. Freebox. Inputs. Polling Spec
Package Details
- Repository
- freebox
- License
Viewing docs for Freebox v0.3.11
published on Friday, Jul 3, 2026 by OlivierPaquien
published on Friday, Jul 3, 2026 by OlivierPaquien