Class CfnTrigger
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.glue.CfnTrigger
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.514Z")
@Stability(Stable)
public class CfnTrigger
extends CfnResource
implements IInspectable
A CloudFormation
AWS::Glue::Trigger.
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();
-
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnTrigger(Construct scope, String id, CfnTriggerProps props) Create a newAWS::Glue::Trigger.protectedCfnTrigger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTrigger(software.amazon.jsii.JsiiObjectRef objRef) -
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.Acronexpression used to specify the schedule.Set to true to startSCHEDULEDandCONDITIONALtriggers when created.getTags()The tags to use with this trigger.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.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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnTriggerProps props) Create a newAWS::Glue::Trigger.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
The tags to use with this trigger. -
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
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, specify
cron(15 12 * * ? *). -
setSchedule
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, specify
cron(15 12 * * ? *). -
getStartOnCreation
Set to true to startSCHEDULEDandCONDITIONALtriggers when created.True is not supported for
ON_DEMANDtriggers. -
setStartOnCreation
Set to true to startSCHEDULEDandCONDITIONALtriggers when created.True is not supported for
ON_DEMANDtriggers. -
setStartOnCreation
Set to true to startSCHEDULEDandCONDITIONALtriggers when created.True is not supported for
ON_DEMANDtriggers. -
getWorkflowName
The name of the workflow associated with the trigger. -
setWorkflowName
The name of the workflow associated with the trigger.
-