diff --git a/packages/parameters/src/BaseProvider.ts b/packages/parameters/src/BaseProvider.ts index cb79a84425..d677f06c21 100644 --- a/packages/parameters/src/BaseProvider.ts +++ b/packages/parameters/src/BaseProvider.ts @@ -5,7 +5,6 @@ import { ExpirableValue } from './ExpirableValue'; import { TRANSFORM_METHOD_BINARY, TRANSFORM_METHOD_JSON } from './constants'; import { GetParameterError, TransformParameterError } from './Exceptions'; import type { BaseProviderInterface, GetMultipleOptionsInterface, GetOptionsInterface, TransformOptions } from './types'; -import type { SecretsGetOptionsInterface } from './types/SecretsProvider'; // These providers are dinamycally intialized on first use of the helper functions const DEFAULT_PROVIDERS: Record = {}; @@ -39,9 +38,8 @@ abstract class BaseProvider implements BaseProviderInterface { * this should be an acceptable tradeoff. * * @param {string} name - Parameter name - * @param {GetOptionsInterface|SecretsGetOptionsInterface} options - Options to configure maximum age, trasformation, AWS SDK options, or force fetch + * @param {GetOptionsInterface} options - Options to configure maximum age, trasformation, AWS SDK options, or force fetch */ - public async get(name: string, options?: SecretsGetOptionsInterface): Promise>; public async get(name: string, options?: GetOptionsInterface): Promise> { const configs = new GetOptions(options); const key = [ name, configs.transform ].toString(); diff --git a/packages/parameters/src/secrets/SecretsProvider.ts b/packages/parameters/src/secrets/SecretsProvider.ts index e7bdc8e46e..4d91009610 100644 --- a/packages/parameters/src/secrets/SecretsProvider.ts +++ b/packages/parameters/src/secrets/SecretsProvider.ts @@ -26,6 +26,16 @@ class SecretsProvider extends BaseProvider { return super.get(name, options); } + /** + * Retrieving multiple parameter values is not supported with AWS Secrets Manager. + */ + public async getMultiple( + path: string, + _options?: unknown + ): Promise> { + return super.getMultiple(path); + } + protected async _get( name: string, options?: SecretsGetOptionsInterface