1. Registry
  2. Packages
  3. Files.com
  4. API Docs
  5. getStyle
Viewing docs for Files.com v0.1.1
published on Thursday, Aug 20, 2026 by jschady
filescom logo
Viewing docs for Files.com v0.1.1
published on Thursday, Aug 20, 2026 by jschady

    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.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as filescom from "pulumi-filescom";
    
    const exampleStyle = filescom.getStyle({
        path: "path",
    });
    
    import pulumi
    import pulumi_filescom as filescom
    
    example_style = filescom.get_style(path="path")
    
    package main
    
    import (
    	"github.com/jschady/pulumi-filescom/sdk/go/filescom"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := filescom.GetStyle(ctx, &filescom.LookupStyleArgs{
    			Path: "path",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Filescom = Jschady.Filescom;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleStyle = Filescom.GetStyle.Invoke(new()
        {
            Path = "path",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.filescom.FilescomFunctions;
    import com.pulumi.filescom.inputs.GetStyleArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var exampleStyle = FilescomFunctions.getStyle(GetStyleArgs.builder()
                .path("path")
                .build());
    
        }
    }
    
    variables:
      exampleStyle:
        fn::invoke:
          function: filescom:getStyle
          arguments:
            path: path
    
    pulumi {
      required_providers {
        filescom = {
          source = "pulumi/filescom"
        }
      }
    }
    
    data "filescom_getstyle" "exampleStyle" {
      path = "path"
    }
    

    Using getStyle

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getStyle(args: GetStyleArgs, opts?: InvokeOptions): Promise<GetStyleResult>
    function getStyleOutput(args: GetStyleOutputArgs, opts?: InvokeOutputOptions): Output<GetStyleResult>
    def get_style(path: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetStyleResult
    def get_style_output(path: pulumi.Input[Optional[str]] = None,
                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetStyleResult]
    func LookupStyle(ctx *Context, args *LookupStyleArgs, opts ...InvokeOption) (*LookupStyleResult, error)
    func LookupStyleOutput(ctx *Context, args *LookupStyleOutputArgs, opts ...InvokeOption) LookupStyleResultOutput

    > Note: This function is named LookupStyle in the Go SDK.

    public static class GetStyle 
    {
        public static Task<GetStyleResult> InvokeAsync(GetStyleArgs args, InvokeOptions? opts = null)
        public static Output<GetStyleResult> Invoke(GetStyleInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetStyleResult> Invoke(GetStyleInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetStyleResult> getStyle(GetStyleArgs args, InvokeOptions options)
    public static Output<GetStyleResult> getStyle(GetStyleArgs args, InvokeOptions options)
    public static Output<GetStyleResult> getStyle(GetStyleArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: filescom:index/getStyle:getStyle
      arguments:
        # arguments dictionary
    data "filescom_get_style" "name" {
        # arguments
    }

    The following arguments are supported:

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

    getStyle Result

    The following output properties are available:

    Id int
    Style ID
    Logo string
    Logo
    LogoClickHref string
    URL to open when a public visitor clicks the logo
    Path string
    Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
    Thumbnail string
    Logo thumbnail
    Id int
    Style ID
    Logo string
    Logo
    LogoClickHref string
    URL to open when a public visitor clicks the logo
    Path string
    Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
    Thumbnail string
    Logo thumbnail
    id number
    Style ID
    logo string
    Logo
    logo_click_href string
    URL to open when a public visitor clicks the logo
    path string
    Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
    thumbnail string
    Logo thumbnail
    id Integer
    Style ID
    logo String
    Logo
    logoClickHref String
    URL to open when a public visitor clicks the logo
    path String
    Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
    thumbnail String
    Logo thumbnail
    id number
    Style ID
    logo string
    Logo
    logoClickHref string
    URL to open when a public visitor clicks the logo
    path string
    Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
    thumbnail string
    Logo thumbnail
    id int
    Style ID
    logo str
    Logo
    logo_click_href str
    URL to open when a public visitor clicks the logo
    path str
    Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
    thumbnail str
    Logo thumbnail
    id Number
    Style ID
    logo String
    Logo
    logoClickHref String
    URL to open when a public visitor clicks the logo
    path String
    Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
    thumbnail String
    Logo thumbnail

    Package Details

    Repository
    filescom jschady/pulumi-filescom
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the filescom Terraform Provider.
    filescom logo
    Viewing docs for Files.com v0.1.1
    published on Thursday, Aug 20, 2026 by jschady

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial