enum LambdaFunctionInvocationType
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Pipes.Targets.Alpha.LambdaFunctionInvocationType |
Go | github.com/aws/aws-cdk-go/awscdkpipestargetsalpha/v2#LambdaFunctionInvocationType |
Java | software.amazon.awscdk.services.pipes.targets.alpha.LambdaFunctionInvocationType |
Python | aws_cdk.aws_pipes_targets_alpha.LambdaFunctionInvocationType |
TypeScript (source) | @aws-cdk/aws-pipes-targets-alpha » LambdaFunctionInvocationType |
InvocationType for invoking the Lambda Function.
Example
declare const sourceQueue: sqs.Queue;
declare const targetFunction: lambda.IFunction;
const pipeTarget = new targets.LambdaFunction(targetFunction, {
invocationType: targets.LambdaFunctionInvocationType.FIRE_AND_FORGET,
});
const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SqsSource(sourceQueue),
target: pipeTarget
});
Members
| Name | Description |
|---|---|
| FIRE_AND_FORGET | Invoke Lambda Function asynchronously (Invoke). |
| REQUEST_RESPONSE | Invoke Lambda Function synchronously (Invoke) and wait for the response. |
FIRE_AND_FORGET
Invoke Lambda Function asynchronously (Invoke).
InvocationType is set to Event on Invoke, see https://docs.aws.amazon.com/lambda/latest/api/API_Invoke.html for more details.
REQUEST_RESPONSE
Invoke Lambda Function synchronously (Invoke) and wait for the response.
InvocationType is set to RequestResponse on Invoke, see https://docs.aws.amazon.com/lambda/latest/api/API_Invoke.html for more details.

.NET
Go
Java
Python
TypeScript (