forked from SaltwaterC/aws2js
-
Notifications
You must be signed in to change notification settings - Fork 0
query.request()
SaltwaterC edited this page Nov 15, 2011
·
8 revisions
This is the low level method that makes the AWS query APIs requests.
query.request(action, [query], callback)
- 'action' - the action argument required by each specific query API (eg: EC2, RDS, etc.).
- 'query' - optional argument. Must be an object containing the parameters of the query API.
- 'callback' - callback argument that would be executed when the processing finishes. Has a couple of arguments: error and response. For more details follow: HTTP Errors, XML Parser.
- If there's an error, the callback receives the error argument as Error instance.
- If the error argument is null, then the response argument contains a JavaScript object containing the requested data. The library parses the XML returned by the AWS API.