Skip to content
v2.278.0

EventTriggerOptions Struct ​

Properties for configuring an Event Bridge based Glue Trigger.

Example ​

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

declare const action: glue.Action;
const eventTriggerOptions: glue.EventTriggerOptions = {
  actions: [action],

  // the properties below are optional
  description: 'description',
  eventBatchingCondition: {
    batchSize: 123,

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

# action: glue.Action

event_trigger_options = glue.EventTriggerOptions(
    actions=[action],

    # the properties below are optional
    description="description",
    event_batching_condition=glue.EventBatchingCondition(
        batch_size=123,

        # the properties below are optional
        batch_window=cdk.Duration.minutes(30)
    ),
    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.*;
import software.amazon.awscdk.services.glue.*;

Action action;

EventTriggerOptions eventTriggerOptions = EventTriggerOptions.builder()
        .actions(List.of(action))

        // the properties below are optional
        .description("description")
        .eventBatchingCondition(EventBatchingCondition.builder()
                .batchSize(123)

                // the properties below are optional
                .batchWindow(Duration.minutes(30))
                .build())
        .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;
using Amazon.CDK.AWS.Glue;

Action action;

var eventTriggerOptions = new EventTriggerOptions {
    Actions = new [] { action },

    // the properties below are optional
    Description = "description",
    EventBatchingCondition = new EventBatchingCondition {
        BatchSize = 123,

        // the properties below are optional
        BatchWindow = Duration.Minutes(30)
    },
    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 cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var action Action

eventTriggerOptions := &EventTriggerOptions{
	Actions: []Action{
		action,
	},

	// the properties below are optional
	Description: jsii.String("description"),
	EventBatchingCondition: &EventBatchingCondition{
		BatchSize: jsii.Number(123),

		// the properties below are optional
		BatchWindow: cdk.Duration_Minutes(jsii.Number(30)),
	},
	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

eventBatchingConditionoptionalEventBatchingConditionevent_batching_conditionoptionalEventBatchingConditioneventBatchingConditionoptionalEventBatchingConditionEventBatchingConditionoptionalEventBatchingConditionEventBatchingConditionoptionalEventBatchingCondition #
Batch condition for the trigger.

Default: no batch condition

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
A name for the trigger.

Default: no name is provided