106 const DefaultSendEncoding =
"gzip";
109 const RequiredOptions = ...;
113 const QoreDigest = CRYPTO_DIGEST_SHA256;
116 const AwsSignatureAlgorithm =
"AWS4-HMAC-SHA256";
119 const AwsTermination =
"aws4_request";
135 string credential_scope_suffix;
209 hash<auto> sendAndDecodeResponse(*data body,
string m,
string path, hash<auto> hdr, *reference<hash<auto>> info, *softbool decode_errors);
212 string getSignature(
string http_method,
string path, reference<hash<auto>> hdr, *data body, date gmtime,
string scope, reference<string> signed_headers);
216 string getRequestString(
string http_method,
string path, reference<hash<auto>> hdr, *data body, date gmtime,
string scope, reference<string> signed_headers);
221 string getCanonicalSignature(
string http_method,
string path, hash<auto> hdr, *data body, reference<string> signed_headers);
226 static string trimall(
string str);
267 "cls": Class::forName(
"AwsRestConnection"),
268 "options": RestConnection::ConnectionScheme.options + {
269 "data": <ConnectionOptionInfo>{
271 "desc":
"data serialization options are limited to `json` with this object",
275 "desc":
"use JSON serialization",
278 "default_value":
"json",
280 "aws_keyid": <ConnectionOptionInfo>{
282 "desc":
"AWS key ID",
284 "aws_secret": <ConnectionOptionInfo>{
286 "desc":
"the AWS secret access key value",
289 "aws_region": <ConnectionOptionInfo>{
291 "desc":
"the AWS region to use (ex: `us-east-1`)",
293 "aws_service": <ConnectionOptionInfo>{
295 "desc":
"the AWS service to use (ex: `iam`)",
297 "aws_s3": <ConnectionOptionInfo>{
299 "desc":
"set to `True` to flag this object for use with AWS S3, which requires special "
301 "default_value": False,
303 "aws_token": <ConnectionOptionInfo>{
305 "desc":
"a temporary session token from AWS Security Token Service for this HTTP session",
322 constructor(
string name,
string description,
string url, hash<auto> attributes = {}, hash<auto> options = {})
constructor(hash< auto > opts, *softbool do_not_connect)
creates the object with the given options
const RequiredOptions
required options
Definition: AwsRestClient.qm.dox.h:109
class for AWS REST connections; returns AwsRestClient::AwsRestClient objects
Definition: AwsRestClient.qm.dox.h:262
DataProvider::AbstractDataProvider getDataProvider()
returns a data provider object for this connection
AwsRestClient getImpl(bool connect=True, *hash< auto > rtopts)
returns a AwsRestClient::AwsRestClient object
bool hasDataProvider()
returns True, as this connection always returns a data provider with the getDataProvider() method
constructor(string name, string description, string url, hash< auto > attributes={}, hash< auto > options={})
creates the AwsRestConnection object
const ConnectionScheme
Connection entry info.
Definition: AwsRestClient.qm.dox.h:266
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
string getType()
returns "awsrest"
the AwsRestClient namespace contains all the objects in the AwsRestClient module
Definition: AwsRestClient.qm.dox.h:94