Camel Spring Boot

AWS Bedrock

Invoke Amazon Bedrock foundation models with the InvokeModel and Converse APIs, and check content with Bedrock guardrails.

What’s inside

Please refer to the above links for usage and configuration details.

Maven coordinates

<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-aws-bedrock-starter</artifactId>
</dependency>

Spring Boot Auto-Configuration

The starter supports 93 options, which are listed below.

Name Description Default Type

camel.component.aws-bedrock-agent-runtime.access-key

The access key ID of the AWS credentials, used together with the secretKey option. It is required, unless bedrockAgentRuntimeClient is set or useDefaultCredentialsProvider, useProfileCredentialsProvider or useSessionCredentials is true.

String

camel.component.aws-bedrock-agent-runtime.agent-alias-id

The ID of the alias of the agent that invokeAgent invokes. The CamelAwsBedrockAgentRuntimeAgentAliasId header replaces this option.

String

camel.component.aws-bedrock-agent-runtime.agent-id

The ID of the agent that invokeAgent invokes. The CamelAwsBedrockAgentRuntimeAgentId header replaces this option.

String

camel.component.aws-bedrock-agent-runtime.autowired-enabled

Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.

true

Boolean

camel.component.aws-bedrock-agent-runtime.bedrock-agent-runtime-async-client

To use a custom software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeAsyncClient for invokeFlow, invokeAgent and invokeInlineAgent, which receive their response as an event stream. When it is not set, the endpoint builds one from the credentials, region, proxy and endpoint override options: at start when the operation option is one of these, or else on first use. The Camel endpoint does not close a client that is set or autowired. The option is a software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeAsyncClient type.

BedrockAgentRuntimeAsyncClient

camel.component.aws-bedrock-agent-runtime.bedrock-agent-runtime-client

To use a custom software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient for retrieve and retrieveAndGenerate. When this option is set or autowired, the credentials, region, proxy, endpoint override and trustAllCertificates options are not used for this client. The Camel endpoint does not close a client that is set or autowired. The option is a software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient type.

BedrockAgentRuntimeClient

camel.component.aws-bedrock-agent-runtime.configuration

The configuration that the endpoints of the component start from. Each endpoint uses a copy of it, in which its own URI options replace the values. The option is a org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration type.

BedrockAgentRuntimeConfiguration

camel.component.aws-bedrock-agent-runtime.enable-trace

Whether invokeFlow, invokeAgent and invokeInlineAgent ask for the trace events of the invocation, which the producer gives in the CamelAwsBedrockAgentRuntimeFlowTraces or CamelAwsBedrockAgentRuntimeAgentTraces header. The CamelAwsBedrockAgentRuntimeFlowEnableTrace header replaces it for invokeFlow, and the CamelAwsBedrockAgentRuntimeAgentEnableTrace header for the agent operations.

false

Boolean

camel.component.aws-bedrock-agent-runtime.enabled

Whether to enable auto configuration of the aws-bedrock-agent-runtime component. This is enabled by default.

Boolean

camel.component.aws-bedrock-agent-runtime.flow-alias-identifier

The ID of the alias of the flow that invokeFlow invokes. The CamelAwsBedrockAgentRuntimeFlowAliasIdentifier header replaces this option.

String

camel.component.aws-bedrock-agent-runtime.flow-identifier

The ID of the flow that invokeFlow invokes. The CamelAwsBedrockAgentRuntimeFlowIdentifier header replaces this option.

String

camel.component.aws-bedrock-agent-runtime.foundation-model

The ID of the foundation model that the inline agent of invokeInlineAgent uses, for example anthropic.claude-3-5-sonnet-20241022-v2:0. The CamelAwsBedrockAgentRuntimeAgentFoundationModel header replaces this option.

String

camel.component.aws-bedrock-agent-runtime.health-check-consumer-enabled

Used for enabling or disabling all consumer based health checks from this component

true

Boolean

camel.component.aws-bedrock-agent-runtime.health-check-producer-enabled

Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer checks globally by setting camel.health.producersEnabled=true.

true

Boolean

camel.component.aws-bedrock-agent-runtime.instruction

The instructions that tell the inline agent of invokeInlineAgent what to do and how to interact with users. The CamelAwsBedrockAgentRuntimeAgentInstruction header replaces this option.

String

camel.component.aws-bedrock-agent-runtime.knowledge-base-id

The ID of the knowledge base that retrieve and retrieveAndGenerate query. The other operations do not use it, and neither do these with pojoRequest.

String

camel.component.aws-bedrock-agent-runtime.lazy-start-producer

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.

false

Boolean

camel.component.aws-bedrock-agent-runtime.model-id

The ID or ARN of the model that retrieveAndGenerate generates the answer with, for example anthropic.claude-3-5-sonnet-20241022-v2:0. The other operations do not use it, and neither does retrieveAndGenerate with pojoRequest.

String

camel.component.aws-bedrock-agent-runtime.operation

The operation that the producer performs. The CamelAwsBedrockAgentRuntimeOperation header replaces this option.

BedrockAgentRuntimeOperations

camel.component.aws-bedrock-agent-runtime.override-endpoint

Whether to send the requests to the URI of the uriEndpointOverride option instead of the endpoint of the region. It has no effect when uriEndpointOverride is not set.

false

Boolean

camel.component.aws-bedrock-agent-runtime.pojo-request

Whether the body is the request object of the AWS SDK for the operation, which the producer sends as it is: a RetrieveAndGenerateRequest, RetrieveRequest, InvokeFlowRequest, InvokeAgentRequest or InvokeInlineAgentRequest. The options and headers that build the request are then not used, and a body of another type fails the exchange.

false

Boolean

camel.component.aws-bedrock-agent-runtime.profile-credentials-name

The name of the profile in the AWS shared credentials and config files, used when useProfileCredentialsProvider is true. If not set, the AWS SDK uses its default profile, which the AWS_PROFILE environment variable can change.

false

String

camel.component.aws-bedrock-agent-runtime.proxy-host

The host name of the proxy that the HTTP clients of Bedrock Agent Runtime connect through. The proxy is used only when the proxyPort option is set too.

String

camel.component.aws-bedrock-agent-runtime.proxy-port

The port of the proxy that the HTTP clients of Bedrock Agent Runtime connect through. The proxy is used only when the proxyHost option is set too.

Integer

camel.component.aws-bedrock-agent-runtime.proxy-protocol

The protocol that the HTTP clients of Bedrock Agent Runtime use to connect to the proxy. It is used only when the proxyHost and proxyPort options are set.

https

Protocol

camel.component.aws-bedrock-agent-runtime.region

The AWS region of Amazon Bedrock, as a region ID such as us-east-1, which is the value of Region.US_EAST_1.id(). If not set, the AWS SDK takes the region from its default region provider chain, for example the AWS_REGION environment variable.

String

camel.component.aws-bedrock-agent-runtime.secret-key

The secret access key of the AWS credentials, used together with the accessKey option. It is required, unless bedrockAgentRuntimeClient is set or useDefaultCredentialsProvider, useProfileCredentialsProvider or useSessionCredentials is true.

String

camel.component.aws-bedrock-agent-runtime.session-id

The ID of the session of invokeAgent and invokeInlineAgent: reuse the same value to continue the conversation. The CamelAwsBedrockAgentRuntimeSessionId header replaces this option. If neither is set, the producer uses a random ID for each message, and gives it in that header.

String

camel.component.aws-bedrock-agent-runtime.session-token

The session token of temporary AWS credentials, for example of an assumed IAM role. It is used only when useSessionCredentials is true, together with the accessKey and secretKey options. When it is not set, the accessKey and secretKey options are used without a session token.

String

camel.component.aws-bedrock-agent-runtime.stream-output-mode

How invokeAgent and invokeInlineAgent give the answer: complete gives the whole text as a String, and chunks gives a List of the text of each chunk. In both modes the producer waits until the agent has finished. The CamelAwsBedrockAgentRuntimeAgentStreamOutputMode header replaces this option.

complete

String

camel.component.aws-bedrock-agent-runtime.trust-all-certificates

Whether the HTTP clients of Bedrock Agent Runtime trust every TLS certificate without checking it. It applies to any endpoint, not only to an overridden one, so use it only for testing, for example against a local emulator.

false

Boolean

camel.component.aws-bedrock-agent-runtime.uri-endpoint-override

The URI of the endpoint to use instead of the endpoint of the region, for example http://localhost:4566 for a local emulator. It is used only when overrideEndpoint is true.

String

camel.component.aws-bedrock-agent-runtime.use-default-credentials-provider

Whether to load the credentials with the default credentials provider chain of the AWS SDK, which looks in system properties, environment variables, the shared credentials and config files, and the container or instance role. It takes precedence over the other credentials options.

false

Boolean

camel.component.aws-bedrock-agent-runtime.use-profile-credentials-provider

Whether to load the credentials from a profile of the AWS shared credentials and config files, the one of the profileCredentialsName option. It is not used when useDefaultCredentialsProvider is true, and it takes precedence over the session and static credentials.

false

Boolean

camel.component.aws-bedrock-agent-runtime.use-session-credentials

Whether to use temporary credentials made of the accessKey, secretKey and sessionToken options, for example those of an assumed IAM role. It is not used when useDefaultCredentialsProvider or useProfileCredentialsProvider is true.

false

Boolean

camel.component.aws-bedrock-agent.access-key

The access key ID of the AWS credentials, used together with the secretKey option. It is required, unless bedrockAgentClient is set or useDefaultCredentialsProvider, useProfileCredentialsProvider or useSessionCredentials is true.

String

camel.component.aws-bedrock-agent.autowired-enabled

Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.

true

Boolean

camel.component.aws-bedrock-agent.bedrock-agent-client

To use a custom software.amazon.awssdk.services.bedrockagent.BedrockAgentClient. When this option is set or autowired, the credentials, region, proxy, endpoint override and trustAllCertificates options are not used. The Camel endpoint does not close a client that is set or autowired. The option is a software.amazon.awssdk.services.bedrockagent.BedrockAgentClient type.

BedrockAgentClient

camel.component.aws-bedrock-agent.bridge-error-handler

Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored.

false

Boolean

camel.component.aws-bedrock-agent.configuration

The configuration that the endpoints of the component start from. Each endpoint uses a copy of it, in which its own URI options replace the values. The option is a org.apache.camel.component.aws2.bedrock.agent.BedrockAgentConfiguration type.

BedrockAgentConfiguration

camel.component.aws-bedrock-agent.data-source-id

The ID of the data source of the knowledge base, which the ingestion jobs sync. The consumer and all the operations need it; the CamelAwsBedrockAgentDataSourceId header replaces it for the producer. Not used with pojoRequest.

String

camel.component.aws-bedrock-agent.enabled

Whether to enable auto configuration of the aws-bedrock-agent component. This is enabled by default.

Boolean

camel.component.aws-bedrock-agent.health-check-consumer-enabled

Used for enabling or disabling all consumer based health checks from this component

true

Boolean

camel.component.aws-bedrock-agent.health-check-producer-enabled

Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer checks globally by setting camel.health.producersEnabled=true.

true

Boolean

camel.component.aws-bedrock-agent.ingestion-job-id

The ID of the ingestion job that the consumer polls and that getIngestionJob gets. The CamelAwsBedrockAgentIngestionJobId header replaces it for getIngestionJob. startIngestionJob and listIngestionJobs do not use it.

String

camel.component.aws-bedrock-agent.knowledge-base-id

The ID of the knowledge base of the ingestion jobs. The consumer and all the operations need it; the CamelAwsBedrockAgentKnowledgeBaseId header replaces it for the producer. Not used with pojoRequest.

String

camel.component.aws-bedrock-agent.lazy-start-producer

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.

false

Boolean

camel.component.aws-bedrock-agent.operation

The operation that the producer performs. The CamelAwsBedrockAgentOperation header replaces this option. The consumer does not use it: it gets the ingestion job of the ingestionJobId option in each poll.

BedrockAgentOperations

camel.component.aws-bedrock-agent.override-endpoint

Whether to send the requests to the URI of the uriEndpointOverride option instead of the endpoint of the region. It has no effect when uriEndpointOverride is not set.

false

Boolean

camel.component.aws-bedrock-agent.pojo-request

Whether the body is the request object of the AWS SDK for the operation, a StartIngestionJobRequest, ListIngestionJobsRequest or GetIngestionJobRequest, which the producer sends as it is. The ID options and headers are then not used, and a body of another type fails the exchange. The consumer does not use it.

false

Boolean

camel.component.aws-bedrock-agent.profile-credentials-name

The name of the profile in the AWS shared credentials and config files, used when useProfileCredentialsProvider is true. If not set, the AWS SDK uses its default profile, which the AWS_PROFILE environment variable can change.

false

String

camel.component.aws-bedrock-agent.proxy-host

The host name of the proxy that the HTTP client of Bedrock Agent connects through. The proxy is used only when the proxyPort option is set too.

String

camel.component.aws-bedrock-agent.proxy-port

The port of the proxy that the HTTP client of Bedrock Agent connects through. The proxy is used only when the proxyHost option is set too.

Integer

camel.component.aws-bedrock-agent.proxy-protocol

The protocol that the HTTP client of Bedrock Agent uses to connect to the proxy. It is used only when the proxyHost and proxyPort options are set.

https

Protocol

camel.component.aws-bedrock-agent.region

The AWS region of Amazon Bedrock, as a region ID such as us-east-1, which is the value of Region.US_EAST_1.id(). If not set, the AWS SDK takes the region from its default region provider chain, for example the AWS_REGION environment variable.

String

camel.component.aws-bedrock-agent.secret-key

The secret access key of the AWS credentials, used together with the accessKey option. It is required, unless bedrockAgentClient is set or useDefaultCredentialsProvider, useProfileCredentialsProvider or useSessionCredentials is true.

String

camel.component.aws-bedrock-agent.session-token

The session token of temporary AWS credentials, for example of an assumed IAM role. It is used only when useSessionCredentials is true, together with the accessKey and secretKey options. When it is not set, the accessKey and secretKey options are used without a session token.

String

camel.component.aws-bedrock-agent.trust-all-certificates

Whether the HTTP client of Bedrock Agent trusts every TLS certificate without checking it. It applies to any endpoint, not only to an overridden one, so use it only for testing, for example against a local emulator.

false

Boolean

camel.component.aws-bedrock-agent.uri-endpoint-override

The URI of the endpoint to use instead of the endpoint of the region, for example http://localhost:4566 for a local emulator. It is used only when overrideEndpoint is true.

String

camel.component.aws-bedrock-agent.use-default-credentials-provider

Whether to load the credentials with the default credentials provider chain of the AWS SDK, which looks in system properties, environment variables, the shared credentials and config files, and the container or instance role. It takes precedence over the other credentials options.

false

Boolean

camel.component.aws-bedrock-agent.use-profile-credentials-provider

Whether to load the credentials from a profile of the AWS shared credentials and config files, the one of the profileCredentialsName option. It is not used when useDefaultCredentialsProvider is true, and it takes precedence over the session and static credentials.

false

Boolean

camel.component.aws-bedrock-agent.use-session-credentials

Whether to use temporary credentials made of the accessKey, secretKey and sessionToken options, for example those of an assumed IAM role. It is not used when useDefaultCredentialsProvider or useProfileCredentialsProvider is true.

false

Boolean

camel.component.aws-bedrock.access-key

The access key ID of the AWS credentials, used together with the secretKey option. It is required, unless bedrockRuntimeClient is set or useDefaultCredentialsProvider, useProfileCredentialsProvider or useSessionCredentials is true.

String

camel.component.aws-bedrock.autowired-enabled

Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.

true

Boolean

camel.component.aws-bedrock.bedrock-runtime-async-client

To use a custom software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeAsyncClient for the streaming operations: invokeTextModelStreaming, its deprecated variants and converseStream. When it is not set, the endpoint builds one from the credentials, region, proxy and endpoint override options, also when bedrockRuntimeClient is set. The Camel endpoint does not close a client that is set or autowired. The option is a software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeAsyncClient type.

BedrockRuntimeAsyncClient

camel.component.aws-bedrock.bedrock-runtime-client

To use a custom software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient for the operations that do not stream: invokeTextModel, invokeImageModel, invokeEmbeddingsModel, converse and applyGuardrail. When this option is set or autowired, the credentials, region, proxy, endpoint override and trustAllCertificates options are not used for this client. The Camel endpoint does not close a client that is set or autowired. The option is a software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient type.

BedrockRuntimeClient

camel.component.aws-bedrock.configuration

The configuration that the endpoints of the component start from. Each endpoint uses a copy of it, in which its own URI options replace the values. The option is a org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration type.

BedrockConfiguration

camel.component.aws-bedrock.enabled

Whether to enable auto configuration of the aws-bedrock component. This is enabled by default.

Boolean

camel.component.aws-bedrock.guardrail-identifier

The ID or ARN of the guardrail to apply. converse and converseStream apply it when the CamelAwsBedrockGuardrailConfig header is not set, and applyGuardrail uses it when the CamelAwsBedrockGuardrailIdentifier header is not set. Not used with pojoRequest.

String

camel.component.aws-bedrock.guardrail-stream-processing-mode

How converseStream applies the guardrail of the guardrailIdentifier option to the streamed response. With sync, Bedrock buffers the chunks and checks them with the guardrail before it sends them. With async, Bedrock sends the chunks at once and checks them in the background, so chunks that the guardrail would block can be sent before it blocks the rest, and masking of sensitive information is not supported. Not used when the CamelAwsBedrockGuardrailConfig header is set.

sync

String

camel.component.aws-bedrock.guardrail-trace

Whether converse and converseStream ask for the trace of the guardrail of the guardrailIdentifier option, which the producer gives in the CamelAwsBedrockGuardrailTrace header. Not used when the CamelAwsBedrockGuardrailConfig header is set, and not used by applyGuardrail.

false

Boolean

camel.component.aws-bedrock.guardrail-version

The version of the guardrail, a number such as 1, or DRAFT for its working draft. converse and converseStream use it together with guardrailIdentifier, and applyGuardrail also with the guardrail of the CamelAwsBedrockGuardrailIdentifier header.

DRAFT

String

camel.component.aws-bedrock.health-check-consumer-enabled

Used for enabling or disabling all consumer based health checks from this component

true

Boolean

camel.component.aws-bedrock.health-check-producer-enabled

Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer checks globally by setting camel.health.producersEnabled=true.

true

Boolean

camel.component.aws-bedrock.include-streaming-metadata

Whether the streaming operations and converseStream set headers about the response: the chunk count, the completion reason and the token count for the invoke operations, and the chunk count, stop reason, usage and guardrail trace for converseStream, each when the model sends it.

true

Boolean

camel.component.aws-bedrock.lazy-start-producer

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.

false

Boolean

camel.component.aws-bedrock.model-id

The ID of the model to invoke, for example anthropic.claude-3-5-sonnet-20241022-v2:0, or of a cross-region inference profile, such as us.anthropic.claude-3-5-sonnet-20241022-v2:0, or its ARN. invokeTextModel and the streaming operations read the response in the format of the model family that the ID names. applyGuardrail does not use it, and with pojoRequest the model of the request is used instead.

String

camel.component.aws-bedrock.operation

The operation that the producer performs. The CamelAwsBedrockOperation header replaces this option. The invokeImageModelStreaming and invokeEmbeddingsModelStreaming operations are deprecated, as the image generation and embedding models do not stream: use invokeImageModel, invokeEmbeddingsModel or invokeTextModelStreaming instead.

BedrockOperations

camel.component.aws-bedrock.override-endpoint

Whether to send the requests to the URI of the uriEndpointOverride option instead of the endpoint of the region. It has no effect when uriEndpointOverride is not set.

false

Boolean

camel.component.aws-bedrock.pojo-request

Whether the body is the request object of the AWS SDK for the operation, which the producer sends as it is: an InvokeModelRequest for the invoke operations, an InvokeModelWithResponseStreamRequest for the streaming ones, or a ConverseRequest, ConverseStreamRequest or ApplyGuardrailRequest. The options and headers that build the request are then not used, and a body of another type fails the exchange.

false

Boolean

camel.component.aws-bedrock.profile-credentials-name

The name of the profile in the AWS shared credentials and config files, used when useProfileCredentialsProvider is true. If not set, the AWS SDK uses its default profile, which the AWS_PROFILE environment variable can change.

false

String

camel.component.aws-bedrock.proxy-host

The host name of the proxy that the HTTP clients of Bedrock Runtime connect through. The proxy is used only when the proxyPort option is set too.

String

camel.component.aws-bedrock.proxy-port

The port of the proxy that the HTTP clients of Bedrock Runtime connect through. The proxy is used only when the proxyHost option is set too.

Integer

camel.component.aws-bedrock.proxy-protocol

The protocol that the HTTP clients of Bedrock Runtime use to connect to the proxy. It is used only when the proxyHost and proxyPort options are set.

https

Protocol

camel.component.aws-bedrock.region

The AWS region of Amazon Bedrock, as a region ID such as us-east-1, which is the value of Region.US_EAST_1.id(). If not set, the AWS SDK takes the region from its default region provider chain, for example the AWS_REGION environment variable.

String

camel.component.aws-bedrock.secret-key

The secret access key of the AWS credentials, used together with the accessKey option. It is required, unless bedrockRuntimeClient is set or useDefaultCredentialsProvider, useProfileCredentialsProvider or useSessionCredentials is true.

String

camel.component.aws-bedrock.session-token

The session token of temporary AWS credentials, for example of an assumed IAM role. It is used only when useSessionCredentials is true, together with the accessKey and secretKey options. When it is not set, the accessKey and secretKey options are used without a session token.

String

camel.component.aws-bedrock.stream-output-mode

How the streaming operations and converseStream give the response: complete gives the whole text as a String, and chunks gives a List of the text of each chunk. In both modes the producer waits until the model has finished. The CamelAwsBedrockStreamOutputMode header replaces this option.

complete

String

camel.component.aws-bedrock.trust-all-certificates

Whether the HTTP clients of Bedrock Runtime trust every TLS certificate without checking it. It applies to any endpoint, not only to an overridden one, so use it only for testing, for example against a local emulator.

false

Boolean

camel.component.aws-bedrock.uri-endpoint-override

The URI of the endpoint to use instead of the endpoint of the region, for example http://localhost:4566 for a local emulator. It is used only when overrideEndpoint is true.

String

camel.component.aws-bedrock.use-default-credentials-provider

Whether to load the credentials with the default credentials provider chain of the AWS SDK, which looks in system properties, environment variables, the shared credentials and config files, and the container or instance role. It takes precedence over the other credentials options.

false

Boolean

camel.component.aws-bedrock.use-profile-credentials-provider

Whether to load the credentials from a profile of the AWS shared credentials and config files, the one of the profileCredentialsName option. It is not used when useDefaultCredentialsProvider is true, and it takes precedence over the session and static credentials.

false

Boolean

camel.component.aws-bedrock.use-session-credentials

Whether to use temporary credentials made of the accessKey, secretKey and sessionToken options, for example those of an assumed IAM role. It is not used when useDefaultCredentialsProvider or useProfileCredentialsProvider is true.

false

Boolean