@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:44.758Z") public class TriggerFunction extends Function implements ITrigger
Example:
import software.amazon.awscdk.services.lambda.*; import software.amazon.awscdk.triggers.*; import software.amazon.awscdk.core.Stack; Stack stack; TriggerFunction.Builder.create(stack, "MyTrigger") .runtime(Runtime.NODEJS_14_X) .handler("index.handler") .code(Code.fromAsset(__dirname + "/my-trigger")) .build();
Modifier and Type | Class and Description |
---|---|
static class |
TriggerFunction.Builder
A fluent builder for
TriggerFunction . |
ITrigger.Jsii$Default, ITrigger.Jsii$Proxy
IFunction.Jsii$Default
IClientVpnConnectionHandler.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
TriggerFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TriggerFunction(software.amazon.jsii.JsiiObjectRef objRef) |
|
TriggerFunction(software.constructs.Construct scope,
java.lang.String id,
TriggerFunctionProps props) |
Modifier and Type | Method and Description |
---|---|
void |
executeAfter(software.constructs.Construct... scopes)
Adds trigger dependencies.
|
void |
executeBefore(software.constructs.Construct... scopes)
Adds this trigger as a dependency on other constructs.
|
Trigger |
getTrigger()
The underlying trigger resource.
|
addAlias, addAlias, addEnvironment, addEnvironment, addLayers, addVersion, addVersion, addVersion, addVersion, addVersion, classifyVersionProperty, fromFunctionArn, fromFunctionAttributes, fromFunctionName, getArchitecture, getCanCreatePermissions, getCurrentVersion, getDeadLetterQueue, getDeadLetterTopic, getFunctionArn, getFunctionName, getGrantPrincipal, getLogGroup, getPermissionsNode, getResourceArnsForGrantInvoke, getRole, getRuntime, getTimeout, metricAll, metricAll, metricAllConcurrentExecutions, metricAllConcurrentExecutions, metricAllDuration, metricAllDuration, metricAllErrors, metricAllErrors, metricAllInvocations, metricAllInvocations, metricAllThrottles, metricAllThrottles, metricAllUnreservedConcurrentExecutions, metricAllUnreservedConcurrentExecutions
addEventSource, addEventSourceMapping, addFunctionUrl, addFunctionUrl, addPermission, addToRolePolicy, configureAsyncInvoke, considerWarningOnInvokeFunctionPermissions, getConnections, getIsBoundToVpc, getLatestVersion, grantInvoke, grantInvokeUrl, metric, metric, metricDuration, metricDuration, metricErrors, metricErrors, metricInvocations, metricInvocations, metricThrottles, metricThrottles, warnInvokeFunctionPermissions
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNode
applyRemovalPolicy, getEnv, getStack
protected TriggerFunction(software.amazon.jsii.JsiiObjectRef objRef)
protected TriggerFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public TriggerFunction(software.constructs.Construct scope, java.lang.String id, TriggerFunctionProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public void executeAfter(software.constructs.Construct... scopes)
Execute this trigger only after these construct scopes have been provisioned.
executeAfter
in interface ITrigger
scopes
- This parameter is required.public void executeBefore(software.constructs.Construct... scopes)
This means that this trigger will get executed before the given construct(s).
executeBefore
in interface ITrigger
scopes
- This parameter is required.public Trigger getTrigger()