ExAws.S3.Crypto.put_encrypted_object

You're seeing just the function put_encrypted_object, go back to ExAws.S3.Crypto module for more information.
Link to this function

put_encrypted_object(bucket, object, body, key_id, opts \\ [])

View Source

Specs

put_encrypted_object(
  bucket :: binary(),
  object :: binary(),
  body :: binary(),
  key_id :: binary(),
  opts :: ExAws.S3.put_object_opts()
) :: ExAws.Request.response_t()

Encrypt and then create an object within a bucket. This merely wraps creating a ExAws.Operation.S3 request, calling encrypt/3, and uploading to S3 via a call to ExAws.request/1.

For example:

bucket = "my-awesome-bucket"
key_id = "123e4567-e89b-12d3-a456-426655440000"
contents = "this is some special text that should be secret"

ExAws.S3.Crypto.put_encrypted_object(bucket, "secret.txt.enc", contents, key_id)