Class LambdaInvoke
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.scheduler.targets.alpha.ScheduleTargetBase
software.amazon.awscdk.services.scheduler.targets.alpha.LambdaInvoke
- All Implemented Interfaces:
IScheduleTarget
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)",
date="2024-05-08T21:35:16.137Z")
@Stability(Experimental)
public class LambdaInvoke
extends ScheduleTargetBase
implements IScheduleTarget
(experimental) 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 lambda function every 10 minutes.") .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forLambdaInvoke
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.scheduler.alpha.IScheduleTarget
IScheduleTarget.Jsii$Default, IScheduleTarget.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionLambdaInvoke
(IFunction func, ScheduleTargetBaseProps props) protected
LambdaInvoke
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
LambdaInvoke
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addTargetActionToRole
(ISchedule schedule, IRole role) Methods inherited from class software.amazon.awscdk.services.scheduler.targets.alpha.ScheduleTargetBase
bind, bindBaseTargetConfig, getTargetArn
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.services.scheduler.alpha.IScheduleTarget
bind
Methods 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(Experimental) public LambdaInvoke(@NotNull IFunction func, @NotNull ScheduleTargetBaseProps props) - Parameters:
func
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
addTargetActionToRole
@Stability(Experimental) protected void addTargetActionToRole(@NotNull ISchedule schedule, @NotNull IRole role) - Specified by:
addTargetActionToRole
in classScheduleTargetBase
- Parameters:
schedule
- This parameter is required.role
- This parameter is required.
-