This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

To use the Amazon SNS connector, add the <amazonsns.init> element in your configuration before carrying out any other Amazon SNS operations. This uses the standard HTTP Authorization header to pass authentication information. Developers are issued an AWS access key ID and AWS secret access key when they register. For request authentication, the AWSAccessKeyId element identifies the access key ID that was used to compute the signature and, indirectly, the developer making the request. 

init
<amazonsns.init>
	<region>{$ctx:region}</region>
	<secretAccessKey>{$ctx:secretAccessKey}</secretAccessKey>
    <accessKeyId>{$ctx:accessKeyId}</accessKeyId>
    <version>{$ctx:version}</version>
	<enableSSL>{$ctx:enableSSL}</enableSSL>
</amazonsns.init> 
Properties
  • region: The regional endpoint to make your requests (e.g., us-east-1).
  • secretAccessKey: The secret access key of the account.
  • accessKeyId: The access key ID that corresponds to the secret access key that is used to sign the request.
  • version: The API version that the request is written for.
  • enableSSL: Optional -  Whether the amazon AWS URL should be http or https. Set to true if you want the URL to be https.

Additional information

Ensure that the following Axis2 configurations are added and enabled.

Required message formatters
messageFormatters
<messageFormatter contentType="application/x-www-form-urlencoded" class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
Required message builders
messageBuilders
<messageBuilder contentType="application/x-www-form-urlencoded" class="org.apache.synapse.commons.builders.XFormURLEncodedBuilder"/>

Now that you have connected to Amazon SNS, see the information in the following topics to perform various operations with the connector. 

  • No labels