The S3 Library is an importable library containing functions to read, write, and list with AWS S3 buckets. This library is used in the AWS S3 Adapter.
When imported into projects, typically only the S3client module needs to be required in order to create the client and access the API methods.
require "S3.S3client" |
Use the Translator’s built in help to review how to use each function:
Sets up the S3 adapter framework, adding the various method modules to a metatable and storing the configurations added to the custom fields. |
S3custom takes in any API requests and parameters to make the API call and return the response.
|
S3list prepares the arguments and calls S3custom for an S3 bucket List HTTP GET request. |
S3readFile prepares the arguments and calls S3custom for an S3 bucket read HTTP GET request. |
S3upload prepares the arguments and calls S3custom for an S3 bucket upload HTTP PUT request. |
S3createHeaders generates headers for each HTTP request.
|
S3logWebErrors records web errors to the logs. Depending on the web error, |
S3retry retries web (HTTP) requests if the initial request fails. |