### 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_
with pytest.raises(ClientError) as exc:
            aws_client.awslambda.get_function(FunctionName=function_name)
        assert exc.match("ResourceNotFoundException")
    @pytest.mark.aws_validated
    @pytest.mark.skip_snapshot_verify(
        condition=is_old_provider,
        paths=[
            "$..CodeSha256",
            "$..EphemeralStorage",
            "$..LastUpdateStatus",
            "$..MemorySize",
            "$..ResponseMetadata",
            "$..State",
            "$..StateReason",
            "$..StateReasonCode",
            "$..VpcConfig",
        ],
    )
    def test_lambda_envvars_near_limit_succeeds(self, create_lambda_function, snapshot, aws_client):
        """Lambda functions with environments less than or equal to 4 KB can be created."""
        snapshot.add_transformer(snapshot.transform.lambda_api())
        
        key = "LARGE_VAR"
        key_bytes = string_length_bytes(key)
        
        target_size = 4 * KB - 7
        large_envvar_bytes = target_size - key_bytes
        large_envvar = "x" * large_envvar_bytes
        function_name = f"large-envvar-lambda-{short_uid()}"
        res = create_lambda_function(