ollowing code,
import boto3
s3 = boto3.resource('s3')
obj = s3.Object(bucketname, itemname)
body = obj.get()['Body'].read()
answered Dec 7, 2018 by Nitesh
selected Dec 9, 2020 by MD
What is itemname here?
commented May 15, 2019 by anonymous
As far as I know, the itemname here is the file that is being fetched and read by the function.
commented May 15, 2019 by Vishal
itemname is Key (string) -- Key of the object to get.
commented Jan 24, 2020 by Mayur
Thanks, @Mayur for your contribution.
Please register at Edureka Community and earn credits for every contribution. A contribution could be asking a question, answering, commenting or even upvoting/downvoting an answer or question.
These credits can be used to get a discount on the course. Also, you could become the admin at Edureka Community with certain points.
Thanks!
commented Jan 24, 2020 by Edureka
Thanks it solved my issue.