This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch aws-sqs-batch in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit ddadc7e76d75f239f4df04f22e0f23556705247b Author: Andrea Cosentino <[email protected]> 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
