@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:44.523Z") public interface LambdaInvokeProps extends TaskStateBaseProps
Example:
import software.amazon.awscdk.services.lambda.*; Function orderFn; LambdaInvoke submitJob = LambdaInvoke.Builder.create(this, "InvokeOrderProcessor") .lambdaFunction(orderFn) .payload(TaskInput.fromObject(Map.of( "OrderId", JsonPath.stringAt("$.OrderId")))) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
LambdaInvokeProps.Builder
A builder for
LambdaInvokeProps |
static class |
LambdaInvokeProps.Jsii$Proxy
An implementation for
LambdaInvokeProps |
Modifier and Type | Method and Description |
---|---|
static LambdaInvokeProps.Builder |
builder() |
default java.lang.String |
getClientContext()
Up to 3583 bytes of base64-encoded data about the invoking client to pass to the function.
|
default LambdaInvocationType |
getInvocationType()
Invocation type of the Lambda function.
|
IFunction |
getLambdaFunction()
Lambda function to invoke.
|
default TaskInput |
getPayload()
The JSON that will be supplied as input to the Lambda function.
|
default java.lang.Boolean |
getPayloadResponseOnly()
Invoke the Lambda in a way that only returns the payload response without additional metadata.
|
default java.lang.String |
getQualifier()
Deprecated.
pass a Version or Alias object as lambdaFunction instead
|
default java.lang.Boolean |
getRetryOnServiceExceptions()
Whether to retry on Lambda service exceptions.
|
getComment, getHeartbeat, getInputPath, getIntegrationPattern, getOutputPath, getResultPath, getResultSelector, getTimeout
IFunction getLambdaFunction()
default java.lang.String getClientContext()
Default: - No context
default LambdaInvocationType getInvocationType()
Default: InvocationType.REQUEST_RESPONSE
default TaskInput getPayload()
Default: - The state input (JSON path '$')
default java.lang.Boolean getPayloadResponseOnly()
The payloadResponseOnly
property cannot be used if integrationPattern
, invocationType
,
clientContext
, or qualifier
are specified.
It always uses the REQUEST_RESPONSE behavior.
Default: false
@Deprecated default java.lang.String getQualifier()
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.
default java.lang.Boolean getRetryOnServiceExceptions()
This handles Lambda.ServiceException
, Lambda.AWSLambdaException
and
Lambda.SdkClientException
with an interval of 2 seconds, a back-off rate
of 2 and 6 maximum attempts.
Default: true
static LambdaInvokeProps.Builder builder()
builder
in interface TaskStateBaseProps
LambdaInvokeProps.Builder
of LambdaInvokeProps