MCPcopy Create free account
hub / github.com/serverless/examples / ExampleStack

Class ExampleStack

aws-node-cdk-extension/lib/example-stack.js:4–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2const sqs = require('aws-cdk-lib/aws-sqs')
3
4class 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
34module.exports = { ExampleStack }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected