aws-cdk-lib.triggers.ITrigger

interface ITrigger

LanguageType name
.NETAmazon.CDK.Triggers.ITrigger
Gogithub.com/aws/aws-cdk-go/awscdk/v2/triggers#ITrigger
Javasoftware.amazon.awscdk.triggers.ITrigger
Pythonaws_cdk.triggers.ITrigger
TypeScript (source)aws-cdk-lib » triggers » ITrigger

Implemented by Trigger, TriggerFunction

Interface for triggers.

Properties

NameTypeDescription
nodeNodeThe tree node.

node

Type: Node

The tree node.

Methods

NameDescription
executeAfter(...scopes)Adds trigger dependencies.
executeBefore(...scopes)Adds this trigger as a dependency on other constructs.

executeAfter(...scopes)

public executeAfter(...scopes: Construct[]): void

Parameters

  • scopes Construct — A list of construct scopes which this trigger will depend on.

Adds trigger dependencies.

Execute this trigger only after these construct scopes have been provisioned.


executeBefore(...scopes)

public executeBefore(...scopes: Construct[]): void

Parameters

  • scopes Construct — A list of construct scopes which will take a dependency on this trigger.

Adds this trigger as a dependency on other constructs.

This means that this trigger will get executed before the given construct(s).