@aws-cdk/aws-pipes-sources-alpha
TypeScript icon, indicating that this package has built-in type declarations

2.171.0-alpha.0 • Public • Published

Amazon EventBridge Pipes Sources 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 Sources let you create a source for a EventBridge Pipe.

For more details see the service documentation:

Documentation

Pipe sources

Pipe sources are the starting point of a EventBridge Pipe. They are the source of the events that are sent to the pipe.

Amazon SQS

A SQS message queue can be used as a source for a pipe. The queue will be polled for new messages and the messages will be sent to the pipe.

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

const pipeSource = new sources.SqsSource(sourceQueue);

const pipe = new pipes.Pipe(this, 'Pipe', {
  source: pipeSource,
  target: new SqsTarget(targetQueue)
});

The polling configuration can be customized:

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

const pipeSource = new sources.SqsSource(sourceQueue, {
  batchSize: 10,
  maximumBatchingWindow: cdk.Duration.seconds(10)
});

const pipe = new pipes.Pipe(this, 'Pipe', {
  source: pipeSource,
  target: new SqsTarget(targetQueue)
});

Amazon Kinesis

A Kinesis stream can be used as a source for a pipe. The stream will be polled for new messages and the messages will be sent to the pipe.

declare const sourceStream: kinesis.Stream;
declare const targetQueue: sqs.Queue;

const pipeSource = new sources.KinesisSource(sourceStream, {
  startingPosition: sources.KinesisStartingPosition.LATEST,
});

const pipe = new pipes.Pipe(this, 'Pipe', {
  source: pipeSource,
  target: new SqsTarget(targetQueue)
});

Amazon DynamoDB

A DynamoDB stream can be used as a source for a pipe. The stream will be polled for new messages and the messages will be sent to the pipe.

const table = new ddb.TableV2(this, 'MyTable', {
  partitionKey: {
    name: 'id',
    type: ddb.AttributeType.STRING,
  },
  dynamoStream: ddb.StreamViewType.NEW_IMAGE,
});
declare const targetQueue: sqs.Queue;

const pipeSource = new sources.DynamoDBSource(table, {
  startingPosition: sources.DynamoDBStartingPosition.LATEST,
});

const pipe = new pipes.Pipe(this, 'Pipe', {
  source: pipeSource,
  target: new SqsTarget(targetQueue)
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.171.0-alpha.070latest

Version History

VersionDownloads (Last 7 Days)Published
2.171.0-alpha.070
2.170.0-alpha.0100
2.169.0-alpha.059
2.168.0-alpha.066
2.167.2-alpha.063
2.167.1-alpha.022
2.167.0-alpha.02
2.166.0-alpha.039
2.165.0-alpha.021
2.164.1-alpha.0117
2.164.0-alpha.023
2.163.1-alpha.00
2.163.0-alpha.00
2.162.1-alpha.0227
2.162.0-alpha.00
2.161.1-alpha.02
2.161.0-alpha.033
2.160.0-alpha.01
2.159.1-alpha.00
2.159.0-alpha.00
2.158.0-alpha.01
2.157.0-alpha.00
2.156.0-alpha.00
2.155.0-alpha.01
2.154.1-alpha.020
2.154.0-alpha.01
2.153.0-alpha.00
2.152.0-alpha.00
2.151.1-alpha.01
2.151.0-alpha.01
2.150.0-alpha.02
2.149.0-alpha.06
2.148.1-alpha.01
2.148.0-alpha.01
2.147.3-alpha.0116
2.147.2-alpha.01
2.147.1-alpha.01
2.147.0-alpha.01
2.146.0-alpha.0150
2.145.0-alpha.00
2.144.0-alpha.023
2.143.1-alpha.06
2.143.0-alpha.00
2.142.1-alpha.01
2.142.0-alpha.01
2.141.0-alpha.00
2.140.0-alpha.00
2.139.1-alpha.00
2.139.0-alpha.00
2.138.0-alpha.01
2.137.0-alpha.01
2.136.1-alpha.01
2.136.0-alpha.00
2.135.0-alpha.01
2.134.0-alpha.01
2.133.0-alpha.01
2.132.1-alpha.02
2.132.0-alpha.02
2.131.0-alpha.02
2.130.0-alpha.02
2.129.0-alpha.02
2.128.0-alpha.07
2.127.0-alpha.02

Package Sidebar

Install

npm i @aws-cdk/aws-pipes-sources-alpha

Weekly Downloads

1,205

Version

2.171.0-alpha.0

License

Apache-2.0

Unpacked Size

230 kB

Total Files

24

Last publish

Collaborators

  • amzn-oss
  • aws-cdk-team