upload

abstract suspend fun upload(data: ByteArray, objectId: String, metadata: Map<String, String>? = null): String

Uploads a RFC822 data to AWS S3.

Return

AWS S3 key representing the location of the RFC822 data.

Parameters

data

ByteArray RFC822 data to upload.

objectId

String Unique ID for the RFC822 data.

metadata

Optional metadata to include with the upload as a Map.