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

commit c9411541c1f7430b3d05206184f6e575763b6cc6
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Fri Nov 27 11:22:25 2020 +0100

    Camel-AWS2-SNS: Added note about SNS Fifo Topic usage and subscription to 
SQS Fifo queue
---
 .../src/main/docs/aws2-sns-component.adoc          | 50 ++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc 
b/components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc
index ba551be..0e34990 100644
--- a/components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc
+++ b/components/camel-aws2-sns/src/main/docs/aws2-sns-component.adoc
@@ -207,6 +207,56 @@ The component is capable of detecting the presence of an 
SnsClient bean into the
 If it's the only instance of that type it will be used as client and you won't 
have to define it as uri parameter.
 This may be really useful for smarter configuration of the endpoint.
 
+== SNS FIFO
+
+SNS FIFO are supported. While creating the SQS queue you will subscribe to the 
SNS topic there is an important point to remember, you'll need to make possible 
for the SNS Topic to send message to the SQS Queue.
+
+This is clear with an example.
+
+Suppose you created an SNS FIFO Topic called Order.fifo and an SQS Queue 
called QueueSub.fifo.
+
+In the access Policy of the QueueSub.fifo you should submit something like this
+
+[source,bash]
+-------------------------------------------------
+{
+  "Version": "2008-10-17",
+  "Id": "__default_policy_ID",
+  "Statement": [
+    {
+      "Sid": "__owner_statement",
+      "Effect": "Allow",
+      "Principal": {
+        "AWS": "arn:aws:iam::780560123482:root"
+      },
+      "Action": "SQS:*",
+      "Resource": "arn:aws:sqs:eu-west-1:780560123482:QueueSub.fifo"
+    },
+    {
+      "Effect": "Allow",
+      "Principal": {
+        "Service": "sns.amazonaws.com"
+      },
+      "Action": "SQS:SendMessage",
+      "Resource": "arn:aws:sqs:eu-west-1:780560123482:QueueSub.fifo",
+      "Condition": {
+        "ArnLike": {
+          "aws:SourceArn": "arn:aws:sns:eu-west-1:780410022472:Order.fifo"
+        }
+      }
+    }
+  ]
+}
+-------------------------------------------------
+
+This is a critical step to make the subscription work correctly.
+
+=== SNS Fifo Topic Message group Id Strategy and message Deduplication Id 
Strategy
+
+When sending something to the FIFO topic you'll need to always set up a 
message group Id strategy.
+
+If the content-based message deduplication has been enabled on the SNS Fifo 
topic, where won't be the need of setting a message deduplication id strategy, 
otherwise you'll have to set it.
+
 == Dependencies
 
 Maven users will need to add the following dependency to their pom.xml.

Reply via email to