fix(codedeploy): answer ApplicationNameRequiredException when applicationName is missing (#7392)

This commit is contained in:
Daniël van Ziel authored and GitHub committed 2026-11-03 08:25:53 -04:00
1 parent d0747f26d1
commit 52055b774e
3 files changed
+50

No files matched your search

@@ -353,6 +353,14 @@ public class CodeDeployService {
}
public Application getApplication(String region, String name) {
if (name == null || name.isEmpty()) {
throw new AwsException("ApplicationNameRequiredException",
"The minimum number of required characters for applicationName is 1.", 400);
}
if (name.isBlank()) {
throw new AwsException("InvalidApplicationNameException",
"The application name was specified in an invalid format.", 400);
}
Application app = applicationsFor(region).get(name);
if (app == null) {
throw new AwsException("ApplicationDoesNotExistException",