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

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

commit 5ba1e41b6435df1a4f3d276e1999d15fac07a692
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Mon Aug 5 14:50:27 2024 +0200

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

diff --git a/kamelets/aws-cloudtrail-source.kamelet.yaml 
b/kamelets/aws-cloudtrail-source.kamelet.yaml
index 658fa4dd..d46c8e7c 100644
--- a/kamelets/aws-cloudtrail-source.kamelet.yaml
+++ b/kamelets/aws-cloudtrail-source.kamelet.yaml
@@ -63,6 +63,27 @@ spec:
         description: If true, the Cloudtrail client loads credentials through 
a default credentials provider. If false, it uses the basic authentication 
method (access key and secret key).
         type: boolean
         default: false
+      useProfileCredentialsProvider:
+        title: Profile Credentials Provider
+        description: Set whether the Cloudtrail client should expect to load 
credentials through a profile credentials provider.
+        type: boolean
+        default: false
+      useSessionCredentials:
+        title: Session Credentials
+        description: Set whether the CloudTrail 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 CloudTrail.
+        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
       uriEndpointOverride:
         title: Overwrite Endpoint URI
         description: The overriding endpoint URI. To use this option, you must 
also select the `overrideEndpoint` option.
@@ -147,7 +168,11 @@ spec:
         region: "{{region}}"
         eventSource: "{{?eventSource}}"
         useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
+        useProfileCredentialsProvider: "{{useProfileCredentialsProvider}}"
+        useSessionCredentials: "{{useSessionCredentials}}"
         uriEndpointOverride: "{{?uriEndpointOverride}}"
+        profileCredentialsName: "{{?profileCredentialsName}}"
+        sessionToken: "{{?sessionToken}}"
         overrideEndpoint: "{{overrideEndpoint}}"
         maxResults: "{{maxResults}}"
       steps:

Reply via email to