I am attempting to follow the AWS documentation for using the Node SDK to perform a signed HTTP request to Elasticsearch (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-request-signing.html#es-request-signing-node).
In the example, they use a class Aws.HttpClient to actually execute the request. But I have installed aws-sdk
version 2.517.0 and HttpClient is not exposed by the aws-sdk
object I import. My TypeScript autocompletion only indicates HttpRequest and HttpResponse and I can't compile if I use Aws.HttpClient.
But if I dig into node_modules/aws-sdk/lib/http.js I can see AWS.HttpClient.
What do I have to do to access it? Or is the documentation outdated?