InvokeFunction
- class aws_cdk.aws_stepfunctions_tasks.InvokeFunction(lambda_function, *, payload=None)
Bases:
object
(deprecated) 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.
- Deprecated:
Use
LambdaInvoke
- Stability:
deprecated
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_lambda as lambda_ import aws_cdk.aws_stepfunctions_tasks as stepfunctions_tasks # function_: lambda.Function # payload: Any invoke_function = stepfunctions_tasks.InvokeFunction(function_, payload={ "payload_key": payload } )
- Parameters:
lambda_function (
IFunction
) –payload (
Optional
[Mapping
[str
,Any
]]) – (deprecated) 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:
deprecated
Methods