@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.965Z") @Stability(value=Stable) public class TriggerFunction extends Function implements ITrigger
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.services.lambda.*;
import software.amazon.awscdk.triggers.*;
import software.amazon.awscdk.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. |
software.amazon.jsii.JsiiObject.InitializationModeITrigger.Jsii$Default, ITrigger.Jsii$ProxyIFunction.Jsii$DefaultIClientVpnConnectionHandler.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
TriggerFunction(software.constructs.Construct scope,
String id,
TriggerFunctionProps props) |
protected |
TriggerFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TriggerFunction(software.amazon.jsii.JsiiObjectRef objRef) |
| 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, 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, metricAllUnreservedConcurrentExecutionsaddEventSource, addEventSourceMapping, addFunctionUrl, addFunctionUrl, addPermission, addToRolePolicy, configureAsyncInvoke, considerWarningOnInvokeFunctionPermissions, getConnections, getIsBoundToVpc, getLatestVersion, grantInvoke, grantInvokeUrl, metric, metric, metricDuration, metricDuration, metricErrors, metricErrors, metricInvocations, metricInvocations, metricThrottles, metricThrottles, warnInvokeFunctionPermissionsapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected TriggerFunction(software.amazon.jsii.JsiiObjectRef objRef)
protected TriggerFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public TriggerFunction(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
TriggerFunctionProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable)
public void executeAfter(@NotNull
software.constructs.Construct... scopes)
Execute this trigger only after these construct scopes have been provisioned.
executeAfter in interface ITriggerscopes - This parameter is required.@Stability(value=Stable)
public void executeBefore(@NotNull
software.constructs.Construct... scopes)
This means that this trigger will get executed before the given construct(s).
executeBefore in interface ITriggerscopes - This parameter is required.@Stability(value=Stable) @NotNull public Trigger getTrigger()
Copyright © 2022. All rights reserved.