From f2d7483269a697f3de8dd5b07e50d7aa4c1cfa0e Mon Sep 17 00:00:00 2001 From: Lee Henson Date: Fri, 25 Jan 2019 11:48:10 +0000 Subject: [PATCH] [http-aws-es] update ConfigOptions to support awsConfig key --- types/http-aws-es/http-aws-es-tests.ts | 8 ++++---- types/http-aws-es/index.d.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/types/http-aws-es/http-aws-es-tests.ts b/types/http-aws-es/http-aws-es-tests.ts index df432dbab4..acd5248817 100644 --- a/types/http-aws-es/http-aws-es-tests.ts +++ b/types/http-aws-es/http-aws-es-tests.ts @@ -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", }, diff --git a/types/http-aws-es/index.d.ts b/types/http-aws-es/index.d.ts index 91e12604f8..15a803076f 100644 --- a/types/http-aws-es/index.d.ts +++ b/types/http-aws-es/index.d.ts @@ -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 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -18,7 +18,7 @@ declare module "elasticsearch" { } interface ConfigOptions { - amazonES?: AmazonESOptions; + awsConfig?: AmazonESOptions; } }