mirror of
https://github.com/floci-io/floci.git
synced 2026-11-28 16:11:48 -05:00
fix(stepfunctions): accept SDK Uuid for mapping updates (#7720)
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user