Support VersionId for S3 reads #721
Labels
enhancement
New feature or request
minor release
Will be addressed in the next minor release
ready to release
Milestone
Is your idea related to a problem? Please describe.
I'm working on a Lambda triggered by an S3 object upload to a versioned bucket. I would like to ensure that I am reading the version of the object reference in the upload event triggering said lambda.
client.get_object()
ofboto3
allows users to get a hold of a specific object version by passing it as an optional keyword argumentVersionId
, but this is not surfaced to any of thewr.s3.read*
methods.Describe the solution you'd like
There are 3 options of handling this:
path
argument to retrieve in the same format as in the S3 REST API:?versionId=${VERSION_ID}
VersionId
to the list of alloweds3_additional_kwargs
and use where appropriateVersionId
as another optional parameter towr.s3.read*
methods.Which option would be preferable, and are there any concerns with adding this functionality at all?
The text was updated successfully, but these errors were encountered: