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