From b28142801644c1de553f0a15985db8fb736fa4bd Mon Sep 17 00:00:00 2001 From: Russsnizza <134000942+Russsnizza@users.noreply.github.com> Date: Thu, 26 Sep 2024 12:02:26 -0500 Subject: [PATCH] Add @Required for master-username --- src/main/java/gyro/aws/rds/DbClusterResource.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/gyro/aws/rds/DbClusterResource.java b/src/main/java/gyro/aws/rds/DbClusterResource.java index 0991375fd..d961be9c1 100644 --- a/src/main/java/gyro/aws/rds/DbClusterResource.java +++ b/src/main/java/gyro/aws/rds/DbClusterResource.java @@ -392,15 +392,12 @@ public void setMasterUserPassword(String masterUserPassword) { /** * The name of the master user for the DB cluster. */ + @Required public String getMasterUsername() { return masterUsername; } public void setMasterUsername(String masterUsername) { - if (masterUsername == null || masterUsername.isEmpty()) { - throw new GyroException("Master username cannot be null or empty"); - } - this.masterUsername = masterUsername; }