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.
virtual Construct[] ExecuteAfter { get; }
Property Value
Constructs.Construct[]
Remarks
You can also use trigger.executeAfter()
to add additional dependencies.
Default: []
ExecuteBefore
Adds this trigger as a dependency on other constructs.
virtual Construct[] ExecuteBefore { get; }
Property Value
Constructs.Construct[]
Remarks
This means that this trigger will get executed before the given construct(s).
You can also use trigger.executeBefore()
to add additional dependants.
Default: []
ExecuteOnHandlerChange
Re-executes the trigger every time the handler changes.
virtual Nullable<bool> ExecuteOnHandlerChange { get; }
Property Value
System.Nullable<System.Boolean>
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