aws_erin v0.4.2 AwsErin.Http View Source

Documentation for AWS HTTP.

Link to this section Summary

Link to this section Functions

Link to this function

delete(endpoint_uri, region_name, service_name, headers, options)

View Source
delete(
  %URI{
    authority: term(),
    fragment: term(),
    host: term(),
    path: term(),
    port: term(),
    query: term(),
    scheme: term(),
    userinfo: term()
  },
  String.t(),
  String.t(),
  map(),
  keyword()
) ::
  {:ok,
   %HTTPoison.Response{
     body: term(),
     headers: term(),
     request: term(),
     request_url: term(),
     status_code: term()
   }}
  | {:error,
     %HTTPoison.Error{__exception__: term(), id: term(), reason: term()}}

DELETE AWS rest api.

Link to this function

get(endpoint_uri, region_name, service_name, headers, options)

View Source
get(
  %URI{
    authority: term(),
    fragment: term(),
    host: term(),
    path: term(),
    port: term(),
    query: term(),
    scheme: term(),
    userinfo: term()
  },
  String.t(),
  String.t(),
  map(),
  keyword()
) ::
  {:ok,
   %HTTPoison.Response{
     body: term(),
     headers: term(),
     request: term(),
     request_url: term(),
     status_code: term()
   }}
  | {:error,
     %HTTPoison.Error{__exception__: term(), id: term(), reason: term()}}

GET AWS rest api.

Link to this function

post(endpoint_uri, region_name, service_name, headers, request_payload, options)

View Source
post(
  %URI{
    authority: term(),
    fragment: term(),
    host: term(),
    path: term(),
    port: term(),
    query: term(),
    scheme: term(),
    userinfo: term()
  },
  String.t(),
  String.t(),
  map(),
  String.t(),
  keyword()
) ::
  {:ok,
   %HTTPoison.Response{
     body: term(),
     headers: term(),
     request: term(),
     request_url: term(),
     status_code: term()
   }}
  | {:error,
     %HTTPoison.Error{__exception__: term(), id: term(), reason: term()}}

POST AWS rest api.

Link to this function

put(endpoint_uri, region_name, service_name, headers, request_payload, options)

View Source
put(
  %URI{
    authority: term(),
    fragment: term(),
    host: term(),
    path: term(),
    port: term(),
    query: term(),
    scheme: term(),
    userinfo: term()
  },
  String.t(),
  String.t(),
  map(),
  String.t(),
  keyword()
) ::
  {:ok,
   %HTTPoison.Response{
     body: term(),
     headers: term(),
     request: term(),
     request_url: term(),
     status_code: term()
   }}
  | {:error,
     %HTTPoison.Error{__exception__: term(), id: term(), reason: term()}}

PUT AWS rest api.

Link to this function

request(endpoint_uri, http_request_method, region_name, service_name, headers, request_payload, options \\ [])

View Source
request(
  %URI{
    authority: term(),
    fragment: term(),
    host: term(),
    path: term(),
    port: term(),
    query: term(),
    scheme: term(),
    userinfo: term()
  },
  String.t(),
  String.t(),
  String.t(),
  map(),
  String.t(),
  keyword()
) ::
  {:ok,
   %HTTPoison.Response{
     body: term(),
     headers: term(),
     request: term(),
     request_url: term(),
     status_code: term()
   }}
  | {:error,
     %HTTPoison.Error{__exception__: term(), id: term(), reason: term()}}

Request AWS rest api.