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
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnTrigger
(Construct scope, String id, CfnTriggerProps props) Create a newAWS::Glue::Trigger
.protected
CfnTrigger
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnTrigger
(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.Acron
expression used to specify the schedule.Set to true to startSCHEDULED
andCONDITIONAL
triggers 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.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
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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in 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
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 * * ? *)
. -
setSchedule
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 * * ? *)
. -
getStartOnCreation
Set to true to startSCHEDULED
andCONDITIONAL
triggers when created.True is not supported for
ON_DEMAND
triggers. -
setStartOnCreation
Set to true to startSCHEDULED
andCONDITIONAL
triggers when created.True is not supported for
ON_DEMAND
triggers. -
setStartOnCreation
Set to true to startSCHEDULED
andCONDITIONAL
triggers when created.True is not supported for
ON_DEMAND
triggers. -
getWorkflowName
The name of the workflow associated with the trigger. -
setWorkflowName
The name of the workflow associated with the trigger.
-