Class CfnTrigger
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.glue.CfnTrigger
- All Implemented Interfaces:
IInspectable,ITaggable,ITriggerRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:39.492Z")
@Stability(Stable)
public class CfnTrigger
extends CfnResource
implements IInspectable, ITriggerRef, ITaggable
The
AWS::Glue::Trigger resource specifies triggers that run AWS Glue jobs.
For more information, see Triggering Jobs in AWS Glue and Trigger Structure in the AWS Glue Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;
Object arguments_;
Object tags;
CfnTrigger cfnTrigger = CfnTrigger.Builder.create(this, "MyCfnTrigger")
.actions(List.of(ActionProperty.builder()
.arguments(arguments_)
.crawlerName("crawlerName")
.jobName("jobName")
.notificationProperty(NotificationPropertyProperty.builder()
.notifyDelayAfter(123)
.build())
.securityConfiguration("securityConfiguration")
.timeout(123)
.build()))
.type("type")
// the properties below are optional
.description("description")
.eventBatchingCondition(EventBatchingConditionProperty.builder()
.batchSize(123)
// the properties below are optional
.batchWindow(123)
.build())
.name("name")
.predicate(PredicateProperty.builder()
.conditions(List.of(ConditionProperty.builder()
.crawlerName("crawlerName")
.crawlState("crawlState")
.jobName("jobName")
.logicalOperator("logicalOperator")
.state("state")
.build()))
.logical("logical")
.build())
.schedule("schedule")
.startOnCreation(false)
.tags(tags)
.workflowName("workflowName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDefines an action to be initiated by a trigger.static final classA fluent builder forCfnTrigger.static interfaceDefines a condition under which a trigger fires.static interfaceBatch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.static interfaceSpecifies configuration properties of a job run notification.static interfaceDefines the predicate of the trigger, which determines when it fires.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.glue.ITriggerRef
ITriggerRef.Jsii$Default, ITriggerRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTrigger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTrigger(software.amazon.jsii.JsiiObjectRef objRef) CfnTrigger(software.constructs.Construct scope, String id, CfnTriggerProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic ITriggerReffromTriggerName(software.constructs.Construct scope, String id, String triggerName) Creates a new ITriggerRef from a triggerName.The actions initiated by this trigger.A description of this trigger.Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.getName()The name of the trigger.The predicate of this trigger, which defines when it will fire.Acronexpression used to specify the schedule.Set to true to startSCHEDULEDandCONDITIONALtriggers when created.getTags()Tag Manager which manages the tags for this resource.The tags to use with this trigger.A reference to a Trigger resource.getType()The type of trigger that this is.The name of the workflow associated with the trigger.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetActions(List<Object> value) The actions initiated by this trigger.voidsetActions(IResolvable value) The actions initiated by this trigger.voidsetDescription(String value) A description of this trigger.voidBatch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.voidBatch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.voidThe name of the trigger.voidsetPredicate(IResolvable value) The predicate of this trigger, which defines when it will fire.voidThe predicate of this trigger, which defines when it will fire.voidsetSchedule(String value) Acronexpression used to specify the schedule.voidsetStartOnCreation(Boolean value) Set to true to startSCHEDULEDandCONDITIONALtriggers when created.voidsetStartOnCreation(IResolvable value) Set to true to startSCHEDULEDandCONDITIONALtriggers when created.voidsetTagsRaw(Object value) The tags to use with this trigger.voidThe type of trigger that this is.voidsetWorkflowName(String value) The name of the workflow associated with the trigger.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTrigger
protected CfnTrigger(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTrigger
protected CfnTrigger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTrigger
@Stability(Stable) public CfnTrigger(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTriggerProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromTriggerName
@Stability(Stable) @NotNull public static ITriggerRef fromTriggerName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String triggerName) Creates a new ITriggerRef from a triggerName.- Parameters:
scope- This parameter is required.id- This parameter is required.triggerName- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getTriggerRef
A reference to a Trigger resource.- Specified by:
getTriggerRefin interfaceITriggerRef
-
getActions
The actions initiated by this trigger.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTrigger.ActionProperty> -
setActions
The actions initiated by this trigger. -
setActions
The actions initiated by this trigger. -
getType
The type of trigger that this is. -
setType
The type of trigger that this is. -
getDescription
A description of this trigger. -
setDescription
A description of this trigger. -
getEventBatchingCondition
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.Returns union: either
IResolvableorCfnTrigger.EventBatchingConditionProperty -
setEventBatchingCondition
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. -
setEventBatchingCondition
@Stability(Stable) public void setEventBatchingCondition(@Nullable CfnTrigger.EventBatchingConditionProperty value) Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires. -
getName
The name of the trigger. -
setName
The name of the trigger. -
getPredicate
The predicate of this trigger, which defines when it will fire.Returns union: either
IResolvableorCfnTrigger.PredicateProperty -
setPredicate
The predicate of this trigger, which defines when it will fire. -
setPredicate
The predicate of this trigger, which defines when it will fire. -
getSchedule
Acronexpression used to specify the schedule. -
setSchedule
Acronexpression used to specify the schedule. -
getStartOnCreation
Set to true to startSCHEDULEDandCONDITIONALtriggers when created.Returns union: either
BooleanorIResolvable -
setStartOnCreation
Set to true to startSCHEDULEDandCONDITIONALtriggers when created. -
setStartOnCreation
Set to true to startSCHEDULEDandCONDITIONALtriggers when created. -
getTagsRaw
The tags to use with this trigger. -
setTagsRaw
The tags to use with this trigger. -
getWorkflowName
The name of the workflow associated with the trigger. -
setWorkflowName
The name of the workflow associated with the trigger.
-