Skip to content

Commit 5dba6ec

Browse files
committed
AWS Kamelets: Support profile and session credentials provider out of the box - AWS Bedrock Text Sink
Signed-off-by: Andrea Cosentino <[email protected]>
1 parent d8bd1bb commit 5dba6ec

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

library/camel-kamelets/src/main/resources/kamelets/aws-bedrock-text-sink.kamelet.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,27 @@ spec:
7171
description: If true, the Bedrock client loads credentials through a default credentials provider. If false, it uses the basic authentication method (access key and secret key).
7272
type: boolean
7373
default: false
74+
useProfileCredentialsProvider:
75+
title: Profile Credentials Provider
76+
description: Set whether the Bedrock client should expect to load credentials through a profile credentials provider.
77+
type: boolean
78+
default: false
79+
useSessionCredentials:
80+
title: Session Credentials
81+
description: Set whether the Bedrock 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 Bedrock.
82+
type: boolean
83+
default: false
84+
profileCredentialsName:
85+
title: Profile Credentials Name
86+
description: If using a profile credentials provider this parameter will set the profile name.
87+
type: string
88+
sessionToken:
89+
title: Session Token
90+
description: Amazon AWS Session Token used when the user needs to assume a IAM role.
91+
type: string
92+
format: password
93+
x-descriptors:
94+
- urn:camel:group:credentials
7495
uriEndpointOverride:
7596
title: Overwrite Endpoint URI
7697
description: The overriding endpoint URI. To use this option, you must also select the `overrideEndpoint` option.
@@ -103,5 +124,9 @@ spec:
103124
modelId: "{{modelId}}"
104125
operation: invokeTextModel
105126
useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
127+
useProfileCredentialsProvider: "{{useProfileCredentialsProvider}}"
128+
useSessionCredentials: "{{useSessionCredentials}}"
106129
uriEndpointOverride: "{{?uriEndpointOverride}}"
130+
profileCredentialsName: "{{?profileCredentialsName}}"
131+
sessionToken: "{{?sessionToken}}"
107132
overrideEndpoint: "{{overrideEndpoint}}"

0 commit comments

Comments
 (0)