Resetting the ScanPaginator #1629
-
Hopefully this is a straightforward question. I am wondering what the best practice for resetting a ScanPaginator is. Right now what i'm trying to do is
Will this work as intended or is there a better way that i'm missing? The system is not setup to actually use DynamoDB locally it's using mocked out methods so i'm having trouble confirming if this would work in my production environment Edit: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Currently there is no way to reset the scan paginator. You'd need to recreate the paginator with the original input. The passed in input shouldn't be mutated by the paginator so you should be able to create a new paginator from the same input value. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Currently there is no way to reset the scan paginator. You'd need to recreate the paginator with the original input. The passed in input shouldn't be mutated by the paginator so you should be able to create a new paginator from the same input value.