Package-level declarations

Types

Link copied to clipboard
data class BucketList(val items: List<BucketName>)
Link copied to clipboard
data class CopyObject(val sourceBucket: BucketName, val source: BucketKey, val destination: BucketKey, val storageClass: StorageClass? = null, val tags: List<Tag>? = null, val taggingDirective: TaggingDirective? = null, val headers: Headers = emptyList()) : S3BucketAction<Unit>
Link copied to clipboard
data class CreateBucket(val bucketName: BucketName, val region: Region) : S3Action<Unit>
Link copied to clipboard
Link copied to clipboard
data class DeleteObject(val key: BucketKey) : S3BucketAction<Unit?>
Link copied to clipboard
Link copied to clipboard
data class GetObject(val key: BucketKey) : S3BucketAction<InputStream?>
Link copied to clipboard
Link copied to clipboard
data class HeadBucket(val expectedBucketOwner: String? = null) : S3BucketAction<Unit?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ListObjectsV2(val continuationToken: String? = null, val maxKeys: Int? = null, val prefix: String? = null, val delimiter: String? = null, val encodingType: String? = null, val expectedBucketOwner: String? = null, val requestPayer: String? = null) : S3BucketAction<ObjectList> , PagedAction<String, ObjectSummary, ObjectList, ListObjectsV2>

List items in a bucket. Note that the S3 API maxes out at 1000 items.

Link copied to clipboard
data class ObjectList(val items: List<ObjectSummary>, val commonPrefixes: List<String> = emptyList(), val continuationToken: String? = null) : Paged<String, ObjectSummary>
Link copied to clipboard
data class PutObject(val key: BucketKey, val content: InputStream, val headers: Headers = emptyList(), val tags: List<Tag> = emptyList(), val storageClass: StorageClass? = null) : S3BucketAction<Unit>
Link copied to clipboard
class PutObjectTagging(val key: BucketKey, val tags: List<Tag>) : S3BucketAction<Unit>
Link copied to clipboard
data class RestoreObject(val key: BucketKey, val days: Int, val description: String? = null, val tier: RestoreTier? = null) : S3BucketAction<Unit>
Link copied to clipboard

Functions

Link copied to clipboard
fun bodyFor(tags: List<Tag>): MemoryBody
Link copied to clipboard
fun tagsFor(body: Body): List<Tag>