import { SqsWithDlq } from '@serverless-guru/cdk-utils'
new SqsWithDlq(scope: Construct, id: string, props: SqsWithDlqProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
SqsWithDlqProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: SqsWithDlqProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
public toString(): stringReturns a string representation of this construct.
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
import { SqsWithDlq } from '@serverless-guru/cdk-utils'
SqsWithDlq.isConstruct(x: any)Checks if x is a construct.
- Type: any
Any object.
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
deadLetterQueue |
aws-cdk-lib.aws_sqs.Queue |
The dead letter queue. |
messageAgeAlarm |
aws-cdk-lib.aws_cloudwatch.Alarm |
Alarm indicating there are messages that will expire within 3 days in the DLQ. |
messagesVisibleAlarm |
aws-cdk-lib.aws_cloudwatch.Alarm |
Alarm indicating there are messages in the DLQ. |
queue |
aws-cdk-lib.aws_sqs.Queue |
The main queue. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly deadLetterQueue: Queue;- Type: aws-cdk-lib.aws_sqs.Queue
The dead letter queue.
public readonly messageAgeAlarm: Alarm;- Type: aws-cdk-lib.aws_cloudwatch.Alarm
Alarm indicating there are messages that will expire within 3 days in the DLQ.
public readonly messagesVisibleAlarm: Alarm;- Type: aws-cdk-lib.aws_cloudwatch.Alarm
Alarm indicating there are messages in the DLQ.
public readonly queue: Queue;- Type: aws-cdk-lib.aws_sqs.Queue
The main queue.
import { SqsWithDlqProps } from '@serverless-guru/cdk-utils'
const sqsWithDlqProps: SqsWithDlqProps = { ... }| Name | Type | Description |
|---|---|---|
alarmTopicArn |
string |
The SNS topic to send alarm notifications to. |
fifo |
boolean |
Whether the queues should be FIFO queues. |
messageRetentionPeriod |
aws-cdk-lib.Duration |
The number of days messages will be retained in the queues. |
public readonly alarmTopicArn: string;- Type: string
The SNS topic to send alarm notifications to.
public readonly fifo: boolean;- Type: boolean
- Default: false
Whether the queues should be FIFO queues.
public readonly messageRetentionPeriod: Duration;- Type: aws-cdk-lib.Duration
- Default: Duration.days(14)
The number of days messages will be retained in the queues.