-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(storage): multi bucket copy #5674
base: multi-bucket
Are you sure you want to change the base?
Conversation
...rage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/storage_s3_service_impl.dart
Show resolved
Hide resolved
|
||
/// plugin specific options for `Amplify.Storage.copy`. | ||
final StorageCopyPluginOptions? pluginOptions; | ||
|
||
/// Optionally specify which bucket to target | ||
final CopyBuckets? buckets; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: Does JS also use CopyBuckets buckets
for copy API optinal param?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No they have a different copy signature that is more extensible:
- source
- path
- bucket
- destination
- path
- bucket
I prefer their signature over ours, but it would be a breaking change to wrap our source/destination parameters in an object, so I think we stick with the CopyBuckets approach.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.