@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:06.568Z") @Stability(value=Experimental) public class LambdaFunction extends software.amazon.jsii.JsiiObject implements IRuleTarget
Example:
import software.amazon.awscdk.services.events.*;
import software.amazon.awscdk.services.events.targets.*;
Function fn;
Rule rule = Rule.Builder.create(this, "Schedule Rule")
.schedule(Schedule.cron(CronOptions.builder().minute("0").hour("4").build()))
.build();
rule.addTarget(new LambdaFunction(fn));
| Modifier and Type | Class and Description |
|---|---|
static class |
LambdaFunction.Builder
(experimental) A fluent builder for
LambdaFunction. |
software.amazon.jsii.JsiiObject.InitializationModeIRuleTarget.Jsii$Default, IRuleTarget.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
LambdaFunction(IFunction handler) |
|
LambdaFunction(IFunction handler,
LambdaFunctionProps props) |
protected |
LambdaFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LambdaFunction(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
RuleTargetConfig |
bind(IRule rule)
(experimental) Returns a RuleTarget that can be used to trigger this Lambda as a result from an EventBridge event.
|
RuleTargetConfig |
bind(IRule rule,
String _id)
(experimental) Returns a RuleTarget that can be used to trigger this Lambda as a result from an EventBridge event.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected LambdaFunction(software.amazon.jsii.JsiiObjectRef objRef)
protected LambdaFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public LambdaFunction(@NotNull
IFunction handler,
@Nullable
LambdaFunctionProps props)
handler - This parameter is required.props - @Stability(value=Experimental)
public LambdaFunction(@NotNull
IFunction handler)
handler - This parameter is required.@Stability(value=Experimental) @NotNull public RuleTargetConfig bind(@NotNull IRule rule, @Nullable String _id)
bind in interface IRuleTargetrule - This parameter is required._id - @Stability(value=Experimental) @NotNull public RuleTargetConfig bind(@NotNull IRule rule)
bind in interface IRuleTargetrule - This parameter is required.Copyright © 2021. All rights reserved.