@mymoons/parameter_store
v1.0.10
Published
/** * putParameter save info in aws parameter store * @param {String} parameterName name to save in parameter store * @param {String} parameterValue value to save in parameter store * @param {String} profile aws profile in your local machine * @ret
Downloads
13
Keywords
Readme
parameter_store
Description: Save info in parameter store with your aws credentials
Usage
- putParameter save info in aws parameter store
- @param {String} parameterName name to save in parameter store
- @param {String} parameterValue value to save in parameter store
- @param {String} authType auth value to use aws credentials
- @param {String} envName env name
- @param {String} profile aws profile in your local machine
- @returns {Object} aws response
const putParameter = async( parameterName, parameterValue, authType, envName='.env', profile = 'default') => {}
- getParameter get value using parameter name in aws parameter store
- @param {String} parameterName name to save in parameter store
- @param {String} authType auth value to use aws credentials
- @param {String} envName env name
- @param {String} profile aws profile in your local machine
- @returns {String} string, array of strings or error
const getParameter = async( parameterName ,authType, envName='.env', profile = 'default') => {}
- searchParameters get value using parameter name in aws parameter store
- @param {String} parameterFilter parameter Filter to search
- @param {String} searchParameter search parameter it must be 'Equals', 'BeginsWith' or 'Contains'
- @param {String} authType auth value to use aws credentials
- @param {String} NextToken nextToken is a aws value provided to continue with search, it can be null
- @param {String} envName env name
- @param {String} profile aws profile in your local machine
- @returns {Object} keys: results of search , NextToken: key to be provided to continue with the search
const searchParameters = async( parameterFilter ,searchParameter, authType,NextToken = null, envName='.env', profile = 'default') => {}