### 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_
policy_name = policy_name or f"p-{short_uid()}"
        policy = create_policy_doc(effect, actions, resource=resource)
        response = create_policy(PolicyName=policy_name, PolicyDocument=json.dumps(policy))
        policy_arn = response["Policy"]["Arn"]
        return policy_arn
    return _create_policy_with_doc
@pytest.fixture
def create_role_with_policy(create_role, create_policy_generated_document, aws_client):
    def _create_role_with_policy(effect, actions, assume_policy_doc, resource=None, attach=True):
        role_name = f"role-{short_uid()}"
        result = create_role(RoleName=role_name, AssumeRolePolicyDocument=assume_policy_doc)
        role_arn = result["Role"]["Arn"]
        policy_name = f"p-{short_uid()}"
        if attach:
            
            policy_arn = create_policy_generated_document(
                effect, actions, policy_name=policy_name, resource=resource
            )
            aws_client.iam.attach_role_policy(RoleName=role_name, PolicyArn=policy_arn)
        else:
            
            policy_document = create_policy_doc(effect, actions, resource=resource)
            policy_document = json.dumps(policy_document)
            aws_client.iam.put_role_policy(
                RoleName=role_name, PolicyName=policy_name, PolicyDocument=policy_document
            )
        return role_name, role_arn
    return _create_role_with_policy
@pytest.fixture
def create_user_with_policy(create_policy_generated_document, create_user, aws_client):