[http-aws-es] update ConfigOptions to support awsConfig key

This commit is contained in:
Lee Henson
2019-01-25 11:48:10 +00:00
parent 7c13736555
commit f2d7483269
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -3,7 +3,7 @@ import { Client } from "elasticsearch";
import HttpAmazonESConnector = require("http-aws-es");
new Client({
amazonES: {
awsConfig: {
accessKey: "AKID",
region: "us-east-1",
secretKey: "secret",
@@ -13,7 +13,7 @@ new Client({
});
new Client({
amazonES: {
awsConfig: {
accessKey: "AKID",
region: "us-east-1",
secretKey: "secret",
@@ -24,7 +24,7 @@ new Client({
const myCredentials = new EnvironmentCredentials("AWS");
new Client({
amazonES: {
awsConfig: {
credentials: myCredentials,
region: "us-east-1",
},
@@ -33,7 +33,7 @@ new Client({
});
new Client({
amazonES: {
awsConfig: {
credentials: myCredentials,
region: "us-east-1",
},
+2 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for http-aws-es 1.1
// Type definitions for http-aws-es 6.0
// Project: https://github.com/TheDeveloper/http-aws-es#readme
// Definitions by: Marco Gonzalez <https://github.com/marcogrcr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -18,7 +18,7 @@ declare module "elasticsearch" {
}
interface ConfigOptions {
amazonES?: AmazonESOptions;
awsConfig?: AmazonESOptions;
}
}