Skip to content

One Observability Workshop v3.0.0


One Observability Workshop / constructs/queue / QueueResources

Class: QueueResources

Defined in: constructs/queue.ts:60

AWS CDK Construct that creates SQS queue and SNS topic resources for pet adoption QueueResources

Extends

  • Construct

Constructors

Constructor

new QueueResources(scope, id, properties?): QueueResources

Defined in: constructs/queue.ts:78

Creates a new QueueResources construct

Parameters

scope

Construct

The parent construct

id

string

The construct ID

properties?

QueueResourcesProperties

Configuration properties for the construct

Returns

QueueResources

Overrides

Construct.constructor

Properties

queue

queue: Queue

Defined in: constructs/queue.ts:65

The SQS queue for pet adoption messages


topic

topic: Topic

Defined in: constructs/queue.ts:70

The SNS topic for pet adoption notifications

Methods

importFromExports()

static importFromExports(scope, id): object

Defined in: constructs/queue.ts:116

Imports queue resources from CloudFormation exports created by QueueResources

Parameters

scope

Construct

The construct scope where the resources will be imported

id

string

The construct identifier for the imported resources

Returns

object

Object containing the imported SNS topic and SQS queue

topic

topic: ITopic

queue

queue: IQueue