class InvokeFunction
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.InvokeFunction |
Java | software.amazon.awscdk.services.stepfunctions.tasks.InvokeFunction |
Python | aws_cdk.aws_stepfunctions_tasks.InvokeFunction |
TypeScript (source) | @aws-cdk/aws-stepfunctions-tasks » InvokeFunction |
⚠️ Deprecated: Use LambdaInvoke
Implements
IStep
A Step Functions Task to invoke a Lambda function.
The Lambda function Arn is defined as Resource in the state machine definition.
OUTPUT: the output of this task is the return value of the Lambda Function.
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_tasks from '@aws-cdk/aws-stepfunctions-tasks';
declare const function_: lambda.Function;
declare const payload: any;
const invokeFunction = new stepfunctions_tasks.InvokeFunction(function_, /* all optional props */ {
payload: {
payloadKey: payload,
},
});
Initializer
new InvokeFunction(lambdaFunction: IFunction, props?: InvokeFunctionProps)
⚠️ Deprecated: Use LambdaInvoke
Parameters
- lambdaFunction
IFunction
- props
Invoke
Function 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.