Skip to content

Commit ed7d54d

Browse files
authored
refactor(pipes-source-alpha): fix function name (#33028)
### Issue # (if applicable) None ### Reason for this change Fixed a typo in a function name in code. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent fae97a3 commit ed7d54d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export abstract class StreamSource extends SourceWithDeadLetterTarget {
9090
validateBatchSize(this.sourceParameters.batchSize);
9191
validateMaximumBatchingWindow(this.sourceParameters.maximumBatchingWindow?.toSeconds());
9292
validateMaximumRecordAge(this.sourceParameters.maximumRecordAge?.toSeconds());
93-
validateMaxiumRetryAttemps(this.sourceParameters.maximumRetryAttempts);
93+
validateMaximumRetryAttempts(this.sourceParameters.maximumRetryAttempts);
9494
validateParallelizationFactor(this.sourceParameters.parallelizationFactor);
9595
}
9696
}
@@ -120,7 +120,7 @@ function validateMaximumRecordAge(age?: number) {
120120
}
121121
}
122122

123-
function validateMaxiumRetryAttemps(attempts?: number) {
123+
function validateMaximumRetryAttempts(attempts?: number) {
124124
if (attempts !== undefined && !Token.isUnresolved(attempts)) {
125125
if (attempts < -1 || attempts > 10000) {
126126
throw new Error(`Maximum retry attempts must be between -1 and 10000, received ${attempts}`);

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ describe('stream source validations', () => {
199199
}).toThrow('Maximum retry attempts must be between -1 and 10000, received 10001');
200200
});
201201

202-
it('validateMaxiumRetryAttemps works with a token', () => {
202+
it('validateMaximumRetryAttempts works with a token', () => {
203203
// ARRANGE
204204
const app = new App();
205205
const stack = new Stack(app, 'TestStack');

0 commit comments

Comments
 (0)