Example code to simulate interaction with the Redshift service