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/04/20 09:52:34 UTC

[camel-kamelets] branch master updated (a45e8e6 -> 6ea19d4)

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

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


    from a45e8e6  Fix #145: allow kamelets of type action and doc
     new e19c7d9  Added AWS SQS Batch Sink Kamelet
     new 28a9f59  Added AWS SQS Batch Sink Kamelet
     new 0b76426  Added AWS SQS Batch Sink Kamelet
     new 5c3ac5c  Added AWS SQS Batch Sink Kamelet
     new 6ea19d4  Added AWS SQS Batch Sink Kamelet

The 5 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:
 ...kamelet.yaml => aws-sqs-batch-sink.kamelet.yaml | 14 +++++++++++---
 .../{aws-sqs-source.svg => aws-sqs-batch-sink.svg} |  0
 docs/modules/ROOT/nav.adoc                         |  1 +
 .../{aws-sqs-sink.adoc => aws-sqs-batch-sink.adoc} | 22 ++++++++++++----------
 4 files changed, 24 insertions(+), 13 deletions(-)
 copy aws-sqs-sink.kamelet.yaml => aws-sqs-batch-sink.kamelet.yaml (94%)
 copy docs/modules/ROOT/assets/images/kamelets/{aws-sqs-source.svg => aws-sqs-batch-sink.svg} (100%)
 copy docs/modules/ROOT/pages/{aws-sqs-sink.adoc => aws-sqs-batch-sink.adoc} (68%)

[camel-kamelets] 03/05: Added AWS SQS Batch 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 master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 0b76426ca7d9891897e4e64f2dfbdc257ea89fee
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Apr 20 09:11:59 2021 +0200

    Added AWS SQS Batch Sink Kamelet
---
 .../assets/images/kamelets/aws-sqs-batch-sink.svg  | 81 ++++++++++++++++++++++
 docs/modules/ROOT/pages/aws-sqs-batch-sink.adoc    | 68 ++++++++++++++++++
 2 files changed, 149 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/aws-sqs-batch-sink.svg b/docs/modules/ROOT/assets/images/kamelets/aws-sqs-batch-sink.svg
new file mode 100644
index 0000000..9676edf
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/aws-sqs-batch-sink.svg
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   enable-background="new 0 0 100 100"
+   height="72.199997"
+   version="1.1"
+   viewBox="0 0 59.849998 72.199997"
+   width="59.849998"
+   xml:space="preserve"
+   id="svg145"
+   sodipodi:docname="download.svg"
+   inkscape:version="1.0.2 (e86c870879, 2021-01-15)"><metadata
+     id="metadata151"><rdf:RDF><cc:Work
+         rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
+     id="defs149" /><sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="1920"
+     inkscape:window-height="1016"
+     id="namedview147"
+     showgrid="false"
+     fit-margin-top="0.1"
+     fit-margin-left="0.1"
+     fit-margin-right="0.1"
+     fit-margin-bottom="0.1"
+     inkscape:zoom="8.19"
+     inkscape:cx="29.925"
+     inkscape:cy="36.1"
+     inkscape:window-x="0"
+     inkscape:window-y="27"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg145" /><g
+     id="Amazon_CloudSearch"
+     transform="translate(-20.075,-13.9)"><g
+       id="g142"><polygon
+         fill="#d9a741"
+         points="23.987,36.201 54.462,40.494 54.46,59.506 23.985,63.793 "
+         id="polygon120" /><polygon
+         fill="#876929"
+         points="50.003,14 20.179,28.908 20.179,37.344 50.003,28.399 "
+         id="polygon122" /><polygon
+         fill="#876929"
+         points="49.997,86 20.19,71.094 20.19,62.654 49.999,71.6 "
+         id="polygon124" /><polygon
+         fill="#d9a741"
+         points="50.003,14 79.825,28.914 79.823,37.35 50.003,28.399 "
+         id="polygon126" /><polygon
+         fill="#d9a741"
+         points="49.997,86 79.806,71.099 79.806,62.66 49.999,71.6 "
+         id="polygon128" /><polygon
+         fill="#876929"
+         points="20.179,28.908 23.989,27.004 23.985,72.99 20.175,71.086 "
+         id="polygon130" /><polygon
+         fill="#876929"
+         points="50.001,40.832 39.019,42.229 39.017,57.762 49.999,59.16 "
+         id="polygon132" /><polygon
+         fill="#876929"
+         points="35.083,42.729 27.954,43.637 27.954,56.354 35.081,57.26 "
+         id="polygon134" /><polygon
+         fill="#624a1e"
+         points="79.823,37.35 54.481,40.496 23.987,36.201 50.003,28.399 "
+         id="polygon136" /><polygon
+         fill="#fad791"
+         points="79.806,62.66 54.46,59.506 23.985,63.793 49.999,71.6 "
+         id="polygon138" /><polygon
+         fill="#d9a741"
+         points="50.001,40.832 79.808,44.629 79.808,55.33 49.999,59.092 "
+         id="polygon140" /></g></g></svg>
diff --git a/docs/modules/ROOT/pages/aws-sqs-batch-sink.adoc b/docs/modules/ROOT/pages/aws-sqs-batch-sink.adoc
new file mode 100644
index 0000000..2f4eb34
--- /dev/null
+++ b/docs/modules/ROOT/pages/aws-sqs-batch-sink.adoc
@@ -0,0 +1,68 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/aws-sqs-batch-sink.svg[] AWS SQS Batch Sink
+
+*Provided by: "Apache Software Foundation"*
+
+Send Batch message to an AWS SQS Queue
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `aws-sqs-batch-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| | 
+| *queueNameOrArn {empty}* *| Queue Name| The SQS Queue name or ARN| 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| | 
+| autoCreateQueue| Autocreate queue| Setting the autocreation of the SQS queue.| boolean| `false`| 
+| batchSeparator| Batch Separator| The batch separator string| string| | `","`
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `aws-sqs-batch-sink` can be used in various contexts.
+
+=== Knative Sink
+
+The `aws-sqs-batch-sink` Kamelet can be used as Knative sink by binding it to a Knative object.
+
+.aws-sqs-batch-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: aws-sqs-batch-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-sqs-batch-sink
+    properties:
+      accessKey: "The Access Key"
+      queueNameOrArn: "The Queue Name"
+      region: "eu-west-1"
+      secretKey: "The Secret Key"
+
+----
+
+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-sqs-batch-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-sqs-batch-sink-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 02/05: Added AWS SQS Batch 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 master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 28a9f5960bc713c0d98ce60dc83bc0062f9d9613
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Apr 20 09:11:31 2021 +0200

    Added AWS SQS Batch 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 8544f69..e71cb1f 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -7,6 +7,7 @@
 * 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-batch-sink.adoc[image:kamelets/aws-sqs-batch-sink.svg[] AWS SQS Batch 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]
 * xref:ROOT:aws-sqs-source.adoc[image:kamelets/aws-sqs-source.svg[] AWS SQS Source]

[camel-kamelets] 04/05: Added AWS SQS Batch 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 master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 5c3ac5c4eb714e329343ca8b51e13d2e41befc54
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Apr 20 11:21:00 2021 +0200

    Added AWS SQS Batch Sink Kamelet
---
 aws-sqs-batch-sink.kamelet.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/aws-sqs-batch-sink.kamelet.yaml b/aws-sqs-batch-sink.kamelet.yaml
index a3822f0..8a95a76 100644
--- a/aws-sqs-batch-sink.kamelet.yaml
+++ b/aws-sqs-batch-sink.kamelet.yaml
@@ -17,6 +17,7 @@ spec:
       - accessKey
       - secretKey
       - region
+      - batchSeparator
     properties:
       queueNameOrArn:
         title: Queue Name

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

commit 6ea19d45e38c1afda8e09a0bd504fddae3c67fea
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Apr 20 11:21:11 2021 +0200

    Added AWS SQS Batch Sink Kamelet
---
 docs/modules/ROOT/pages/aws-sqs-batch-sink.adoc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/pages/aws-sqs-batch-sink.adoc b/docs/modules/ROOT/pages/aws-sqs-batch-sink.adoc
index 2f4eb34..4caee88 100644
--- a/docs/modules/ROOT/pages/aws-sqs-batch-sink.adoc
+++ b/docs/modules/ROOT/pages/aws-sqs-batch-sink.adoc
@@ -12,11 +12,11 @@ The following table summarizes the configuration options available for the `aws-
 |===
 | Property| Name| Description| Type| Default| Example
 | *accessKey {empty}* *| Access Key| The access key obtained from AWS| string| | 
+| *batchSeparator {empty}* *| Batch Separator| The batch separator string| string| | `","`
 | *queueNameOrArn {empty}* *| Queue Name| The SQS Queue name or ARN| 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| | 
 | autoCreateQueue| Autocreate queue| Setting the autocreation of the SQS queue.| boolean| `false`| 
-| batchSeparator| Batch Separator| The batch separator string| string| | `","`
 |===
 
 NOTE: Fields marked with ({empty}*) are mandatory.
@@ -49,6 +49,7 @@ spec:
       name: aws-sqs-batch-sink
     properties:
       accessKey: "The Access Key"
+      batchSeparator: ","
       queueNameOrArn: "The Queue Name"
       region: "eu-west-1"
       secretKey: "The Secret Key"

[camel-kamelets] 01/05: Added AWS SQS Batch 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 master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit e19c7d9df7134ffe2ef064afe8c2e0f716fa0b89
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Apr 20 09:10:49 2021 +0200

    Added AWS SQS Batch Sink Kamelet
---
 aws-sqs-batch-sink.kamelet.yaml | 66 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

diff --git a/aws-sqs-batch-sink.kamelet.yaml b/aws-sqs-batch-sink.kamelet.yaml
new file mode 100644
index 0000000..a3822f0
--- /dev/null
+++ b/aws-sqs-batch-sink.kamelet.yaml
@@ -0,0 +1,66 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: aws-sqs-batch-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
+spec:
+  definition:
+    title: AWS SQS Batch Sink
+    description: |-
+      Send Batch message to an AWS SQS Queue
+    required:
+      - queueNameOrArn
+      - accessKey
+      - secretKey
+      - region
+    properties:
+      queueNameOrArn:
+        title: Queue Name
+        description: The SQS Queue 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
+      autoCreateQueue:
+        title: Autocreate queue
+        description: Setting the autocreation of the SQS queue. 
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
+      batchSeparator:
+        title: Batch Separator
+        description: The batch separator string
+        type: string
+        example: ","
+  flow:
+    from:
+      uri: kamelet:source
+      steps:
+      - to:
+          uri: "aws2-sqs:{{queueNameOrArn}}"
+          parameters:
+            autoCreateQueue: "{{autoCreateQueue}}"
+            accessKey: "{{accessKey}}"
+            secretKey: "{{secretKey}}"
+            region: "{{region}}"
+            batchSeparator: "{{batchSeparator}}"
+            operation: "sendBatchMessage"