Class LambdaInvoke
(experimental) Use an AWS Lambda function as a target for AWS EventBridge Scheduler.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Scheduler.Targets.Alpha
Assembly: Amazon.CDK.AWS.Scheduler.Targets.Alpha.dll
Syntax (csharp)
public class LambdaInvoke : ScheduleTargetBase, IScheduleTarget
Syntax (vb)
Public Class LambdaInvoke
Inherits ScheduleTargetBase
Implements IScheduleTarget
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
Function fn;
var target = new LambdaInvoke(fn, new ScheduleTargetBaseProps {
Input = ScheduleTargetInput.FromObject(new Dictionary<string, string> {
{ "payload", "useful" }
})
});
var schedule = new Schedule(this, "Schedule", new ScheduleProps {
Schedule = ScheduleExpression.Rate(Duration.Minutes(10)),
Target = target,
Description = "This is a test schedule that invokes lambda function every 10 minutes."
});
Synopsis
Constructors
LambdaInvoke(IFunction, IScheduleTargetBaseProps) | |
LambdaInvoke(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LambdaInvoke(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
AddTargetActionToRole(ISchedule, IRole) |
Constructors
LambdaInvoke(IFunction, IScheduleTargetBaseProps)
public LambdaInvoke(IFunction func, IScheduleTargetBaseProps props)
Parameters
- func IFunction
- props IScheduleTargetBaseProps
Remarks
Stability: Experimental
LambdaInvoke(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LambdaInvoke(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LambdaInvoke(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LambdaInvoke(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
AddTargetActionToRole(ISchedule, IRole)
protected override void AddTargetActionToRole(ISchedule schedule, IRole role)
Parameters
Overrides
Remarks
Stability: Experimental