Update config.d.ts

Signed-off-by: Jin Wu <jin_kk666@163.com>
This commit is contained in:
Jin Wu
2022-12-02 22:41:21 +08:00
committed by Renan Mendes Carvalho
parent 2c2d656395
commit 99ae859cb0
+29
View File
@@ -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;
};
}
);
};
};