Skip to content

Commit

Permalink
update rosetta
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Mar 16, 2024
1 parent 24122e3 commit 0760175
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 0 additions & 4 deletions packages/@aws-cdk/aws-pipes-sources-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ 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;

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

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

const table = new ddb.TableV2(stack, 'MyTable', {
partitionKey: {
name: 'id',
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-pipes-sources-alpha/lib/dynamodb.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IPipe, ISource, SourceConfig } from '@aws-cdk/aws-pipes-alpha';
import { Duration } from 'aws-cdk-lib';
import { IRole } from 'aws-cdk-lib/aws-iam';
import { ITableV2 } from 'aws-cdk-lib/aws-dynamodb';
import { IRole } from 'aws-cdk-lib/aws-iam';
import { DeadLetterConfigParameters } from './deadLetterConfig';
import { DynamoDBStartingPosition, OnPartialBatchItemFailure } from './enums';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Fixture with packages imported, but nothing else
import * as cdk from 'aws-cdk-lib';
import * as sqs from 'aws-cdk-lib/aws-sqs';
import * as kinesis from 'aws-cdk-lib/aws-kinesis';
import * as ddb from 'aws-cdk-lib/aws-dynamodb';
import { Construct } from 'constructs';
import * as pipes from '@aws-cdk/aws-pipes-alpha';
import * as sources from '@aws-cdk/aws-pipes-sources-alpha';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ const message = test.assertions.awsApiCall('SQS', 'receiveMessage', {
QueueUrl: targetQueue.queueUrl,
});

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

Expand Down

0 comments on commit 0760175

Please sign in to comment.