Styles

A Style is a custom set of branding that can be applied on a per-folder basis. Currently these support a logo per folder and an optional click-through URL for public visitors. In the future we may extend these to also support colors. If you want to see that, please let us know so we can add your vote to the list.

Resource Schema

Required

PropertyDescription
path
String
Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.

Optional

PropertyDescription
logo_click_href
String
URL to open when a public visitor clicks the logo

Read Only

PropertyDescription
id
Int64
Style ID
logo
String
Logo
thumbnail
String
Logo thumbnail

Example Resource

resource "files_style" "example_style" {
  path            = "path"
  logo_click_href = "https://www.example.com"
}

Resource Import

This Resource supports importing using the following syntax:

Example Import Command

# Styles can be imported by specifying the path.
terraform import files_style.example_style path

Data Source Schema

Required

PropertyDescription
path
String
Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.

Read Only

PropertyDescription
id
Int64
Style ID
logo
String
Logo
logo_click_href
String
URL to open when a public visitor clicks the logo
thumbnail
String
Logo thumbnail

Example Data Source

data "files_style" "example_style" {
  path = "path"
}