Comments (6)
the new version has not been deployed with managed Lambda runtimes yet. Meantime, you can use either OCI deployment or wrapper to package 1.1.5 along with your function
from aws-lambda-java-libs.
Hi @smirnoal!
Didn't had the chance yet to include this update in the pipeline - is planned to be included during 2024 Q2 maintenance.
From my side, consider this issue closed, as it is working locally.
from aws-lambda-java-libs.
Answering my own question...
Why?
Because the DynamodbEvent.DynamodbStreamRecord
and nested classes are not registered in LambdaEventSerializers#NESTED_CLASS_MAP
.
Refer to Add support for DynamodbEvent.DynamodbStreamRecord serialization #455
from aws-lambda-java-libs.
After Add support for DynamodbEvent.DynamodbStreamRecord serialization #455 included in aws-lambda-java-serialization v1.1.5, although everything works locally and all added tests pass successfully, when running in AWS Lambda (runtime Java17) the DynamodbEvent.DynamodbStreamRecord#dynamodb
is still not parsed correctly:
{
"eventID": "_Event::Id_",
"awsRegion": "eu-west-1",
"eventSourceARN": "arn:aws:dynamodb:eu-west-1:_AWS::Account_:table/_DDB::Table_/stream/_DDB::Stream::Id_",
"eventVersion": "1.1",
"eventSource": "aws:dynamodb",
"eventName": "REMOVE",
"userIdentity": null,
"dynamodb": {
"streamViewType": null,
"sequenceNumber": null,
"approximateCreationDateTime": null,
"newImage": null,
"keys": null,
"oldImage": null,
"sizeBytes": null
}
}
Using:
import com.amazonaws.services.lambda.runtime.events.DynamodbEvent;
LambdaEventSerializers.serializerFor(DynamodbEvent.DynamodbStreamRecord.class,
Thread.currentThread().getContextClassLoader());
// using ClassLoader.getSystemClassLoader() fails with:
// com.amazonaws.services.lambda.runtime.serialization.util.ReflectUtil$ReflectException:
// java.lang.ClassNotFoundException: org.joda.time.DateTime
Why? What am I missing?
from aws-lambda-java-libs.
the new version has not been deployed with managed Lambda runtimes yet. Meantime, you can use either OCI deployment or wrapper to package 1.1.5 along with your function
Thanks @smirnoal
from aws-lambda-java-libs.
just checking if it works in the managed runtime now
from aws-lambda-java-libs.
Related Issues (20)
- Simulate AWS runtime environment for lambda in local run. HOT 3
- KinesisEvent not parsed correctly HOT 2
- Incomplete and/or missing API Gateway Lambda Authorizer events HOT 5
- RequestStreamHandler not working as expect HOT 2
- AWS lamba core reactive types HOT 2
- EventLoader unable to correctly deserialize posted json body data for APIGateway events HOT 2
- Failed to serialize CognitoUserPoolPreTokenGenerationEvent HOT 7
- Support VPC Lattice event structure
- APIGatewayProxyRequestEvent$RequestIdentity missing "cognitoAmr" field HOT 2
- Unable to upgrade with newer Jackson - conflicting `com.fasterxml.jackson.annotation.JsonFormat` HOT 5
- SNSEvent Jackson mixins are Incomplete HOT 6
- Support v2 of Pre Token Generation Lambda HOT 1
- AWS documentation says LambdaLogger will default to the INFO log level, but it is actually defaulting to UNDEFINED HOT 2
- resolved
- Why does amazon not support a unified naming standard for java libs? HOT 1
- Response streaming support for java lambda HOT 1
- APIGatewayV2HTTPEvent does not properly deserialize event HOT 1
- CognitoUserPoolPreTokenGenerationEvent Only supports V1 of the event HOT 1
- Scheduled Event (V2) contains non-object detail parameter (it is a string)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-lambda-java-libs.