class Condition
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Glue.Condition |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsglue#Condition |
Java | software.amazon.awscdk.services.glue.Condition |
Python | aws_cdk.aws_glue.Condition |
TypeScript (source) | aws-cdk-lib » aws_glue » Condition |
A condition that determines when a conditional trigger fires.
A condition watches exactly one target in exactly one state: use {@link Condition.job} to watch a job or {@link Condition.crawler} 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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
import { aws_glue as interfaces_glue } from 'aws-cdk-lib/interfaces';
declare const crawlerRef: interfaces_glue.ICrawlerRef;
const condition = glue.Condition.crawler(crawlerRef, glue.CrawlerState.RUNNING, /* all optional props */ {
logicalOperator: glue.ConditionLogicalOperator.EQUALS,
});
Initializer
new Condition()
Methods
| Name | Description |
|---|---|
| static crawler(crawler, crawlState, options?) | Create a condition on the state of a crawler. |
| static job(job, state, options?) | Create a condition on the state of a job. |
static crawler(crawler, crawlState, options?)
public static crawler(crawler: ICrawlerRef, crawlState: CrawlerState, options?: ConditionOptions): Condition
Parameters
- crawler
ICrawler— the crawler to watch.Ref - crawlState
Crawler— the crawler state that satisfies the condition.State - options
Condition— additional options for the condition.Options
Returns
Create a condition on the state of a crawler.
static job(job, state, options?)
public static job(job: IJobRef, state: JobState, options?: ConditionOptions): Condition
Parameters
- job
IJob— the job to watch.Ref - state
Job— the job state that satisfies the condition.State - options
Condition— additional options for the condition.Options
Returns
Create a condition on the state of a job.

.NET
Go
Java
Python
TypeScript (