ITrigger

class aws_cdk.triggers.ITrigger(*args, **kwargs)

Bases: IConstruct, Protocol

Interface for triggers.

Methods

execute_after(*scopes)

Adds trigger dependencies.

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

Parameters:

scopes (Construct) – A list of construct scopes which this trigger will depend on.

Return type:

None

execute_before(*scopes)

Adds this trigger as a dependency on other constructs.

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

Parameters:

scopes (Construct) – A list of construct scopes which will take a dependency on this trigger.

Return type:

None

with_(*mixins)

Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.

Parameters:

mixins (IMixin) – The mixins to apply.

Return type:

IConstruct

Returns:

This construct for chaining

Attributes

node

The tree node.