Qore AwsRestClient Module Reference
1.2
|
this class provides the REST client API for communication with AWS More...
Public Member Methods | |
constructor (hash< auto > opts, *softbool do_not_connect) | |
creates the object with the given options More... | |
constructor (string name, string description, string url, hash< auto > attributes={}, hash< auto > options={}) | |
creates the AwsRestConnection object More... | |
hash< ConnectionSchemeInfo > | getConnectionSchemeInfoImpl () |
Returns the ConnectionSchemeInfo hash for this object. | |
DataProvider::AbstractDataProvider | getDataProvider () |
returns a data provider object for this connection More... | |
AwsRestClient | getImpl (bool connect=True, *hash< auto > rtopts) |
returns a AwsRestClient::AwsRestClient object More... | |
string | getType () |
returns "awsrest" | |
bool | hasDataProvider () |
returns True, as this connection always returns a data provider with the getDataProvider() method More... | |
Public Attributes | |
const | AwsSignatureAlgorithm = "AWS4-HMAC-SHA256" |
AWS signature algorithm used; must match QoreDigest. | |
const | AwsTermination = "aws4_request" |
Fixed termination string. | |
const | DefaultSendEncoding = "gzip" |
default send encoding | |
const | QoreDigest = CRYPTO_DIGEST_SHA256 |
Qore digest algorithm to use for HMAC calculations; must match AwsSignatureAlgorithm. | |
const | RequiredOptions = ... |
required options | |
this class provides the REST client API for communication with AWS
This class requires the following options:
aws_keyid
aws_secret
aws_region
aws_service
AwsRestClient::AwsRestClient::constructor | ( | hash< auto > | opts, |
*softbool | do_not_connect | ||
) |
creates the object with the given options
opts | valid options are:
|
do_not_connect | if False (the default), then a connection will be immediately established to the remote server |
RESTCLIENT-ERROR | invalid option passed to constructor, unsupported data serialization, etc |
AWSRESTCLIENT-ERROR | missing or invalid required option for AWS REST authentication or communication |
data
option is always set to "json"
AwsRestClient::AwsRestClient::constructor | ( | string | name, |
string | description, | ||
string | url, | ||
hash< auto > | attributes = {} , |
||
hash< auto > | options = {} |
||
) |
creates the AwsRestConnection object
name | the name of the connection |
description | connection description |
url | connection URL (potentially with password info) |
attributes | various attributes. See below |
options | connection options |
See AbstractConnection::constructor() for attributes
and options
reference.
CONNECTION-OPTION-ERROR | missing or invalid connection option |
DataProvider::AbstractDataProvider AwsRestClient::AwsRestClient::getDataProvider | ( | ) |
returns a data provider object for this connection
SwaggerDataProvider:
if an appropriate schema is configuredRestClientDataProvider:
if there is no schema configuredDATA-PROVIDER-ERROR | this object does not support the data provider API |
AwsRestClient AwsRestClient::AwsRestClient::getImpl | ( | bool | connect = True , |
*hash< auto > | rtopts | ||
) |
returns a AwsRestClient::AwsRestClient object
connect | if True, then the connection is returned already connected |
rtopts | this connection type does not accept any runtime options, so this parameter is ignored |
bool AwsRestClient::AwsRestClient::hasDataProvider | ( | ) |
returns True, as this connection always returns a data provider with the getDataProvider() method