Class RunLambdaTask
(deprecated) Invoke a Lambda function as a Task.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public class RunLambdaTask : DeputyBase, IStepFunctionsTask
Syntax (vb)
Public Class RunLambdaTask
Inherits DeputyBase
Implements IStepFunctionsTask
Remarks
OUTPUT: the output of this task is either the return value of Lambda's
Invoke call, or whatever the Lambda Function posted back using
SendTaskSuccess/SendTaskFailure
in waitForTaskToken
mode.
Stability: Deprecated
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-lambda.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
using Amazon.CDK.AWS.StepFunctions;
using Amazon.CDK.AWS.StepFunctions.Tasks;
Function function_;
TaskInput taskInput;
var runLambdaTask = new RunLambdaTask(function_, new RunLambdaTaskProps {
ClientContext = "clientContext",
IntegrationPattern = ServiceIntegrationPattern.FIRE_AND_FORGET,
InvocationType = InvocationType.REQUEST_RESPONSE,
Payload = taskInput,
Qualifier = "qualifier"
});
Synopsis
Constructors
RunLambdaTask(IFunction, IRunLambdaTaskProps) | |
RunLambdaTask(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
RunLambdaTask(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Task) | (deprecated) Called when the task object is used in a workflow. |
Constructors
RunLambdaTask(IFunction, IRunLambdaTaskProps)
public RunLambdaTask(IFunction lambdaFunction, IRunLambdaTaskProps props = null)
Parameters
- lambdaFunction IFunction
- props IRunLambdaTaskProps
Remarks
Stability: Deprecated
RunLambdaTask(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected RunLambdaTask(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
RunLambdaTask(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected RunLambdaTask(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Task)
(deprecated) Called when the task object is used in a workflow.
public virtual IStepFunctionsTaskConfig Bind(Task task)
Parameters
- task Task
Returns
Remarks
Stability: Deprecated