@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:57.351Z") @Stability(value=Experimental) public enum LambdaInvocationType extends Enum<LambdaInvocationType>
Example:
Function fn;
LambdaInvoke submitJob = LambdaInvoke.Builder.create(this, "Invoke Handler")
.lambdaFunction(fn)
.payload(TaskInput.fromJsonPathAt("$.input"))
.invocationType(LambdaInvocationType.EVENT)
.build();
| Enum Constant and Description |
|---|
DRY_RUN
(experimental) Validate parameter values and verify that the user or role has permission to invoke the function.
|
EVENT
(experimental) Invoke the function asynchronously.
|
REQUEST_RESPONSE
(experimental) Invoke the function synchronously.
|
| Modifier and Type | Method and Description |
|---|---|
static LambdaInvocationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LambdaInvocationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final LambdaInvocationType REQUEST_RESPONSE
Keep the connection open until the function returns a response or times out. The API response includes the function response and additional data.
@Stability(value=Experimental) public static final LambdaInvocationType EVENT
Send events that fail multiple times to the function's dead-letter queue (if it's configured). The API response only includes a status code.
@Stability(value=Experimental) public static final LambdaInvocationType DRY_RUN
public static LambdaInvocationType[] values()
for (LambdaInvocationType c : LambdaInvocationType.values()) System.out.println(c);
public static LambdaInvocationType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.