AWScala
AWScala copied to clipboard
Can't access properties of S3ObjectSummary properties
I am trying to filter some of the S3Object summaries depending on their keys. But apparently key and other values are not accessible like in this code bucket.objectSummaries.filter(_.key) except for bucket. So I don't know if this is a design choice. If it is, what is the purpose of making objectSummaries a Stream[S3ObjectSummary]?
objectSummaries is a Stream to avoid the latency and memory of downloading all the summaries synchronously. This is useful when buckets contain a large number of objects.