package s3
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
Value Members
- object S3
Singleton object provides builders for S3.
Singleton object provides builders for S3.
Example
import monix.eval.Task import software.amazon.awssdk.services.s3.model.NoSuchKeyException val bucket = "my-bucket" val key = "my-key" val content = "my-content" def runS3App(s3: S3): Task[Array[Byte]] = { for { _ <- s3.createBucket(bucket) _ <- s3.upload(bucket, key, content.getBytes) existsObject <- s3.existsObject(bucket, key) download <- { if(existsObject) s3.download(bucket, key) else Task.raiseError(NoSuchKeyException.builder().build()) } } yield download } val t = S3.fromConfig.use(s3 => runS3App(s3))