destroyLambda

Exports an async function that tears down a Lambda function.

Source:

(require("destroyLambda"))(region, lambdaName)

Source:

Exports destroyLambda

Parameters:
Name Type Description
region String

This is the region of where this AWS service is deployed

lambdaName String

This is the name of the Lambda function

Methods

(async, inner) destroyLambda(lambda, lambdaName)

Source:

Tears down the Lambda function

Parameters:
Name Type Description
lambda LambdaClient

This is the LambdaClient client

lambdaName String

This is the name of the Lambda function

Throws:

Will throw an error if DynamoDB client fails to execute its command