Class LambdaInvocationType
Invocation type of a Lambda.
Inheritance
System.Object
LambdaInvocationType
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public sealed class LambdaInvocationType : Enum
Syntax (vb)
Public NotInheritable Class LambdaInvocationType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
Function fn;
var submitJob = new LambdaInvoke(this, "Invoke Handler", new LambdaInvokeProps {
LambdaFunction = fn,
Payload = TaskInput.FromJsonPathAt("$.input"),
InvocationType = LambdaInvocationType.EVENT
});
Synopsis
Fields
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. |
value__ |
Fields
DRY_RUN
Validate parameter values and verify that the user or role has permission to invoke the function.
public const LambdaInvocationType DRY_RUN
Field Value
Type | Description |
---|---|
LambdaInvocationType |
EVENT
Invoke the function asynchronously.
public const LambdaInvocationType EVENT
Field Value
Type | Description |
---|---|
LambdaInvocationType |
Remarks
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.
REQUEST_RESPONSE
Invoke the function synchronously.
public const LambdaInvocationType REQUEST_RESPONSE
Field Value
Type | Description |
---|---|
LambdaInvocationType |
Remarks
Keep the connection open until the function returns a response or times out. The API response includes the function response and additional data.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |