Amazon S3

Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry leading scalability, data availability, security, and performance.

Integration with LogicHub

Connecting with Amazon S3

To connect to Amazon S3 following details are required:

  • Label: Connection name.
  • Reference Values: Define variables here to templatize integration connections and actions. For example, you can use https://www.{{hostname}}.com where, hostname is a variable defined in this input. For more information on how to add data, see 'Add Data' Input Type for Integrations.
  • Access Key: To access AWS API, provide a valid Access Key.
  • Secret Key: To access AWS API, provide a valid Secret Key.
  • S3 Bucket: To access AWS API, provide the name of any one bucket that you have access to.
  • S3 Datacenter URL (optional): End Point of the Datacenter in case using personal S3 server. Example: https://s3.logichub.com

Actions with Amazon S3

Download a File

Download file from Amazon S3.

Inputs to this Action

  • Connection: Choose a connection that you have created.
  • S3 Bucket Column Name: Column name from parent table holding the S3 Bucket Name to use.
  • Object Path Column Name: Column name from parent table holding the S3 object path to use.

Output of Action
JSON containing the following items:

  • has_error: True/False
  • error: message/null
  • result: File ID

Upload a File

Upload a file to Amazon S3.

Inputs to this Action

  • Connection: Choose a connection that you have created.
  • S3 Bucket Column Name: Column name from parent table holding the S3 Bucket Name to use.
  • Object Path Column Name: Column name from parent table holding the S3 object path to use.
  • File ID Column Name: Column name from parent table holding the file ID of the file to upload.
  • Server-Side Encryption: Enable or disable AES256 server-side encryption.

Output of Action
JSON containing the following items:

  • has_error: True/False
  • error: message/null
  • result: Success/Failure message.

List Files

List files of Amazon S3 bucket.

Inputs to this Action

  • Connection: Choose a connection that you have created.
  • S3 Bucket Column Name: Column name from parent table holding the S3 Bucket Name to use.
  • Filter by Upload Time: Select whether to filter files by their upload time, that is, return only files with an upload time within the range of the current batch.
  • Output Format (Optional): Select whether to return separate rows for each result or a single row containing all results (default is Separate Rows).
  • Filter by Name (Optional): Return only files that contain a given string in the name (supports "*" wildcards)
  • Result Limit: Number of results to return (default is all).

Output of Action
JSON containing following items:

  • has_error: True/False
  • error: message/null
  • result: List of files.

Update Bucket Policy

Update Amazon S3 Bucket Policy.

Inputs to this Action

  • Connection: Choose a connection that you have created.
  • S3 Bucket Column Name: Column name from parent table holding the S3 Bucket Name to use.
  • S3 Bucket Policy Column Name: Column name from parent table holding the S3 Bucket Policy (in JSON format) to use.

Output of Action
JSON containing following items:

  • has_error: True/False
  • error: message/null
  • result: Success/Failure message.

Update Bucket ACL

Update Amazon S3 Bucket Access Control Lists.

Inputs to this Action

  • Connection: Choose a connection that you have created.
  • S3 Bucket Column Name: Column name from parent table holding the S3 Bucket Name to use.
  • S3 Bucket ACL Column Name: Column name from parent table holding the S3 Bucket ACL (in JSON format) to use.

Output of Action
JSON containing following items:

  • has_error: True/False
  • error: message/null
  • result: Success/Failure message

Delete an Object

Delete an object from Amazon S3 Bucket.

Inputs to this Action

  • Connection: Choose a connection that you have created.
  • S3 Bucket Column Name: Column name from parent table holding the S3 Bucket Name to use.
  • Object Path Column Name: Column name from parent table holding the S3 object path to use.
  • Version ID Column Name (Optional): Column name from parent table holding the S3 object version id to use.

Output of Action
JSON containing following items:

  • has_error: True/False
  • error: message/null
  • result: Success/Failure message.

Load a CSV File

Load a CSV file to JSON from Amazon S3.

Inputs to this Action

  • Connection: Choose a connection that you have created.
  • S3 Bucket Column Name: Column name from parent table holding the S3 Bucket Name to use.
  • CSV Path Column Name: Column name from parent table holding the S3 CSV path to use.
  • Comma Separated list of CSV Column Headers (Optional): Comma Separated list of Column Headers (In case Column Headers are missing in File). This input will override Column Headers of File.

Output of Action
JSON containing following items:

  • has_error: True/False
  • error: message/null
  • result: Success/Failure message.

Did this page help you?