@aws-cdk/aws-pipes-targets-alpha module
Language | Package |
---|---|
.NET | Amazon.CDK.AWS.Pipes.Targets.Alpha |
Go | github.com/aws/aws-cdk-go/awscdkpipestargetsalpha/v2 |
Java | software.amazon.awscdk.services.pipes.targets.alpha |
Python | aws_cdk.aws_pipes_targets_alpha |
TypeScript | @aws-cdk/aws-pipes-targets-alpha |
Amazon EventBridge Pipes Targets 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 Targets let you create a target for a EventBridge Pipe.
For more details see the service documentation:
Targets
Pipe targets are the end point of a EventBridge Pipe.
Amazon SQS
A SQS message queue can be used as a target for a pipe. Messages will be pushed to the queue.
declare const sourceQueue: sqs.Queue;
declare const targetQueue: sqs.Queue;
const pipeTarget = new targets.SqsTarget(targetQueue);
const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SomeSource(sourceQueue),
target: pipeTarget
});
The target configuration can be transformed:
declare const sourceQueue: sqs.Queue;
declare const targetQueue: sqs.Queue;
const pipeTarget = new targets.SqsTarget(targetQueue,
{
inputTransformation: pipes.InputTransformation.fromObject(
{
"SomeKey": pipes.DynamicInput.fromEventPath('$.body')
})
}
);
const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SomeSource(sourceQueue),
target: pipeTarget
});