Show / Hide Table of Contents

Class OnDemandTriggerOptions

Properties for configuring an on-demand Glue Trigger.

Inheritance
object
OnDemandTriggerOptions
Implements
IOnDemandTriggerOptions
ITriggerOptions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

string

Remarks

Default: - no description

Name

A name for the trigger.

public string? Name { get; set; }
Property Value

string

Remarks

Default: - no name is provided

Implements

IOnDemandTriggerOptions
ITriggerOptions
Back to top Generated by DocFX