Skip to content

Added set_payload_override to UploadPartInputBuilder, PutObject, and GetObjectInputBuilder #1087

@jiashiwen

Description

@jiashiwen

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

#1085

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.p2This is a standard priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions