fix(cloudformation): identify unsupported SAM Cognito authorizers (#3535)

Co-authored-by: xujiantop-crypto <265865031+xujiantop-crypto@users.noreply.github.com>
This commit is contained in:
XuJianandxujiantop-crypto authored and GitHub committed 2026-09-13 19:22:27 -05:00
1 parent 36c8396f25
commit 809ce40f1e
2 files changed
+36

No files matched your search

@@ -566,6 +566,13 @@ class SamTransformProcessor {
Map.Entry<String, JsonNode> entry = it.next();
String name = entry.getKey();
JsonNode config = entry.getValue();
if (config.has("UserPoolArn")
|| "COGNITO_USER_POOLS".equals(config.path("AuthType").asText())) {
throw new AwsException("ValidationError",
"SAM implicit REST API authorizer " + name
+ " configures a Cognito user pool authorizer, which Floci does not "
+ "support for SAM implicit REST APIs yet.", 400);
}
String payloadType = config.path("FunctionPayloadType").asText("TOKEN");
if (!"REQUEST".equals(payloadType)) {
throw new AwsException("ValidationError",