S3.Object.
upload_file
(Filename, ExtraArgs=None, Callback=None, Config=None)¶Upload a file to an S3 object.
Usage:
import boto3
s3 = boto3.resource('s3')
s3.Object('mybucket', 'hello.txt').upload_file('/tmp/hello.txt')
Similar behavior as S3Transfer's upload_file() method, except that parameters are capitalized. Detailed examples can be found at S3Transfer's Usage.