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/22 14:03:18 UTC
[camel-kamelets] 04/04: Added AWS SQS Fifo Sink Kamelet
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch sqs-fifo
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit ebd3c01b745e874f412dd941700672404a7ec94b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 22 15:01:26 2021 +0100
Added AWS SQS Fifo Sink Kamelet
---
.../assets/images/kamelets/aws-sqs-fifo-sink.svg | 81 ++++++++++++++++++++++
docs/modules/ROOT/pages/aws-sqs-fifo-sink.adoc | 68 ++++++++++++++++++
2 files changed, 149 insertions(+)
diff --git a/docs/modules/ROOT/assets/images/kamelets/aws-sqs-fifo-sink.svg b/docs/modules/ROOT/assets/images/kamelets/aws-sqs-fifo-sink.svg
new file mode 100644
index 0000000..9676edf
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/aws-sqs-fifo-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-fifo-sink.adoc b/docs/modules/ROOT/pages/aws-sqs-fifo-sink.adoc
new file mode 100644
index 0000000..44eeece
--- /dev/null
+++ b/docs/modules/ROOT/pages/aws-sqs-fifo-sink.adoc
@@ -0,0 +1,68 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/aws-sqs-fifo-sink.svg[] AWS SQS 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-sqs-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| |
+| *messageDeduplicationIdStrategy {empty}* *| Message Deduplication ID Strategy| Strategy for setting the messageDeduplicationId on the message. Can be one of the following options useExchangeId, useContentBasedDeduplication| string| `"useExchangeId"`|
+| *messageGroupIdStrategy {empty}* *| Message Group ID Strategy| Strategy for setting the messageGroupId on the message. Can be one of the following options useConstant, useExchangeId, usePropertyValue.| string| `"useExchangeId"`|
+| *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| |
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `aws-sqs-fifo-sink` can be used in various contexts.
+
+=== Knative Sink
+
+The `aws-sqs-fifo-sink` Kamelet can be used as Knative sink by binding it to a Knative object.
+
+.aws-sqs-fifo-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: aws-sqs-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-sqs-fifo-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-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-sqs-fifo-sink-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT