interface CfnTriggerProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Glue.CfnTriggerProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsglue#CfnTriggerProps |
![]() | software.amazon.awscdk.services.glue.CfnTriggerProps |
![]() | aws_cdk.aws_glue.CfnTriggerProps |
![]() | aws-cdk-lib » aws_glue » CfnTriggerProps |
Properties for defining a CfnTrigger
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
declare const arguments_: any;
declare const tags: any;
const cfnTriggerProps: glue.CfnTriggerProps = {
actions: [{
arguments: arguments_,
crawlerName: 'crawlerName',
jobName: 'jobName',
notificationProperty: {
notifyDelayAfter: 123,
},
securityConfiguration: 'securityConfiguration',
timeout: 123,
}],
type: 'type',
// the properties below are optional
description: 'description',
eventBatchingCondition: {
batchSize: 123,
// the properties below are optional
batchWindow: 123,
},
name: 'name',
predicate: {
conditions: [{
crawlerName: 'crawlerName',
crawlState: 'crawlState',
jobName: 'jobName',
logicalOperator: 'logicalOperator',
state: 'state',
}],
logical: 'logical',
},
schedule: 'schedule',
startOnCreation: false,
tags: tags,
workflowName: 'workflowName',
};
Properties
Name | Type | Description |
---|---|---|
actions | IResolvable | IResolvable | Action [] | The actions initiated by this trigger. |
type | string | The type of trigger that this is. |
description? | string | A description of this trigger. |
event | IResolvable | Event | Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. |
name? | string | The name of the trigger. |
predicate? | IResolvable | Predicate | The predicate of this trigger, which defines when it will fire. |
schedule? | string | A cron expression used to specify the schedule. |
start | boolean | IResolvable | Set to true to start SCHEDULED and CONDITIONAL triggers when created. |
tags? | any | The tags to use with this trigger. |
workflow | string | The name of the workflow associated with the trigger. |
actions
Type:
IResolvable
|
IResolvable
|
Action
[]
The actions initiated by this trigger.
type
Type:
string
The type of trigger that this is.
description?
Type:
string
(optional)
A description of this trigger.
eventBatchingCondition?
Type:
IResolvable
|
Event
(optional)
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
name?
Type:
string
(optional)
The name of the trigger.
predicate?
Type:
IResolvable
|
Predicate
(optional)
The predicate of this trigger, which defines when it will fire.
schedule?
Type:
string
(optional)
A cron
expression used to specify the schedule.
For more information, see Time-Based Schedules for Jobs and Crawlers in the AWS Glue Developer Guide . For example, to run something every day at 12:15 UTC, specify cron(15 12 * * ? *)
.
startOnCreation?
Type:
boolean |
IResolvable
(optional)
Set to true to start SCHEDULED
and CONDITIONAL
triggers when created.
True is not supported for ON_DEMAND
triggers.
tags?
Type:
any
(optional)
The tags to use with this trigger.
workflowName?
Type:
string
(optional)
The name of the workflow associated with the trigger.