Skip to content
v2.278.0

TriggerOptions Struct ​

Properties for configuring a Glue Trigger.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';

declare const action: glue.Action;
const triggerOptions: glue.TriggerOptions = {
  actions: [action],

  // the properties below are optional
  description: 'description',
  name: 'name',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

# action: glue.Action

trigger_options = glue.TriggerOptions(
    actions=[action],

    # the properties below are optional
    description="description",
    name="name"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;

Action action;

TriggerOptions triggerOptions = TriggerOptions.builder()
        .actions(List.of(action))

        // the properties below are optional
        .description("description")
        .name("name")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;

Action action;

var triggerOptions = new TriggerOptions {
    Actions = new [] { action },

    // the properties below are optional
    Description = "description",
    Name = "name"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var action Action

triggerOptions := &TriggerOptions{
	Actions: []Action{
		action,
	},

	// the properties below are optional
	Description: jsii.String("description"),
	Name: jsii.String("name"),
}

Properties ​

actionsAction[]actionstyping.List[Action]actionsList<Action>ActionsAction[]Actions*[]Action required #
The actions initiated by this trigger.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A description for the trigger.

Default: no description

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
A name for the trigger.

Default: no name is provided