Convert s3 bucket to api file download
The download_file method accepts the names of the bucket and object to download and the filename to save the file to. import boto3 s3 = boto3. client ('s3') s3. download_file ('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME') The download_fileobj method accepts a writeable file-like object. The file object must be opened in binary mode, not text mode. The API Console generates requests for the convert API. Moreover you can find generated ready-to-use code snippets at the bottom of this page. The Amazon S3 bucket where to download the input file or upload the output file. output.s3.region Optional: Specify the Amazon S3 endpoint, e.g. us-west-2 or eu-west-1.