Create Trigger
| glue_create_trigger | R Documentation |
Creates a new trigger¶
Description¶
Creates a new trigger.
Usage¶
glue_create_trigger(Name, WorkflowName, Type, Schedule, Predicate,
Actions, Description, StartOnCreation, Tags, EventBatchingCondition)
Arguments¶
Name[required] The name of the trigger.
WorkflowNameThe name of the workflow associated with the trigger.
Type[required] The type of the new trigger.
ScheduleA
cronexpression 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.
PredicateA predicate to specify when the new trigger should fire.
This field is required when the trigger type is
CONDITIONAL.Actions[required] The actions initiated by this trigger when it fires.
DescriptionA description of the new trigger.
StartOnCreationSet to
trueto startSCHEDULEDandCONDITIONALtriggers when created. True is not supported forON_DEMANDtriggers.TagsThe tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
EventBatchingConditionBatch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
Value¶
A list with the following syntax:
Request syntax¶
svc$create_trigger(
Name = "string",
WorkflowName = "string",
Type = "SCHEDULED"|"CONDITIONAL"|"ON_DEMAND"|"EVENT",
Schedule = "string",
Predicate = list(
Logical = "AND"|"ANY",
Conditions = list(
list(
LogicalOperator = "EQUALS",
JobName = "string",
State = "STARTING"|"RUNNING"|"STOPPING"|"STOPPED"|"SUCCEEDED"|"FAILED"|"TIMEOUT"|"ERROR"|"WAITING"|"EXPIRED",
CrawlerName = "string",
CrawlState = "RUNNING"|"CANCELLING"|"CANCELLED"|"SUCCEEDED"|"FAILED"|"ERROR"
)
)
),
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"
),
EventBatchingCondition = list(
BatchSize = 123,
BatchWindow = 123
)
)