Search code examples
amazon-web-servicesamazon-s3aws-sdkamazon-s3-select

Aws s3 selectObjectContent by version id


Is there a way we can run select object content (s3 select) on specific version of s3 object using version Id?

I cannot find any references in select object content documentation to specify the version Id like we have version Id field in get Object request.


Solution

  • Finally found a solution based on the request posted to aws sdk git channel.

    request.putCustomQueryParameter("versionId", "<Your-version-Id>");
    

    The aws docs should be updated soon since it was missing from there.