Write File/Folder (Data)
Operation name
Write File/Folder (Data)
Function overview
Writes file/folder to Amazon S3.
Data model
The data model of this component is table model type for input data and XML 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.
|
|
Create a bucket when it doesn't exist |
Optional |
Not available |
Select whether to create a bucket when the specified bucket doesn't exist.
|
|
Include permissions in result |
Optional |
Not available |
Select whether to include file access right information in the results.
|
|
Encryption settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Encryption |
Required |
Not available |
Select whether to encrypt file or not.
|
|
Public Key |
Required |
Available |
Enter file path of public key to encrypt. 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.
|
Note
This setting is used to configure the output processing method of result data. It doesn't affect files/folders to be written. |
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"?> <table> <row> <column>bucketname</column> <column>public</column> <column>remotepath</column> <column>storageclass</column> <column>type</column> <column>data</column> <column>contenttype</column> </row> <row> : </row> </table>
Column name |
Description |
Remarks |
---|---|---|
bucketname |
Specify a name of a bucket to write a file/folder. |
|
public |
Specify access right of a file/folder to write.
|
|
remotepath |
Specify a path on Amazon S3 of the file/folder to write. |
|
storageclass |
Specify a Storage Class of a file/folder to write.
|
|
type |
Specify a type of a file/folder to write.
|
|
data |
Specify the file contents to write in Base64 format or binary format. |
|
contenttype |
Specify Content-Type for the file/folder to write on Amazon S3. |
|
One row is input per file or folder.
Output schema
<?xml version="1.0"?> <server> <bucket name="" status="" > <file etag="" name="" public="" remotepath="" size="" status="" storageclass="" type="" updated="" /> </bucket> </server>
Element name |
Attribute name |
Description |
Remarks |
---|---|---|---|
server |
- |
|
|
bucket |
- |
Appears once for each bucket of written file/folder. |
|
name |
Outputs bucket name of written file/folder. |
|
|
status |
Outputs the status of the retrieved bucket.
|
|
|
file |
- |
Appears once for each written file/folder. |
|
etag |
Outputs ETag of written file/folder. |
|
|
name |
Outputs name of the written file/folder. |
|
|
public |
Outputs the access right of the retrieved file/folder.
|
|
|
remotepath |
Outputs file path on Amazon S3 of written file/folder. |
|
|
size |
Outputs size of written file/folder. The unit is byte. |
|
|
status |
Outputs status of written file/folder.
|
|
|
storageclass |
Outputs Storage Class of the retrieved file/folder.
|
|
|
type |
Outputs classification of written file/folder.
|
|
|
updated |
Outputs the last updated date of written file/folder. |
|
Loading schema in Mapper
The schema is loaded automatically.
For details, refer to Edit Schema.
Mass data processing
Mass data processing is supported.
Transaction
Transaction isn't supported.
Parallel Stream Processing
PSP isn't supported.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
count |
The number of written folders and files is stored. |
|
folder_count |
The number of written folders is stored. |
|
file_count |
The number of written 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 |
---|---|---|---|