mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
[http-aws-es] update ConfigOptions to support awsConfig key
This commit is contained in:
@@ -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",
|
||||
},
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user