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/05/20 12:17:57 UTC
[camel-kamelets] branch translate-action created (now 47cc621)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch translate-action
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.
at 47cc621 Added AWS Translate Action
This branch includes the following new commits:
new 1e55d71 Added AWS Translate Action
new abc25f1 AWS Translate added correct icon
new 3333ac4 Added AWS Translate to Catalog
new 5d96d0f Added AWS Translate Action
new b28b71f Added AWS Translate Action
new f5cbf15 Added AWS Translate Action
new 47cc621 Added AWS Translate Action
The 7 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] 03/07: Added AWS Translate to Catalog
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch translate-action
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 3333ac4f2bd8f64ea8fef64cb4162989ddf12e32
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:13:25 2021 +0200
Added AWS Translate to Catalog
---
.../kamelets/aws-translate-action.kamelet.yaml | 67 ++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
new file mode 100644
index 0000000..d41f328
--- /dev/null
+++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
@@ -0,0 +1,67 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: aws-translate-action
+ annotations:
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIyLjg4IDg0LjgxIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMjIuODggODQuODEiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+LnN0MHtmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZD [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "AWS Translate"
+ labels:
+ camel.apache.org/kamelet.type: "action"
+spec:
+ definition:
+ title: "AWS Translate Action"
+ description: |-
+ Translate a text in a specific language
+ required:
+ - accessKey
+ - secretKey
+ - region
+ - sourceLanguage
+ - targetLanguage
+ type: object
+ properties:
+ accessKey:
+ title: Access Key
+ description: The access key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ secretKey:
+ title: Secret Key
+ description: The secret key obtained from AWS.
+ type: string
+ format: password
+ 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
+ sourceLanguage:
+ title: Source Language
+ description: The source language of the translating text
+ type: string
+ example: it
+ targetLanguage:
+ title: Target Language
+ description: The target language of the translating text
+ type: string
+ example: en
+ dependencies:
+ - "camel:dns"
+ - "camel:kamelet"
+ flow:
+ from:
+ uri: "kamelet:source"
+ steps:
+ - to:
+ uri: "aws2-translate://translate"
+ parameters:
+ secretKey: "{{secretKey}}"
+ accessKey: "{{accessKey}}"
+ region: "{{region}}"
+ sourceLanguage: "{{sourceLanguage}}"
+ targetLanguage: "{{targetLanguage}}"
[camel-kamelets] 05/07: Added AWS Translate Action
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch translate-action
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit b28b71f73976b8587f7a5f088b647bd5559d8a99
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:14:31 2021 +0200
Added AWS Translate Action
---
.../images/kamelets/aws-translate-action.svg | 1 +
docs/modules/ROOT/pages/aws-translate-action.adoc | 75 ++++++++++++++++++++++
2 files changed, 76 insertions(+)
diff --git a/docs/modules/ROOT/assets/images/kamelets/aws-translate-action.svg b/docs/modules/ROOT/assets/images/kamelets/aws-translate-action.svg
new file mode 100644
index 0000000..3561e0f
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/aws-translate-action.svg
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="utf-8"?><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 122.88 84.81" style="enable-background:new 0 0 122.88 84.81" xml:space="preserve"><style type="text/css">.st0{fill-rule:evenodd;clip-rule:evenodd;}</style><g><path class="st0" d="M118.29,10.9c2.31,2.31,3.9,5.34,4.41,8.72c0.19,1.3,0.18,2.42,0.18,3.7v21.09c0,1.14,0.03,2.27-0.07,3.41 c-0.44,4.72-3.08,9.07-7.06,11.64c [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/aws-translate-action.adoc b/docs/modules/ROOT/pages/aws-translate-action.adoc
new file mode 100644
index 0000000..0f0de15
--- /dev/null
+++ b/docs/modules/ROOT/pages/aws-translate-action.adoc
@@ -0,0 +1,75 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/aws-translate-action.svg[] AWS Translate Action
+
+*Provided by: "Apache Software Foundation"*
+
+Translate a text in a specific language
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `aws-translate-action` 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| |
+| *sourceLanguage {empty}* *| Source Language| The source language of the translating text| string| | `"it"`
+| *targetLanguage {empty}* *| Target Language| The target language of the translating text| string| | `"en"`
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `aws-translate-action` can be used in various contexts.
+
+=== Knative Action
+
+The `aws-translate-action` Kamelet can be used as intermediate step in a binding.
+
+.aws-translate-action-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+ name: aws-translate-action-binding
+spec:
+ source:
+ ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: timer-source
+ properties:
+ message: "Hello"
+ steps:
+ - ref:
+ kind: Kamelet
+ apiVersion: camel.apache.org/v1alpha1
+ name: aws-translate-action
+ properties:
+ accessKey: "The Access Key"
+ region: "eu-west-1"
+ secretKey: "The Secret Key"
+ sourceLanguage: "it"
+ targetLanguage: "en"
+ 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-translate-action-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the action using the following command:
+
+[source,shell]
+----
+kubectl apply -f aws-translate-action-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
[camel-kamelets] 07/07: Added AWS Translate Action
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch translate-action
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 47cc62147f91cd2d6447ea6981a2b6a57b0e5e6a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:17:15 2021 +0200
Added AWS Translate Action
---
.../src/main/resources/kamelets/aws-translate-action.kamelet.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
index d41f328..fadf336 100644
--- a/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
+++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
@@ -53,6 +53,7 @@ spec:
dependencies:
- "camel:dns"
- "camel:kamelet"
+ - "camel:aws2-translate"
flow:
from:
uri: "kamelet:source"
[camel-kamelets] 02/07: AWS Translate added correct icon
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch translate-action
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit abc25f14eaf5d24844a96db7c113b7829121cf51
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:13:00 2021 +0200
AWS Translate added correct icon
---
aws-translate-action.kamelet.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aws-translate-action.kamelet.yaml b/aws-translate-action.kamelet.yaml
index afeebfe..d41f328 100644
--- a/aws-translate-action.kamelet.yaml
+++ b/aws-translate-action.kamelet.yaml
@@ -3,7 +3,7 @@ kind: Kamelet
metadata:
name: aws-translate-action
annotations:
- camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIyLjg3OSAxMjIuODgxIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMjIuODc5IDEyMi44ODEiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwYXRoIGQ9Ik0xMDkuNDY3LDg5LjUwNWMwLjE4MiwwLDAuMzU5LDAuMDE5LDAuNTMxLDAuMDUzYzEuMT [...]
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIyLjg4IDg0LjgxIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMjIuODggODQuODEiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+LnN0MHtmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZD [...]
camel.apache.org/provider: "Apache Software Foundation"
camel.apache.org/kamelet.group: "AWS Translate"
labels:
[camel-kamelets] 06/07: Added AWS Translate Action
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch translate-action
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit f5cbf15a5776e89b8705266a0f39ad19886f696f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:16:58 2021 +0200
Added AWS Translate Action
---
aws-translate-action.kamelet.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/aws-translate-action.kamelet.yaml b/aws-translate-action.kamelet.yaml
index d41f328..fadf336 100644
--- a/aws-translate-action.kamelet.yaml
+++ b/aws-translate-action.kamelet.yaml
@@ -53,6 +53,7 @@ spec:
dependencies:
- "camel:dns"
- "camel:kamelet"
+ - "camel:aws2-translate"
flow:
from:
uri: "kamelet:source"
[camel-kamelets] 04/07: Added AWS Translate Action
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch translate-action
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 5d96d0f25da94a03f246a18b9b5a2934086c442e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:14:18 2021 +0200
Added AWS Translate Action
---
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 53ea352..dd5f54c 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -12,6 +12,7 @@
* xref:ROOT:aws-sqs-fifo-sink.adoc[image:kamelets/aws-sqs-fifo-sink.svg[] AWS SQS FIFO Sink]
* xref:ROOT:aws-sqs-sink.adoc[image:kamelets/aws-sqs-sink.svg[] AWS SQS Sink]
* xref:ROOT:aws-sqs-source.adoc[image:kamelets/aws-sqs-source.svg[] AWS SQS Source]
+* xref:ROOT:aws-translate-action.adoc[image:kamelets/aws-translate-action.svg[] AWS Translate Action]
* xref:ROOT:azure-eventhubs-sink.adoc[image:kamelets/azure-eventhubs-sink.svg[] Azure Eventhubs Sink]
* xref:ROOT:azure-eventhubs-source.adoc[image:kamelets/azure-eventhubs-source.svg[] Azure Eventhubs Source]
* xref:ROOT:azure-storage-blob-sink.adoc[image:kamelets/azure-storage-blob-sink.svg[] Azure Storage Blob Sink]
[camel-kamelets] 01/07: Added AWS Translate Action
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch translate-action
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 1e55d71658a76c7e789bc9ca3649178053b8277f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 20 14:05:55 2021 +0200
Added AWS Translate Action
---
aws-translate-action.kamelet.yaml | 67 +++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/aws-translate-action.kamelet.yaml b/aws-translate-action.kamelet.yaml
new file mode 100644
index 0000000..afeebfe
--- /dev/null
+++ b/aws-translate-action.kamelet.yaml
@@ -0,0 +1,67 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: aws-translate-action
+ annotations:
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIyLjg3OSAxMjIuODgxIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMjIuODc5IDEyMi44ODEiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwYXRoIGQ9Ik0xMDkuNDY3LDg5LjUwNWMwLjE4MiwwLDAuMzU5LDAuMDE5LDAuNTMxLDAuMDUzYzEuMT [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "AWS Translate"
+ labels:
+ camel.apache.org/kamelet.type: "action"
+spec:
+ definition:
+ title: "AWS Translate Action"
+ description: |-
+ Translate a text in a specific language
+ required:
+ - accessKey
+ - secretKey
+ - region
+ - sourceLanguage
+ - targetLanguage
+ type: object
+ properties:
+ accessKey:
+ title: Access Key
+ description: The access key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ secretKey:
+ title: Secret Key
+ description: The secret key obtained from AWS.
+ type: string
+ format: password
+ 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
+ sourceLanguage:
+ title: Source Language
+ description: The source language of the translating text
+ type: string
+ example: it
+ targetLanguage:
+ title: Target Language
+ description: The target language of the translating text
+ type: string
+ example: en
+ dependencies:
+ - "camel:dns"
+ - "camel:kamelet"
+ flow:
+ from:
+ uri: "kamelet:source"
+ steps:
+ - to:
+ uri: "aws2-translate://translate"
+ parameters:
+ secretKey: "{{secretKey}}"
+ accessKey: "{{accessKey}}"
+ region: "{{region}}"
+ sourceLanguage: "{{sourceLanguage}}"
+ targetLanguage: "{{targetLanguage}}"