setRate

Changes the postLambda rate of a deployed waiting room.

Source:

(require("setRate"))(profileName, newRate) → {undefined}

Source:

Exports the setRate function.

Parameters:
Name Type Description
profileName string

The name of the profile to commit the rate change to

newRate number

The new rate

Returns:
Type
undefined

Methods

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

Source:

Gets the current configuration object of the postLambda.

Parameters:
Name Type Description
lambda LambdaClient

LambdaClient

lambdaName string

The name of the postLambda

Returns:

The current configuration object

Type
object

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

Source:

Updates the environmental variables on an existing lambda.

Parameters:
Name Type Description
lambda LambdaClient

The AWS lambda client

lambdaName string

The name of the postLambda

environment object

The object of environmental variables

rate number

The new rate environmental variable

(inner) validateRate(rate)

Source:

Validates a new rate.

Parameters:
Name Type Description
rate number

The new rate