| 2 | const sqs = require('aws-cdk-lib/aws-sqs') |
| 3 | |
| 4 | class ExampleStack extends Stack { |
| 5 | /** |
| 6 | * |
| 7 | * @param {Construct} scope |
| 8 | * @param {string} id |
| 9 | * @param {StackProps=} props |
| 10 | */ |
| 11 | constructor (scope, id, props) { |
| 12 | super(scope, id, props) |
| 13 | |
| 14 | // The code that defines your stack goes here |
| 15 | |
| 16 | // example resource |
| 17 | const queue = new sqs.Queue(this, 'ExampleQueue', { |
| 18 | visibilityTimeout: Duration.seconds(300) |
| 19 | }) |
| 20 | |
| 21 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 22 | const queueUrlOutput = new CfnOutput(this, 'queueUrl', { |
| 23 | value: queue.queueUrl |
| 24 | }) |
| 25 | |
| 26 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 27 | const customOutput = new CfnOutput(this, 'customOutput', { |
| 28 | value: 'customOutputValue', |
| 29 | description: 'This is a custom output' |
| 30 | }) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | module.exports = { ExampleStack } |
nothing calls this directly
no outgoing calls
no test coverage detected