destroyDynamo

Exports an async function that tears down the Dynamo DB

Source:

(require("destroyDynamo"))(region, tableName)

Source:

Exports destroyDynamo

Parameters:
Name Type Description
region String

This is the region of where this AWS service is deployed

tableName String

This is the name of the DynamoDB table

Methods

(async, inner) destroyTable(dynamo, tableName)

Source:

Tears down the Dynamo DB

Parameters:
Name Type Description
dynamo DynamoDBClient

This is the DynamoDB client

tableName String

This is the name of the DynamoDB table Will throw an error if DynamoDB client fails to execute its command