Class LambdaInvoke
Invoke a Lambda function as a Task.
Inherited Members
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaInvoke : TaskStateBase, IChainable, INextable
Syntax (vb)
Public Class LambdaInvoke
Inherits TaskStateBase
Implements IChainable, INextable
Remarks
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-lambda.html
ExampleMetadata: infused
Examples
Function fn;
new LambdaInvoke(this, "Invoke with empty object as payload", new LambdaInvokeProps {
LambdaFunction = fn,
Payload = TaskInput.FromObject(new Dictionary<string, object> { })
});
// use the output of fn as input
// use the output of fn as input
new LambdaInvoke(this, "Invoke with payload field in the state input", new LambdaInvokeProps {
LambdaFunction = fn,
Payload = TaskInput.FromJsonPathAt("$.Payload")
});
Synopsis
Constructors
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 |
LambdaInvoke(Construct, String, ILambdaInvokeProps) |
Properties
TaskMetrics | |
TaskPolicies |
Constructors
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
LambdaInvoke(Construct, String, ILambdaInvokeProps)
public LambdaInvoke(Construct scope, string id, ILambdaInvokeProps props)
Parameters
- scope Constructs.Construct
- id System.String
Descriptive identifier for this chainable.
- props ILambdaInvokeProps
Properties
TaskMetrics
protected override ITaskMetricsConfig TaskMetrics { get; }
Property Value
Overrides
TaskPolicies
protected override PolicyStatement[] TaskPolicies { get; }
Property Value