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:47 UTC

(camel-kamelets) 04/08: AWS Kamelets: Support profile and session credentials provider out of the box - AWS Timestream Sink

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 32d2119652814062d8f342335be4347e3408daba
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Aug 7 08:29:57 2024 +0200

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

diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-timestream-query-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-timestream-query-sink.kamelet.yaml
index d8a2a662..262eb89f 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-timestream-query-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-timestream-query-sink.kamelet.yaml
@@ -69,6 +69,27 @@ spec:
         description: If true, the CloudWatch 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 Timestream client should expect to load credentials through a profile credentials provider.
+        type: boolean
+        default: false
+      useSessionCredentials:
+        title: Session Credentials
+        description: Set whether the Timestream 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 Timestream.
+        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.
@@ -106,5 +127,9 @@ spec:
             region: "{{region}}"
             operation: "query"
             useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
+            useProfileCredentialsProvider: "{{useProfileCredentialsProvider}}"
+            useSessionCredentials: "{{useSessionCredentials}}"  
             uriEndpointOverride: "{{?uriEndpointOverride}}"
+            profileCredentialsName: "{{?profileCredentialsName}}"
+            sessionToken: "{{?sessionToken}}"
             overrideEndpoint: "{{overrideEndpoint}}"