ExAws.S3.Crypto.decrypt

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

Specs

Take the result of a ExAws.S3.get_object/3 and replace the body with the decrypted value.

For example:

bucket = "my-awesome-bucket"
key_id = "123e4567-e89b-12d3-a456-426655440000"

# get encrypted object, then decrypt
{:ok, encrypted} = ExAws.S3.get_object(bucket, "secret.txt.enc") |> ExAws.request
{:ok, decrypted} = ExAws.S3.Crypto.decrypt(encrypted)
IO.puts decrypted.body