View Source ExAws.Operation protocol (ExAws v2.4.1)

An operation to perform on AWS.

This module defines a protocol for executing operations on AWS. ExAws ships with several different modules that each implement the ExAws.Operation protocol. These modules each handle one of the broad categories of AWS service types:

ExAws works by creating a data structure that implements this protocol, and then calling perform/2 on it.

Link to this section Summary

Functions

Perform a request on AWS.

Perform a streaming request on AWS.

Link to this section Types

Link to this section Functions

Link to this function

perform(operation, config)

View Source

Perform a request on AWS.

The operation is synchronous, returning a response or an error.

example

Example

%ExAws.Operation.JSON{
  data: %{},
  headers: [
    {"x-amz-target", "DynamoDB_20120810.ListTables"},
    {"content-type", "application/x-amz-json-1.0"}
  ],
  http_method: :post,
  params: %{},
  path: "/",
  service: :dynamodb,
} |> ExAws.Operation.perform(ExAws.Config.new(:dynamodb))
Link to this function

stream!(operation, config)

View Source

Perform a streaming request on AWS.