Trigger
This page is auto-generated from the formations OpenAPI spec. Do not edit manually — run
pnpm generate-formations-resource-docsto regenerate.
Binds a starter (manual, webhook, schedule, or event) to an executable target (orchestration, agent, tool, or eval). Firings run under the confined run-as identity of the caller who deployed the formation, so a firing never exceeds what that caller could do directly.
Syntax
type: trigger
properties:
name: String
description: String
type: String
target_type: String
target_id: String
action: String
input: Object
cron: String
event_pattern: String
active: Boolean
policy_id: String
Output
The physical resource ID is the public ID of the created resource. Reference it from other resources with a ref expression:
some_field:
ref: MyTrigger
Properties
name
Trigger display name (unique within the project)
Required: Yes Type: String
description
Optional description
Required: No Type: String Nullable: Yes
type
Starter type. Immutable after creation
Required: Yes
Type: String
Allowed values: manual, webhook, schedule, event
target_type
The kind of resource this trigger activates
Required: Yes
Type: String
Allowed values: orchestration, agent, tool, eval
target_id
Public ID of the target resource. Use { "ref": "LogicalId" } to reference an orchestration, agent, tool, or eval defined in the template.
Required: Yes Type: String
action
Tool targets only — the action for builtin/mcp tools
Required: No Type: String Nullable: Yes
input
Static input shallow-merged under each firing's runtime input
Required: No Type: Object Nullable: Yes
cron
5-field cron expression (UTC). Required when type is schedule
Required: No Type: String Nullable: Yes
event_pattern
Internal-event subscription pattern (*, prefix.*, or an exact event name). Required when type is event, rejected otherwise
Required: No Type: String Nullable: Yes
active
Whether the trigger fires (default true)
Required: No Type: Boolean
policy_id
Optional boundary policy that further confines the run-as identity
Required: No Type: String Nullable: Yes