Skip to content

Commit

Permalink
Update: Made Master user name required for DB cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
Russsnizza committed Sep 19, 2024
1 parent 1cdc8e0 commit afaeaf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/gyro/aws/rds/DbClusterResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ public String getMasterUsername() {
}

public void setMasterUsername(String masterUsername) {
if (masterUsername == null || masterUsername.isEmpty()) {
throw new GyroException("Master username cannot be null or empty");
}

this.masterUsername = masterUsername;
}

Expand Down

0 comments on commit afaeaf6

Please sign in to comment.