Class Condition
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.glue.alpha.Condition
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-10T17:52:11.232Z")
@Stability(Experimental)
public abstract class Condition
extends software.amazon.jsii.JsiiObject
(experimental) A condition that determines when a conditional trigger fires.
A condition watches exactly one target in exactly one state: use
to watch a job or
invalid reference
Condition.job
to watch a
crawler. Because the state is a required argument of each factory, a condition
can never reference a target without its state, or both a job and a crawler.
invalid reference
Condition.crawler
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.alpha.*;
import software.amazon.awscdk.interfaces.glue.*;
ICrawlerRef crawlerRef;
Condition condition = Condition.crawler(crawlerRef, CrawlerState.RUNNING, ConditionOptions.builder()
.logicalOperator(ConditionLogicalOperator.EQUALS)
.build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Conditioncrawler(ICrawlerRef crawler, CrawlerState crawlState) (experimental) Create a condition on the state of a crawler.static Conditioncrawler(ICrawlerRef crawler, CrawlerState crawlState, ConditionOptions options) (experimental) Create a condition on the state of a crawler.static Condition(experimental) Create a condition on the state of a job.static Conditionjob(IJobRef job, JobState state, ConditionOptions options) (experimental) Create a condition on the state of a job.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Condition
protected Condition(software.amazon.jsii.JsiiObjectRef objRef) -
Condition
protected Condition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Condition
@Stability(Experimental) protected Condition()
-
-
Method Details
-
crawler
@Stability(Experimental) @NotNull public static Condition crawler(@NotNull ICrawlerRef crawler, @NotNull CrawlerState crawlState, @Nullable ConditionOptions options) (experimental) Create a condition on the state of a crawler.- Parameters:
crawler- the crawler to watch. This parameter is required.crawlState- the crawler state that satisfies the condition. This parameter is required.options- additional options for the condition.
-
crawler
@Stability(Experimental) @NotNull public static Condition crawler(@NotNull ICrawlerRef crawler, @NotNull CrawlerState crawlState) (experimental) Create a condition on the state of a crawler.- Parameters:
crawler- the crawler to watch. This parameter is required.crawlState- the crawler state that satisfies the condition. This parameter is required.
-
job
@Stability(Experimental) @NotNull public static Condition job(@NotNull IJobRef job, @NotNull JobState state, @Nullable ConditionOptions options) (experimental) Create a condition on the state of a job.- Parameters:
job- the job to watch. This parameter is required.state- the job state that satisfies the condition. This parameter is required.options- additional options for the condition.
-
job
@Stability(Experimental) @NotNull public static Condition job(@NotNull IJobRef job, @NotNull JobState state) (experimental) Create a condition on the state of a job.- Parameters:
job- the job to watch. This parameter is required.state- the job state that satisfies the condition. This parameter is required.
-