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 07:53:06 UTC

[camel-kamelets] branch aws-ses-sink created (now 4c9cb46)

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

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


      at 4c9cb46  Added AWS SES Sink Kamelet

This branch includes the following new commits:

     new b4eed25  Added AWS SES Sink Kamelet
     new c0733fd  Added AWS SES Sink Kamelet
     new 07c8b8b  Added AWS SES Sink Kamelet
     new 6c24799  Added AWS SES Sink Kamelet
     new e0817fb  Added AWS SES Sink Kamelet
     new 4c9cb46  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.


[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 aws-ses-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 07c8b8b694ffa9ef62db04833cd1230578307738
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] 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 aws-ses-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 4c9cb469986b41cc493cbcad8d67a12b8299af5e
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] 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 aws-ses-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit c0733fde2c85338779a37a68b636df094436acdc
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] 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 aws-ses-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit b4eed25c08bb7e0efafe52f06a14a4ac1139e21d
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] 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 aws-ses-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit e0817fba17afaa499c7999442e13ca2149b8fb68
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.

[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 aws-ses-sink
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 6c24799c1df9d116b297f7a6412957e013b9477e
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[]