Skip to content

Commit

Permalink
Merge branch 'main' into conroy/awsrds
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jan 22, 2025
2 parents fb314ff + ed7d54d commit 7460c65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-pipes-sources-alpha/lib/streamSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export abstract class StreamSource extends SourceWithDeadLetterTarget {
validateBatchSize(this.sourceParameters.batchSize);
validateMaximumBatchingWindow(this.sourceParameters.maximumBatchingWindow?.toSeconds());
validateMaximumRecordAge(this.sourceParameters.maximumRecordAge?.toSeconds());
validateMaxiumRetryAttemps(this.sourceParameters.maximumRetryAttempts);
validateMaximumRetryAttempts(this.sourceParameters.maximumRetryAttempts);
validateParallelizationFactor(this.sourceParameters.parallelizationFactor);
}
}
Expand Down Expand Up @@ -120,7 +120,7 @@ function validateMaximumRecordAge(age?: number) {
}
}

function validateMaxiumRetryAttemps(attempts?: number) {
function validateMaximumRetryAttempts(attempts?: number) {
if (attempts !== undefined && !Token.isUnresolved(attempts)) {
if (attempts < -1 || attempts > 10000) {
throw new Error(`Maximum retry attempts must be between -1 and 10000, received ${attempts}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ describe('stream source validations', () => {
}).toThrow('Maximum retry attempts must be between -1 and 10000, received 10001');
});

it('validateMaxiumRetryAttemps works with a token', () => {
it('validateMaximumRetryAttempts works with a token', () => {
// ARRANGE
const app = new App();
const stack = new Stack(app, 'TestStack');
Expand Down

0 comments on commit 7460c65

Please sign in to comment.