Skip to content

[request]: I wish DynamoDB fluent builders implemented Clone #254

@dcormier

Description

@dcormier

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

It would help me if DynamoDB fluent builders implemented Clone.

I've encountered two points where I've wanted to be able to clone fluent builders.

  1. When trying to scan a table and go through all the pages.
    • It would be helpful to be able to call .set_exclusive_start_key(...) and clone the Scan instance before calling .send() to get the next page so that the Scan instance could be re-used to get the next page.
    • Currently, I have to build a new Scan instance for every page.
  2. When updating many items, and you encounter errors that should be retried (500s, ThrottlingExceptions, etc).
    • It would be nice to be able to clone the UpdateItem and just retry the .send() call.
    • Currently, I have to build a new UpdateItem for every attempt.

I'm sure I will find more cases when being able to clone a struct from that module would be useful. I've only been using the SDK for two days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions