Skip to content

Commit

Permalink
Update integration test to use SqsSource
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Sep 29, 2024
1 parent 8d4f21e commit 48ddddf
Show file tree
Hide file tree
Showing 11 changed files with 683 additions and 517 deletions.
19 changes: 18 additions & 1 deletion packages/@aws-cdk/aws-pipes-targets-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,24 @@ const streamTarget = new targets.KinesisTarget(targetStream, {
});

const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SomeSource(sourceQueue),
source: new SqsSource(sourceQueue),
target: streamTarget,
});
```

The input to the target data stream can be transformed:

```ts
declare const sourceQueue: sqs.Queue;
declare const targetStream: kinesis.Stream;

const streamTarget = new targets.KinesisTarget(targetStream, {
partitionKey: 'pk',
inputTransformation: pipes.InputTransformation.fromObject({ body: "👀" }),
});

const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SqsSource(sourceQueue),
target: streamTarget,
});
```

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@
"Arn"
]
},
"SourceParameters": {
"SqsQueueParameters": {
"BatchSize": 1
}
},
"SourceParameters": {},
"Target": {
"Fn::GetAtt": [
"TargetStream3B4B2880",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 48ddddf

Please sign in to comment.