Created
February 2, 2019 16:40
-
-
Save dilin993/d1c890553611d4b8a8bf8418b8eb2d70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<proxy xmlns="http://ws.apache.org/ns/synapse" | |
name="S3" | |
startOnLoad="true" | |
statistics="disable" | |
trace="disable" | |
transports="http,https"> | |
<target> | |
<inSequence> | |
<log/> | |
<amazons3.init> | |
<accessKeyId>ACCESS_KEY</accessKeyId> | |
<secretAccessKey>SECRET</secretAccessKey> | |
<host>BUCKET_NAME.s3.LOCATION.amazonaws.com</host> | |
<methodType>PUT</methodType> | |
<region>LOCATION</region> | |
<isXAmzDate>true</isXAmzDate> | |
<addCharset>false</addCharset> | |
</amazons3.init> | |
<log level="full"/> | |
<property name="messageType" | |
scope="axis2" | |
type="STRING" | |
value="plain/text"/> | |
<payloadFactory media-type="text"> | |
<format>$1</format> | |
<args> | |
<arg xmlns:ns="http://org.apache.synapse/xsd" | |
evaluator="xml" | |
expression="//file"/> | |
</args> | |
</payloadFactory> | |
<log level="full"/> | |
<amazons3.createObject> | |
<bucketUrl>http://BUCKET_NAME.s3.LOCATION.amazonaws.com</bucketUrl> | |
<objectName>folder3/file.txt</objectName> | |
</amazons3.createObject> | |
<log level="full"/> | |
<respond/> | |
</inSequence> | |
</target> | |
<description/> | |
</proxy> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment