[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-sfn-sns-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":31,"level":32,"meta":33,"patternArch":34,"resources":48,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":63},"patterns\u002Fpatterns\u002Fsfn-sns-cdk.json","AWS Step Functions to Amazon SNS",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fabdullah-bashatah.json",{"text":13},[14],"cdk deploy","Creates a Step Functions workflow that waits before sending an SNS message.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsfn-sns-cdk","serverless-patterns\u002Fsfn-sns-cdk","sfn-sns-cdk","src\u002Flib\u002Fsfn-sns-cdk-stack.ts",{"headline":25,"text":26},"How it works",[27,28,29,30],"Step Functions receive an execution using the `start-execution` api command with the the message {\"waitMilliseconds\" : \u003Ctime-in-milliseconds>} in the input payload.","First the state machine calls a Lambda function to convert milliseconds to seconds.","The state machine will then enter a \"Wait\" state based on the configuration.","After the wait is complete a message is sent to SNS.","TypeScript","200",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},20,50,"sfn","AWS Step Functions",{"x":41,"y":37,"service":42,"label":43},80,"sns","Amazon SNS",{"from":45,"to":46,"label":47},"icon1","icon2","",{"bullets":49},[50,53,56],{"text":51,"link":52},"Getting started with the AWS CDK","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fv2\u002Fguide\u002Fgetting_started.html",{"text":54,"link":55},"Setup SNS topic","https:\u002F\u002Fdocs.aws.amazon.com\u002Fsns\u002Flatest\u002Fdg\u002Fsns-create-topic.html",{"text":57,"link":58},"Call Amazon SNS with AWS Step Functions","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fconnect-sns.html","patterns\u002Fsfn-sns-cdk",{"text":61},[62],"See the GitHub repo for detailed testing instructions.","kq9cuj90V2tpiLMeRUVewG9M6Ei6jMA-O_7JQSsKo_o",1778846887974]