# OnDemandTriggerOptions

Properties for configuring an on-demand Glue Trigger.

Extends: OnDemandTriggerOptions
Extends: TriggerOptions

- Source: [`aws-glue/lib/triggers/trigger-options.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-glue/lib/triggers/trigger-options.ts#L336)
- Type last changed: v2.270.0 · 17 Sep 2026

## Example

```ts
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)],
});
```

## Properties

- `actions`: [Action](/cdk/api/v2/docs/aws-cdk-lib.aws_glue.Action.html)[] (required) — The actions initiated by this trigger.

- `description`: string — A description for the trigger.

  **Default:** no description

- `name`: string — A name for the trigger.

  **Default:** no name is provided
