Added constructor that allows AWS credentials to be explicitly set.