Class OnDemandTriggerOptions
Properties for configuring an on-demand Glue Trigger.
Inherited Members
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class OnDemandTriggerOptions : IOnDemandTriggerOptions, ITriggerOptions
Syntax (vb)
Public Class OnDemandTriggerOptions Implements IOnDemandTriggerOptions, ITriggerOptions
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK;
using Amazon.CDK.AWS.IAM;
Stack stack;
IRole role;
Code script;
// Create a job to run from the workflow
var job = new PySparkEtlJob(stack, "Job", new PySparkEtlJobProps { Role = role, Script = script });
// Create a workflow and add a trigger that runs the job
var workflow = new Workflow(stack, "Workflow");
workflow.AddOnDemandTrigger("OnDemandTrigger", new OnDemandTriggerOptions {
Actions = new [] { Action.Job(job) }
});
Synopsis
Constructors
| OnDemandTriggerOptions() | Properties for configuring an on-demand Glue Trigger. |
Properties
| Actions | The actions initiated by this trigger. |
| Description | A description for the trigger. |
| Name | A name for the trigger. |
Constructors
OnDemandTriggerOptions()
Properties for configuring an on-demand Glue Trigger.
public OnDemandTriggerOptions()
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK;
using Amazon.CDK.AWS.IAM;
Stack stack;
IRole role;
Code script;
// Create a job to run from the workflow
var job = new PySparkEtlJob(stack, "Job", new PySparkEtlJobProps { Role = role, Script = script });
// Create a workflow and add a trigger that runs the job
var workflow = new Workflow(stack, "Workflow");
workflow.AddOnDemandTrigger("OnDemandTrigger", new OnDemandTriggerOptions {
Actions = new [] { Action.Job(job) }
});
Properties
Actions
The actions initiated by this trigger.
public Action[] Actions { get; set; }
Property Value
Action[]
Remarks
ExampleMetadata: infused
Description
A description for the trigger.
public string? Description { get; set; }
Property Value
Remarks
Default: - no description
Name
A name for the trigger.
public string? Name { get; set; }
Property Value
Remarks
Default: - no name is provided