### 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_
Version: str
    Id: str
    Statement: list[dict]
@dataclasses.dataclass
class FunctionResourcePolicy:
    policy: ResourcePolicy
@dataclasses.dataclass
class EventInvokeConfig:
    function_name: str
    qualifier: str
    last_modified: Optional[str] = dataclasses.field(compare=False)
    destination_config: Optional[DestinationConfig] = None
    maximum_retry_attempts: Optional[int] = None
    maximum_event_age_in_seconds: Optional[int] = None
@dataclasses.dataclass
class InvocationResult:
    request_id: str
    payload: bytes | None
    executed_version: str | None = None
    logs: str | None = None
@dataclasses.dataclass
class InvocationError:
    request_id: str
    payload: bytes | None
    executed_version: str | None = None
    logs: str | None = None
@dataclasses.dataclass
class InvocationLogs: