S3 Storage Access Component

:icons:font :hardbreaks: :imagesdir: ../../../assets/images :toc-title: Contents :toc:

Description

Performs the specified I/O operation on S3 storage.

Table 1. System characteristics

Index

116

Short name

s3

Script types

All

Start module

r_script_component_s3

Mode

Asynchronous

Icon

116

Branching type

Branching, closing

Properties

Table 2. Properties
Specification Description

Name: Storage

Code: bucket

Visibility condition: no

Default: — 

Name of storage (bucket).

Name: Storage key

Code: key

Visibility condition: no Default: — 

Access key to the storage.

Name: Action

Code: command

Visibility condition: no

Default: Download

Possible options:

  • Place (put, 0) – Places a file in storage.

  • Download (get, 1) – Returns the contents of the file, or downloads to a local directory and returns the path to it.

  • Delete (delete, 2) – Deletes a file from storage.

  • Size (size, 3) – Returns the file size in storage.

Name: Data type

Code: type

Visibility condition: yes Default: Data file

Method of exchanging script data with storage

Possible options:

  • Byte array (binary, 0) – Uses binary data through an argument or variable.

  • Data file (file, 1) – Uses the path to a file in the local directory..

Name: Path to file Code: filepath Visibility condition: yes

Default: — 

Path to a file in a local directory, using one of file categories.

Name: Data

Code: data

Visibility condition: yes

Default: — 

Argument with the contents of the resource placed in the storage.

Name: Buffer

Code: buffer

Visibility condition: yes

Default: — 

Variable for saving the contents of a resource downloaded from the storage.

Name: Headings

Code: headers

Visibility condition: yes Default: — 

Additional headers for sending a request to s3.

Name: Request parameters (JSON)

Code: opts

Visibility condition: no

Default: — 

A set of parameters for an operation in the storage, in the format of a JSON object, where the keys are the names of the parameters. Possible values: query parameters

Name: Result into variable Code: result Visibility condition: yes

Default: — 

Variable for storing the result of a request to get the file size in storage.

Name: Time, s

Code: timeout

Visibility condition: no

Default: — 

Timeout waiting for response, in seconds

Name: Transition

Code: transfer

Visibility condition: no

Default: — 

The component to which control is transferred if the request is successful.

Name: Transition, time

Code: transferTimeout

Visibility condition: no Default: — 

The component to which control is transferred after the specified request execution time has expired.

Name: Transition, error

Code: transferError

Visibility condition: no

Default: — 

The component to which control is transferred when an error occurs.

Name: Cause of error in variable Code: errorReason Visibility condition: no

Default: — 

Variable for storing the error.

Request parameters

Table 3. Request parameters
Specification Description

Parameter: s3_host

Default: empty

S3 storage address. For example: abc.s3.com.

Parameter: s3_port

Default: empty

S3 storage port. For example: 443.

Parameter: s3_bucket_access_method

Default: auto

Connection mode to S3 storage. Possible values: vhost, path, auto.

The mode may need to be changed to 'path' explicitly if the connection is made via a domain name to a corporate storage.

Parameter: access_key_id

Default: empty

Account ID for accessing S3 (conditional "login"). For example: 1A2B3C4DFFFFFFFFFFFF.

Parameter: secret_access_key

Default: empty

Secret key from the account for access to S3 (conditional "password"). For example: 77JHKdlkljfhgkjdKFDbn43555365fhgkjdKFDbn.

Parameter: acl

Default: undefined

Access Control List. Setting up access rights.

Possible values: undefined, private, public_read, public_read_write, authenticated_read, bucket_owner_read, bucket_owner_full_control For example: public_read

See also