### 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_
def _wait_and_assume_role(role_arn: str, session_name: str = None):
        if not session_name:
            session_name = f"session-{short_uid()}"
        def assume_role():
            return aws_client.sts.assume_role(RoleArn=role_arn, RoleSessionName=session_name)[
                "Credentials"
            ]
        
        keys = retry(assume_role, sleep=5, retries=4)
        return keys
    return _wait_and_assume_role
@pytest.fixture
def create_role(aws_client):
    role_names = []
    def _create_role(**kwargs):
        if not kwargs.get("RoleName"):
            kwargs["RoleName"] = f"role-{short_uid()}"
        result = aws_client.iam.create_role(**kwargs)
        role_names.append(result["Role"]["RoleName"])
        return result
    yield _create_role
    for role_name in role_names: