AWS Lambda now supports Java 17 as a managed runtime and a container base image in the AWS GovCloud (US) Regions. Developers creating serverless applications in Lambda with Java 17 can take advantage of new language features including Java records, sealed classes and multi-line strings. The Lambda Java 17 runtime also has numerous performance improvements. For more information on Lambda’s support for Java 17, see our blog post at Java 17 runtime now available in AWS Lambda.
Source:: Amazon AWS