AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Glue::Trigger

CfnTrigger

The `AWS::Glue::Trigger` resource specifies triggers that run AWS Glue jobs. For more information, see [Triggering Jobs in AWS Glue](https://docs.aws.amazon.com/glue/latest/dg/trigger-job.html) and [Trigger Structure](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-jobs-trigger.html#aws-glue-api-jobs-trigger-Trigger) in the *AWS Glue Developer Guide* .

Import

import { CfnTrigger } from 'aws-cdk-lib/aws-glue';

Or use the module namespace:

import * as glue from 'aws-cdk-lib/aws-glue';
// glue.CfnTrigger

Properties

Configuration passed to the constructor as CfnTriggerProps.

actionsRequired
IResolvable | IResolvable | ActionProperty[]

The actions initiated by this trigger.

typeRequired
string

The type of trigger that this is.

descriptionOptional
string

A description of this trigger.

eventBatchingConditionOptional
IResolvable | EventBatchingConditionProperty

Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

nameOptional
string

The name of the trigger.

predicateOptional
IResolvable | PredicateProperty

The predicate of this trigger, which defines when it will fire.

scheduleOptional
string

A `cron` expression used to specify the schedule. For more information, see [Time-Based Schedules for Jobs and Crawlers](https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html) in the *AWS Glue Developer Guide* . For example, to run something every day at 12:15 UTC, specify `cron(15 12 * * ? *)` .

startOnCreationOptional
boolean | IResolvable

Set to true to start `SCHEDULED` and `CONDITIONAL` triggers when created. True is not supported for `ON_DEMAND` triggers.

tagsOptional
any

The tags to use with this trigger.

workflowNameOptional
string

The name of the workflow associated with the trigger.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter