RunLambdaTaskProps
- class aws_cdk.aws_stepfunctions_tasks.RunLambdaTaskProps(*, client_context=None, integration_pattern=None, invocation_type=None, payload=None, qualifier=None)
Bases:
object
(deprecated) Properties for RunLambdaTask.
- Parameters:
client_context (
Optional
[str
]) – (deprecated) Client context to pass to the function. Default: - No contextintegration_pattern (
Optional
[ServiceIntegrationPattern
]) – (deprecated) The service integration pattern indicates different ways to invoke Lambda function. The valid value for Lambda is either FIRE_AND_FORGET or WAIT_FOR_TASK_TOKEN, it determines whether to pause the workflow until a task token is returned. If this is set to WAIT_FOR_TASK_TOKEN, the JsonPath.taskToken value must be included somewhere in the payload and the Lambda must callSendTaskSuccess/SendTaskFailure
using that token. Default: FIRE_AND_FORGETinvocation_type (
Optional
[InvocationType
]) – (deprecated) Invocation type of the Lambda function. Default: RequestResponsepayload (
Optional
[TaskInput
]) – (deprecated) The JSON that you want to provide to your Lambda function as input. Default: - The state input (JSON path ‘$’)qualifier (
Optional
[str
]) – (deprecated) Version or alias of the function to be invoked. Default: - No qualifier
- 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_stepfunctions as stepfunctions import aws_cdk.aws_stepfunctions_tasks as stepfunctions_tasks # task_input: stepfunctions.TaskInput run_lambda_task_props = stepfunctions_tasks.RunLambdaTaskProps( client_context="clientContext", integration_pattern=stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET, invocation_type=stepfunctions_tasks.InvocationType.REQUEST_RESPONSE, payload=task_input, qualifier="qualifier" )
Attributes
- client_context
(deprecated) Client context to pass to the function.
- Default:
No context
- Stability:
deprecated
- integration_pattern
(deprecated) The service integration pattern indicates different ways to invoke Lambda function.
The valid value for Lambda is either FIRE_AND_FORGET or WAIT_FOR_TASK_TOKEN, it determines whether to pause the workflow until a task token is returned.
If this is set to WAIT_FOR_TASK_TOKEN, the JsonPath.taskToken value must be included somewhere in the payload and the Lambda must call
SendTaskSuccess/SendTaskFailure
using that token.- Default:
FIRE_AND_FORGET
- Stability:
deprecated
- invocation_type
(deprecated) Invocation type of the Lambda function.
- Default:
RequestResponse
- Stability:
deprecated
- payload
(deprecated) The JSON that you want to provide to your Lambda function as input.
- Default:
The state input (JSON path ‘$’)
- Stability:
deprecated
- qualifier
(deprecated) Version or alias of the function to be invoked.
- Default:
No qualifier
- Deprecated:
pass a Version or Alias object as lambdaFunction instead
- Stability:
deprecated