2 Home
gitea_admin edited this page 2026-10-12 05:34:51 +00:00

AWS Bedrock

Invoke Model of AWS Bedrock service.

Metadata

Property Value
Scheme aws-bedrock
Support Level Stable
Labels ai,cloud
Version 4.20.0 (CEQ 3.36.0)

Maven Dependency

<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-aws-bedrock</artifactId>
    <version>4.20.0 (CEQ 3.36.0)</version>
</dependency>

Endpoint Properties

Name Type Required Default Description
label string ✓ Logical name
guardrailIdentifier string The identifier (ID or ARN) for the guardrail to apply to the model invocation
guardrailTrace boolean false Whether to return trace information from the guardrail
guardrailVersion string DRAFT The version of the guardrail to use. Defaults to DRAFT.
includeStreamingMetadata boolean true Whether to include streaming metadata in the response headers (completion reason, token count, chunk count)
modelId enum ✓ Define the model Id we are going to use
operation enum ✓ The operation to perform
overrideEndpoint boolean false Set the need for overriding the endpoint. This option needs to be used in combination with the uriEndpointOverride option
pojoRequest boolean false If we want to use a POJO request as body or not
profileCredentialsName string false If using a profile credentials provider, this parameter will set the profile name
region enum The region in which Bedrock client needs to work. When using this parameter, the configuration will expect the lowercase name of the region (for example, ap-east-1) You'll need to use the name Region.EU_WEST_1.id()
streamOutputMode enum complete The streaming output mode (complete or chunks). In complete mode, the full response is accumulated and returned as a single message. In chunks mode, each chunk is emitted as a separate exchange.
uriEndpointOverride string Set the overriding uri endpoint. This option needs to be used in combination with overrideEndpoint option
useDefaultCredentialsProvider boolean false Set whether the Bedrock client should expect to load credentials through a default credentials provider or to expect static credentials to be passed in.
useProfileCredentialsProvider boolean false Set whether the Bedrock client should expect to load credentials through a profile credentials provider.
lazyStartProducer boolean false Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.
bedrockRuntimeAsyncClient object To use an existing configured AWS Bedrock Runtime Async client for streaming operations
bedrockRuntimeClient object To use an existing configured AWS Bedrock Runtime client
proxyHost string To define a proxy host when instantiating the Bedrock client
proxyPort integer To define a proxy port when instantiating the Bedrock client
proxyProtocol enum HTTPS To define a proxy protocol when instantiating the Bedrock client
accessKey string Amazon AWS Access Key
secretKey string Amazon AWS Secret Key
sessionToken string Amazon AWS Session Token used when the user needs to assume an IAM role
trustAllCertificates boolean false If we want to trust all certificates in case of overriding the endpoint
useSessionCredentials boolean false Set whether the Bedrock client should expect to use Session Credentials. This is useful in a situation in which the user needs to assume an IAM role for doing operations in Bedrock.