This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit b970b9abe053a541bc9283fa5d9d26eef7a9d6e0 Author: Andrea Cosentino <anco...@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