fix(lambda): return event source mapping ARN and support tagging mappings (#4587)

* fix(lambda): return event source mapping ARN and support tagging mappings

CreateEventSourceMapping now stores Tags, every mapping response carries
EventSourceMappingArn, and TagResource/ListTags/UntagResource route
event-source-mapping ARNs to the mapping instead of rejecting them as
non-function ARNs.

* fix(lambda): address review on event source mapping ARN and tags

- CloudFormation builds EventSourceMappingArn from the region and account
  the mapping is stored in, not the stack's, so it matches Lambda's ARN.
- TagResource rejects a non-object Tags or a non-string tag value with
  SerializationException instead of persisting it.
- The tag APIs match a mapping ARN exactly, so an ARN in another partition
  is reported as ResourceNotFoundException.
- Explain the tolerated teardown failures in LambdaEsmTagsTest.
This commit is contained in:
Abhigya authored and GitHub committed 2026-09-28 23:43:54 -04:00
1 parent 76f8c09341
commit 0a786207d6
10 files changed
+484 -18

No files matched your search

+3 -3
View File
@@ -43,9 +43,9 @@ Floci Lambda runs your function code locally inside real Docker containers - clo
| `GetFunctionUrlConfig` | Read function URL config |
| `UpdateFunctionUrlConfig` | Update function URL config |
| `DeleteFunctionUrlConfig` | Delete function URL config |
| `ListTags` | List tags on a function |
| `TagResource` | Tag a function |
| `UntagResource` | Untag a function |
| `ListTags` | List tags on a function or event source mapping |
| `TagResource` | Tag a function or event source mapping |
| `UntagResource` | Untag a function or event source mapping |
| `PutFunctionConcurrency` | Set reserved concurrent executions |
| `GetFunctionConcurrency` | Get reserved concurrent executions |
| `DeleteFunctionConcurrency` | Clear reserved concurrent executions |