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 d0876e4a7d45933f10dc67dd935d64a33953d189
Author: Andrea Cosentino <anco...@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}}"

Reply via email to