Class CfnTrigger.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnTrigger.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrigger>
- Enclosing class:
CfnTrigger
@Stability(Stable)
public static final class CfnTrigger.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrigger>
A fluent builder for
CfnTrigger
.-
Method Summary
Modifier and TypeMethodDescriptionThe actions initiated by this trigger.actions
(IResolvable actions) The actions initiated by this trigger.build()
static CfnTrigger.Builder
description
(String description) A description of this trigger.eventBatchingCondition
(IResolvable eventBatchingCondition) Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.eventBatchingCondition
(CfnTrigger.EventBatchingConditionProperty eventBatchingCondition) Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.The name of the trigger.predicate
(IResolvable predicate) The predicate of this trigger, which defines when it will fire.predicate
(CfnTrigger.PredicateProperty predicate) The predicate of this trigger, which defines when it will fire.Acron
expression used to specify the schedule.startOnCreation
(Boolean startOnCreation) Set to true to startSCHEDULED
andCONDITIONAL
triggers when created.startOnCreation
(IResolvable startOnCreation) Set to true to startSCHEDULED
andCONDITIONAL
triggers when created.The tags to use with this trigger.The type of trigger that this is.workflowName
(String workflowName) The name of the workflow associated with the trigger.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnTrigger.Builder
.
-
actions
The actions initiated by this trigger.- Parameters:
actions
- The actions initiated by this trigger. This parameter is required.- Returns:
this
-
actions
The actions initiated by this trigger.- Parameters:
actions
- The actions initiated by this trigger. This parameter is required.- Returns:
this
-
type
The type of trigger that this is.- Parameters:
type
- The type of trigger that this is. This parameter is required.- Returns:
this
-
description
A description of this trigger.- Parameters:
description
- A description of this trigger. This parameter is required.- Returns:
this
-
eventBatchingCondition
@Stability(Stable) public CfnTrigger.Builder eventBatchingCondition(IResolvable eventBatchingCondition) Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.- Parameters:
eventBatchingCondition
- Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. This parameter is required.- Returns:
this
-
eventBatchingCondition
@Stability(Stable) public CfnTrigger.Builder eventBatchingCondition(CfnTrigger.EventBatchingConditionProperty eventBatchingCondition) Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.- Parameters:
eventBatchingCondition
- Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. This parameter is required.- Returns:
this
-
name
The name of the trigger.- Parameters:
name
- The name of the trigger. This parameter is required.- Returns:
this
-
predicate
The predicate of this trigger, which defines when it will fire.- Parameters:
predicate
- The predicate of this trigger, which defines when it will fire. This parameter is required.- Returns:
this
-
predicate
The predicate of this trigger, which defines when it will fire.- Parameters:
predicate
- The predicate of this trigger, which defines when it will fire. This parameter is required.- Returns:
this
-
schedule
Acron
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 * * ? *)
.- Parameters:
schedule
- Acron
expression used to specify the schedule. This parameter is required.- Returns:
this
-
startOnCreation
Set to true to startSCHEDULED
andCONDITIONAL
triggers when created.True is not supported for
ON_DEMAND
triggers.- Parameters:
startOnCreation
- Set to true to startSCHEDULED
andCONDITIONAL
triggers when created. This parameter is required.- Returns:
this
-
startOnCreation
Set to true to startSCHEDULED
andCONDITIONAL
triggers when created.True is not supported for
ON_DEMAND
triggers.- Parameters:
startOnCreation
- Set to true to startSCHEDULED
andCONDITIONAL
triggers when created. This parameter is required.- Returns:
this
-
tags
The tags to use with this trigger.- Parameters:
tags
- The tags to use with this trigger. This parameter is required.- Returns:
this
-
workflowName
The name of the workflow associated with the trigger.- Parameters:
workflowName
- The name of the workflow associated with the trigger. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTrigger>
- Returns:
- a newly built instance of
CfnTrigger
.
-