class LambdaFunction
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Pipes.Targets.Alpha.LambdaFunction |
Go | github.com/aws/aws-cdk-go/awscdkpipestargetsalpha/v2#LambdaFunction |
Java | software.amazon.awscdk.services.pipes.targets.alpha.LambdaFunction |
Python | aws_cdk.aws_pipes_targets_alpha.LambdaFunction |
TypeScript (source) | @aws-cdk/aws-pipes-targets-alpha ยป LambdaFunction |
Implements
ITarget
An EventBridge Pipes target that sends messages to an AWS 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
});
Initializer
new LambdaFunction(lambdaFunction: IFunction, parameters: LambdaFunctionParameters)
Parameters
- lambdaFunction
IFunction - parameters
LambdaFunction Parameters
Properties
| Name | Type | Description |
|---|---|---|
| target | string | The ARN of the target resource. |
targetArn
Type:
string
The ARN of the target resource.
Methods
| Name | Description |
|---|---|
| bind(pipe) | Bind this target to a pipe. |
| grant | Grant the pipe role to push to the target. |
bind(pipe)
public bind(pipe: IPipe): TargetConfig
Parameters
- pipe
IPipe
Returns
Bind this target to a pipe.
grantPush(grantee)
public grantPush(grantee: IRole): void
Parameters
- grantee
IRole
Grant the pipe role to push to the target.

.NET
Go
Java
Python
TypeScript (