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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:31.951Z")
@Stability(Stable)
public class CfnTrigger
extends CfnResource
implements IInspectable, 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
Modifier and TypeClassDescriptionstatic interface
Defines an action to be initiated by a trigger.static final class
A fluent builder forCfnTrigger
.static interface
Defines a condition under which a trigger fires.static interface
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.static interface
Specifies configuration properties of a job run notification.static interface
Defines the predicate of the trigger, which determines when it fires.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnTrigger
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnTrigger
(software.amazon.jsii.JsiiObjectRef objRef) CfnTrigger
(software.constructs.Construct scope, String id, CfnTriggerProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.Acron
expression used to specify the schedule.Set to true to startSCHEDULED
andCONDITIONAL
triggers when created.getTags()
Tag Manager which manages the tags for this resource.The tags to use with this trigger.getType()
The type of trigger that this is.The name of the workflow associated with the trigger.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setActions
(List<Object> value) The actions initiated by this trigger.void
setActions
(IResolvable value) The actions initiated by this trigger.void
setDescription
(String value) A description of this trigger.void
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.void
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.void
The name of the trigger.void
setPredicate
(IResolvable value) The predicate of this trigger, which defines when it will fire.void
The predicate of this trigger, which defines when it will fire.void
setSchedule
(String value) Acron
expression used to specify the schedule.void
setStartOnCreation
(Boolean value) Set to true to startSCHEDULED
andCONDITIONAL
triggers when created.void
setStartOnCreation
(IResolvable value) Set to true to startSCHEDULED
andCONDITIONAL
triggers when created.void
setTagsRaw
(Object value) The tags to use with this trigger.void
The type of trigger that this is.void
setWorkflowName
(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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getActions
The actions initiated by this trigger. -
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. -
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. -
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
Acron
expression used to specify the schedule. -
setSchedule
Acron
expression used to specify the schedule. -
getStartOnCreation
Set to true to startSCHEDULED
andCONDITIONAL
triggers when created. -
setStartOnCreation
Set to true to startSCHEDULED
andCONDITIONAL
triggers when created. -
setStartOnCreation
Set to true to startSCHEDULED
andCONDITIONAL
triggers 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.
-