Class LambdaInvoke
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.scheduler.targets.ScheduleTargetBase
software.amazon.awscdk.services.scheduler.targets.LambdaInvoke
- All Implemented Interfaces:
IScheduleTarget,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:45.353Z")
@Stability(Stable)
public class LambdaInvoke
extends ScheduleTargetBase
implements IScheduleTarget
Use an AWS Lambda function as a target for AWS EventBridge Scheduler.
Example:
Function fn;
LambdaInvoke target = LambdaInvoke.Builder.create(fn)
.input(ScheduleTargetInput.fromObject(Map.of(
"payload", "useful")))
.build();
Schedule schedule = Schedule.Builder.create(this, "Schedule")
.schedule(ScheduleExpression.rate(Duration.minutes(10)))
.target(target)
.description("This is a test schedule that invokes a lambda function every 10 minutes.")
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.scheduler.IScheduleTarget
IScheduleTarget.Jsii$Default, IScheduleTarget.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionLambdaInvoke(IFunction func) LambdaInvoke(IFunction func, ScheduleTargetBaseProps props) protectedLambdaInvoke(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedLambdaInvoke(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.awscdk.services.scheduler.targets.ScheduleTargetBase
bind, bindBaseTargetConfig, getTargetArnMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awscdk.services.scheduler.IScheduleTarget
bindMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
LambdaInvoke
protected LambdaInvoke(software.amazon.jsii.JsiiObjectRef objRef) -
LambdaInvoke
protected LambdaInvoke(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
LambdaInvoke
@Stability(Stable) public LambdaInvoke(@NotNull IFunction func, @Nullable ScheduleTargetBaseProps props) - Parameters:
func- This parameter is required.props-
-
LambdaInvoke
- Parameters:
func- This parameter is required.
-
-
Method Details
-
addTargetActionToRole
- Specified by:
addTargetActionToRolein classScheduleTargetBase- Parameters:
role- This parameter is required.
-