Interface LambdaInvokeJsonataProps
- All Superinterfaces:
AssignableStateOptions
,software.amazon.jsii.JsiiSerializable
,JsonataCommonOptions
,StateBaseProps
,TaskStateBaseOptions
,TaskStateJsonataBaseProps
- All Known Implementing Classes:
LambdaInvokeJsonataProps.Jsii$Proxy
Example:
import software.amazon.awscdk.services.lambda.*; Function callApiFunc; Function useVariableFunc; LambdaInvoke step1 = LambdaInvoke.jsonata(this, "Step 1", LambdaInvokeJsonataProps.builder() .lambdaFunction(callApiFunc) .assign(Map.of( "x", "{% $states.result.Payload.x %}")) .build()); Pass step2 = Pass.jsonata(this, "Step 2"); Pass step3 = Pass.jsonata(this, "Step 3"); Pass step4 = Pass.jsonata(this, "Step 4"); LambdaInvoke step5 = LambdaInvoke.jsonata(this, "Step 5", LambdaInvokeJsonataProps.builder() .lambdaFunction(useVariableFunc) .payload(TaskInput.fromObject(Map.of( "x", "{% $x %}"))) .build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forLambdaInvokeJsonataProps
static final class
An implementation forLambdaInvokeJsonataProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
Up to 3583 bytes of base64-encoded data about the invoking client to pass to the function.default LambdaInvocationType
Invocation type of the Lambda function.Lambda function to invoke.default TaskInput
The JSON that will be supplied as input to the Lambda function.default Boolean
Invoke the Lambda in a way that only returns the payload response without additional metadata.default String
Deprecated.pass a Version or Alias object as lambdaFunction insteaddefault Boolean
Whether to retry on Lambda service exceptions.Methods inherited from interface software.amazon.awscdk.services.stepfunctions.AssignableStateOptions
getAssign
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.stepfunctions.JsonataCommonOptions
getOutputs
Methods inherited from interface software.amazon.awscdk.services.stepfunctions.StateBaseProps
getComment, getQueryLanguage, getStateName
Methods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseOptions
getCredentials, getHeartbeat, getHeartbeatTimeout, getIntegrationPattern, getTaskTimeout, getTimeout
-
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
payloadResponseOnly
property cannot be used ifintegrationPattern
,invocationType
,clientContext
, orqualifier
are 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
lambdaFunction
argument.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.ClientExecutionTimeoutException
with an interval of 2 seconds, a back-off rate of 2 and 6 maximum attempts.Default: true
- See Also:
-
builder
- Returns:
- a
LambdaInvokeJsonataProps.Builder
ofLambdaInvokeJsonataProps
-