fix(cloudformation): persist FunctionResponseTypes on Lambda::EventSourceMapping (#2964)

provisionLambdaEventSourceMapping never read the FunctionResponseTypes property, so a CFN-provisioned mapping always came back with an empty list even when the template declared it, unlike the direct CreateEventSourceMapping path. Partial batch responses were therefore ignored for CFN-deployed SQS to Lambda mappings. The property is resolved the way the arm's other array properties are, through resolveStringList, and the integration test pins the persisted value.

Fixes #2848
This commit is contained in:
Olamide Kosile authored and GitHub committed 2026-09-02 20:22:33 -05:00
1 parent 8c2619f965
commit 9e2c03158d
2 files changed
+16 -1

No files matched your search

@@ -4117,6 +4117,11 @@ public class CloudFormationResourceProvisioner {
}
}
List<String> functionResponseTypes = resolveStringList(props, "FunctionResponseTypes", engine);
if (!functionResponseTypes.isEmpty()) {
req.put("FunctionResponseTypes", functionResponseTypes);
}
var esm = lambdaService.createEventSourceMapping(region, req);
r.setPhysicalId(esm.getUuid());
r.getAttributes().put("Id", esm.getUuid());