2.164.0-alpha.0 • Published 9 months ago

@aws-cdk/aws-pipes-enrichments-alpha v2.164.0-alpha.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

Amazon EventBridge Pipes Enrichments Construct Library


cdk-constructs: Experimental

The APIs of higher level constructs in this module are experimental and under active development. They are subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model and breaking changes will be announced in the release notes. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.


EventBridge Pipes Enrichments let you create enrichments for an EventBridge Pipe.

For more details see the service documentation:

Documentation

Pipe sources

Pipe enrichments are invoked prior to sending the events to a target of a EventBridge Pipe.

Lambda function

A Lambda function can be used to enrich events of a pipe.

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),
});

Step Functions state machine

Step Functions state machine can be used to enrich events of a pipe.

Note: EventBridge Pipes only supports Express workflows invoked synchronously.

Visit Amazon EventBridge Pipes event enrichment for more details.

declare const sourceQueue: sqs.Queue;
declare const targetQueue: sqs.Queue;

declare const enrichmentStateMachine: stepfunctions.StateMachine;

const enrichment = new enrichments.StepFunctionsEnrichment(enrichmentStateMachine);

const pipe = new pipes.Pipe(this, 'Pipe', {
  source: new SomeSource(sourceQueue),
  enrichment,
  target: new SomeTarget(targetQueue),
});

API destination

API destination can be used to enrich events of a pipe.

declare const sourceQueue: sqs.Queue;
declare const targetQueue: sqs.Queue;

declare const apiDestination: events.ApiDestination;

const enrichment = new enrichments.ApiDestinationEnrichment(apiDestination);

const pipe = new pipes.Pipe(this, 'Pipe', {
  source: new SomeSource(sourceQueue),
  enrichment,
  target: new SomeTarget(targetQueue),
});
2.164.0-alpha.0

9 months ago

2.163.1-alpha.0

9 months ago

2.163.0-alpha.0

9 months ago

2.162.1-alpha.0

9 months ago

2.161.1-alpha.0

10 months ago

2.162.0-alpha.0

9 months ago

2.161.0-alpha.0

10 months ago

2.160.0-alpha.0

10 months ago

2.158.0-alpha.0

10 months ago

2.156.0-alpha.0

10 months ago

2.157.0-alpha.0

10 months ago

2.159.0-alpha.0

10 months ago

2.159.1-alpha.0

10 months ago

2.155.0-alpha.0

11 months ago

2.151.1-alpha.0

11 months ago

2.145.0-alpha.0

1 year ago

2.143.1-alpha.0

1 year ago

2.153.0-alpha.0

11 months ago

2.151.0-alpha.0

12 months ago

2.154.0-alpha.0

11 months ago

2.148.0-alpha.0

1 year ago

2.148.1-alpha.0

1 year ago

2.143.0-alpha.0

1 year ago

2.154.1-alpha.0

11 months ago

2.152.0-alpha.0

11 months ago

2.147.3-alpha.0

1 year ago

2.144.0-alpha.0

1 year ago

2.146.0-alpha.0

1 year ago

2.150.0-alpha.0

12 months ago

2.147.0-alpha.0

1 year ago

2.147.1-alpha.0

1 year ago

2.147.2-alpha.0

1 year ago

2.149.0-alpha.0

1 year ago

2.142.1-alpha.0

1 year ago

2.142.0-alpha.0

1 year ago

2.141.0-alpha.0

1 year ago

2.140.0-alpha.0

1 year ago

2.139.1-alpha.0

1 year ago

2.139.0-alpha.0

1 year ago

2.138.0-alpha.0

1 year ago

2.137.0-alpha.0

1 year ago

2.136.1-alpha.0

1 year ago

2.136.0-alpha.0

1 year ago

2.135.0-alpha.0

1 year ago

2.134.0-alpha.0

1 year ago

2.133.0-alpha.0

1 year ago

2.132.1-alpha.0

1 year ago

2.132.0-alpha.0

1 year ago

2.131.0-alpha.0

1 year ago

2.130.0-alpha.0

1 year ago

2.129.0-alpha.0

1 year ago

2.128.0-alpha.0

1 year ago