From 99ae859cb000659b3f86051d24e03c11dfe3945e Mon Sep 17 00:00:00 2001 From: Jin Wu Date: Fri, 2 Dec 2022 22:41:21 +0800 Subject: [PATCH] Update config.d.ts Signed-off-by: Jin Wu --- .../config.d.ts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/plugins/search-backend-module-elasticsearch/config.d.ts b/plugins/search-backend-module-elasticsearch/config.d.ts index 95e527b236..2428d44b84 100644 --- a/plugins/search-backend-module-elasticsearch/config.d.ts +++ b/plugins/search-backend-module-elasticsearch/config.d.ts @@ -138,6 +138,35 @@ export interface Config { bearer: string; };*/ } + /** + * AWS = In house hosting Open Search + */ + | { + provider: 'opensearch'; + /** + * Node configuration. + * URL/URLS to OpenSearch node to connect to. + * Either direct URL like 'https://localhost:9200' or with credentials like 'https://username:password@localhost:9200' + */ + node: string | string[]; + + /** + * Authentication credentials for OpenSearch + * If both ApiKey/Bearer token and username+password is provided, tokens take precedence + */ + auth?: + | { + username: string; + + /** + * @visibility secret + */ + password: string; + } + | { + apiKey: string; + }; + } ); }; };