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 2024/08/07 06:44:48 UTC

(camel-kamelets) 05/08: AWS Kamelets: Support profile and session credentials provider out of the box - AWS Translate Action

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

acosentino pushed a commit to branch 2131-part-5
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 757a8694c155e2607dd42af0aaa2d84d281f48c7
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Aug 7 08:32:26 2024 +0200

    AWS Kamelets: Support profile and session credentials provider out of the box - AWS Translate Action
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/aws-translate-action.kamelet.yaml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/kamelets/aws-translate-action.kamelet.yaml b/kamelets/aws-translate-action.kamelet.yaml
index f8bc42c9..60624948 100644
--- a/kamelets/aws-translate-action.kamelet.yaml
+++ b/kamelets/aws-translate-action.kamelet.yaml
@@ -79,6 +79,27 @@ spec:
         description: Set whether the Translate client should expect to load credentials through a default credentials provider or to expect static credentials to be passed in.
         type: boolean
         default: false
+      useProfileCredentialsProvider:
+        title: Profile Credentials Provider
+        description: Set whether the Translate client should expect to load credentials through a profile credentials provider.
+        type: boolean
+        default: false
+      useSessionCredentials:
+        title: Session Credentials
+        description: Set whether the Translate client should expect to use Session Credentials. This is useful in situation in which the user needs to assume a IAM role for doing operations in Translate.
+        type: boolean
+        default: false
+      profileCredentialsName:
+        title: Profile Credentials Name
+        description: If using a profile credentials provider this parameter will set the profile name.
+        type: string
+      sessionToken:
+        title: Session Token
+        description: Amazon AWS Session Token used when the user needs to assume a IAM role.
+        type: string
+        format: password
+        x-descriptors:
+        - urn:camel:group:credentials
   dependencies:
     - "camel:dns"
     - "camel:kamelet"
@@ -96,3 +117,7 @@ spec:
             sourceLanguage: "{{sourceLanguage}}"
             targetLanguage: "{{targetLanguage}}"
             useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
+            useProfileCredentialsProvider: "{{useProfileCredentialsProvider}}"
+            useSessionCredentials: "{{useSessionCredentials}}"
+            profileCredentialsName: "{{?profileCredentialsName}}"
+            sessionToken: "{{?sessionToken}}"