toggle

Toggles a deployed waitroom on or off.

Source:

(require("toggle"))(onOff) → {function}

Source:

Exports the onOff function.

Parameters:
Name Type Description
onOff string

either "on" or "off"

Returns:

a function that takes the profile name to turn on or off

Type
function

Methods

(async, inner) getLambdaConfig(lambda, lambdaName) → {object}

Source:
Parameters:
Name Type Description
lambda LambdaClient

The AWS LambdaClient object

lambdaName string

The name of the preLambda

Returns:

The current configuration of the preLambda

Type
object

(async, inner) updateLambdaConfig(lambda, lambdaName, environment, waitroomOnOff)

Source:

Updates the preLambda with a new environment object.

Parameters:
Name Type Description
lambda LambdaClient

The LambdaClient object

lambdaName string

The name of the preLambda

environment object

The environment object of the preLambda

waitroomOnOff string

The new value for the WAITROOM_ON environmental variable