Here is an example:
client = %AWS.Client{access_key_id: "<access-key-id>",
secret_access_key: "<secret-access-key>",
region: "us-east-1",
endpoint: "amazonaws.com"}
{:ok, output, response} = AWS.Kinesis.list_streams(client, %{})
IO.puts inspect(output)This outputs:
%{"HasMoreStreams" => false, "StreamNames" => []}- Code is generated using the JSON descriptions of AWS services used to build the AWS SDK for the Go programming language library by aws-codegen.
- Code is readable with fairly complete documentation.
- Support for AWS services that use the
jsonandrest-jsonprotocols. - Request data is encoded from maps to JSON and response data is decoded from JSON to maps. The data you work with is almost exactly what's expected by remote APIs and what's returned by them.
- The
HTTPoisonresponse received for each request is returned alongside the response data.
To use AWS clients for Elixir in your Mix projects add it as a dependency:
def deps do
[{:aws, "~> 0.0.1"}]
endAfter adding aws as a dependency, run mix deps.get to install it.
Copyright 2015 Jamshed Kakar [email protected]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.