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/24 13:46:00 UTC

[camel-kamelets] branch aws-sddb created (now 49e9b5e)

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

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


      at 49e9b5e  Added AWS DDB Streams Source Kamelet

This branch includes the following new commits:

     new f14937a  Added AWS DDB Streams Source Kamelet
     new 58e43c7  Added AWS DDB Streams Source Kamelet
     new 49e9b5e  Added AWS DDB Streams Source Kamelet

The 3 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] 02/03: Added AWS DDB Streams Source 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-sddb
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 58e43c7385ff5e613f82c3fefe59a46e6151de31
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 24 14:45:29 2021 +0100

    Added AWS DDB Streams Source 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 9e4e74f..278f4fb 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -1,4 +1,5 @@
 // THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+* xref:ROOT:aws-ddb-streams-source.adoc[image:kamelets/aws-ddb-streams-source.svg[] AWS DDB Streams Source]
 * xref:ROOT:aws-kinesis-source.adoc[image:kamelets/aws-kinesis-source.svg[] AWS Kinesis Source]
 * xref:ROOT:aws-s3-source.adoc[image:kamelets/aws-s3-source.svg[] AWS S3 Source]
 * xref:ROOT:aws-sqs-fifo-sink.adoc[image:kamelets/aws-sqs-fifo-sink.svg[] AWS SQS FIFO Sink]

[camel-kamelets] 03/03: Added AWS DDB Streams Source 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-sddb
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 49e9b5e9ecabdbcd524d29e4c664d7bdc6c8d1ab
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 24 14:45:44 2021 +0100

    Added AWS DDB Streams Source Kamelet
---
 .../images/kamelets/aws-ddb-streams-source.svg     |  1 +
 .../modules/ROOT/pages/aws-ddb-streams-source.adoc | 67 ++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/aws-ddb-streams-source.svg b/docs/modules/ROOT/assets/images/kamelets/aws-ddb-streams-source.svg
new file mode 100644
index 0000000..c0f23d9
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/aws-ddb-streams-source.svg
@@ -0,0 +1 @@
+<svg height="100" width="100" xmlns="http://www.w3.org/2000/svg"><path fill="#2D72B8" d="M74.174 31.807l7.437 5.367v-7.602l-7.48-8.765v10.957l.043.015z"/><path fill="#5294CF" d="M59.838 85.666l14.293-7.146V20.791l-14.303-7.124z"/><path fill="#205B98" d="M39.496 85.666L25.203 78.52V20.791l14.303-7.124z"/><path fill="#2D72B8" d="M39.506 13.667h20.321v71.999H39.506zM74.131 67.564V78.52l7.48-8.764v-7.602l-7.437 5.397zM74.131 62.936l.043-.01 7.437-4v-7.649l-7.48.688zM74.174 36.429l-.043-.01V4 [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/aws-ddb-streams-source.adoc b/docs/modules/ROOT/pages/aws-ddb-streams-source.adoc
new file mode 100644
index 0000000..0bc95f2
--- /dev/null
+++ b/docs/modules/ROOT/pages/aws-ddb-streams-source.adoc
@@ -0,0 +1,67 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/aws-ddb-streams-source.svg[] AWS DDB Streams Source
+
+*Provided by: "Apache Software Foundation"*
+
+Receive events from AWS DDB Streams.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `aws-ddb-streams-source` 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| | 
+| *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| | 
+| bucketNameOrArn| Table| Name of the DynamoDB table to look at| string| | 
+| iteratorType| Iterator Type| Defines where in the DynaboDB stream to start getting records. Note that using TRIM_HORIZON can cause a significant delay before the stream has caught up to real-time. if {AT,AFTER}_SEQUENCE_NUMBER are used, then a sequenceNumberProvider MUST be supplied. There are 4 enums and the value can be one of TRIM_HORIZON, LATEST, AT_SEQUENCE_NUMBER, AFTER_SEQUENCE_NUMBER| String| `"LATEST"`| 
+| sequenceNumberProvider| Sequence Number Provider| Provider for the sequence number when using one of the two ShardIteratorType AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER iterator types. Can be a registry reference or a literal sequence number.| string| | `"900000000005745712447"`
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `aws-ddb-streams-source` can be used in various contexts.
+
+=== Knative Source
+
+The `aws-ddb-streams-source` Kamelet can be used as Knative source by binding it to a Knative object.
+
+.aws-ddb-streams-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: aws-ddb-streams-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: aws-ddb-streams-source
+    properties:
+      accessKey: "The Access Key"
+      region: "eu-west-1"
+      secretKey: "The Secret Key"
+  sink:
+    ref:
+      kind: InMemoryChannel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+
+----
+
+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-ddb-streams-source-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the source using the following command:
+
+[source,shell]
+----
+kubectl apply -f aws-ddb-streams-source-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 01/03: Added AWS DDB Streams Source 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-sddb
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit f14937abffd12cf6fc341e0a2afb95dd2a50acce
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 24 14:44:58 2021 +0100

    Added AWS DDB Streams Source Kamelet
---
 aws-ddb-streams-source.kamelet.yaml | 67 +++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

diff --git a/aws-ddb-streams-source.kamelet.yaml b/aws-ddb-streams-source.kamelet.yaml
new file mode 100644
index 0000000..2d7c7a1
--- /dev/null
+++ b/aws-ddb-streams-source.kamelet.yaml
@@ -0,0 +1,67 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: aws-ddb-streams-source
+  annotations:
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEwMCIgd2lkdGg9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMkQ3MkI4IiBkPSJNNzQuMTc0IDMxLjgwN2w3LjQzNyA1LjM2N3YtNy42MDJsLTcuNDgtOC43NjV2MTAuOTU3bC4wNDMuMDE1eiIvPjxwYXRoIGZpbGw9IiM1Mjk0Q0YiIGQ9Ik01OS44MzggODUuNjY2bDE0LjI5My03LjE0NlYyMC43OTFsLTE0LjMwMy03LjEyNHoiLz48cGF0aCBmaWxsPSIjMjA1Qjk4IiBkPSJNMzkuNDk2IDg1LjY2NkwyNS4yMDMgNzguNTJWMjAuNzkxbDE0LjMwMy03LjEyNHoiLz48cGF0aCBmaWxsPSIjMkQ3Mk [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+  labels:
+    camel.apache.org/kamelet.type: "source"
+spec:
+  definition:
+    title: "AWS DDB Streams Source"
+    description: |-
+      Receive events from AWS DDB Streams.
+    required:
+      - table
+      - accessKey
+      - secretKey
+      - region
+    properties:
+      bucketNameOrArn:
+        title: Table
+        description: Name of the DynamoDB table to look at
+        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
+      iteratorType:
+        title: Iterator Type
+        description: Defines where in the DynaboDB stream to start getting records. Note that using TRIM_HORIZON can cause a significant delay before the stream has caught up to real-time. if {AT,AFTER}_SEQUENCE_NUMBER are used, then a sequenceNumberProvider MUST be supplied. There are 4 enums and the value can be one of TRIM_HORIZON, LATEST, AT_SEQUENCE_NUMBER, AFTER_SEQUENCE_NUMBER
+        type: String
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: LATEST
+      sequenceNumberProvider:
+        title: Sequence Number Provider
+        description: Provider for the sequence number when using one of the two ShardIteratorType AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER iterator types. Can be a registry reference or a literal sequence number.
+        type: string
+        example: "900000000005745712447"
+  types:
+    out:
+      mediaType: application/json
+  flow:
+    from:
+      uri: "aws2-ddbstream:{{tableName}}"
+      parameters:
+        secretKey: "{{secretKey}}"
+        accessKey: "{{accessKey}}"
+        region: "{{region}}"
+        iteratorType: "{{iteratorType}}"
+        sequenceNumberProvider: "{{sequenceNumberProvider}}"
+      steps:
+      - to: "kamelet:sink"