This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 61ca7fe CAMEL-13013 - Added docs 61ca7fe is described below commit 61ca7fed4877eeb9f778b75ab5147edec2ce9c6e Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Fri Dec 21 11:53:57 2018 +0100 CAMEL-13013 - Added docs --- components/camel-aws/src/main/docs/aws-sns-component.adoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/components/camel-aws/src/main/docs/aws-sns-component.adoc b/components/camel-aws/src/main/docs/aws-sns-component.adoc index 8d23273..0d5f11d 100644 --- a/components/camel-aws/src/main/docs/aws-sns-component.adoc +++ b/components/camel-aws/src/main/docs/aws-sns-component.adoc @@ -177,6 +177,21 @@ AmazonSNS client = new AmazonSNSClient(awsCredentials, clientConfiguration); registry.bind("client", client); -------------------------------------------------------------------------------------- +#### Create a subscription between an AWS SNS Topic and an AWS SQS Queue + +You can create a subscription of an SQS Queue to an SNS Topic in this way: + +[source,java] +------------------------------------------------- +from("direct:start") +.to("aws-sns://test-camel-sns1?amazonSNSClient=#amazonSNSClient&amazonSQSClient=#amazonSQSClient&subscribeSNStoSQS=true&queueUrl=https://sqs.eu-central-1.amazonaws.com/780410022472/test-camel"); +------------------------------------------------- + +The `#amazonSNSClient` refers to a `AmazonSNS` in the +Registry, while the `#amazonSQSClient` refers to an `AmazonSQS` client. +By specifying `subscribeSNStoSQS` to true and a `queueUrl` of an existing SQS Queue, +you'll be able to subscribe your SQS Queue to your SNS Topic. + ### Dependencies Maven users will need to add the following dependency to their pom.xml.