interface OnDemandTriggerOptions
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Glue.Alpha.OnDemandTriggerOptions |
Go | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#OnDemandTriggerOptions |
Java | software.amazon.awscdk.services.glue.alpha.OnDemandTriggerOptions |
Python | aws_cdk.aws_glue_alpha.OnDemandTriggerOptions |
TypeScript (source) | @aws-cdk/aws-glue-alpha ยป OnDemandTriggerOptions |
Implements
Trigger
Properties for configuring an on-demand Glue Trigger.
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: [{ job }],
});
Properties
| Name | Type | Description |
|---|---|---|
| actions | Action[] | The actions initiated by this trigger. |
| description? | string | A description for the trigger. |
| name? | string | A name for the trigger. |
actions
Type:
Action[]
The actions initiated by this trigger.
description?
Type:
string
(optional, default: no description)
A description for the trigger.
name?
Type:
string
(optional, default: no name is provided)
A name for the trigger.

.NET
Go
Java
Python
TypeScript (