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