ExAws.S3.Crypto.get_encrypted_object
You're seeing just the function
get_encrypted_object
, go back to ExAws.S3.Crypto module for more information.
Specs
get_encrypted_object( bucket :: binary(), object :: binary(), opts :: ExAws.S3.get_object_opts() ) :: ExAws.Request.response_t()
Get an object from a bucket and then decrypt the body. This merely wraps sending a ExAws.S3.get_object/3
request and then calling decrypt/1
with
the results.
For example:
{:ok, decrypted} = ExAws.S3.Crypto.get_encrypted_object("my-awesome-bucket", "secret.txt.enc")
IO.puts decrypted.body