class RunLambdaTask
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.StepFunctions.Tasks.RunLambdaTask | 
|  Java | software.amazon.awscdk.services.stepfunctions.tasks.RunLambdaTask | 
|  Python | aws_cdk.aws_stepfunctions_tasks.RunLambdaTask | 
|  TypeScript (source) | @aws-cdk/aws-stepfunctions-tasks»RunLambdaTask | 
⚠️ Deprecated: Use LambdaInvoke
Implements
IStep
Invoke a Lambda function as a Task.
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.
See also: https://docs.aws.amazon.com/step-functions/latest/dg/connect-lambda.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lambda from '@aws-cdk/aws-lambda';
import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
declare const function_: lambda.Function;
declare const taskInput: stepfunctions.TaskInput;
const runLambdaTask = new stepfunctions_tasks.RunLambdaTask(function_, /* all optional props */ {
  clientContext: 'clientContext',
  integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
  invocationType: stepfunctions_tasks.InvocationType.REQUEST_RESPONSE,
  payload: taskInput,
  qualifier: 'qualifier',
});
Initializer
new RunLambdaTask(lambdaFunction: IFunction, props?: RunLambdaTaskProps)
⚠️ Deprecated: Use LambdaInvoke
Parameters
- lambdaFunction IFunction
- props RunLambda Task Props 
Methods
| Name | Description | 
|---|---|
| bind(_task) | Called when the task object is used in a workflow. | 
bind(_task)
public bind(_task: Task): StepFunctionsTaskConfig
⚠️ Deprecated: Use LambdaInvoke
Parameters
- _task Task
Returns
Called when the task object is used in a workflow.
