Exports an async function that creates a dead letter queue (DLQ)
- Source:
(require("deployDlq"))(region, dlqName) → {String}
- Source:
Exports deployDlq
Parameters:
Name | Type | Description |
---|---|---|
region |
String | A constant destructured from the CLI user's answers in |
dlqName |
String | Constant initialized in |
Returns:
Returns the ARN that refers to the DLQ created by this module.
- Type
- String
Methods
(async, inner) createDLQ(sqs, dlqName) → {String}
- Source:
Creates the DLQ.
Parameters:
Name | Type | Description |
---|---|---|
sqs |
SQSClient | looks like |
dlqName |
String | Constant initialized in |
Returns:
A URL referring to the created DLQ
- Type
- String
(async, inner) getArn(sqs, dlqUrl) → {String}
- Source:
Once the DLQ is created, this function can now get ARN of it.
Parameters:
Name | Type | Description |
---|---|---|
sqs |
SQSClient | looks like |
dlqUrl |
String | URL that was returned from |
Returns:
An Amazon Resource Name that refers to the DLQ
- Type
- String