VBT.Aws.CloudFront (vbt v0.1.0) View Source

Helper for performing actions on CloudFront.

Link to this section Summary

Functions

Returns the cookies which can be used in the browser to access resource at the given path.

Returns the cookies which can be used in the browser to access the given hostable object.

Returns the signed and encoded download URL for the given path.

Returns the signed and encoded download URL for the given S3.Hostable object.

Link to this section Types

Specs

config() :: %{
  host: String.t(),
  key_pair_id: String.t(),
  private_key: %ExPublicKey.RSAPrivateKey{
    ctr_coefficient: term(),
    exponent_one: term(),
    exponent_two: term(),
    other_prime_infos: term(),
    prime_one: term(),
    prime_two: term(),
    private_exponent: term(),
    public_exponent: term(),
    public_modulus: term(),
    version: term()
  },
  url_expires_in_sec: pos_integer()
}

Specs

cookies() :: %{required(String.t()) => String.t()}

Link to this section Functions

Specs

cookies(config(), String.t()) :: cookies()

Returns the cookies which can be used in the browser to access resource at the given path.

Link to this function

cookies(config, bucket, object, params \\ [])

View Source

Specs

cookies(config(), String.t(), VBT.Aws.S3.Hostable.t(), map() | Keyword.t()) ::
  cookies()

Returns the cookies which can be used in the browser to access the given hostable object.

Link to this function

download_url(config, path)

View Source

Specs

download_url(config(), String.t()) :: String.t()

Returns the signed and encoded download URL for the given path.

Link to this function

download_url(config, bucket, object, params \\ [])

View Source

Specs

download_url(config(), String.t(), VBT.Aws.S3.Hostable.t(), map() | Keyword.t()) ::
  String.t()

Returns the signed and encoded download URL for the given S3.Hostable object.