AwsRestClient Introduction
The AwsRestClient module provides an API for calling AWS REST services.
To use this module, use "%requires AwsRestClient"
in your code.
All the public symbols in the module are defined in the AwsRestClient namespace.
The main classes are:
- AwsRestClient: this class provides the REST client API for communuication with the AWS REST API; it also automates authentication and authorization
- AwsRestConnection: provides a REST connection object to a the AWS server (based on the ConnectionProvider module)
- Example:
%new-style
%strict-args
%require-types
%enable-all-warnings
%requires AwsRestClient
hash<auto> opts = {
"url": "https://iam.amazonaws.com",
"aws_keyid": ENV.AWS_KEY_ID,
"aws_secret": ENV.AWS_SECRET,
"aws_region": "eu-central-1",
"aws_service": "iotevents",
};
AwsRestClient rest(opts);
hash<auto> ans = rest.get(...);
printf("%N\n", ans.body);
Release Notes
AwsRestClient v1.2
- added support for the DataProvider API (issue 4564)
AwsRestClient v1.1
- implemented support for a data provider scheme cache and rich option information for connections (issue 4025)
AwsRestClient v1.0
- the initial version of the AwsRestClient module