Of course this is possible but you need to write your own script to imitate this scenario, there are ec2-api's available which will help you make this happen.
What you can do:
- Write a cron script that will start/stop your instances.
- Write a script that will take an input from cloudwatch to take a call on stopping the server if there no request for a
n
period.
Hope this helps.