You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/03/26 12:59:22 UTC

[camel-kamelets] branch aws-sns-fifo created (now afadecd)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch aws-sns-fifo
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.


      at afadecd  Added AWS SNS FIFO Sink Kamelet

This branch includes the following new commits:

     new 23d0998  Added AWS SNS FIFO Sink Kamelet
     new 57917ca  Added AWS SNS FIFO Sink Kamelet
     new 46747f1  Added AWS SNS FIFO Sink Kamelet
     new afadecd  Added AWS SNS FIFO Sink Kamelet

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[camel-kamelets] 04/04: Added AWS SNS FIFO Sink Kamelet

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch aws-sns-fifo
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit afadecd8ffab586ef9b179793a59224bf2a5ea29
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 26 13:58:43 2021 +0100

    Added AWS SNS FIFO Sink Kamelet
---
 .../assets/images/kamelets/aws-sns-fifo-sink.svg   | 14 +++++
 docs/modules/ROOT/pages/aws-sns-fifo-sink.adoc     | 68 ++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/aws-sns-fifo-sink.svg b/docs/modules/ROOT/assets/images/kamelets/aws-sns-fifo-sink.svg
new file mode 100644
index 0000000..192b2c8
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/aws-sns-fifo-sink.svg
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg   viewBox="0 0 256 257" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+	<g>
+		<path d="M98.875,232.033 L72.442,224.625 L47.441,196.117 L78.713,195.254 L98.875,232.033" fill="#995B80"></path>
+		<path d="M37.75,213.233 L22.875,209.067 L8.817,193.033 L25.899,190.224 L37.75,213.233" fill="#995B80"></path>
+		<path d="M0,191.017 L15.204,194.108 L17.411,190.226 L17.411,58.503 L15.204,55.942 L0,64.6 L0,191.017" fill="#7B3F65"></path>
+		<path d="M73.933,69.708 L15.208,55.942 L15.208,194.108 L24.006,193.29 L37.75,213.233 L48.35,191.028 L73.933,188.65 L73.933,69.708" fill="#C17B9D"></path>
+		<path d="M33.958,198.133 L60.021,203.383 L61.737,199.338 L61.737,37.44 L60.021,33.775 L33.958,46.983 L33.958,198.133" fill="#7B3F65"></path>
+		<path d="M208.734,81.516 L60.021,33.775 L60.021,203.387 L77.242,201.171 L98.875,232.033 L116.001,196.183 L208.734,184.25 L208.734,81.516" fill="#C17B9D"></path>
+		<path d="M181.833,256.492 L144.267,245.967 L108.758,205.467 L154.791,204.999 L181.833,256.492" fill="#995B80"></path>
+		<path d="M89.591,208.95 L127.921,216.367 L130.898,213.801 L130.898,4.117 L127.921,0 L89.591,19.158 L89.591,208.95" fill="#7B3F65"></path>
+		<path d="M256,64.033 L127.925,0 L127.925,216.367 L150.522,211.839 L181.833,256.492 L208.734,200.183 L208.717,200.181 L256,190.708 L256,64.033" fill="#C17B9D"></path>
+	</g>
+</svg>
diff --git a/docs/modules/ROOT/pages/aws-sns-fifo-sink.adoc b/docs/modules/ROOT/pages/aws-sns-fifo-sink.adoc
new file mode 100644
index 0000000..37256fa
--- /dev/null
+++ b/docs/modules/ROOT/pages/aws-sns-fifo-sink.adoc
@@ -0,0 +1,68 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/aws-sns-fifo-sink.svg[] AWS SNS FIFO Sink
+
+*Provided by: "Apache Software Foundation"*
+
+Send message to an AWS SQS FIFO Queue
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `aws-sns-fifo-sink` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *accessKey {empty}* *| Access Key| The access key obtained from AWS| string| | 
+| *region {empty}* *| AWS Region| The AWS region to connect to| string| | `"eu-west-1"`
+| *secretKey {empty}* *| Secret Key| The secret key obtained from AWS| string| | 
+| *topicNameOrArn {empty}* *| Topic Name| The SNS Topic name or ARN| string| | 
+| autoCreateTopic| Autocreate topic| Setting the autocreation of the SNS topic.| boolean| `false`| 
+| contentBasedDeduplication| Content-Based Deduplication| Use content-based deduplication (should be enabled in the SQS FIFO queue first)| boolean| `false`| 
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `aws-sns-fifo-sink` can be used in various contexts.
+
+=== Knative Sink
+
+The `aws-sns-fifo-sink` Kamelet can be used as Knative sink by binding it to a Knative object.
+
+.aws-sns-fifo-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: aws-sns-fifo-sink-binding
+spec:
+  source:
+    ref:
+      kind: InMemoryChannel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+  sink:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: aws-sns-fifo-sink
+    properties:
+      accessKey: "The Access Key"
+      region: "eu-west-1"
+      secretKey: "The Secret Key"
+      topicNameOrArn: "The Topic Name"
+
+----
+
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `aws-sns-fifo-sink-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the sink using the following command:
+
+[source,shell]
+----
+kubectl apply -f aws-sns-fifo-sink-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 01/04: Added AWS SNS FIFO Sink Kamelet

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch aws-sns-fifo
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 23d099889ea00b10067449e9b526c9dc6aaf7d1c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 26 13:55:46 2021 +0100

    Added AWS SNS FIFO Sink Kamelet
---
 aws-sns-fifo-sink.kamelet.yaml | 103 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 103 insertions(+)

diff --git a/aws-sns-fifo-sink.kamelet.yaml b/aws-sns-fifo-sink.kamelet.yaml
new file mode 100644
index 0000000..a06ce62
--- /dev/null
+++ b/aws-sns-fifo-sink.kamelet.yaml
@@ -0,0 +1,103 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: aws-sns-fifo-sink
+  annotations:
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+  labels:
+    camel.apache.org/kamelet.type: sink
+    camel.apache.org/requires.runtime: "camel-quarkus"
+spec:
+  definition:
+    title: AWS SNS FIFO Sink
+    description: Send message to an AWS SQS FIFO Queue
+    required:
+      - topicNameOrArn
+      - accessKey
+      - secretKey
+      - region
+    properties:
+      topicNameOrArn:
+        title: Topic Name
+        description: The SNS Topic name or ARN
+        type: string
+      accessKey:
+        title: Access Key
+        description: The access key obtained from AWS
+        type: string
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+      secretKey:
+        title: Secret Key
+        description: The secret key obtained from AWS
+        type: string
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+      region:
+        title: AWS Region
+        description: The AWS region to connect to
+        type: string
+        example: eu-west-1
+      contentBasedDeduplication:
+        title: Content-Based Deduplication
+        description: Use content-based deduplication (should be enabled in the SQS FIFO queue first)
+        type: boolean
+        default: false
+      autoCreateTopic:
+        title: Autocreate topic
+        description: Setting the autocreation of the SNS topic. 
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
+  dependencies:
+  - camel-quarkus:aws2-sns
+  flow:
+    from:
+      uri: kamelet:source
+      steps:
+      - set-property:
+          name: contentBasedDeduplication
+          constant: "{{contentBasedDeduplication}}"
+      - choice:
+          when:
+          - simple: "${header[group]}"
+            steps:
+            - set-property:
+                name: CamelAwsSnsMessageGroupId
+                simple: "${header[group]}"
+          - simple: "${header[ce-group]}"
+            steps:
+            - set-property:
+                name: CamelAwsSnsMessageGroupId
+                simple: "${header[ce-group]}"
+          otherwise:
+            steps:
+            - set-property:
+                name: CamelAwsSnsMessageGroupId
+                simple: "${exchangeId}"
+      - choice:
+          when:
+          - simple: "${exchangeProperty.contentBasedDeduplication} == 'true'"
+            steps:
+            - to:
+                uri: "aws2-sns:{{topicNameOrArn}}"
+                parameters:
+                  autoCreateTopic: "{{autoCreateTopic}}"
+                  accessKey: "{{accessKey}}"
+                  secretKey: "{{secretKey}}"
+                  region: "{{region}}"
+                  messageGroupIdStrategy: "usePropertyValue"
+                  messageDeduplicationIdStrategy: "useContentBasedDeduplication"
+          otherwise:
+            steps:
+            - to:
+                uri: "aws2-sns:{{topicNameOrArn}}"
+                parameters:
+                  autoCreateTopic: "{{autoCreateTopic}}"
+                  accessKey: "{{accessKey}}"
+                  secretKey: "{{secretKey}}"
+                  region: "{{region}}"
+                  messageGroupIdStrategy: "usePropertyValue"
+                  messageDeduplicationIdStrategy: "useExchangeId"

[camel-kamelets] 02/04: Added AWS SNS FIFO Sink Kamelet

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch aws-sns-fifo
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 57917ca82712983408a672da576116959c3cd39b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 26 13:57:41 2021 +0100

    Added AWS SNS FIFO Sink Kamelet
---
 aws-sns-fifo-sink.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aws-sns-fifo-sink.kamelet.yaml b/aws-sns-fifo-sink.kamelet.yaml
index a06ce62..21bcc58 100644
--- a/aws-sns-fifo-sink.kamelet.yaml
+++ b/aws-sns-fifo-sink.kamelet.yaml
@@ -3,7 +3,7 @@ kind: Kamelet
 metadata:
   name: aws-sns-fifo-sink
   annotations:
-    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnICAgdmlld0JveD0iMCAwIDI1NiAyNTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPg0KCTxnPg0KCQk8cGF0aCBkPSJNOTguODc1LDIzMi4wMzMgTDcyLjQ0MiwyMjQuNjI1IEw0Ny40NDEsMTk2LjExNyBMNzguNzEzLDE5NS4yNTQgTDk4Ljg3NSwyMzIuMDMzIiBmaWxsPSIjOTk1QjgwIj [...]
     camel.apache.org/provider: "Apache Software Foundation"
   labels:
     camel.apache.org/kamelet.type: sink

[camel-kamelets] 03/04: Added AWS SNS FIFO Sink Kamelet

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch aws-sns-fifo
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 46747f157853c7390608d87bd51679fdb2102834
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 26 13:58:31 2021 +0100

    Added AWS SNS FIFO Sink Kamelet
---
 docs/modules/ROOT/nav.adoc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index d5611f7..db36965 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -2,6 +2,7 @@
 * xref:ROOT:aws-ddb-streams-source.adoc[image:kamelets/aws-ddb-streams-source.svg[] AWS DynamoDB Streams Source]
 * xref:ROOT:aws-kinesis-source.adoc[image:kamelets/aws-kinesis-source.svg[] AWS Kinesis Source]
 * xref:ROOT:aws-s3-source.adoc[image:kamelets/aws-s3-source.svg[] AWS S3 Source]
+* xref:ROOT:aws-sns-fifo-sink.adoc[image:kamelets/aws-sns-fifo-sink.svg[] AWS SNS FIFO Sink]
 * xref:ROOT:aws-sns-sink.adoc[image:kamelets/aws-sns-sink.svg[] AWS SNS Sink]
 * xref:ROOT:aws-sqs-fifo-sink.adoc[image:kamelets/aws-sqs-fifo-sink.svg[] AWS SQS FIFO Sink]
 * xref:ROOT:aws-sqs-sink.adoc[image:kamelets/aws-sqs-sink.svg[] AWS SQS Sink]