Interface ITriggerOptions
Options for Trigger.
Namespace: Amazon.CDK.Triggers
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ITriggerOptions
Syntax (vb)
Public Interface ITriggerOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Triggers;
using Constructs;
Construct construct;
var triggerOptions = new TriggerOptions {
ExecuteAfter = new [] { construct },
ExecuteBefore = new [] { construct },
ExecuteOnHandlerChange = false
};
Synopsis
Properties
| ExecuteAfter | Adds trigger dependencies. Execute this trigger only after these construct scopes have been provisioned. |
| ExecuteBefore | Adds this trigger as a dependency on other constructs. |
| ExecuteOnHandlerChange | Re-executes the trigger every time the handler changes. |
Properties
ExecuteAfter
Adds trigger dependencies. Execute this trigger only after these construct scopes have been provisioned.
Construct[]? ExecuteAfter { get; }
Property Value
Construct[]
Remarks
You can also use trigger.executeAfter() to add additional dependencies.
Default: []
ExecuteBefore
Adds this trigger as a dependency on other constructs.
Construct[]? ExecuteBefore { get; }
Property Value
Construct[]
Remarks
This means that this trigger will get executed before the given construct(s).
You can also use trigger.executeBefore() to add additional dependents.
Default: []
ExecuteOnHandlerChange
Re-executes the trigger every time the handler changes.
bool? ExecuteOnHandlerChange { get; }
Property Value
bool?
Remarks
This implies that the trigger is associated with the currentVersion of
the handler, which gets recreated every time the handler or its
configuration is updated.
Default: true