@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-27T20:28:49.369Z") @Stability(value=Stable) 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
Validate parameter values and verify that the user or role has permission to invoke the function.
|
EVENT
Invoke the function asynchronously.
|
REQUEST_RESPONSE
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=Stable) 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=Stable) 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=Stable) 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.