There are more AWS SDK examples available in the AWS Doc SDK Examples
Create a messenger application with Step Functions
The following code example shows how to create an AWS Step Functions messenger application that retrieves message records from a database table.