fix(stepfunctions): accept SDK Uuid for mapping updates (#7720)

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
This commit is contained in:
Andre Kurait authored and GitHub committed 2026-11-07 02:28:31 -04:00
1 parent 856970a24f
commit cab81a268b
4 files changed
+40 -10

No files matched your search

@@ -104,12 +104,12 @@ public class SdkManagementTaskInvoker {
input.path("EventSourceArn").asText(null));
}
case "updateEventSourceMapping" -> {
String uuid = input.path("UUID").asText(null);
String uuid = input.path("Uuid").asText(null);
if (uuid == null || uuid.isBlank()) {
throw new AwsException("InvalidParameterValueException", "UUID is required.", 400);
throw new AwsException("InvalidParameterValueException", "Uuid is required.", 400);
}
ObjectNode request = input.deepCopy();
request.remove("UUID");
request.remove("Uuid");
yield lambda.updateEventSourceMapping(uuid, request.toString());
}
default -> throw new IllegalStateException("Unsupported Lambda management action");