### 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_
url: str,
        *,
        use_hostname_external: bool = False,
        use_localstack_hostname: bool = False,
        use_localstack_cloud: bool = False,
        use_localhost: bool = False,
        custom_host: Optional[str] = None,
    ):
        if use_hostname_external:
            assert hostname_external in url
            assert localstack_hostname not in url
            assert constants.LOCALHOST_HOSTNAME not in url
            assert constants.LOCALHOST not in url
        elif use_localstack_hostname:
            assert localstack_hostname in url
            assert hostname_external not in url
            assert constants.LOCALHOST_HOSTNAME not in url
            assert constants.LOCALHOST not in url
        elif use_localstack_cloud:
            assert constants.LOCALHOST_HOSTNAME in url
            assert hostname_external not in url
            assert localstack_hostname not in url