v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142021,119944.8 KB

Creates a new trigger.

post/#X-Amz-Target=AWSGlue.CreateTrigger

Headers

X-Amz-Target'AWSGlue.CreateTrigger' required

Request body

Namestring required

The name of the trigger.

WorkflowNamestring

The name of the workflow associated with the trigger.

Type'SCHEDULED' | 'CONDITIONAL' | 'ON_DEMAND' | 'EVENT' required

The type of the new trigger.

Schedulestring
<p>A <code>cron</code> expression used to specify the schedule (see <a href="https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html">Time-Based Schedules for Jobs and Crawlers</a>. For example, to run something every day at 12:15 UTC, you would specify: <code>cron(15 12 * * ? *)</code>.</p> <p>This field is required when the trigger type is SCHEDULED.</p>
Descriptionstring

A description of the new trigger.

StartOnCreationboolean

Set to <code>true</code> to start <code>SCHEDULED</code> and <code>CONDITIONAL</code> triggers when created. True is not supported for <code>ON_DEMAND</code> triggers.

Tagsobject

The tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in Glue, see <a href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">Amazon Web Services Tags in Glue</a> in the developer guide.

Response

Success

Namestring

The name of the trigger.