Connect AWS Kubernetes weaviate via python v4 version

Before I use python v3 to connect AWS Kubernetes weaviate use below code:
client = weaviate.Client(
url = " ********* “,
auth_client_secret=weaviate.auth.AuthApiKey(api_key=” ******* "),
additional_headers= {
“X-AWS-Access-Key”: " ******** ",
“X-AWS-Secret-Key”: " ******** ",
}
)

could you help me refactor above code with python v4 version.

hi @alisha_liu !

The new python v4 also uses GRPC. Because of that, it will also expect a listening GRPC service on port 50051.

This was also changed in our helm chart

Let me know if this helps!

Thanks!