Skip to content

Commit

Permalink
fix service code
Browse files Browse the repository at this point in the history
  • Loading branch information
Chang Liu committed Mar 14, 2024
1 parent 0a9de12 commit 4530f1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugins/data_source/common/data_sources/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ export enum AuthType {
}

export enum SigV4ServiceName {
OpenSearch = 'es',
OpenSearch = 'aoss',
OpenSearchServerless = 'aoss',
}
2 changes: 1 addition & 1 deletion src/plugins/data_source/server/client/configure_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const getAWSSigV4Client = (rootClient: Client, credential: SigV4Content): Client
[AOSD_HEADER_SECRET_KEY]: secretKey,
[AOSD_HEADER_SESSION_TOKEN]: sessionToken,
[AOSD_HEADER_REGION]: region,
[AOSD_HEADER_SERVICE]: 'es',
[AOSD_HEADER_SERVICE]: 'aoss',
},
});
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ const getAWSSigV4Client = async (
[AOSD_HEADER_SECRET_KEY]: secretKey,
[AOSD_HEADER_SESSION_TOKEN]: sessionToken,
[AOSD_HEADER_REGION]: region,
[AOSD_HEADER_SERVICE]: 'es',
[AOSD_HEADER_SERVICE]: 'aoss',
};
clientParams.headers = Object.assign({}, clientParams.headers, headers);

Expand Down

0 comments on commit 4530f1e

Please sign in to comment.