published on Thursday, Aug 20, 2026 by jschady
published on Thursday, Aug 20, 2026 by jschady
An AI Task defines a Files.com AI prompt that can run on a schedule or in response to file actions.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as filescom from "pulumi-filescom";
const exampleAiTask = new filescom.AiTask("example_ai_task", {
description: "Summarizes files uploaded by the accounting team.",
disabled: true,
holidayRegion: "us",
interval: "day",
name: "Summarize daily reports",
path: "incoming/reports",
permissionSet: "files_only",
prompt: "Summarize the uploaded file and identify follow-up actions.",
recurringDay: 1,
recurringDays: [
1,
15,
],
scheduleId: 1,
scheduleDaysOfWeeks: [
1,
3,
5,
],
scheduleTimeZone: "Eastern Time (US & Canada)",
scheduleTimesOfDays: ["06:30"],
source: "*.pdf",
trigger: "daily",
triggerActions: ["create"],
workspaceId: 0,
});
import pulumi
import pulumi_filescom as filescom
example_ai_task = filescom.AiTask("example_ai_task",
description="Summarizes files uploaded by the accounting team.",
disabled=True,
holiday_region="us",
interval="day",
name="Summarize daily reports",
path="incoming/reports",
permission_set="files_only",
prompt="Summarize the uploaded file and identify follow-up actions.",
recurring_day=1,
recurring_days=[
1,
15,
],
schedule_id=1,
schedule_days_of_weeks=[
1,
3,
5,
],
schedule_time_zone="Eastern Time (US & Canada)",
schedule_times_of_days=["06:30"],
source="*.pdf",
trigger="daily",
trigger_actions=["create"],
workspace_id=0)
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.NewAiTask(ctx, "example_ai_task", &filescom.AiTaskArgs{
Description: pulumi.String("Summarizes files uploaded by the accounting team."),
Disabled: pulumi.Bool(true),
HolidayRegion: pulumi.String("us"),
Interval: pulumi.String("day"),
Name: pulumi.String("Summarize daily reports"),
Path: pulumi.String("incoming/reports"),
PermissionSet: pulumi.String("files_only"),
Prompt: pulumi.String("Summarize the uploaded file and identify follow-up actions."),
RecurringDay: pulumi.Int(1),
RecurringDays: pulumi.IntArray{
pulumi.Int(1),
pulumi.Int(15),
},
ScheduleId: pulumi.Int(1),
ScheduleDaysOfWeeks: pulumi.IntArray{
pulumi.Int(1),
pulumi.Int(3),
pulumi.Int(5),
},
ScheduleTimeZone: pulumi.String("Eastern Time (US & Canada)"),
ScheduleTimesOfDays: pulumi.StringArray{
pulumi.String("06:30"),
},
Source: pulumi.String("*.pdf"),
Trigger: pulumi.String("daily"),
TriggerActions: pulumi.StringArray{
pulumi.String("create"),
},
WorkspaceId: pulumi.Int(0),
})
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 exampleAiTask = new Filescom.AiTask("example_ai_task", new()
{
Description = "Summarizes files uploaded by the accounting team.",
Disabled = true,
HolidayRegion = "us",
Interval = "day",
Name = "Summarize daily reports",
Path = "incoming/reports",
PermissionSet = "files_only",
Prompt = "Summarize the uploaded file and identify follow-up actions.",
RecurringDay = 1,
RecurringDays = new[]
{
1,
15,
},
ScheduleId = 1,
ScheduleDaysOfWeeks = new[]
{
1,
3,
5,
},
ScheduleTimeZone = "Eastern Time (US & Canada)",
ScheduleTimesOfDays = new[]
{
"06:30",
},
Source = "*.pdf",
Trigger = "daily",
TriggerActions = new[]
{
"create",
},
WorkspaceId = 0,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.filescom.AiTask;
import com.pulumi.filescom.AiTaskArgs;
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 exampleAiTask = new AiTask("exampleAiTask", AiTaskArgs.builder()
.description("Summarizes files uploaded by the accounting team.")
.disabled(true)
.holidayRegion("us")
.interval("day")
.name("Summarize daily reports")
.path("incoming/reports")
.permissionSet("files_only")
.prompt("Summarize the uploaded file and identify follow-up actions.")
.recurringDay(1)
.recurringDays(
1,
15)
.scheduleId(1)
.scheduleDaysOfWeeks(
1,
3,
5)
.scheduleTimeZone("Eastern Time (US & Canada)")
.scheduleTimesOfDays("06:30")
.source("*.pdf")
.trigger("daily")
.triggerActions("create")
.workspaceId(0)
.build());
}
}
resources:
exampleAiTask:
type: filescom:AiTask
name: example_ai_task
properties:
description: Summarizes files uploaded by the accounting team.
disabled: true
holidayRegion: us
interval: day
name: Summarize daily reports
path: incoming/reports
permissionSet: files_only
prompt: Summarize the uploaded file and identify follow-up actions.
recurringDay: 1
recurringDays:
- 1
- 15
scheduleId: 1
scheduleDaysOfWeeks:
- 1
- 3
- 5
scheduleTimeZone: Eastern Time (US & Canada)
scheduleTimesOfDays:
- 06:30
source: '*.pdf'
trigger: daily
triggerActions:
- create
workspaceId: 0
pulumi {
required_providers {
filescom = {
source = "pulumi/filescom"
}
}
}
resource "filescom_aitask" "example_ai_task" {
description = "Summarizes files uploaded by the accounting team."
disabled = true
holiday_region = "us"
interval = "day"
name = "Summarize daily reports"
path = "incoming/reports"
permission_set = "files_only"
prompt = "Summarize the uploaded file and identify follow-up actions."
recurring_day = 1
recurring_days = [1, 15]
schedule_id = 1
schedule_days_of_weeks = [1, 3, 5]
schedule_time_zone = "Eastern Time (US & Canada)"
schedule_times_of_days = ["06:30"]
source = "*.pdf"
trigger = "daily"
trigger_actions = ["create"]
workspace_id = 0
}
Create AiTask Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AiTask(name: string, args: AiTaskArgs, opts?: CustomResourceOptions);@overload
def AiTask(resource_name: str,
args: AiTaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AiTask(resource_name: str,
opts: Optional[ResourceOptions] = None,
prompt: Optional[str] = None,
recurring_day: Optional[int] = None,
schedule_days_of_weeks: Optional[Sequence[int]] = None,
interval: Optional[str] = None,
name: Optional[str] = None,
path: Optional[str] = None,
permission_set: Optional[str] = None,
disabled: Optional[bool] = None,
description: Optional[str] = None,
holiday_region: Optional[str] = None,
schedule_id: Optional[int] = None,
recurring_days: Optional[Sequence[int]] = None,
schedule_time_zone: Optional[str] = None,
schedule_times_of_days: Optional[Sequence[str]] = None,
source: Optional[str] = None,
trigger: Optional[str] = None,
trigger_actions: Optional[Sequence[str]] = None,
workspace_id: Optional[int] = None)func NewAiTask(ctx *Context, name string, args AiTaskArgs, opts ...ResourceOption) (*AiTask, error)public AiTask(string name, AiTaskArgs args, CustomResourceOptions? opts = null)
public AiTask(String name, AiTaskArgs args)
public AiTask(String name, AiTaskArgs args, CustomResourceOptions options)
type: filescom:AiTask
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "filescom_ai_task" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AiTaskArgs
- 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 AiTaskArgs
- 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 AiTaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AiTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AiTaskArgs
- 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 aiTaskResource = new Filescom.AiTask("aiTaskResource", new()
{
Prompt = "string",
RecurringDay = 0,
ScheduleDaysOfWeeks = new[]
{
0,
},
Interval = "string",
Name = "string",
Path = "string",
PermissionSet = "string",
Disabled = false,
Description = "string",
HolidayRegion = "string",
ScheduleId = 0,
RecurringDays = new[]
{
0,
},
ScheduleTimeZone = "string",
ScheduleTimesOfDays = new[]
{
"string",
},
Source = "string",
Trigger = "string",
TriggerActions = new[]
{
"string",
},
WorkspaceId = 0,
});
example, err := filescom.NewAiTask(ctx, "aiTaskResource", &filescom.AiTaskArgs{
Prompt: pulumi.String("string"),
RecurringDay: pulumi.Int(0),
ScheduleDaysOfWeeks: pulumi.IntArray{
pulumi.Int(0),
},
Interval: pulumi.String("string"),
Name: pulumi.String("string"),
Path: pulumi.String("string"),
PermissionSet: pulumi.String("string"),
Disabled: pulumi.Bool(false),
Description: pulumi.String("string"),
HolidayRegion: pulumi.String("string"),
ScheduleId: pulumi.Int(0),
RecurringDays: pulumi.IntArray{
pulumi.Int(0),
},
ScheduleTimeZone: pulumi.String("string"),
ScheduleTimesOfDays: pulumi.StringArray{
pulumi.String("string"),
},
Source: pulumi.String("string"),
Trigger: pulumi.String("string"),
TriggerActions: pulumi.StringArray{
pulumi.String("string"),
},
WorkspaceId: pulumi.Int(0),
})
resource "filescom_ai_task" "aiTaskResource" {
lifecycle {
create_before_destroy = true
}
prompt = "string"
recurring_day = 0
schedule_days_of_weeks = [0]
interval = "string"
name = "string"
path = "string"
permission_set = "string"
disabled = false
description = "string"
holiday_region = "string"
schedule_id = 0
recurring_days = [0]
schedule_time_zone = "string"
schedule_times_of_days = ["string"]
source = "string"
trigger = "string"
trigger_actions = ["string"]
workspace_id = 0
}
var aiTaskResource = new AiTask("aiTaskResource", AiTaskArgs.builder()
.prompt("string")
.recurringDay(0)
.scheduleDaysOfWeeks(0)
.interval("string")
.name("string")
.path("string")
.permissionSet("string")
.disabled(false)
.description("string")
.holidayRegion("string")
.scheduleId(0)
.recurringDays(0)
.scheduleTimeZone("string")
.scheduleTimesOfDays("string")
.source("string")
.trigger("string")
.triggerActions("string")
.workspaceId(0)
.build());
ai_task_resource = filescom.AiTask("aiTaskResource",
prompt="string",
recurring_day=0,
schedule_days_of_weeks=[0],
interval="string",
name="string",
path="string",
permission_set="string",
disabled=False,
description="string",
holiday_region="string",
schedule_id=0,
recurring_days=[0],
schedule_time_zone="string",
schedule_times_of_days=["string"],
source="string",
trigger="string",
trigger_actions=["string"],
workspace_id=0)
const aiTaskResource = new filescom.AiTask("aiTaskResource", {
prompt: "string",
recurringDay: 0,
scheduleDaysOfWeeks: [0],
interval: "string",
name: "string",
path: "string",
permissionSet: "string",
disabled: false,
description: "string",
holidayRegion: "string",
scheduleId: 0,
recurringDays: [0],
scheduleTimeZone: "string",
scheduleTimesOfDays: ["string"],
source: "string",
trigger: "string",
triggerActions: ["string"],
workspaceId: 0,
});
type: filescom:AiTask
properties:
description: string
disabled: false
holidayRegion: string
interval: string
name: string
path: string
permissionSet: string
prompt: string
recurringDay: 0
recurringDays:
- 0
scheduleDaysOfWeeks:
- 0
scheduleId: 0
scheduleTimeZone: string
scheduleTimesOfDays:
- string
source: string
trigger: string
triggerActions:
- string
workspaceId: 0
AiTask 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 AiTask resource accepts the following input properties:
- Prompt string
- Prompt sent when this AI Task is invoked.
- Description string
- AI Task description.
- Disabled bool
- If true, this AI Task will not run.
- Holiday
Region string - Optional holiday region used by the AI Task schedule.
- Interval string
- If trigger is
daily, this specifies how often to run the AI Task. - Name string
- AI Task name.
- Path string
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- Permission
Set string - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - Recurring
Day int - If trigger is
daily, this selects the day number inside the chosen interval. - Recurring
Days List<int> - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - Schedule
Days List<int>Of Weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - Schedule
Id int - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - Schedule
Time stringZone - Time zone used by the AI Task schedule.
- Schedule
Times List<string>Of Days - Times of day in HH:MM format for the AI Task schedule.
- Source string
- Source glob used with
pathfor action-triggered AI Tasks. - Trigger string
- How this AI Task is triggered.
- Trigger
Actions List<string> - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - Workspace
Id int - Workspace ID.
0means the default workspace.
- Prompt string
- Prompt sent when this AI Task is invoked.
- Description string
- AI Task description.
- Disabled bool
- If true, this AI Task will not run.
- Holiday
Region string - Optional holiday region used by the AI Task schedule.
- Interval string
- If trigger is
daily, this specifies how often to run the AI Task. - Name string
- AI Task name.
- Path string
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- Permission
Set string - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - Recurring
Day int - If trigger is
daily, this selects the day number inside the chosen interval. - Recurring
Days []int - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - Schedule
Days []intOf Weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - Schedule
Id int - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - Schedule
Time stringZone - Time zone used by the AI Task schedule.
- Schedule
Times []stringOf Days - Times of day in HH:MM format for the AI Task schedule.
- Source string
- Source glob used with
pathfor action-triggered AI Tasks. - Trigger string
- How this AI Task is triggered.
- Trigger
Actions []string - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - Workspace
Id int - Workspace ID.
0means the default workspace.
- prompt string
- Prompt sent when this AI Task is invoked.
- description string
- AI Task description.
- disabled bool
- If true, this AI Task will not run.
- holiday_
region string - Optional holiday region used by the AI Task schedule.
- interval string
- If trigger is
daily, this specifies how often to run the AI Task. - name string
- AI Task name.
- path string
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- permission_
set string - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - recurring_
day number - If trigger is
daily, this selects the day number inside the chosen interval. - recurring_
days list(number) - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - schedule_
days_ list(number)of_ weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - schedule_
id number - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - schedule_
time_ stringzone - Time zone used by the AI Task schedule.
- schedule_
times_ list(string)of_ days - Times of day in HH:MM format for the AI Task schedule.
- source string
- Source glob used with
pathfor action-triggered AI Tasks. - trigger string
- How this AI Task is triggered.
- trigger_
actions list(string) - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - workspace_
id number - Workspace ID.
0means the default workspace.
- prompt String
- Prompt sent when this AI Task is invoked.
- description String
- AI Task description.
- disabled Boolean
- If true, this AI Task will not run.
- holiday
Region String - Optional holiday region used by the AI Task schedule.
- interval String
- If trigger is
daily, this specifies how often to run the AI Task. - name String
- AI Task name.
- path String
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- permission
Set String - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - recurring
Day Integer - If trigger is
daily, this selects the day number inside the chosen interval. - recurring
Days List<Integer> - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - schedule
Days List<Integer>Of Weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - schedule
Id Integer - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - schedule
Time StringZone - Time zone used by the AI Task schedule.
- schedule
Times List<String>Of Days - Times of day in HH:MM format for the AI Task schedule.
- source String
- Source glob used with
pathfor action-triggered AI Tasks. - trigger String
- How this AI Task is triggered.
- trigger
Actions List<String> - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - workspace
Id Integer - Workspace ID.
0means the default workspace.
- prompt string
- Prompt sent when this AI Task is invoked.
- description string
- AI Task description.
- disabled boolean
- If true, this AI Task will not run.
- holiday
Region string - Optional holiday region used by the AI Task schedule.
- interval string
- If trigger is
daily, this specifies how often to run the AI Task. - name string
- AI Task name.
- path string
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- permission
Set string - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - recurring
Day number - If trigger is
daily, this selects the day number inside the chosen interval. - recurring
Days number[] - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - schedule
Days number[]Of Weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - schedule
Id number - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - schedule
Time stringZone - Time zone used by the AI Task schedule.
- schedule
Times string[]Of Days - Times of day in HH:MM format for the AI Task schedule.
- source string
- Source glob used with
pathfor action-triggered AI Tasks. - trigger string
- How this AI Task is triggered.
- trigger
Actions string[] - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - workspace
Id number - Workspace ID.
0means the default workspace.
- prompt str
- Prompt sent when this AI Task is invoked.
- description str
- AI Task description.
- disabled bool
- If true, this AI Task will not run.
- holiday_
region str - Optional holiday region used by the AI Task schedule.
- interval str
- If trigger is
daily, this specifies how often to run the AI Task. - name str
- AI Task name.
- path str
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- permission_
set str - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - recurring_
day int - If trigger is
daily, this selects the day number inside the chosen interval. - recurring_
days Sequence[int] - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - schedule_
days_ Sequence[int]of_ weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - schedule_
id int - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - schedule_
time_ strzone - Time zone used by the AI Task schedule.
- schedule_
times_ Sequence[str]of_ days - Times of day in HH:MM format for the AI Task schedule.
- source str
- Source glob used with
pathfor action-triggered AI Tasks. - trigger str
- How this AI Task is triggered.
- trigger_
actions Sequence[str] - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - workspace_
id int - Workspace ID.
0means the default workspace.
- prompt String
- Prompt sent when this AI Task is invoked.
- description String
- AI Task description.
- disabled Boolean
- If true, this AI Task will not run.
- holiday
Region String - Optional holiday region used by the AI Task schedule.
- interval String
- If trigger is
daily, this specifies how often to run the AI Task. - name String
- AI Task name.
- path String
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- permission
Set String - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - recurring
Day Number - If trigger is
daily, this selects the day number inside the chosen interval. - recurring
Days List<Number> - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - schedule
Days List<Number>Of Weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - schedule
Id Number - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - schedule
Time StringZone - Time zone used by the AI Task schedule.
- schedule
Times List<String>Of Days - Times of day in HH:MM format for the AI Task schedule.
- source String
- Source glob used with
pathfor action-triggered AI Tasks. - trigger String
- How this AI Task is triggered.
- trigger
Actions List<String> - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - workspace
Id Number - Workspace ID.
0means the default workspace.
Outputs
All input properties are implicitly available as output properties. Additionally, the AiTask resource produces the following output properties:
- Created
At string - Creation time.
- Human
Readable stringSchedule - Human-readable schedule description.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Run stringAt - Most recent successful invocation time.
- Master
Admin intUser Id - Master User ID used for AI Task invocations.
- Updated
At string - Last update time.
- Created
At string - Creation time.
- Human
Readable stringSchedule - Human-readable schedule description.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Run stringAt - Most recent successful invocation time.
- Master
Admin intUser Id - Master User ID used for AI Task invocations.
- Updated
At string - Last update time.
- created_
at string - Creation time.
- human_
readable_ stringschedule - Human-readable schedule description.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
run_ stringat - Most recent successful invocation time.
- master_
admin_ numberuser_ id - Master User ID used for AI Task invocations.
- updated_
at string - Last update time.
- created
At String - Creation time.
- human
Readable StringSchedule - Human-readable schedule description.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Run StringAt - Most recent successful invocation time.
- master
Admin IntegerUser Id - Master User ID used for AI Task invocations.
- updated
At String - Last update time.
- created
At string - Creation time.
- human
Readable stringSchedule - Human-readable schedule description.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Run stringAt - Most recent successful invocation time.
- master
Admin numberUser Id - Master User ID used for AI Task invocations.
- updated
At string - Last update time.
- created_
at str - Creation time.
- human_
readable_ strschedule - Human-readable schedule description.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
run_ strat - Most recent successful invocation time.
- master_
admin_ intuser_ id - Master User ID used for AI Task invocations.
- updated_
at str - Last update time.
- created
At String - Creation time.
- human
Readable StringSchedule - Human-readable schedule description.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Run StringAt - Most recent successful invocation time.
- master
Admin NumberUser Id - Master User ID used for AI Task invocations.
- updated
At String - Last update time.
Look up Existing AiTask Resource
Get an existing AiTask 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?: AiTaskState, opts?: CustomResourceOptions): AiTask@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
disabled: Optional[bool] = None,
holiday_region: Optional[str] = None,
human_readable_schedule: Optional[str] = None,
interval: Optional[str] = None,
last_run_at: Optional[str] = None,
master_admin_user_id: Optional[int] = None,
name: Optional[str] = None,
path: Optional[str] = None,
permission_set: Optional[str] = None,
prompt: Optional[str] = None,
recurring_day: Optional[int] = None,
recurring_days: Optional[Sequence[int]] = None,
schedule_days_of_weeks: Optional[Sequence[int]] = None,
schedule_id: Optional[int] = None,
schedule_time_zone: Optional[str] = None,
schedule_times_of_days: Optional[Sequence[str]] = None,
source: Optional[str] = None,
trigger: Optional[str] = None,
trigger_actions: Optional[Sequence[str]] = None,
updated_at: Optional[str] = None,
workspace_id: Optional[int] = None) -> AiTaskfunc GetAiTask(ctx *Context, name string, id IDInput, state *AiTaskState, opts ...ResourceOption) (*AiTask, error)public static AiTask Get(string name, Input<string> id, AiTaskState? state, CustomResourceOptions? opts = null)public static AiTask get(String name, Output<String> id, AiTaskState state, CustomResourceOptions options)resources: _: type: filescom:AiTask get: id: ${id}import {
to = filescom_ai_task.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.
- Created
At string - Creation time.
- Description string
- AI Task description.
- Disabled bool
- If true, this AI Task will not run.
- Holiday
Region string - Optional holiday region used by the AI Task schedule.
- Human
Readable stringSchedule - Human-readable schedule description.
- Interval string
- If trigger is
daily, this specifies how often to run the AI Task. - Last
Run stringAt - Most recent successful invocation time.
- Master
Admin intUser Id - Master User ID used for AI Task invocations.
- Name string
- AI Task name.
- Path string
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- Permission
Set string - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - Prompt string
- Prompt sent when this AI Task is invoked.
- Recurring
Day int - If trigger is
daily, this selects the day number inside the chosen interval. - Recurring
Days List<int> - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - Schedule
Days List<int>Of Weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - Schedule
Id int - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - Schedule
Time stringZone - Time zone used by the AI Task schedule.
- Schedule
Times List<string>Of Days - Times of day in HH:MM format for the AI Task schedule.
- Source string
- Source glob used with
pathfor action-triggered AI Tasks. - Trigger string
- How this AI Task is triggered.
- Trigger
Actions List<string> - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - Updated
At string - Last update time.
- Workspace
Id int - Workspace ID.
0means the default workspace.
- Created
At string - Creation time.
- Description string
- AI Task description.
- Disabled bool
- If true, this AI Task will not run.
- Holiday
Region string - Optional holiday region used by the AI Task schedule.
- Human
Readable stringSchedule - Human-readable schedule description.
- Interval string
- If trigger is
daily, this specifies how often to run the AI Task. - Last
Run stringAt - Most recent successful invocation time.
- Master
Admin intUser Id - Master User ID used for AI Task invocations.
- Name string
- AI Task name.
- Path string
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- Permission
Set string - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - Prompt string
- Prompt sent when this AI Task is invoked.
- Recurring
Day int - If trigger is
daily, this selects the day number inside the chosen interval. - Recurring
Days []int - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - Schedule
Days []intOf Weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - Schedule
Id int - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - Schedule
Time stringZone - Time zone used by the AI Task schedule.
- Schedule
Times []stringOf Days - Times of day in HH:MM format for the AI Task schedule.
- Source string
- Source glob used with
pathfor action-triggered AI Tasks. - Trigger string
- How this AI Task is triggered.
- Trigger
Actions []string - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - Updated
At string - Last update time.
- Workspace
Id int - Workspace ID.
0means the default workspace.
- created_
at string - Creation time.
- description string
- AI Task description.
- disabled bool
- If true, this AI Task will not run.
- holiday_
region string - Optional holiday region used by the AI Task schedule.
- human_
readable_ stringschedule - Human-readable schedule description.
- interval string
- If trigger is
daily, this specifies how often to run the AI Task. - last_
run_ stringat - Most recent successful invocation time.
- master_
admin_ numberuser_ id - Master User ID used for AI Task invocations.
- name string
- AI Task name.
- path string
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- permission_
set string - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - prompt string
- Prompt sent when this AI Task is invoked.
- recurring_
day number - If trigger is
daily, this selects the day number inside the chosen interval. - recurring_
days list(number) - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - schedule_
days_ list(number)of_ weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - schedule_
id number - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - schedule_
time_ stringzone - Time zone used by the AI Task schedule.
- schedule_
times_ list(string)of_ days - Times of day in HH:MM format for the AI Task schedule.
- source string
- Source glob used with
pathfor action-triggered AI Tasks. - trigger string
- How this AI Task is triggered.
- trigger_
actions list(string) - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - updated_
at string - Last update time.
- workspace_
id number - Workspace ID.
0means the default workspace.
- created
At String - Creation time.
- description String
- AI Task description.
- disabled Boolean
- If true, this AI Task will not run.
- holiday
Region String - Optional holiday region used by the AI Task schedule.
- human
Readable StringSchedule - Human-readable schedule description.
- interval String
- If trigger is
daily, this specifies how often to run the AI Task. - last
Run StringAt - Most recent successful invocation time.
- master
Admin IntegerUser Id - Master User ID used for AI Task invocations.
- name String
- AI Task name.
- path String
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- permission
Set String - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - prompt String
- Prompt sent when this AI Task is invoked.
- recurring
Day Integer - If trigger is
daily, this selects the day number inside the chosen interval. - recurring
Days List<Integer> - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - schedule
Days List<Integer>Of Weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - schedule
Id Integer - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - schedule
Time StringZone - Time zone used by the AI Task schedule.
- schedule
Times List<String>Of Days - Times of day in HH:MM format for the AI Task schedule.
- source String
- Source glob used with
pathfor action-triggered AI Tasks. - trigger String
- How this AI Task is triggered.
- trigger
Actions List<String> - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - updated
At String - Last update time.
- workspace
Id Integer - Workspace ID.
0means the default workspace.
- created
At string - Creation time.
- description string
- AI Task description.
- disabled boolean
- If true, this AI Task will not run.
- holiday
Region string - Optional holiday region used by the AI Task schedule.
- human
Readable stringSchedule - Human-readable schedule description.
- interval string
- If trigger is
daily, this specifies how often to run the AI Task. - last
Run stringAt - Most recent successful invocation time.
- master
Admin numberUser Id - Master User ID used for AI Task invocations.
- name string
- AI Task name.
- path string
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- permission
Set string - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - prompt string
- Prompt sent when this AI Task is invoked.
- recurring
Day number - If trigger is
daily, this selects the day number inside the chosen interval. - recurring
Days number[] - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - schedule
Days number[]Of Weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - schedule
Id number - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - schedule
Time stringZone - Time zone used by the AI Task schedule.
- schedule
Times string[]Of Days - Times of day in HH:MM format for the AI Task schedule.
- source string
- Source glob used with
pathfor action-triggered AI Tasks. - trigger string
- How this AI Task is triggered.
- trigger
Actions string[] - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - updated
At string - Last update time.
- workspace
Id number - Workspace ID.
0means the default workspace.
- created_
at str - Creation time.
- description str
- AI Task description.
- disabled bool
- If true, this AI Task will not run.
- holiday_
region str - Optional holiday region used by the AI Task schedule.
- human_
readable_ strschedule - Human-readable schedule description.
- interval str
- If trigger is
daily, this specifies how often to run the AI Task. - last_
run_ strat - Most recent successful invocation time.
- master_
admin_ intuser_ id - Master User ID used for AI Task invocations.
- name str
- AI Task name.
- path str
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- permission_
set str - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - prompt str
- Prompt sent when this AI Task is invoked.
- recurring_
day int - If trigger is
daily, this selects the day number inside the chosen interval. - recurring_
days Sequence[int] - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - schedule_
days_ Sequence[int]of_ weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - schedule_
id int - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - schedule_
time_ strzone - Time zone used by the AI Task schedule.
- schedule_
times_ Sequence[str]of_ days - Times of day in HH:MM format for the AI Task schedule.
- source str
- Source glob used with
pathfor action-triggered AI Tasks. - trigger str
- How this AI Task is triggered.
- trigger_
actions Sequence[str] - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - updated_
at str - Last update time.
- workspace_
id int - Workspace ID.
0means the default workspace.
- created
At String - Creation time.
- description String
- AI Task description.
- disabled Boolean
- If true, this AI Task will not run.
- holiday
Region String - Optional holiday region used by the AI Task schedule.
- human
Readable StringSchedule - Human-readable schedule description.
- interval String
- If trigger is
daily, this specifies how often to run the AI Task. - last
Run StringAt - Most recent successful invocation time.
- master
Admin NumberUser Id - Master User ID used for AI Task invocations.
- name String
- AI Task name.
- path String
- Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
- permission
Set String - Permissions used by the internal API key for this AI Task. Valid values are
fullandfilesOnly. - prompt String
- Prompt sent when this AI Task is invoked.
- recurring
Day Number - If trigger is
daily, this selects the day number inside the chosen interval. - recurring
Days List<Number> - If trigger is
daily, this selects one or more day numbers inside aweek,month,quarter, oryearinterval. - schedule
Days List<Number>Of Weeks - If trigger is
customSchedule, the 0-based weekdays used by the schedule. - schedule
Id Number - If trigger is
customSchedule, the reusable Schedule used instead of the AI Task's schedule fields. - schedule
Time StringZone - Time zone used by the AI Task schedule.
- schedule
Times List<String>Of Days - Times of day in HH:MM format for the AI Task schedule.
- source String
- Source glob used with
pathfor action-triggered AI Tasks. - trigger String
- How this AI Task is triggered.
- trigger
Actions List<String> - If trigger is
action, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy. - updated
At String - Last update time.
- workspace
Id Number - Workspace ID.
0means the default workspace.
Import
The pulumi import command can be used, for example:
Ai Tasks can be imported by specifying the id.
$ pulumi import filescom:index/aiTask:AiTask example_ai_task 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
filescomTerraform Provider.
published on Thursday, Aug 20, 2026 by jschady