import { SSMClient } from '@aws-sdk/client-ssm'; import { Monitoring } from '../../monitoring'; export declare class ParameterStoreApi { private ssm; private readonly logger; constructor(ssm: SSMClient, monitoring?: Monitoring); listParameters(): Promise; getParameters(keys: string[]): Promise>; /** * Loads the parameter value from parameter store, decrypting if necessary. * * In order to take advantage of decryption, the application must have the proper role policy * for the KMS key in AWS. * @param name The paramter name in Parameter Store. * @param withDecrypt Whether or not to decrypt the value from Parameter Store. * @throws ErrorWithCode ErrorCode.ItemNotFound if the parameter is not found. */ getParameter(name: string, withDecrypt?: boolean): Promise; /** * Loads the parameter value from parameter store, decrypting if necessary. Returns undefined if the parameter is not found. * * In order to take advantage of decryption, the application must have the proper role policy * for the KMS key in AWS. * @param name The paramter name in Parameter Store. * @param withDecrypt Whether or not to decrypt the value from Parameter Store. */ getParameterSafe(name: string, withDecrypt?: boolean): Promise; /** * Save a value in parameter store. If the parameter already exists, it will be overwritten. * @param name The parameter name in parameter store * @param value The value to persist * @param encrypt Whether or not to encrypt the value. */ setParameter(name: string, value: string, encrypt: boolean): Promise; } //# sourceMappingURL=parameterStoreApi.d.ts.map