From c44cc1c09bc6a82017402a71b47bdee125063be1 Mon Sep 17 00:00:00 2001 From: Magoz Date: Tue, 14 Feb 2023 22:03:07 +0100 Subject: [PATCH] Add missing types for AwsSigv4SignerOptions.service (#377) * Add missing types for AwsSigv4SignerOptions.service Signed-off-by: magoz * update changelog with Add missing types for AwsSigv4SignerOptions.service Signed-off-by: magoz * fix: service is optional Signed-off-by: magoz --------- Signed-off-by: magoz --- CHANGELOG.md | 3 +++ lib/aws/index.d.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a68ff9d98..74933a513 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,9 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Deprecated ### Removed ### Fixed +- Added missing types for AwsSigv4SignerOptions.service ([#377](https://github.com/opensearch-project/opensearch-js/pull/377)) + + ### Security - [CVE-2022-25912] Bumps simple-git from 3.4.0 to 3.15.0 ([#341](https://github.com/opensearch-project/opensearch-js/pull/341)) diff --git a/lib/aws/index.d.ts b/lib/aws/index.d.ts index a36b701c8..3d8e5c652 100644 --- a/lib/aws/index.d.ts +++ b/lib/aws/index.d.ts @@ -19,6 +19,7 @@ import { OpenSearchClientError } from '../errors'; interface AwsSigv4SignerOptions { getCredentials?: () => Promise; region: string; + service?: 'es' | 'aoss'; } interface AwsSigv4SignerResponse {