interface LambdaFunctionParameters
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Pipes.Targets.Alpha.LambdaFunctionParameters |
Go | github.com/aws/aws-cdk-go/awscdkpipestargetsalpha/v2#LambdaFunctionParameters |
Java | software.amazon.awscdk.services.pipes.targets.alpha.LambdaFunctionParameters |
Python | aws_cdk.aws_pipes_targets_alpha.LambdaFunctionParameters |
TypeScript (source) | @aws-cdk/aws-pipes-targets-alpha » LambdaFunctionParameters |
Parameters for the LambdaFunction target.
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
});
Properties
Name | Type | Description |
---|---|---|
input | IInput | The input transformation to apply to the message before sending it to the target. |
invocation | Lambda | Specify whether to invoke the Lambda Function synchronously (REQUEST_RESPONSE ) or asynchronously (FIRE_AND_FORGET ). |
inputTransformation?
Type:
IInput
(optional, default: none)
The input transformation to apply to the message before sending it to the target.
invocationType?
Type:
Lambda
(optional, default: LambdaFunctionInvocationType.REQUEST_RESPONSE)
Specify whether to invoke the Lambda Function synchronously (REQUEST_RESPONSE
) or asynchronously (FIRE_AND_FORGET
).