1. Registry
  2. Packages
  3. Files.com
  4. API Docs
  5. Schedule
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 Schedule is a named, reusable weekday-and-time schedule shared by scheduled resources across a Site.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as filescom from "pulumi-filescom";
    
    const exampleSchedule = new filescom.Schedule("example_schedule", {
        name: "Weekday overnight",
        scheduleDaysOfWeeks: [
            1,
            2,
            3,
            4,
            5,
        ],
        scheduleTimesOfDays: ["01:00"],
        scheduleTimeZone: "Eastern Time (US & Canada)",
        holidayRegion: "us",
    });
    
    import pulumi
    import pulumi_filescom as filescom
    
    example_schedule = filescom.Schedule("example_schedule",
        name="Weekday overnight",
        schedule_days_of_weeks=[
            1,
            2,
            3,
            4,
            5,
        ],
        schedule_times_of_days=["01:00"],
        schedule_time_zone="Eastern Time (US & Canada)",
        holiday_region="us")
    
    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.NewSchedule(ctx, "example_schedule", &filescom.ScheduleArgs{
    			Name: pulumi.String("Weekday overnight"),
    			ScheduleDaysOfWeeks: pulumi.IntArray{
    				pulumi.Int(1),
    				pulumi.Int(2),
    				pulumi.Int(3),
    				pulumi.Int(4),
    				pulumi.Int(5),
    			},
    			ScheduleTimesOfDays: pulumi.StringArray{
    				pulumi.String("01:00"),
    			},
    			ScheduleTimeZone: pulumi.String("Eastern Time (US & Canada)"),
    			HolidayRegion:    pulumi.String("us"),
    		})
    		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 exampleSchedule = new Filescom.Schedule("example_schedule", new()
        {
            Name = "Weekday overnight",
            ScheduleDaysOfWeeks = new[]
            {
                1,
                2,
                3,
                4,
                5,
            },
            ScheduleTimesOfDays = new[]
            {
                "01:00",
            },
            ScheduleTimeZone = "Eastern Time (US & Canada)",
            HolidayRegion = "us",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.filescom.Schedule;
    import com.pulumi.filescom.ScheduleArgs;
    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) {
            var exampleSchedule = new Schedule("exampleSchedule", ScheduleArgs.builder()
                .name("Weekday overnight")
                .scheduleDaysOfWeeks(            
                    1,
                    2,
                    3,
                    4,
                    5)
                .scheduleTimesOfDays("01:00")
                .scheduleTimeZone("Eastern Time (US & Canada)")
                .holidayRegion("us")
                .build());
    
        }
    }
    
    resources:
      exampleSchedule:
        type: filescom:Schedule
        name: example_schedule
        properties:
          name: Weekday overnight
          scheduleDaysOfWeeks:
            - 1
            - 2
            - 3
            - 4
            - 5
          scheduleTimesOfDays:
            - 01:00
          scheduleTimeZone: Eastern Time (US & Canada)
          holidayRegion: us
    
    pulumi {
      required_providers {
        filescom = {
          source = "pulumi/filescom"
        }
      }
    }
    
    resource "filescom_schedule" "example_schedule" {
      name                   = "Weekday overnight"
      schedule_days_of_weeks = [1, 2, 3, 4, 5]
      schedule_times_of_days = ["01:00"]
      schedule_time_zone     = "Eastern Time (US & Canada)"
      holiday_region         = "us"
    }
    

    Create Schedule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Schedule(name: string, args: ScheduleArgs, opts?: CustomResourceOptions);
    @overload
    def Schedule(resource_name: str,
                 args: ScheduleArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Schedule(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 schedule_days_of_weeks: Optional[Sequence[int]] = None,
                 schedule_times_of_days: Optional[Sequence[str]] = None,
                 holiday_region: Optional[str] = None,
                 name: Optional[str] = None,
                 schedule_time_zone: Optional[str] = None)
    func NewSchedule(ctx *Context, name string, args ScheduleArgs, opts ...ResourceOption) (*Schedule, error)
    public Schedule(string name, ScheduleArgs args, CustomResourceOptions? opts = null)
    public Schedule(String name, ScheduleArgs args)
    public Schedule(String name, ScheduleArgs args, CustomResourceOptions options)
    
    type: filescom:Schedule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "filescom_schedule" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ScheduleArgs
    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 ScheduleArgs
    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 ScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScheduleArgs
    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 scheduleResource = new Filescom.Schedule("scheduleResource", new()
    {
        ScheduleDaysOfWeeks = new[]
        {
            0,
        },
        ScheduleTimesOfDays = new[]
        {
            "string",
        },
        HolidayRegion = "string",
        Name = "string",
        ScheduleTimeZone = "string",
    });
    
    example, err := filescom.NewSchedule(ctx, "scheduleResource", &filescom.ScheduleArgs{
    	ScheduleDaysOfWeeks: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	ScheduleTimesOfDays: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	HolidayRegion:    pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	ScheduleTimeZone: pulumi.String("string"),
    })
    
    resource "filescom_schedule" "scheduleResource" {
      lifecycle {
        create_before_destroy = true
      }
      schedule_days_of_weeks = [0]
      schedule_times_of_days = ["string"]
      holiday_region         = "string"
      name                   = "string"
      schedule_time_zone     = "string"
    }
    
    var scheduleResource = new Schedule("scheduleResource", ScheduleArgs.builder()
        .scheduleDaysOfWeeks(0)
        .scheduleTimesOfDays("string")
        .holidayRegion("string")
        .name("string")
        .scheduleTimeZone("string")
        .build());
    
    schedule_resource = filescom.Schedule("scheduleResource",
        schedule_days_of_weeks=[0],
        schedule_times_of_days=["string"],
        holiday_region="string",
        name="string",
        schedule_time_zone="string")
    
    const scheduleResource = new filescom.Schedule("scheduleResource", {
        scheduleDaysOfWeeks: [0],
        scheduleTimesOfDays: ["string"],
        holidayRegion: "string",
        name: "string",
        scheduleTimeZone: "string",
    });
    
    type: filescom:Schedule
    properties:
        holidayRegion: string
        name: string
        scheduleDaysOfWeeks:
            - 0
        scheduleTimeZone: string
        scheduleTimesOfDays:
            - string
    

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

    ScheduleDaysOfWeeks List<int>
    0-based weekdays used by the Schedule. 0 is Sunday.
    ScheduleTimesOfDays List<string>
    Times of day in HH:MM format (24-hour).
    HolidayRegion string
    Optional holiday region on which linked resources do not run.
    Name string
    Schedule name.
    ScheduleTimeZone string
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    ScheduleDaysOfWeeks []int
    0-based weekdays used by the Schedule. 0 is Sunday.
    ScheduleTimesOfDays []string
    Times of day in HH:MM format (24-hour).
    HolidayRegion string
    Optional holiday region on which linked resources do not run.
    Name string
    Schedule name.
    ScheduleTimeZone string
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    schedule_days_of_weeks list(number)
    0-based weekdays used by the Schedule. 0 is Sunday.
    schedule_times_of_days list(string)
    Times of day in HH:MM format (24-hour).
    holiday_region string
    Optional holiday region on which linked resources do not run.
    name string
    Schedule name.
    schedule_time_zone string
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    scheduleDaysOfWeeks List<Integer>
    0-based weekdays used by the Schedule. 0 is Sunday.
    scheduleTimesOfDays List<String>
    Times of day in HH:MM format (24-hour).
    holidayRegion String
    Optional holiday region on which linked resources do not run.
    name String
    Schedule name.
    scheduleTimeZone String
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    scheduleDaysOfWeeks number[]
    0-based weekdays used by the Schedule. 0 is Sunday.
    scheduleTimesOfDays string[]
    Times of day in HH:MM format (24-hour).
    holidayRegion string
    Optional holiday region on which linked resources do not run.
    name string
    Schedule name.
    scheduleTimeZone string
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    schedule_days_of_weeks Sequence[int]
    0-based weekdays used by the Schedule. 0 is Sunday.
    schedule_times_of_days Sequence[str]
    Times of day in HH:MM format (24-hour).
    holiday_region str
    Optional holiday region on which linked resources do not run.
    name str
    Schedule name.
    schedule_time_zone str
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    scheduleDaysOfWeeks List<Number>
    0-based weekdays used by the Schedule. 0 is Sunday.
    scheduleTimesOfDays List<String>
    Times of day in HH:MM format (24-hour).
    holidayRegion String
    Optional holiday region on which linked resources do not run.
    name String
    Schedule name.
    scheduleTimeZone String
    Time zone for scheduled times. If not set, times are interpreted as UTC.

    Outputs

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

    CreatedAt string
    Creation time.
    HumanReadableSchedule string
    Human-readable Schedule description.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Last update time.
    CreatedAt string
    Creation time.
    HumanReadableSchedule string
    Human-readable Schedule description.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Last update time.
    created_at string
    Creation time.
    human_readable_schedule string
    Human-readable Schedule description.
    id string
    The provider-assigned unique ID for this managed resource.
    updated_at string
    Last update time.
    createdAt String
    Creation time.
    humanReadableSchedule String
    Human-readable Schedule description.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Last update time.
    createdAt string
    Creation time.
    humanReadableSchedule string
    Human-readable Schedule description.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    Last update time.
    created_at str
    Creation time.
    human_readable_schedule str
    Human-readable Schedule description.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    Last update time.
    createdAt String
    Creation time.
    humanReadableSchedule String
    Human-readable Schedule description.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Last update time.

    Look up Existing Schedule Resource

    Get an existing Schedule 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?: ScheduleState, opts?: CustomResourceOptions): Schedule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            holiday_region: Optional[str] = None,
            human_readable_schedule: Optional[str] = None,
            name: Optional[str] = None,
            schedule_days_of_weeks: Optional[Sequence[int]] = None,
            schedule_time_zone: Optional[str] = None,
            schedule_times_of_days: Optional[Sequence[str]] = None,
            updated_at: Optional[str] = None) -> Schedule
    func GetSchedule(ctx *Context, name string, id IDInput, state *ScheduleState, opts ...ResourceOption) (*Schedule, error)
    public static Schedule Get(string name, Input<string> id, ScheduleState? state, CustomResourceOptions? opts = null)
    public static Schedule get(String name, Output<String> id, ScheduleState state, CustomResourceOptions options)
    resources:  _:    type: filescom:Schedule    get:      id: ${id}
    import {
      to = filescom_schedule.example
      id = "${id}"
    }
    
    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:
    CreatedAt string
    Creation time.
    HolidayRegion string
    Optional holiday region on which linked resources do not run.
    HumanReadableSchedule string
    Human-readable Schedule description.
    Name string
    Schedule name.
    ScheduleDaysOfWeeks List<int>
    0-based weekdays used by the Schedule. 0 is Sunday.
    ScheduleTimeZone string
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    ScheduleTimesOfDays List<string>
    Times of day in HH:MM format (24-hour).
    UpdatedAt string
    Last update time.
    CreatedAt string
    Creation time.
    HolidayRegion string
    Optional holiday region on which linked resources do not run.
    HumanReadableSchedule string
    Human-readable Schedule description.
    Name string
    Schedule name.
    ScheduleDaysOfWeeks []int
    0-based weekdays used by the Schedule. 0 is Sunday.
    ScheduleTimeZone string
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    ScheduleTimesOfDays []string
    Times of day in HH:MM format (24-hour).
    UpdatedAt string
    Last update time.
    created_at string
    Creation time.
    holiday_region string
    Optional holiday region on which linked resources do not run.
    human_readable_schedule string
    Human-readable Schedule description.
    name string
    Schedule name.
    schedule_days_of_weeks list(number)
    0-based weekdays used by the Schedule. 0 is Sunday.
    schedule_time_zone string
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    schedule_times_of_days list(string)
    Times of day in HH:MM format (24-hour).
    updated_at string
    Last update time.
    createdAt String
    Creation time.
    holidayRegion String
    Optional holiday region on which linked resources do not run.
    humanReadableSchedule String
    Human-readable Schedule description.
    name String
    Schedule name.
    scheduleDaysOfWeeks List<Integer>
    0-based weekdays used by the Schedule. 0 is Sunday.
    scheduleTimeZone String
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    scheduleTimesOfDays List<String>
    Times of day in HH:MM format (24-hour).
    updatedAt String
    Last update time.
    createdAt string
    Creation time.
    holidayRegion string
    Optional holiday region on which linked resources do not run.
    humanReadableSchedule string
    Human-readable Schedule description.
    name string
    Schedule name.
    scheduleDaysOfWeeks number[]
    0-based weekdays used by the Schedule. 0 is Sunday.
    scheduleTimeZone string
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    scheduleTimesOfDays string[]
    Times of day in HH:MM format (24-hour).
    updatedAt string
    Last update time.
    created_at str
    Creation time.
    holiday_region str
    Optional holiday region on which linked resources do not run.
    human_readable_schedule str
    Human-readable Schedule description.
    name str
    Schedule name.
    schedule_days_of_weeks Sequence[int]
    0-based weekdays used by the Schedule. 0 is Sunday.
    schedule_time_zone str
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    schedule_times_of_days Sequence[str]
    Times of day in HH:MM format (24-hour).
    updated_at str
    Last update time.
    createdAt String
    Creation time.
    holidayRegion String
    Optional holiday region on which linked resources do not run.
    humanReadableSchedule String
    Human-readable Schedule description.
    name String
    Schedule name.
    scheduleDaysOfWeeks List<Number>
    0-based weekdays used by the Schedule. 0 is Sunday.
    scheduleTimeZone String
    Time zone for scheduled times. If not set, times are interpreted as UTC.
    scheduleTimesOfDays List<String>
    Times of day in HH:MM format (24-hour).
    updatedAt String
    Last update time.

    Import

    The pulumi import command can be used, for example:

    Schedules can be imported by specifying the id.

    $ pulumi import filescom:index/schedule:Schedule example_schedule 1
    

    To learn more about importing existing cloud resources, see Importing resources.

    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