mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 23:00:59 -05:00
* fix(lambda): validate enum and pattern-constrained request fields CreateFunction, UpdateFunctionConfiguration, PublishLayerVersion, the event source mapping calls, and the function URL calls now reject values outside the botocore Runtime/Architecture/FunctionResponseType/FunctionUrlAuthType/InvokeMode enums and the Role/Handler/KMSKeyArn/LayerVersionArn/Alias/Arn patterns (including AWS-managed awslayer ARNs and eusc- regions), and ListEventSourceMappings honors its EventSourceArn filter. Constraint failures use ValidationException, matching the existing pattern checks in LambdaArnUtils. * fix(lambda): validate KMSKeyArn on update, alias names, event source ARNs, and PackageType Adds KMSKeyArn pattern on UpdateFunctionConfiguration, alias name pattern and length on Create/UpdateAlias, EventSourceArn pattern on CreateEventSourceMapping, and PackageType enum on CreateFunction. * fix(lambda): accept every botocore NamespacedFunctionName in ListEventSourceMappings Add eusc- region, dotted names and $LATEST.PUBLISHED to the function name pattern. * fix(lambda): reject non-list members and validate before mutating on update UpdateFunctionUrlConfig now validates AuthType and InvokeMode before applying either, so a rejected request leaves the stored config unchanged. A non-list Layers, CompatibleRuntimes or CompatibleArchitectures is a SerializationException instead of being read as absent. Get and DeleteFunctionUrlConfig enforce the FunctionUrlQualifier constraint, UpdateFunctionConfiguration enforces the 256 character Description limit, and an empty or missing alias name is rejected.