### 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_
Action=action,
            StatementId=sid,
            Principal=principal,
            SourceArn=arns.s3_bucket_arn("test-bucket"),
        )
        snapshot.match("add_permission", resp)
        
        get_policy_result = aws_client.awslambda.get_policy(FunctionName=function_name)
        snapshot.match("get_policy", get_policy_result)
    @pytest.mark.skipif(condition=is_old_provider(), reason="not supported")
    @pytest.mark.aws_validated
    def test_lambda_permission_fn_versioning(
        self, create_lambda_function, account_id, snapshot, aws_client
    ):
        """Testing how lambda permissions behave when publishing different function versions and using qualifiers"""
        function_name = f"lambda_func-{short_uid()}"
        create_lambda_function(
            handler_file=TEST_LAMBDA_PYTHON_ECHO,
            func_name=function_name,
            runtime=Runtime.python3_9,
        )
        
        action = "lambda:InvokeFunction"
        sid = "s3"
        principal = "s3.amazonaws.com"
        resp = aws_client.awslambda.add_permission(
            FunctionName=function_name,
            Action=action,
            StatementId=sid,
            Principal=principal,