def _download_image()

in sample-demo-app/aws_python_sample_application/image_processor.py [0:0]


    def _download_image(self, image_key, file_path):
        try:
            print("Downloading " + image_key + " to " + file_path)
            self.s3_client.download_file(Bucket=self.s3_bucket_name, Key=image_key, Filename=file_path)
            print("Downloaded " + image_key + " to " + file_path + " successfully")
        except Exception:
            print("Failed to download image " + image_key + " to " + file_path)
            raise