This adapter manages data and its structures in Amazon S3 Blob Storage. Moreover, you can use it to persist data in cloud environments.
Properties
|
|
Operation performed by the adapter Possible values:
|
Parameter
|
|
Adapter main class (do not change!) Possible values: de.softproject.integration.adapter.amazons3.AmazonS3SimpleStorageAdapter: Main Class (Standard) |
||||||||||||||||||
|
|
Access key ID for requests to Amazon Web Services (AWS) (information) The credentials are sent to the adapter via parameters. There are various configuration options, see Setting up access data .
Possible values: Any string with the access key ID, e.g. |
||||||||||||||||||
|
|
Secret access key for requests to AWS (information) The credentials are sent to the adapter via parameters. There are various configuration options, see Setting up access data . Possible values: Any string with the secret access key, e.g. |
||||||||||||||||||
|
|
Bucket region
Possible values: Any string with the name of the region, for example, (information) Buckets created in a specific region cannot be invoked from another region, see Regional endpoints. |
||||||||||||||||||
|
|
Bucket name (information) The bucket name must be unique within Amazon S3 , see Buckets. Possible values: Any string with the bucket name The following rules apply to the naming of S3 buckets in all AWS regions. Bucket names ...
|
||||||||||||||||||
|
|
Bucket versioning to keep multiple variants of an object in the same bucket Possible values:
|
||||||||||||||||||
|
|
Specifies whether buckets or files are publicly accessible when using the |
||||||||||||||||||
|
|
Configuration for public access Possible values:
|
||||||||||||||||||
|
|
Name of the file to be saved, see Objects The following character sets are generally allowed in key names:
Possible values: Any string with the object key name, for example
|
||||||||||||||||||
|
|
Path of the file to be uploaded
Possible values: Any valid path, for example
|
||||||||||||||||||
|
|
Information on whether the file should be overwritten or not Possible values:
|
||||||||||||||||||
|
|
Name of the bucket in which the file is to be copied or moved Possible values: See |
||||||||||||||||||
|
|
Name of the file if it is copied or moved under the new path Possible values: See |
||||||||||||||||||
|
|
Specifies whether or not object metadata is included as part of the response Possible values:
|
Status values
|
|
The adapter operation was executed successfully |
|
|
The operation has not yet been completed or no result has been returned |
|
|
An error occurred while running the adapter |
Input
The adapter expects any input document, for example, a binary or Base64 document (XML or text).
-
Uploadoperation: If thepathparameter is specified, no input document is required. In all other cases, an input document is expected. -
DownloadandSearchoperations: No input document is required. -
AddGrantsPermissionoperation :XML<?xml version='1.0' encoding='UTF-8'?> <RootElement> <Grant id="Canonical User ID"> <permission> Read </permission> <permission> Write </permission> <permission> WriteAcp </permission> <permission> ReadAcp </permission> <permission> FullControl </permission> </Grant> </RootElement>(information) To add object permissions, the
bucketandfileparameters are required. To add bucket permissions, thebucketparameter is required andfilemust be empty.
-
RevokeGrantsPermissionoperation:XML<?xml version='1.0' encoding='UTF-8'?> <RootElement> <Grant id="Canonical User ID"> </Grant> </RootElement>(information) To add object permissions, the
bucketandfileparameters are required. To add bucket permissions, thebucketparameter is required andfilemust be empty. -
For the
AddBucketPolicyoperation, the input must be in JSON format
(information) The following links provide additional information, such as bucket policy examples, permissions in a policy, and conditions in policies. -
DeleteMultiFilesoperation:XML<?xml version='1.0' encoding='UTF-8'?> <RootElement> <Object name="File Name"></Object> <Object name="File Name"></Object> <Object name="File Name"></Object> <Object name="File Name"></Object> </RootElement>
Output
The adapter outputs various documents depending on the operation that is performed:
-
Uploadoperation:
If the adapter has been executed successfully (status 1), an XML document is issued.If there was an error during adapter execution (status -1), nothing is issued. -
Searchoperation:If the adapter has been executed successfully (status 1), an XML document is issued with the used filters.Beispiel-Output für die Operation SEARCH <?xml version='1.0' encoding='UTF-8'?> <ListBucket> <Bucket name="test-malaga2" region="eu-west-1"> <Object name="myFile.xml" url="https://s3-eu-west-1.amazonaws.com/test-malaga2/myFile.xml"/> <Object name="myFile2.xml" url="https://s3-eu-west-1.amazonaws.com/test-malaga2/myFile2.xml"/> <Object name="pic2.jpg" url="https://s3-eu-west-1.amazonaws.com/test-malaga2/pic2.jpg"/> <Object name="testing_folders/" url="https://s3-eu-west-1.amazonaws.com/test-malaga2/testing_folders/"/> <Object name="testing_folders/personalData.txt" url="https://s3-eu-west-1.amazonaws.com/test-malaga2/testing_folders/personalData.txt"/> </Bucket> </ListBucket> If the adapter has been executed successfully (status 1) and the IncludeObjectsMetada parameter is selected, the metadata for each object is also issued:Beispiel-Output für die Operation SEARCH inklusive Metadaten <?xml version='1.0' encoding='UTF-8'?> <ListBucket> <Bucket name="test-malaga2" region="eu-west-1"> <Object name="myFile.xml" url="https://s3-eu-west-1.amazonaws.com/test-malaga2/myFile.xml"> <Metadata lastModified="2018-12-10 13:42:38.000 +0100" instanceLength="158" eTag="a933d9ca99b473c7921c496727a32f91" contentType="application/octet-stream" contentLength="158"/> </Object> <Object name="myFile2.xml" url="https://s3-eu-west-1.amazonaws.com/test-malaga2/myFile2.xml"> <Metadata lastModified="2018-12-10 12:02:07.000 +0100" instanceLength="158" eTag="a933d9ca99b473c7921c496727a32f91" contentType="application/octet-stream" contentLength="158" contentLanguage="English"/> </Object> <Object name="pic2.jpg" url="https://s3-eu-west-1.amazonaws.com/test-malaga2/pic2.jpg"> <Metadata lastModified="2018-12-10 11:37:52.000 +0100" instanceLength="59580" eTag="fb913694d969758b431277b366f53d7" contentType="image/jpeg" contentLength="59580" contentLanguage="Spanish"/> </Object> <Object name="testing_folders/" url="https://s3-eu-west-1.amazonaws.com/test-malaga2/testing_folders/"> <Metadata lastModified="2018-12-10 12:24:54.000 +0100" eTag="d41d8cd98f00b204e9800998ecf8427e" contentType="application/x-directory"/> </Object> <Object name="testing_folders/personalData.txt" url="https://s3-eu-west-1.amazonaws.com/test-malaga2/testing_folders/personalData.txt"> <Metadata lastModified="2018-12-10 12:30:35.000 +0100" instanceLength="33" eTag="7960fb01e91834eb9d5ccbacdf45d0e5" contentType="application/octet-stream" contentLength="33" contentLanguage="Spanish"/> </Object> </Bucket> </ListBucket> If there was an error during adapter execution (status -1), nothing is issued. -
Downloadoperation:If the adapter has been executed successfully (status 1), the downloaded blob (text, XML binary document, etc.) is issued.If the object or bucket does not exist, the status -1 is returned.
-
GetAccessControlListoperation:XML<AccessControlList> <Object Grant="e0188cd1cbfbb71222450e8e416e138172b036cdf3646ab51fb0ae6334d5ae51" Permission="FULL_CONTROL"/> <Object Grant="7779a9de4e188ca2c3fd5ef47f12f2a0fd3b9b30d283e343e0a55746d8df4802" Permission="READ"/> <Object Grant="7779a9de4e188ca2c3fd5ef47f12f2a0fd3b9b30d283e343e0a55746d8df4802" Permission="READ_ACP"/> </AccessControlList>
-
GetBucketPolicyoperation:Java{ "Version":"2012-10-17", "Statement":[ } "Sid":"AddPerm", "Effect":"Allow", "Principal":"*", "Action":"s3:GetObject", "Resource":"arn:aws:s3:::softprojectamazons3input/*" } ] }