@Stability(value=Experimental) public static final class RunLambdaTask.Builder extends Object
RunLambdaTask.| Modifier and Type | Method and Description |
|---|---|
RunLambdaTask |
build() |
RunLambdaTask.Builder |
clientContext(String clientContext)
Client context to pass to the function.
|
static RunLambdaTask.Builder |
create(IFunction lambdaFunction)
EXPERIMENTAL
|
RunLambdaTask.Builder |
integrationPattern(ServiceIntegrationPattern integrationPattern)
The service integration pattern indicates different ways to invoke Lambda function.
|
RunLambdaTask.Builder |
invocationType(InvocationType invocationType)
Invocation type of the Lambda function.
|
RunLambdaTask.Builder |
payload(Map<String,Object> payload)
The JSON that you want to provide to your Lambda function as input.
|
RunLambdaTask.Builder |
qualifier(String qualifier)
Version or alias of the function to be invoked.
|
@Stability(value=Experimental) public static RunLambdaTask.Builder create(IFunction lambdaFunction)
lambdaFunction - This parameter is required.RunLambdaTask.Builder.@Stability(value=Experimental) public RunLambdaTask.Builder clientContext(String clientContext)
Default: - No context
EXPERIMENTAL
clientContext - Client context to pass to the function. This parameter is required.this@Stability(value=Experimental) public RunLambdaTask.Builder integrationPattern(ServiceIntegrationPattern integrationPattern)
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 Context.taskToken value must be included
somewhere in the payload and the Lambda must call
SendTaskSuccess/SendTaskFailure using that token.
Default: FIRE_AND_FORGET
EXPERIMENTAL
integrationPattern - The service integration pattern indicates different ways to invoke Lambda function. This parameter is required.this@Stability(value=Experimental) public RunLambdaTask.Builder invocationType(InvocationType invocationType)
Default: RequestResponse
EXPERIMENTAL
invocationType - Invocation type of the Lambda function. This parameter is required.this@Stability(value=Experimental) public RunLambdaTask.Builder payload(Map<String,Object> payload)
EXPERIMENTAL
payload - The JSON that you want to provide to your Lambda function as input. This parameter is required.this@Stability(value=Experimental) public RunLambdaTask.Builder qualifier(String qualifier)
Default: - No qualifier
EXPERIMENTAL
qualifier - Version or alias of the function to be invoked. This parameter is required.this@Stability(value=Experimental) public RunLambdaTask build()
Copyright © 2020. All rights reserved.