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 2020/04/30 07:15:29 UTC

[camel-kafka-connector] branch s3-example created (now 3ccc72b)

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

acosentino pushed a change to branch s3-example
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git.


      at 3ccc72b  Added a little example of AWS-S3 source connector

This branch includes the following new commits:

     new 3ccc72b  Added a little example of AWS-S3 source connector

The 1 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-kafka-connector] 01/01: Added a little example of AWS-S3 source connector

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch s3-example
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git

commit 3ccc72b0cc9fca3a4c3efcc2b73cf7145783152f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 30 08:44:08 2020 +0200

    Added a little example of AWS-S3 source connector
---
 .../docs/camel-aws-s3-kafka-source-connector.adoc  | 24 ++++++++++++++++++++++
 .../camel-aws-s3-kafka-source-connector.adoc       | 24 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/connectors/camel-aws-s3-kafka-connector/src/main/docs/camel-aws-s3-kafka-source-connector.adoc b/connectors/camel-aws-s3-kafka-connector/src/main/docs/camel-aws-s3-kafka-source-connector.adoc
index 4324416..f023012 100644
--- a/connectors/camel-aws-s3-kafka-connector/src/main/docs/camel-aws-s3-kafka-source-connector.adoc
+++ b/connectors/camel-aws-s3-kafka-connector/src/main/docs/camel-aws-s3-kafka-source-connector.adoc
@@ -78,3 +78,27 @@ The camel-aws-s3 source connector supports 54 options, which are listed below.
 | *camel.component.aws-s3.configuration* | The AWS S3 default configuration | null | ConfigDef.Importance.MEDIUM
 |===
 // kafka-connector options: END
+
+== Examples
+
+Here is an example of configuration of the source connector
+
+[source,bash]
+--------------------------------------------------------------------------------
+name=CamelAWSS3SourceConnector
+connector.class=org.apache.camel.kafkaconnector.awss3.CamelAwss3SourceConnector
+key.converter=org.apache.kafka.connect.storage.StringConverter
+value.converter=org.apache.camel.kafkaconnector.awss3.converters.S3ObjectConverter
+
+camel.source.maxPollDuration=10000
+
+camel.source.kafka.topic=mytopic
+
+camel.source.url=aws-s3://camel-kafka-connector?autocloseBody=false
+
+camel.component.aws-s3.access-key=xxxx
+camel.component.aws-s3.secret-key=yyyy
+camel.component.aws-s3.region=EU_WEST_1
+--------------------------------------------------------------------------------
+
+In this example we are polling the bucket camel-kafka-connector as source.
diff --git a/docs/modules/ROOT/pages/connectors/camel-aws-s3-kafka-source-connector.adoc b/docs/modules/ROOT/pages/connectors/camel-aws-s3-kafka-source-connector.adoc
index 4324416..f023012 100644
--- a/docs/modules/ROOT/pages/connectors/camel-aws-s3-kafka-source-connector.adoc
+++ b/docs/modules/ROOT/pages/connectors/camel-aws-s3-kafka-source-connector.adoc
@@ -78,3 +78,27 @@ The camel-aws-s3 source connector supports 54 options, which are listed below.
 | *camel.component.aws-s3.configuration* | The AWS S3 default configuration | null | ConfigDef.Importance.MEDIUM
 |===
 // kafka-connector options: END
+
+== Examples
+
+Here is an example of configuration of the source connector
+
+[source,bash]
+--------------------------------------------------------------------------------
+name=CamelAWSS3SourceConnector
+connector.class=org.apache.camel.kafkaconnector.awss3.CamelAwss3SourceConnector
+key.converter=org.apache.kafka.connect.storage.StringConverter
+value.converter=org.apache.camel.kafkaconnector.awss3.converters.S3ObjectConverter
+
+camel.source.maxPollDuration=10000
+
+camel.source.kafka.topic=mytopic
+
+camel.source.url=aws-s3://camel-kafka-connector?autocloseBody=false
+
+camel.component.aws-s3.access-key=xxxx
+camel.component.aws-s3.secret-key=yyyy
+camel.component.aws-s3.region=EU_WEST_1
+--------------------------------------------------------------------------------
+
+In this example we are polling the bucket camel-kafka-connector as source.