generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 265
Closed
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p2This is a standard priority issueThis is a standard priority issue
Description
Describe the feature
Added set_payload_override to UploadPartInputBuilder, PutObject, and GetObjectInputBuilder to prevent frequent calls to sigv4 when using aws_sigv4::http_request::SignableBody to change object transfers, causing high CPU usage.
Use Case
let payload_override = aws_sigv4::http_request::SignableBody::UnsignedPayload;
let upload_part_res = client
.upload_part()
.set_payload_override(payload_override)
.bucket(bucket)
.key(key)
.upload_id(upload_id)
.body(stream)
.part_number(p.part_num)
.send()
.await?;
Proposed Solution
impl UploadPartInputBuilder {
pub fn set_payload_override(mut self, payload_override: ::aws_sigv4::http_request::SignableBody) -> Self {
self.inner.signing_options.payload_override = payload_override;;
self
}
}
Other Information
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
A note for the community
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue, please leave a comment
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p2This is a standard priority issueThis is a standard priority issue