### 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_
],
            "Resource": [
                "*"
            ]
        }
    ]
}
""".strip()
@pytest.fixture
def create_lambda_function_aws(aws_client):
    lambda_arns = []
    def _create_lambda_function(**kwargs):
        def _create_function():
            resp = aws_client.awslambda.create_function(**kwargs)
            lambda_arns.append(resp["FunctionArn"])
            def _is_not_pending():
                try:
                    result = (
                        aws_client.awslambda.get_function(FunctionName=resp["FunctionName"])[
                            "Configuration"
                        ]["State"]
                        != "Pending"
                    )
                    return result
                except Exception as e:
                    LOG.error(e)
                    raise
            wait_until(_is_not_pending)
            return resp