Description
Describe the feature
I'm trying to find a way how I can use cname when creating presigned url with java sdk v2
use the same way in aws/aws-sdk-java#1498
Use Case
PresignedGetObjectRequest presignedRequest =
s3Presigner.presignGetObject(r -> r.getObjectRequest(get -> get.key("JooqConfiguration.java"))
.signatureDuration(Duration.ofDays(6)));
but i get a error result .
Caused by: java.lang.IllegalArgumentException: Parameter 'Bucket' must not be null
at software.amazon.awssdk.protocols.xml.internal.marshall.SimpleTypePathMarshaller.lambda$static$0(SimpleTypePathMarshaller.java:46)
at software.amazon.awssdk.protocols.xml.internal.marshall.XmlProtocolMarshaller.doMarshall(XmlProtocolMarshaller.java:106)
at software.amazon.awssdk.protocols.xml.internal.marshall.XmlProtocolMarshaller.marshall(XmlProtocolMarshaller.java:80)
at software.amazon.awssdk.protocols.xml.internal.marshall.XmlProtocolMarshaller.marshall(XmlProtocolMarshaller.java:49)
at software.amazon.awssdk.services.s3.transform.GetObjectRequestMarshaller.marshall(GetObjectRequestMarshaller.java:51)
... 5 more
Proposed Solution
No response
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
AWS Java SDK version used
2.27.21
JDK version used
11
Operating System and version
ios