MCPcopy Create free account
hub / github.com/awsrun/aws-microservices / constructor

Method constructor

lib/queue.ts:15–27  ·  view source on GitHub ↗
(scope: Construct, id: string, props: SwnQueueProps)

Source from the content-addressed store, hash-verified

13 public readonly orderQueue: IQueue;
14
15 constructor(scope: Construct, id: string, props: SwnQueueProps) {
16 super(scope, id);
17
18 //queue
19 this.orderQueue = new Queue(this, 'OrderQueue', {
20 queueName : 'OrderQueue',
21 visibilityTimeout: Duration.seconds(30) // default value
22 });
23
24 props.consumer.addEventSource(new SqsEventSource(this.orderQueue, {
25 batchSize: 1
26 }));
27 }
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected