class LambdaEnrichment
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Pipes.Enrichments.Alpha.LambdaEnrichment |
Go | github.com/aws/aws-cdk-go/awscdkpipesenrichmentsalpha/v2#LambdaEnrichment |
Java | software.amazon.awscdk.services.pipes.enrichments.alpha.LambdaEnrichment |
Python | aws_cdk.aws_pipes_enrichments_alpha.LambdaEnrichment |
TypeScript (source) | @aws-cdk/aws-pipes-enrichments-alpha ยป LambdaEnrichment |
Implements
IEnrichment
A Lambda enrichment for a pipe.
Example
declare const sourceQueue: sqs.Queue;
declare const targetQueue: sqs.Queue;
declare const enrichmentFunction: lambda.Function;
const enrichment = new enrichments.LambdaEnrichment(enrichmentFunction);
const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SomeSource(sourceQueue),
enrichment,
target: new SomeTarget(targetQueue),
});
Initializer
new LambdaEnrichment(lambda: IFunction, props?: LambdaEnrichmentProps)
Parameters
- lambda
IFunction - props
LambdaEnrichment Props
Properties
| Name | Type | Description |
|---|---|---|
| enrichment | string | The ARN of the enrichment resource. |
enrichmentArn
Type:
string
The ARN of the enrichment resource.
Length Constraints: Minimum length of 0. Maximum length of 1600.
Methods
| Name | Description |
|---|---|
| bind(pipe) | Bind this enrichment to a pipe. |
| grant | Grant the pipes role to invoke the enrichment. |
bind(pipe)
public bind(pipe: IPipe): EnrichmentParametersConfig
Parameters
- pipe
IPipe
Returns
Bind this enrichment to a pipe.
grantInvoke(pipeRole)
public grantInvoke(pipeRole: IRole): void
Parameters
- pipeRole
IRole
Grant the pipes role to invoke the enrichment.

.NET
Go
Java
Python
TypeScript (