Creates a new trigger.
glue_create_trigger(Name, WorkflowName, Type, Schedule, Predicate,
Actions, Description, StartOnCreation, Tags)
[required] The name of the trigger.
The name of the workflow associated with the trigger.
[required] The type of the new trigger.
A cron
expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers.
For example, to run something every day at 12:15 UTC, you would specify:
cron(15 12 * * ? *)
.
This field is required when the trigger type is SCHEDULED.
A predicate to specify when the new trigger should fire.
This field is required when the trigger type is CONDITIONAL
.
[required] The actions initiated by this trigger when it fires.
A description of the new trigger.
Set to true
to start SCHEDULED
and CONDITIONAL
triggers when
created. True is not supported for ON_DEMAND
triggers.
The tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in AWS Glue, see AWS Tags in AWS Glue in the developer guide.
svc$create_trigger( Name = "string", WorkflowName = "string", Type = "SCHEDULED"|"CONDITIONAL"|"ON_DEMAND", Schedule = "string", Predicate = list( Logical = "AND"|"ANY", Conditions = list( list( LogicalOperator = "EQUALS", JobName = "string", State = "STARTING"|"RUNNING"|"STOPPING"|"STOPPED"|"SUCCEEDED"|"FAILED"|"TIMEOUT", CrawlerName = "string", CrawlState = "RUNNING"|"SUCCEEDED"|"CANCELLED"|"FAILED" ) ) ), Actions = list( list( JobName = "string", Arguments = list( "string" ), Timeout = 123, SecurityConfiguration = "string", NotificationProperty = list( NotifyDelayAfter = 123 ), CrawlerName = "string" ) ), Description = "string", StartOnCreation = TRUE|FALSE, Tags = list( "string" ) )