(scope: Construct, id: string, props: SwnQueueProps)
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected