Class LambdaFunctionInvocationType
(experimental) InvocationType for invoking the Lambda Function.
Inheritance
Namespace: Amazon.CDK.AWS.Pipes.Targets.Alpha
Assembly: Amazon.CDK.AWS.Pipes.Targets.Alpha.dll
Syntax (csharp)
public sealed class LambdaFunctionInvocationType : Enum
Syntax (vb)
Public NotInheritable Class LambdaFunctionInvocationType
Inherits
Enum
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
Queue sourceQueue;
IFunction targetFunction;
var pipeTarget = new LambdaFunction(targetFunction, new LambdaFunctionParameters {
InvocationType = LambdaFunctionInvocationType.FIRE_AND_FORGET
});
var pipe = new Pipe(this, "Pipe", new PipeProps {
Source = new SqsSource(sourceQueue),
Target = pipeTarget
});
Synopsis
Fields
FIRE_AND_FORGET | (experimental) Invoke Lambda Function asynchronously ( |
REQUEST_RESPONSE | (experimental) Invoke Lambda Function synchronously ( |
value__ |
Fields
FIRE_AND_FORGET
(experimental) Invoke Lambda Function asynchronously (Invoke
).
public const LambdaFunctionInvocationType FIRE_AND_FORGET
Field Value
Type | Description |
---|---|
Lambda |
Remarks
InvocationType
is set to Event
on Invoke
, see https://docs.aws.amazon.com/lambda/latest/api/API_Invoke.html for more details.
Stability: Experimental
REQUEST_RESPONSE
(experimental) Invoke Lambda Function synchronously (Invoke
) and wait for the response.
public const LambdaFunctionInvocationType REQUEST_RESPONSE
Field Value
Type | Description |
---|---|
Lambda |
Remarks
InvocationType
is set to RequestResponse
on Invoke
, see https://docs.aws.amazon.com/lambda/latest/api/API_Invoke.html for more details.
Stability: Experimental
value__
public int value__
Field Value
Type | Description |
---|---|
System. |