Skip to content

Commit

Permalink
fix(rds): improve auto-pause duration validation formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanazharkhan committed Feb 14, 2025
1 parent a252cbf commit 418288e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/aws-cdk-lib/aws-rds/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,8 @@ abstract class DatabaseClusterNew extends DatabaseClusterBase {

const autoPauseSeconds = this.secondsUntilAutoPause;
if (autoPauseSeconds && (autoPauseSeconds < 300 || autoPauseSeconds > 86400)) {
throw new ValidationError(`The auto-pause duration must be between 300 seconds (5 minutes) and 86400 seconds (24 hours). Received: ${autoPauseSeconds} seconds`, this);
throw new ValidationError(`The auto-pause duration must be between 300 seconds (5 minutes) and 86400 seconds (24 hours).
Received: ${autoPauseSeconds} seconds`, this);
}

}
Expand Down

0 comments on commit 418288e

Please sign in to comment.