1.2.0 • Published 3 months ago

rv-flex-paramstore v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

codecov

rv-flex-paramstore

Library for loading values from param store.

configureSSM(config: AWS.Config): void

Allows you to configure the SSM client used to load params from Parameter Store.

Parameters

NameTypeDescription
configAWS.Configthe configuration for SSM

loadAuthToken(accountSid: string): Promise

Loads the auth token for the specified account.

Parameters

NameTypeDescription
accountSidstringthe SID of the Twilio account for which the auth token should be loaded

Return Value

Promise<string> the auth token

loadTwilioBaseUrl(accountSid: string): Promise

Loads the base URL for Twilio's runtime for the specified account.

Parameters

NameTypeDescription
accountSidstringthe SID of the Twilio account for which the auth token should be loaded

Return Value

Promise<string> the URL for Twilio's runtime for the specified account

loadDncApiKey(): Promise

Loads the API key for RV Gateway for the DNC API.

Return Value

Promise<string> the API key for DNC

loadTcpaApiKey(): Promise

Loads the API key for RV Gateway for the TCPA API.

Return Value

Promise<string> the API key for TCPA

loadChamberParam(service: string, key: string): Promise

Loads the param stored as /{service}/{key}.

Parameters

NameTypeDescription
servicestringthe first (service) component of the param path
keystringthe key to load

Return Value

Promise<string> the value of the specified param

loadParam(path: string): Promise

Loads the param stored as path.

Parameters

NameTypeDescription
pathstringthe path of the parameter to load

Return Value

Promise<string> the value of the specified param

loadParams(paths: string[]): Promise<{ camelizedParamName: string: string }>

Loads the param stored as path.

Parameters

NameTypeDescription
pathsstring[]the paths of the parameters to load

Return Value

Promise<{ [camelizedParamName: string]: string }> a map of the camelized parameter name (the last part of the parameter) to the parameter value

1.2.0

3 months ago