Sample Amazon S3 Function Code