MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / setEnv

Function setEnv

javascriptv3/example_code/libs/utils/util-node.js:6–8  ·  view source on GitHub ↗
(/** @type {string} */ key, value)

Source from the content-addressed store, hash-verified

4
5export const getEnv = (/** @type {string} */ key) => process.env[key];
6export const setEnv = (/** @type {string} */ key, value) => {
7 process.env[key] = value;
8};
9
10/**
11 * Check if the running file was run directly.

Callers 3

initializeLambdaFunctionFunction · 0.90
createLogGroupFunction · 0.90
testCreateFilterFunction · 0.90

Calls

no outgoing calls

Tested by 3

initializeLambdaFunctionFunction · 0.72
createLogGroupFunction · 0.72
testCreateFilterFunction · 0.72