From the course: AWS for Developers: S3

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Bucket manipulation

Bucket manipulation - Amazon Web Services (AWS) Tutorial

From the course: AWS for Developers: S3

Start my 1-month free trial

Bucket manipulation

- [Narrator] Will now go through a few of the more common ways of interacting with buckets themselves. Again, this is just a snapshot of the SDK. So, back on our Python file, let's create a few more methods. The first one that we're going to create is to list the objects in our bucket. To do that we simply need to know, which bucket we want to list. We will do a try once again. And this time we're going to do a response. And we're going to jump into the actual low level client instead of using the resource, we're going to jump into this client just to show you how this works. And we will call list objects on that client and we'll pass it the bucket that we want. Now, we will create an objects list and we'll unpack this response. So, for content in response and this is a dictionary. So in the response, there's an element called contents, we're going to get each element in there. And we will simply do an…

Contents