Read File/Folder (Data)
Operation name
Read File/Folder (Data)
Function overview
Reads the files/folder on Amazon S3.
Data model
The data model of this component is XML type for input data and table model type for output data.
For more details on input/output schema, refer to Schemas.
Tutorials
For details about how to create a connection to Amazon S3, refer to the following tutorial:
Properties
For details on use of variables, refer to Variables.
Basic settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Name |
Required |
Not available |
Enter a name that is used on the script canvas. |
|
Input data |
Required |
Not available |
Select a component on the script canvas. |
|
Required settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Destination |
Required |
Not available |
Select a connection resource.
|
|
Include permissions in result |
Optional |
Not available |
Select whether to include file access right information in the results.
|
|
Decryption settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Secret Key |
Optional |
Available |
Enter the file path of the secret key to decrypt the client encrypted file. The Browse button launches a file chooser that allows you to select a file. |
Note
|
Data processing method
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Data processing method |
Required |
Not available |
Select a data processing method.
|
|
Comment
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Comment |
Optional |
Not available |
You can write a short description of this connector. |
|
Input schema
<?xml version="1.0"?> <server> <bucket name="" > <file remotepath="" type="" /> </bucket> </server>
Element name |
Attribute name |
Description |
Remarks |
---|---|---|---|
server |
- |
|
|
bucket |
- |
Specify for each bucket to read. |
|
name |
Specify a name of a bucket to read. |
|
|
file |
- |
Specify for each file/folder to read. |
|
remotepath |
Specify a path on Amazon S3 of the file/folder to read. |
|
|
type |
Specify a type of a file/folder to read.
|
|
Output data of Get File/Folder List operation can directly be input to this operation.
Output schema
<?xml version="1.0"?> <table> <row> <column>bucketname</column> <column>etag</column> <column>filename</column> <column>public</column> <column>remotepath</column> <column>size</column> <column>status</column> <column>storageclass</column> <column>type</column> <column>updated</column> <column>data</column> <column>contenttype</column> </row> <row> : </row> </table>
Column name |
Description |
Remarks |
---|---|---|
bucketname |
Outputs the bucket name of the retrieved file/folder. |
|
etag |
Outputs the ETag of the retrieved file/folder. |
|
filename |
Outputs the name of the retrieved file/folder. |
|
public |
Outputs the access right of the retrieved file/folder.
|
|
remotepath |
Outputs file path on Amazon S3 of the retrieved file/folder. |
|
size |
Outputs the size of the retrieved file/folder. The unit is byte. |
|
status |
Outputs the status of the retrieved file/folder.
|
|
storageclass |
Outputs Storage Class of the retrieved file/folder.
|
|
type |
Outputs the classification of the retrieved file/folder.
|
|
updated |
Outputs the last updated date of the retrieved file/folder. |
|
data |
Outputs the received file contents in binary format. |
|
contenttype |
Outputs the Content-Type that is set on Amazon S3 of the received file/folder. |
|
One row is output per a file or a folder.
Loading schema in Mapper
The schema is loaded automatically.
For details, refer to Edit Schema.
Mass data processing
Mass data processing is supported.
Parallel Stream Processing
PSP isn't supported.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
count |
The number of retrieved folders and files is stored. |
|
folder_count |
The number of retrieved folders is stored. |
|
file_count |
The number of retrieved files is stored. |
|
message_category |
When an error occurs, the category of the message code corresponding to the error is stored. |
|
message_code |
When an error occurs, the code of the message code corresponding to the error is stored. |
|
message_level |
When an error occurs, the severity of the message code corresponding to the error is stored. |
|
error_type |
When an error occurs, the error type is stored. |
|
error_message |
When an error occurs, the error message is stored. |
|
error_trace |
When an error occurs, the trace information for the error is stored. |
|
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|