Skip to content

Commit 0760175

Browse files
committed
update rosetta
1 parent 24122e3 commit 0760175

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

packages/@aws-cdk/aws-pipes-sources-alpha/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ const pipe = new pipes.Pipe(this, 'Pipe', {
6666
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.
6767

6868
```ts
69-
import * as kinesis from 'aws-cdk-lib/aws-kinesis';
70-
7169
declare const sourceStream: kinesis.Stream;
7270
declare const targetQueue: sqs.Queue;
7371

@@ -86,8 +84,6 @@ const pipe = new pipes.Pipe(this, 'Pipe', {
8684
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.
8785

8886
```ts
89-
import * as ddb from 'aws-cdk-lib/aws-dynamodb';
90-
9187
const table = new ddb.TableV2(stack, 'MyTable', {
9288
partitionKey: {
9389
name: 'id',

packages/@aws-cdk/aws-pipes-sources-alpha/lib/dynamodb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { IPipe, ISource, SourceConfig } from '@aws-cdk/aws-pipes-alpha';
22
import { Duration } from 'aws-cdk-lib';
3-
import { IRole } from 'aws-cdk-lib/aws-iam';
43
import { ITableV2 } from 'aws-cdk-lib/aws-dynamodb';
4+
import { IRole } from 'aws-cdk-lib/aws-iam';
55
import { DeadLetterConfigParameters } from './deadLetterConfig';
66
import { DynamoDBStartingPosition, OnPartialBatchItemFailure } from './enums';
77

packages/@aws-cdk/aws-pipes-sources-alpha/rosetta/default.ts-fixture

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Fixture with packages imported, but nothing else
22
import * as cdk from 'aws-cdk-lib';
33
import * as sqs from 'aws-cdk-lib/aws-sqs';
4+
import * as kinesis from 'aws-cdk-lib/aws-kinesis';
5+
import * as ddb from 'aws-cdk-lib/aws-dynamodb';
46
import { Construct } from 'constructs';
57
import * as pipes from '@aws-cdk/aws-pipes-alpha';
68
import * as sources from '@aws-cdk/aws-pipes-sources-alpha';

packages/@aws-cdk/aws-pipes-sources-alpha/test/integ.dynamodb.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ const message = test.assertions.awsApiCall('SQS', 'receiveMessage', {
6161
QueueUrl: targetQueue.queueUrl,
6262
});
6363

64-
message.assertAtPath('Messages.0.Body.dynamodb.Keys.id.S', ExpectedResult.exact('1')).waitForAssertions({
65-
totalTimeout: cdk.Duration.minutes(3),
64+
message.assertAtPath('Messages.0.Body.dynamodb.Keys.id.S', ExpectedResult.stringLikeRegexp('"1"')).waitForAssertions({
65+
totalTimeout: cdk.Duration.minutes(2),
6666
interval: cdk.Duration.seconds(15),
6767
});
6868

0 commit comments

Comments
 (0)