Skip to content

Commit

Permalink
fix readme, update int test
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Mar 16, 2024
1 parent ac8f444 commit 3960068
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 43 deletions.
4 changes: 3 additions & 1 deletion packages/@aws-cdk/aws-pipes-sources-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ const pipe = new pipes.Pipe(this, 'Pipe', {
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.

```ts
import * as kinesis from 'aws-cdk-lib/aws-kinesis';

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

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

const pipe = new pipes.Pipe(this, 'Pipe', {
Expand Down

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
@@ -1,6 +1,6 @@
{
"Resources": {
"SourceKinesisStream2376424EB": {
"SourceKinesisStreamD9B33274": {
"Type": "AWS::Kinesis::Stream",
"Properties": {
"RetentionPeriodHours": 24,
Expand Down Expand Up @@ -60,7 +60,7 @@
"Effect": "Allow",
"Resource": {
"Fn::GetAtt": [
"SourceKinesisStream2376424EB",
"SourceKinesisStreamD9B33274",
"Arn"
]
}
Expand Down Expand Up @@ -101,7 +101,7 @@
},
"Source": {
"Fn::GetAtt": [
"SourceKinesisStream2376424EB",
"SourceKinesisStreamD9B33274",
"Arn"
]
},
Expand Down Expand Up @@ -143,15 +143,15 @@
}
},
"Outputs": {
"ExportsOutputFnGetAttSourceKinesisStream2376424EBArnEEBEE728": {
"ExportsOutputFnGetAttSourceKinesisStreamD9B33274Arn1A7BEAA1": {
"Value": {
"Fn::GetAtt": [
"SourceKinesisStream2376424EB",
"SourceKinesisStreamD9B33274",
"Arn"
]
},
"Export": {
"Name": "aws-cdk-pipes-sources-kinesis-stream:ExportsOutputFnGetAttSourceKinesisStream2376424EBArnEEBEE728"
"Name": "aws-cdk-pipes-sources-kinesis-stream:ExportsOutputFnGetAttSourceKinesisStreamD9B33274Arn1A7BEAA1"
}
},
"ExportsOutputRefTargetQueue08AD2B3C0C69AE0E": {
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.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { KinesisSource, StartingPosition } from '../lib';

const app = new cdk.App();
const stack = new cdk.Stack(app, 'aws-cdk-pipes-sources-kinesis-stream');
const sourceKinesisStream = new cdk.aws_kinesis.Stream(stack, 'SourceKinesisStream2');
const sourceKinesisStream = new cdk.aws_kinesis.Stream(stack, 'SourceKinesisStream');
const targetQueue = new cdk.aws_sqs.Queue(stack, 'TargetQueue');

class TestTarget implements ITarget {
Expand Down

0 comments on commit 3960068

Please sign in to comment.