class Condition
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Glue.Alpha.Condition |
Go | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#Condition |
Java | software.amazon.awscdk.services.glue.alpha.Condition |
Python | aws_cdk.aws_glue_alpha.Condition |
TypeScript (source) | @aws-cdk/aws-glue-alpha ยป 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 * as glue_alpha from '@aws-cdk/aws-glue-alpha';
import { aws_glue as interfaces_glue } from 'aws-cdk-lib/interfaces';
declare const crawlerRef: interfaces_glue.ICrawlerRef;
const condition = glue_alpha.Condition.crawler(crawlerRef, glue_alpha.CrawlerState.RUNNING, /* all optional props */ {
logicalOperator: glue_alpha.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 (