Skip to content
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

sourceBucket and sourceObject missing from s3's CopyObjectRequest #1181

Open
kyri-petrou opened this issue May 18, 2023 · 0 comments
Open

sourceBucket and sourceObject missing from s3's CopyObjectRequest #1181

kyri-petrou opened this issue May 18, 2023 · 0 comments

Comments

@kyri-petrou
Copy link

As discussed on Discord, the CopyObjectRequest case class doesn't have the sourceBucket and sourceKey fields.

Current workaround for anyone with the same issue is to wrap around the Java class:

import software.amazon.awssdk.services.s3.model.CopyObjectRequest as JCopyObjectRequest
import zio.aws.s3.model.*

val req =
  CopyObjectRequest.wrap(
    JCopyObjectRequest
      .builder()
      .sourceBucket("foo")
      .sourceKey("bar")
      // And so on
      .build()
  ).asEditable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant