1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
Although it is not described in the documentation, according to the following AWS GitHub repository issue, you can specify the versionId as a custom query param in the request:
SelectObjectContentRequest selectRequest = new SelectObjectContentRequest()
.withBucketName(BUCKET)
.withKey(KEY)
.withExpression("SELECT count(*) from S3Object s")
.withExpressionType(ExpressionType.SQL)
.withInputSerialization(...)
.withOutputSerialization(...);
selectRequest.putCustomQueryParameter("versionId", "AAA");
Have you tried it?
Relevant content
- asked 2 months ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a month ago
I raised the ticket on aws sdk go v2 and they replied that service api does not have support of it. ref: https://github.com/aws/aws-sdk-go-v2/issues/2580