s3 = boto3.client('s3')
s3.generate_presigned_url('put_object', Params={'Bucket': 'YourBucket',
    'Key': 'YourKey'}, ExpiresIn=3600, HttpMethod='PUT')
How to generate a temporary url to upload file to Amazon S3 with boto library?