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 2022/01/04 08:00:18 UTC

[camel-kamelets] branch main updated (f71b93c -> cef0153)

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

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


    from f71b93c  Removed Github Source Kamelet
     new 7407854  Added AWS SES Sink Kamelet
     new 8d21ae6  Added AWS SES Sink Kamelet
     new 5e813d4  Added AWS SES Sink Kamelet
     new b5edb64  Added AWS SES Sink Kamelet
     new fcc30fa  Added AWS SES Sink Kamelet
     new cef0153  Added AWS SES Sink Kamelet

The 6 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.


Summary of changes:
 docs/modules/ROOT/nav.adoc                         |   1 +
 kamelets/aws-ses-sink.kamelet.yaml                 | 132 +++++++++++++++++++++
 .../resources/kamelets/aws-ses-sink.kamelet.yaml   | 132 +++++++++++++++++++++
 3 files changed, 265 insertions(+)
 create mode 100644 kamelets/aws-ses-sink.kamelet.yaml
 create mode 100644 library/camel-kamelets/src/main/resources/kamelets/aws-ses-sink.kamelet.yaml

[camel-kamelets] 01/06: Added AWS SES 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 74078540e626790052c34f79a96dd74fc395b886
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 4 08:18:37 2022 +0100

    Added AWS SES Sink Kamelet
---
 kamelets/aws-ses-sink.kamelet.yaml | 125 +++++++++++++++++++++++++++++++++++++
 1 file changed, 125 insertions(+)

diff --git a/kamelets/aws-ses-sink.kamelet.yaml b/kamelets/aws-ses-sink.kamelet.yaml
new file mode 100644
index 0000000..9690ced
--- /dev/null
+++ b/kamelets/aws-ses-sink.kamelet.yaml
@@ -0,0 +1,125 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: aws-ses-sink
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjI1NnB4IiBoZWlnaHQ9IjI5OXB4IiB2aWV3Qm94PSIwIDAgMjU2IDI5OSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+Cgk8Zz4KCQk8cGF0aCBkPSJNNjAuNTU2LDQ3LjYwMiBMMCwxNDQuMDEgTDYwLjU1NiwyNDAuNDM0IEw2MS42MTIsMjM5LjY4MSBMNjAuODM3LDQ3LjggTD [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "AWS SES"
+  labels:
+    camel.apache.org/kamelet.type: "sink"
+spec:
+  definition:
+    title: "AWS SES Sink"
+    description: |-
+      Create a secret in AWS Secrets Manager
+
+      The Kamelet expects the following headers to be set:
+
+      - `secret-name` / `ce-secret-name`: as the secret name to create.
+
+      If the header won't be set the exchange ID will be used as secret name.
+    required:
+      - from
+      - accessKey
+      - secretKey
+      - region
+    type: object
+    properties:
+      from:
+        title: From 
+        description: From address
+        type: string
+        example: user@example.com
+      to:
+        title: To 
+        description: To address
+        type: string
+        example: user@example.com
+      accessKey:
+        title: Access Key
+        description: The access key obtained from AWS.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+        - urn:camel:group:credentials
+      secretKey:
+        title: Secret Key
+        description: The secret key obtained from AWS.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+        - urn:camel:group:credentials
+      region:
+        title: AWS Region
+        description: The AWS region to connect to.
+        type: string
+        example: eu-west-1
+  dependencies:
+    - "camel:aws2-ses"
+    - "camel:kamelet"
+  flow:
+    from:
+      uri: "kamelet:source"
+      steps:
+      - choice:
+          when:
+          - simple: "${header[subject]}"
+            steps:
+            - set-header:
+                name: CamelAwsSesSubject
+                simple: "${header[subject]}"
+          - simple: "${header[ce-subject]}"
+            steps:
+            - set-header:
+                name: CamelAwsSesSubject
+                simple: "${header[ce-subject]}"
+          otherwise:
+            steps:
+            - set-header:
+                name: CamelAwsSesSubject
+                simple: "${exchangeId}"
+      - choice:
+          when:
+          - simple: "${header[to]}"
+            steps:
+            - set-header:
+                name: CamelAwsSesTo
+                simple: "${header[to]}"
+          - simple: "${header[ce-to]}"
+            steps:
+            - set-header:
+                name: CamelAwsSesTo
+                simple: "${header[ce-to]}"
+          otherwise:
+            steps:
+            - set-header:
+                name: CamelAwsSesTo
+                simple: "${exchangeId}"
+      - to:
+          uri: "aws2-ses://{{from}}"
+          parameters:
+            secretKey: "{{secretKey}}"
+            accessKey: "{{accessKey}}"
+            region: "{{region}}"

[camel-kamelets] 02/06: Added AWS SES 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 8d21ae679d991d4a1ed5946aeebeca97e8228030
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 4 08:47:21 2022 +0100

    Added AWS SES Sink Kamelet
---
 kamelets/aws-ses-sink.kamelet.yaml | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/kamelets/aws-ses-sink.kamelet.yaml b/kamelets/aws-ses-sink.kamelet.yaml
index 9690ced..63c24ad 100644
--- a/kamelets/aws-ses-sink.kamelet.yaml
+++ b/kamelets/aws-ses-sink.kamelet.yaml
@@ -31,13 +31,18 @@ spec:
   definition:
     title: "AWS SES Sink"
     description: |-
-      Create a secret in AWS Secrets Manager
+      Send Email through AWS SES Service.
 
       The Kamelet expects the following headers to be set:
 
-      - `secret-name` / `ce-secret-name`: as the secret name to create.
+      - `subject` / `ce-subject`: The email subject
+
+      If the header won't be set the exchange ID will be used as email subject.
+
+      - `to` / `ce-to`: a comma separated list of email addresses
+
+      - `reply-to-addresses` / `ce-reply-to-addresses`: a comma separated list of reply-to email addresses
 
-      If the header won't be set the exchange ID will be used as secret name.
     required:
       - from
       - accessKey
@@ -112,11 +117,18 @@ spec:
             - set-header:
                 name: CamelAwsSesTo
                 simple: "${header[ce-to]}"
-          otherwise:
+      - choice:
+          when:
+          - simple: "${header[reply-to-addresses]}"
             steps:
             - set-header:
-                name: CamelAwsSesTo
-                simple: "${exchangeId}"
+                name: CamelAwsSesReplyToAddresses
+                simple: "${header[reply-to-addresses]}"
+          - simple: "${header[ce-reply-to-addresses]}"
+            steps:
+            - set-header:
+                name: CamelAwsSesReplyToAddresses
+                simple: "${header[ce-reply-to-addresses]}"
       - to:
           uri: "aws2-ses://{{from}}"
           parameters:

[camel-kamelets] 03/06: Added AWS SES 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 5e813d45e9ac9d5ed0d0667e0408d49cc6942459
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 4 08:49:02 2022 +0100

    Added AWS SES Sink Kamelet
---
 .../resources/kamelets/aws-ses-sink.kamelet.yaml   | 137 +++++++++++++++++++++
 1 file changed, 137 insertions(+)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-ses-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-ses-sink.kamelet.yaml
new file mode 100644
index 0000000..63c24ad
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-ses-sink.kamelet.yaml
@@ -0,0 +1,137 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: aws-ses-sink
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjI1NnB4IiBoZWlnaHQ9IjI5OXB4IiB2aWV3Qm94PSIwIDAgMjU2IDI5OSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+Cgk8Zz4KCQk8cGF0aCBkPSJNNjAuNTU2LDQ3LjYwMiBMMCwxNDQuMDEgTDYwLjU1NiwyNDAuNDM0IEw2MS42MTIsMjM5LjY4MSBMNjAuODM3LDQ3LjggTD [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "AWS SES"
+  labels:
+    camel.apache.org/kamelet.type: "sink"
+spec:
+  definition:
+    title: "AWS SES Sink"
+    description: |-
+      Send Email through AWS SES Service.
+
+      The Kamelet expects the following headers to be set:
+
+      - `subject` / `ce-subject`: The email subject
+
+      If the header won't be set the exchange ID will be used as email subject.
+
+      - `to` / `ce-to`: a comma separated list of email addresses
+
+      - `reply-to-addresses` / `ce-reply-to-addresses`: a comma separated list of reply-to email addresses
+
+    required:
+      - from
+      - accessKey
+      - secretKey
+      - region
+    type: object
+    properties:
+      from:
+        title: From 
+        description: From address
+        type: string
+        example: user@example.com
+      to:
+        title: To 
+        description: To address
+        type: string
+        example: user@example.com
+      accessKey:
+        title: Access Key
+        description: The access key obtained from AWS.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+        - urn:camel:group:credentials
+      secretKey:
+        title: Secret Key
+        description: The secret key obtained from AWS.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+        - urn:camel:group:credentials
+      region:
+        title: AWS Region
+        description: The AWS region to connect to.
+        type: string
+        example: eu-west-1
+  dependencies:
+    - "camel:aws2-ses"
+    - "camel:kamelet"
+  flow:
+    from:
+      uri: "kamelet:source"
+      steps:
+      - choice:
+          when:
+          - simple: "${header[subject]}"
+            steps:
+            - set-header:
+                name: CamelAwsSesSubject
+                simple: "${header[subject]}"
+          - simple: "${header[ce-subject]}"
+            steps:
+            - set-header:
+                name: CamelAwsSesSubject
+                simple: "${header[ce-subject]}"
+          otherwise:
+            steps:
+            - set-header:
+                name: CamelAwsSesSubject
+                simple: "${exchangeId}"
+      - choice:
+          when:
+          - simple: "${header[to]}"
+            steps:
+            - set-header:
+                name: CamelAwsSesTo
+                simple: "${header[to]}"
+          - simple: "${header[ce-to]}"
+            steps:
+            - set-header:
+                name: CamelAwsSesTo
+                simple: "${header[ce-to]}"
+      - choice:
+          when:
+          - simple: "${header[reply-to-addresses]}"
+            steps:
+            - set-header:
+                name: CamelAwsSesReplyToAddresses
+                simple: "${header[reply-to-addresses]}"
+          - simple: "${header[ce-reply-to-addresses]}"
+            steps:
+            - set-header:
+                name: CamelAwsSesReplyToAddresses
+                simple: "${header[ce-reply-to-addresses]}"
+      - to:
+          uri: "aws2-ses://{{from}}"
+          parameters:
+            secretKey: "{{secretKey}}"
+            accessKey: "{{accessKey}}"
+            region: "{{region}}"

[camel-kamelets] 04/06: Added AWS SES 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit b5edb64ff7af7f67bbe9f0d9a9a3cc2988f1d232
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 4 08:49:46 2022 +0100

    Added AWS SES 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 32d5d2d..4e9ff5e 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -14,6 +14,7 @@
 * xref:aws-s3-source.adoc[]
 * xref:aws-s3-streaming-upload-sink.adoc[]
 * xref:aws-secrets-manager-sink.adoc[]
+* xref:aws-ses-sink.adoc[]
 * xref:aws-sns-fifo-sink.adoc[]
 * xref:aws-sns-sink.adoc[]
 * xref:aws-sqs-batch-sink.adoc[]

[camel-kamelets] 06/06: Added AWS SES 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit cef01532abfd4c0ae36c4b2a198f13251885820b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 4 08:51:55 2022 +0100

    Added AWS SES Sink Kamelet
---
 .../src/main/resources/kamelets/aws-ses-sink.kamelet.yaml            | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-ses-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-ses-sink.kamelet.yaml
index 63c24ad..1dab712 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-ses-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-ses-sink.kamelet.yaml
@@ -55,11 +55,6 @@ spec:
         description: From address
         type: string
         example: user@example.com
-      to:
-        title: To 
-        description: To address
-        type: string
-        example: user@example.com
       accessKey:
         title: Access Key
         description: The access key obtained from AWS.

[camel-kamelets] 05/06: Added AWS SES 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit fcc30fae9437d7aef9fc8d52ca8c49e65a8dc2ca
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 4 08:51:41 2022 +0100

    Added AWS SES Sink Kamelet
---
 kamelets/aws-ses-sink.kamelet.yaml | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/kamelets/aws-ses-sink.kamelet.yaml b/kamelets/aws-ses-sink.kamelet.yaml
index 63c24ad..1dab712 100644
--- a/kamelets/aws-ses-sink.kamelet.yaml
+++ b/kamelets/aws-ses-sink.kamelet.yaml
@@ -55,11 +55,6 @@ spec:
         description: From address
         type: string
         example: user@example.com
-      to:
-        title: To 
-        description: To address
-        type: string
-        example: user@example.com
       accessKey:
         title: Access Key
         description: The access key obtained from AWS.