### Is there an existing issue for this?

- [X] I have searched the existing issues

### Enhancement description

AWS Lambda recently added support for Java 17 as managed runtime:
https://aws.amazon.com/about-aws/whats-new/2023/04/aws-lambda-java-17/



### 🧑‍💻 Implementation

_No response_

### Anything else?

_No response_
snapshot.match("first_invoke_result", first_invoke_result)
        second_invoke_result = aws_client.awslambda.invoke(FunctionName=func_name)
        snapshot.match("second_invoke_result", second_invoke_result)
    @pytest.mark.skipif(is_old_provider(), reason="old provider")
    @pytest.mark.aws_validated
    def test_lambda_invoke_with_timeout(self, create_lambda_function, snapshot, aws_client):
        
        regex = re.compile(r".*\s(?P<uuid>[-a-z0-9]+) Task timed out after \d.\d+ seconds")
        snapshot.add_transformer(
            KeyValueBasedTransformer(
                lambda k, v: regex.search(v).group("uuid") if k == "errorMessage" else None,
                "<timeout_error_msg>",
                replace_reference=False,
            )
        )
        func_name = f"test_lambda_{short_uid()}"
        create_result = create_lambda_function(
            func_name=func_name,
            handler_file=TEST_LAMBDA_TIMEOUT_PYTHON,
            runtime=Runtime.python3_8,
            client=aws_client.awslambda,
            timeout=1,
        )
        snapshot.match("create-result", create_result)
        result = aws_client.awslambda.invoke(
            FunctionName=func_name, Payload=json.dumps({"wait": 2})
        )
        snapshot.match("invoke-result", result)
        log_group_name = f"/aws/lambda/{func_name}"
        def _log_stream_available():