import * as sst from "@serverless-stack/resources" ; export class MainStack extends sst . Stack { constructor ( scope , id , props ? ) { super ( scope , id , props ) ; const topic = new sst . Topic ( this , "Topic" , { defaultFunctionProps : { timeout : 3 , } , subscribers : [ "src/lambda.main" ] , } ) ; this . addOutputs ( { TopicName : topic . snsTopic . topicName , } ) ; } }