Interface LambdaInvokeProps
- All Superinterfaces:
AssignableStateOptions,software.amazon.jsii.JsiiSerializable,JsonataCommonOptions,JsonPathCommonOptions,StateBaseProps,TaskStateBaseOptions,TaskStateBaseProps
- All Known Implementing Classes:
LambdaInvokeProps.Jsii$Proxy
Example:
Function fn;
LambdaInvoke.Builder.create(this, "Invoke with empty object as payload")
.lambdaFunction(fn)
.payload(TaskInput.fromObject(Map.of()))
.build();
// use the output of fn as input
// use the output of fn as input
LambdaInvoke.Builder.create(this, "Invoke with payload field in the state input")
.lambdaFunction(fn)
.payload(TaskInput.fromJsonPathAt("$.Payload"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLambdaInvokePropsstatic final classAn implementation forLambdaInvokeProps -
Method Summary
Modifier and TypeMethodDescriptionstatic LambdaInvokeProps.Builderbuilder()default StringUp to 3583 bytes of base64-encoded data about the invoking client to pass to the function.default LambdaInvocationTypeInvocation type of the Lambda function.Lambda function to invoke.default TaskInputThe JSON that will be supplied as input to the Lambda function.default BooleanInvoke the Lambda in a way that only returns the payload response without additional metadata.default StringDeprecated.pass a Version or Alias object as lambdaFunction insteaddefault BooleanWhether to retry on Lambda service exceptions.Methods inherited from interface software.amazon.awscdk.services.stepfunctions.AssignableStateOptions
getAssignMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.stepfunctions.JsonataCommonOptions
getOutputsMethods inherited from interface software.amazon.awscdk.services.stepfunctions.JsonPathCommonOptions
getInputPath, getOutputPathMethods inherited from interface software.amazon.awscdk.services.stepfunctions.StateBaseProps
getComment, getQueryLanguage, getStateNameMethods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseOptions
getCredentials, getHeartbeat, getHeartbeatTimeout, getIntegrationPattern, getTaskTimeout, getTimeoutMethods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseProps
getResultPath, getResultSelector
-
Method Details
-
getLambdaFunction
Lambda function to invoke. -
getClientContext
Up to 3583 bytes of base64-encoded data about the invoking client to pass to the function.Default: - No context
-
getInvocationType
Invocation type of the Lambda function.Default: InvocationType.REQUEST_RESPONSE
-
getPayload
The JSON that will be supplied as input to the Lambda function.Default: - The state input (JSONata: '{% $states.input %}', JSONPath: '$')
-
getPayloadResponseOnly
Invoke the Lambda in a way that only returns the payload response without additional metadata.The
payloadResponseOnlyproperty cannot be used ifintegrationPattern,invocationType,clientContext, orqualifierare specified. It always uses the REQUEST_RESPONSE behavior.Default: false
-
getQualifier
Deprecated.pass a Version or Alias object as lambdaFunction instead(deprecated) Version or alias to invoke a published version of the function.You only need to supply this if you want the version of the Lambda Function to depend on data in the state machine state. If not, you can pass the appropriate Alias or Version object directly as the
lambdaFunctionargument.Default: - Version or alias inherent to the `lambdaFunction` object.
-
getRetryOnServiceExceptions
Whether to retry on Lambda service exceptions.This handles
Lambda.ServiceException,Lambda.AWSLambdaException,Lambda.SdkClientException, andLambda.ClientExecutionTimeoutExceptionwith an interval of 2 seconds, a back-off rate of 2 and 6 maximum attempts.Default: true
- See Also:
-
builder
- Returns:
- a
LambdaInvokeProps.BuilderofLambdaInvokeProps
-