class Action
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Glue.Alpha.Action |
Go | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#Action |
Java | software.amazon.awscdk.services.glue.alpha.Action |
Python | aws_cdk.aws_glue_alpha.Action |
TypeScript (source) | @aws-cdk/aws-glue-alpha » Action |
⚠️ Deprecated: undefined
An action initiated by a trigger.
An action runs exactly one target: use {@link Action.job} to run a job or {@link Action.crawler} to run a crawler. Because these are separate factory methods, an action can never target both or neither.
Example
import * as cdk from 'aws-cdk-lib';
import * as iam from 'aws-cdk-lib/aws-iam';
declare const stack: cdk.Stack;
declare const role: iam.IRole;
declare const script: glue.Code;
// Create a job to run from the workflow
const job = new glue.PySparkEtlJob(stack, 'Job', { role, script });
// Create a workflow and add a trigger that runs the job
const workflow = new glue.Workflow(stack, 'Workflow');
workflow.addOnDemandTrigger('OnDemandTrigger', {
actions: [glue.Action.job(job)],
});
Initializer
new Action()
⚠️ Deprecated: undefined
Methods
| Name | Description |
|---|---|
| static crawler(crawler, options?) | Create an action that runs a crawler. |
| static job(job, options?) | Create an action that runs a job. |
static crawler(crawler, options?)
public static crawler(crawler: ICrawlerRef, options?: CrawlerActionOptions): Action
⚠️ Deprecated: undefined
Parameters
- crawler
ICrawler— the crawler to run when the trigger fires.Ref - options
Crawler— additional options for the action.Action Options
Returns
Create an action that runs a crawler.
static job(job, options?)
public static job(job: IJobRef, options?: JobActionOptions): Action
⚠️ Deprecated: undefined
Parameters
- job
IJob— the job to run when the trigger fires.Ref - options
Job— additional options for the action.Action Options
Returns
Create an action that runs a job.

.NET
Go
Java
Python
TypeScript (