aws-cdk.aws-pipes-sources-alpha 2.159.0a0

Last updated:

0 purchases

aws-cdk.aws-pipes-sources-alpha 2.159.0a0 Image
aws-cdk.aws-pipes-sources-alpha 2.159.0a0 Images
Add to Cart

Description:

awscdk.awspipessourcesalpha 2.159.0a0

Amazon EventBridge Pipes Sources Construct Library
---


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.
# source_queue: sqs.Queue
# target_queue: sqs.Queue


pipe_source = sources.SqsSource(source_queue)

pipe = pipes.Pipe(self, "Pipe",
source=pipe_source,
target=SomeTarget(target_queue)
)

The polling configuration can be customized:
# source_queue: sqs.Queue
# target_queue: sqs.Queue


pipe_source = sources.SqsSource(source_queue,
batch_size=10,
maximum_batching_window=cdk.Duration.seconds(10)
)

pipe = pipes.Pipe(self, "Pipe",
source=pipe_source,
target=SomeTarget(target_queue)
)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.