InvokeFunction

class aws_cdk.aws_stepfunctions_tasks.InvokeFunction(lambda_function, *, payload=None)

Bases: object

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.

stability :stability: experimental

__init__(lambda_function, *, payload=None)
Parameters
  • lambda_function (IFunction) –

  • props

  • payload (Optional[Mapping[str, Any]]) – The JSON that you want to provide to your Lambda function as input. This parameter is named as payload to keep consistent with RunLambdaTask class. Default: - The JSON data indicated by the task’s InputPath is used as payload

stability :stability: experimental

Return type

None

Methods

bind(_task)

Called when the task object is used in a workflow.

Parameters

_task (Task) –

stability :stability: experimental

Return type

StepFunctionsTaskConfig