Class CfnTriggerProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnTriggerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTriggerProps>
- Enclosing interface:
- CfnTriggerProps
@Stability(Stable)
public static final class CfnTriggerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTriggerProps>
A builder for
CfnTriggerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTriggerProps.getActions()actions(IResolvable actions) Sets the value ofCfnTriggerProps.getActions()build()Builds the configured instance.description(String description) Sets the value ofCfnTriggerProps.getDescription()eventBatchingCondition(IResolvable eventBatchingCondition) Sets the value ofCfnTriggerProps.getEventBatchingCondition()eventBatchingCondition(CfnTrigger.EventBatchingConditionProperty eventBatchingCondition) Sets the value ofCfnTriggerProps.getEventBatchingCondition()Sets the value ofCfnTriggerProps.getName()predicate(IResolvable predicate) Sets the value ofCfnTriggerProps.getPredicate()predicate(CfnTrigger.PredicateProperty predicate) Sets the value ofCfnTriggerProps.getPredicate()Sets the value ofCfnTriggerProps.getSchedule()startOnCreation(Boolean startOnCreation) Sets the value ofCfnTriggerProps.getStartOnCreation()startOnCreation(IResolvable startOnCreation) Sets the value ofCfnTriggerProps.getStartOnCreation()Sets the value ofCfnTriggerProps.getTags()Sets the value ofCfnTriggerProps.getType()workflowName(String workflowName) Sets the value ofCfnTriggerProps.getWorkflowName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnTriggerProps.getActions()- Parameters:
actions- The actions initiated by this trigger. This parameter is required.- Returns:
this
-
actions
Sets the value ofCfnTriggerProps.getActions()- Parameters:
actions- The actions initiated by this trigger. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnTriggerProps.getType()- Parameters:
type- The type of trigger that this is. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnTriggerProps.getDescription()- Parameters:
description- A description of this trigger.- Returns:
this
-
eventBatchingCondition
@Stability(Stable) public CfnTriggerProps.Builder eventBatchingCondition(IResolvable eventBatchingCondition) Sets the value ofCfnTriggerProps.getEventBatchingCondition()- Parameters:
eventBatchingCondition- Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.- Returns:
this
-
eventBatchingCondition
@Stability(Stable) public CfnTriggerProps.Builder eventBatchingCondition(CfnTrigger.EventBatchingConditionProperty eventBatchingCondition) Sets the value ofCfnTriggerProps.getEventBatchingCondition()- Parameters:
eventBatchingCondition- Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.- Returns:
this
-
name
Sets the value ofCfnTriggerProps.getName()- Parameters:
name- The name of the trigger.- Returns:
this
-
predicate
Sets the value ofCfnTriggerProps.getPredicate()- Parameters:
predicate- The predicate of this trigger, which defines when it will fire.- Returns:
this
-
predicate
Sets the value ofCfnTriggerProps.getPredicate()- Parameters:
predicate- The predicate of this trigger, which defines when it will fire.- Returns:
this
-
schedule
Sets the value ofCfnTriggerProps.getSchedule()- Parameters:
schedule- Acronexpression 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, specifycron(15 12 * * ? *).- Returns:
this
-
startOnCreation
Sets the value ofCfnTriggerProps.getStartOnCreation()- Parameters:
startOnCreation- Set to true to startSCHEDULEDandCONDITIONALtriggers when created. True is not supported forON_DEMANDtriggers.- Returns:
this
-
startOnCreation
Sets the value ofCfnTriggerProps.getStartOnCreation()- Parameters:
startOnCreation- Set to true to startSCHEDULEDandCONDITIONALtriggers when created. True is not supported forON_DEMANDtriggers.- Returns:
this
-
tags
Sets the value ofCfnTriggerProps.getTags()- Parameters:
tags- The tags to use with this trigger.- Returns:
this
-
workflowName
Sets the value ofCfnTriggerProps.getWorkflowName()- Parameters:
workflowName- The name of the workflow associated with the trigger.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTriggerProps>- Returns:
- a new instance of
CfnTriggerProps - Throws:
NullPointerException- if any required attribute was not provided
-