destroySQS

Exports an async function that tears down a SQS

Source:

(require("destroySQS"))(region, queueName)

Source:

Exports destroySQS

Parameters:
Name Type Description
region String

This is the region of where this AWS service is deployed

queueName String

This is the name of the SQS

Methods

(async, inner) destroyQueue(queue, queueName)

Source:

Tears down a SQS

Parameters:
Name Type Description
queue SQSClient

This is the SQS client

queueName String

This is the name of the SQS

Throws:

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

(async, inner) getQueueUrl(queue, name) → {String}

Source:

Gets the SQS URL

Parameters:
Name Type Description
queue SQSClient

This is the SQS Client

name String

This is the name of the SQS

Throws:

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

Returns:

This is the queue URL

Type
String