cloudfront_signer v0.1.0 CloudfrontSigner.Distribution

Representation of a cloudfront distribution for the purpose of computing a signed url. We need the address of the distribution and the private key for RSA signature generation

Link to this section Summary

Functions

Creates a Distribution.t record from the contents of Application.get_env(app, scope)

Link to this section Types

Link to this type

t()
t() :: %CloudfrontSigner.Distribution{
  domain: term(),
  key_pair_id: term(),
  private_key: term()
}

Link to this section Functions

Link to this function

from_config(app, scope)
from_config(atom(), atom()) :: t()

Creates a Distribution.t record from the contents of Application.get_env(app, scope)

Link to this function

from_map(map)
from_map(map()) :: t()