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/03/07 15:35:16 UTC
(camel) branch main updated: CAMEL-20535 - Camel-AWS-Bedrock: Add the component for the bedrock runtime agent for knowledge base support (#13410)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 4f701c5a4d9 CAMEL-20535 - Camel-AWS-Bedrock: Add the component for the bedrock runtime agent for knowledge base support (#13410)
4f701c5a4d9 is described below
commit 4f701c5a4d948a192506dfc80b2ded15512703b2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 7 16:35:09 2024 +0100
CAMEL-20535 - Camel-AWS-Bedrock: Add the component for the bedrock runtime agent for knowledge base support (#13410)
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../org/apache/camel/catalog/components.properties | 1 +
.../components/aws-bedrock-agent-runtime.json | 78 ++++++++
.../camel/catalog/components/aws-bedrock.json | 84 ++++----
components/camel-aws/camel-aws-bedrock/pom.xml | 5 +
.../BedrockAgentRuntimeComponentConfigurer.java} | 40 ++--
.../BedrockAgentRuntimeEndpointConfigurer.java} | 32 +--
.../BedrockAgentRuntimeEndpointUriFactory.java} | 11 +-
.../{ => runtime}/BedrockComponentConfigurer.java | 14 +-
.../{ => runtime}/BedrockEndpointConfigurer.java | 6 +-
.../{ => runtime}/BedrockEndpointUriFactory.java | 2 +-
.../agentruntime/aws-bedrock-agent-runtime.json | 78 ++++++++
.../aws2/bedrock/{ => runtime}/aws-bedrock.json | 84 ++++----
.../services/org/apache/camel/component.properties | 2 +-
.../org/apache/camel/component/aws-bedrock | 2 +-
.../camel/component/aws-bedrock-agent-runtime | 2 +
.../configurer/aws-bedrock-agent-runtime-component | 2 +
.../configurer/aws-bedrock-agent-runtime-endpoint | 2 +
.../apache/camel/configurer/aws-bedrock-component | 2 +-
.../apache/camel/configurer/aws-bedrock-endpoint | 2 +-
.../urifactory/aws-bedrock-agent-runtime-endpoint | 2 +
.../apache/camel/urifactory/aws-bedrock-endpoint | 2 +-
.../docs/aws-bedrock-agent-runtime-component.adoc | 102 ++++++++++
.../component/aws2/bedrock/BedrockModels.java | 4 +-
.../BedrockAgentRuntimeComponent.java} | 26 +--
.../BedrockAgentRuntimeConfiguration.java} | 51 +++--
.../BedrockAgentRuntimeConstants.java} | 10 +-
.../agentruntime/BedrockAgentRuntimeEndpoint.java | 86 ++++++++
.../BedrockAgentRuntimeOperations.java} | 10 +-
.../agentruntime/BedrockAgentRuntimeProducer.java | 134 +++++++++++++
.../client/BedrockAgentRuntimeClientFactory.java | 51 +++++
.../client/BedrockAgentRuntimeInternalClient.java} | 12 +-
...BedrockAgentRuntimeClientIAMOptimizedImpl.java} | 30 +--
...AgentRuntimeClientIAMProfileOptimizedImpl.java} | 34 ++--
...BedrockAgentRuntimeClientSessionTokenImpl.java} | 34 ++--
.../BedrockAgentRuntimeClientStandardImpl.java} | 34 ++--
.../bedrock/{ => runtime}/BedrockComponent.java | 2 +-
.../{ => runtime}/BedrockConfiguration.java | 2 +-
.../bedrock/{ => runtime}/BedrockConstants.java | 2 +-
.../bedrock/{ => runtime}/BedrockEndpoint.java | 4 +-
.../bedrock/{ => runtime}/BedrockOperations.java | 2 +-
.../bedrock/{ => runtime}/BedrockProducer.java | 2 +-
.../{ => runtime}/client/BedrockClientFactory.java | 12 +-
.../client/BedrockRuntimeInternalClient.java | 2 +-
.../impl/BedrockRuntimeClientIAMOptimizedImpl.java | 6 +-
...edrockRuntimeClientIAMProfileOptimizedImpl.java | 6 +-
.../impl/BedrockRuntimeClientSessionTokenImpl.java | 6 +-
.../impl/BedrockRuntimeClientStandardImpl.java | 6 +-
.../BedrockAgentRuntimeClientFactoryTest.java | 74 +++++++
.../integration/BedrockAgentRuntimeProducerIT.java | 72 +++++++
.../BedrockRuntimeClientFactoryTest.java | 14 +-
.../integration/BedrockProducerIT.java | 4 +-
.../org/apache/camel/main/components.properties | 1 +
.../examples/json/aws-bedrock-agent-runtime.json | 1 +
.../modules/ROOT/examples/json/aws-bedrock.json | 2 +-
docs/components/modules/ROOT/nav.adoc | 1 +
.../pages/aws-bedrock-agent-runtime-component.adoc | 1 +
.../component/ComponentsBuilderFactory.java | 13 ++
...edrockAgentRuntimeComponentBuilderFactory.java} | 183 +++++++++--------
.../dsl/AwsBedrockComponentBuilderFactory.java | 20 +-
.../src/generated/resources/metadata.json | 25 ++-
.../builder/endpoint/EndpointBuilderFactory.java | 1 +
.../camel/builder/endpoint/EndpointBuilders.java | 1 +
.../builder/endpoint/StaticEndpointBuilders.java | 43 ++++
...BedrockAgentRuntimeEndpointBuilderFactory.java} | 216 +++++++++++----------
.../dsl/BedrockEndpointBuilderFactory.java | 6 +-
.../camel-component-known-dependencies.properties | 3 +-
.../components/AwsBedrockAgentRuntimeUriDsl.kt | 159 +++++++++++++++
67 files changed, 1479 insertions(+), 484 deletions(-)
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
index 964b2197cc9..c06addb20ee 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
@@ -7,6 +7,7 @@ atmosphere-websocket
atom
avro
aws-bedrock
+aws-bedrock-agent-runtime
aws-cloudtrail
aws-config
aws-secrets-manager
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-bedrock-agent-runtime.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-bedrock-agent-runtime.json
new file mode 100644
index 00000000000..94f3e81f90d
--- /dev/null
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-bedrock-agent-runtime.json
@@ -0,0 +1,78 @@
+{
+ "component": {
+ "kind": "component",
+ "name": "aws-bedrock-agent-runtime",
+ "title": "AWS Bedrock Agent Runtime",
+ "description": "Invoke Model of AWS Bedrock Agent Runtime service.",
+ "deprecated": false,
+ "firstVersion": "4.5.0",
+ "label": "ai,cloud",
+ "javaType": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeComponent",
+ "supportLevel": "Preview",
+ "groupId": "org.apache.camel",
+ "artifactId": "camel-aws-bedrock",
+ "version": "4.5.0-SNAPSHOT",
+ "scheme": "aws-bedrock-agent-runtime",
+ "extendsScheme": "",
+ "syntax": "aws-bedrock-agent-runtime:label",
+ "async": false,
+ "api": false,
+ "consumerOnly": false,
+ "producerOnly": true,
+ "lenientProperties": false,
+ "remote": true
+ },
+ "componentProperties": {
+ "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Component configuration" },
+ "knowledgeBaseId": { "index": 1, "kind": "property", "displayName": "Knowledge Base Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Define the Knowledge Base Id we are going to use" },
+ "lazyStartProducer": { "index": 2, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "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 [...]
+ "modelId": { "index": 3, "kind": "property", "displayName": "Model Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "amazon.titan-text-express-v1", "amazon.titan-text-lite-v1", "amazon.titan-image-generator-v1", "amazon.titan-embed-text-v1", "ai21.j2-ultra-v1", "ai21.j2-mid-v1" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.be [...]
+ "operation": { "index": 4, "kind": "property", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations", "enum": [ "retrieveAndGenerate" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationFiel [...]
+ "overrideEndpoint": { "index": 5, "kind": "property", "displayName": "Override Endpoint", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set the need for overriding the endpoint. This option ne [...]
+ "pojoRequest": { "index": 6, "kind": "property", "displayName": "Pojo Request", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "If we want to use a POJO request as body or not" },
+ "profileCredentialsName": { "index": 7, "kind": "property", "displayName": "Profile Credentials Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "If using a profile credentials pr [...]
+ "region": { "index": 8, "kind": "property", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "eu-central-1" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Th [...]
+ "uriEndpointOverride": { "index": 9, "kind": "property", "displayName": "Uri Endpoint Override", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set the overriding uri endpoint. This option needs to be used in [...]
+ "useDefaultCredentialsProvider": { "index": 10, "kind": "property", "displayName": "Use Default Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock cli [...]
+ "useProfileCredentialsProvider": { "index": 11, "kind": "property", "displayName": "Use Profile Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock cli [...]
+ "autowiredEnabled": { "index": 12, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "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 [...]
+ "bedrockAgentRuntimeClient": { "index": 13, "kind": "property", "displayName": "Bedrock Agent Runtime Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configuration [...]
+ "healthCheckConsumerEnabled": { "index": 14, "kind": "property", "displayName": "Health Check Consumer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all consumer based health checks from this component" },
+ "healthCheckProducerEnabled": { "index": 15, "kind": "property", "displayName": "Health Check Producer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "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 produce [...]
+ "proxyHost": { "index": 16, "kind": "property", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "To define a proxy host when instantiating the Bedrock client" },
+ "proxyPort": { "index": 17, "kind": "property", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the Bedrock client" },
+ "proxyProtocol": { "index": 18, "kind": "property", "displayName": "Proxy Protocol", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": " [...]
+ "accessKey": { "index": 19, "kind": "property", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Amazon AWS Access Key" },
+ "secretKey": { "index": 20, "kind": "property", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" },
+ "sessionToken": { "index": 21, "kind": "property", "displayName": "Session Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Amazon AWS Session Token used when the user needs to assume an IAM role" },
+ "trustAllCertificates": { "index": 22, "kind": "property", "displayName": "Trust All Certificates", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "If we want to trust all certificates i [...]
+ "useSessionCredentials": { "index": 23, "kind": "property", "displayName": "Use Session Credentials", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock Agent Runtim [...]
+ },
+ "headers": {
+ "CamelAwsBedrockAgentRuntimeOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation we want to perform", "constantName": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConstants#OPERATION" },
+ "CamelAwsBedrockAcceptContentType": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The model accept content type", "constantName": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConstants#MODEL_ACCEPT_CONTENT_TYPE" }
+ },
+ "properties": {
+ "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Logical name" },
+ "knowledgeBaseId": { "index": 1, "kind": "parameter", "displayName": "Knowledge Base Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Define the Knowledge Base Id we are going to use" },
+ "modelId": { "index": 2, "kind": "parameter", "displayName": "Model Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "amazon.titan-text-express-v1", "amazon.titan-text-lite-v1", "amazon.titan-image-generator-v1", "amazon.titan-embed-text-v1", "ai21.j2-ultra-v1", "ai21.j2-mid-v1" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.b [...]
+ "operation": { "index": 3, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations", "enum": [ "retrieveAndGenerate" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationFie [...]
+ "overrideEndpoint": { "index": 4, "kind": "parameter", "displayName": "Override Endpoint", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set the need for overriding the endpoint. This option n [...]
+ "pojoRequest": { "index": 5, "kind": "parameter", "displayName": "Pojo Request", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "If we want to use a POJO request as body or not" },
+ "profileCredentialsName": { "index": 6, "kind": "parameter", "displayName": "Profile Credentials Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "If using a profile credentials p [...]
+ "region": { "index": 7, "kind": "parameter", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "eu-central-1" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "T [...]
+ "uriEndpointOverride": { "index": 8, "kind": "parameter", "displayName": "Uri Endpoint Override", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set the overriding uri endpoint. This option needs to be used i [...]
+ "useDefaultCredentialsProvider": { "index": 9, "kind": "parameter", "displayName": "Use Default Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock cli [...]
+ "useProfileCredentialsProvider": { "index": 10, "kind": "parameter", "displayName": "Use Profile Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock cl [...]
+ "lazyStartProducer": { "index": 11, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "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 produ [...]
+ "bedrockAgentRuntimeClient": { "index": 12, "kind": "parameter", "displayName": "Bedrock Agent Runtime Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configuratio [...]
+ "proxyHost": { "index": 13, "kind": "parameter", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "To define a proxy host when instantiating the Bedrock client" },
+ "proxyPort": { "index": 14, "kind": "parameter", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the Bedrock client" },
+ "proxyProtocol": { "index": 15, "kind": "parameter", "displayName": "Proxy Protocol", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": [...]
+ "accessKey": { "index": 16, "kind": "parameter", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Amazon AWS Access Key" },
+ "secretKey": { "index": 17, "kind": "parameter", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" },
+ "sessionToken": { "index": 18, "kind": "parameter", "displayName": "Session Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Amazon AWS Session Token used when the user needs to assume an IAM role" },
+ "trustAllCertificates": { "index": 19, "kind": "parameter", "displayName": "Trust All Certificates", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "If we want to trust all certificates [...]
+ "useSessionCredentials": { "index": 20, "kind": "parameter", "displayName": "Use Session Credentials", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock Agent Runti [...]
+ }
+}
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-bedrock.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-bedrock.json
index 335dae3ff82..bff29e35c99 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-bedrock.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-bedrock.json
@@ -7,7 +7,7 @@
"deprecated": false,
"firstVersion": "4.5.0",
"label": "ai,cloud",
- "javaType": "org.apache.camel.component.aws2.bedrock.BedrockComponent",
+ "javaType": "org.apache.camel.component.aws2.bedrock.runtime.BedrockComponent",
"supportLevel": "Preview",
"groupId": "org.apache.camel",
"artifactId": "camel-aws-bedrock",
@@ -23,55 +23,55 @@
"remote": true
},
"componentProperties": {
- "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Component configuration" },
+ "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Component configuration" },
"lazyStartProducer": { "index": 1, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "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 [...]
- "modelId": { "index": 2, "kind": "property", "displayName": "Model Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "amazon.titan-text-express-v1", "amazon.titan-text-lite-v1", "amazon.titan-image-generator-v1", "amazon.titan-embed-text-v1", "ai21.j2-ultra-v1", "ai21.j2-mid-v1" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.be [...]
- "operation": { "index": 3, "kind": "property", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.BedrockOperations", "enum": [ "invokeTextModel", "invokeImageModel", "invokeEmbeddingsModel" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "conf [...]
- "overrideEndpoint": { "index": 4, "kind": "property", "displayName": "Override Endpoint", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set the need for overriding the endpoint. This option needs to be used in combina [...]
- "pojoRequest": { "index": 5, "kind": "property", "displayName": "Pojo Request", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to use a POJO request as body or not" },
- "profileCredentialsName": { "index": 6, "kind": "property", "displayName": "Profile Credentials Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "If using a profile credentials provider, this parameter wi [...]
- "region": { "index": 7, "kind": "property", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "eu-central-1" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "The region in which Bedrock [...]
- "uriEndpointOverride": { "index": 8, "kind": "property", "displayName": "Uri Endpoint Override", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set the overriding uri endpoint. This option needs to be used in combination with overrid [...]
- "useDefaultCredentialsProvider": { "index": 9, "kind": "property", "displayName": "Use Default Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to load [...]
- "useProfileCredentialsProvider": { "index": 10, "kind": "property", "displayName": "Use Profile Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to load [...]
+ "modelId": { "index": 2, "kind": "property", "displayName": "Model Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "amazon.titan-text-express-v1", "amazon.titan-text-lite-v1", "amazon.titan-image-generator-v1", "amazon.titan-embed-text-v1", "ai21.j2-ultra-v1", "ai21.j2-mid-v1" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.be [...]
+ "operation": { "index": 3, "kind": "property", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations", "enum": [ "invokeTextModel", "invokeImageModel", "invokeEmbeddingsModel" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurat [...]
+ "overrideEndpoint": { "index": 4, "kind": "property", "displayName": "Override Endpoint", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set the need for overriding the endpoint. This option needs to be used in [...]
+ "pojoRequest": { "index": 5, "kind": "property", "displayName": "Pojo Request", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to use a POJO request as body or not" },
+ "profileCredentialsName": { "index": 6, "kind": "property", "displayName": "Profile Credentials Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "If using a profile credentials provider, this para [...]
+ "region": { "index": 7, "kind": "property", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "eu-central-1" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "The region in which [...]
+ "uriEndpointOverride": { "index": 8, "kind": "property", "displayName": "Uri Endpoint Override", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set the overriding uri endpoint. This option needs to be used in combination with [...]
+ "useDefaultCredentialsProvider": { "index": 9, "kind": "property", "displayName": "Use Default Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect [...]
+ "useProfileCredentialsProvider": { "index": 10, "kind": "property", "displayName": "Use Profile Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect [...]
"autowiredEnabled": { "index": 11, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "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 [...]
- "bedrockRuntimeClient": { "index": 12, "kind": "property", "displayName": "Bedrock Runtime Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To us [...]
+ "bedrockRuntimeClient": { "index": 12, "kind": "property", "displayName": "Bedrock Runtime Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description" [...]
"healthCheckConsumerEnabled": { "index": 13, "kind": "property", "displayName": "Health Check Consumer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all consumer based health checks from this component" },
"healthCheckProducerEnabled": { "index": 14, "kind": "property", "displayName": "Health Check Producer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "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 produce [...]
- "proxyHost": { "index": 15, "kind": "property", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy host when instantiating the Bedrock client" },
- "proxyPort": { "index": 16, "kind": "property", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the Bedrock client" },
- "proxyProtocol": { "index": 17, "kind": "property", "displayName": "Proxy Protocol", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy protoco [...]
- "accessKey": { "index": 18, "kind": "property", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Access Key" },
- "secretKey": { "index": 19, "kind": "property", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" },
- "sessionToken": { "index": 20, "kind": "property", "displayName": "Session Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Session Token used when the user needs to assume an IAM role" },
- "trustAllCertificates": { "index": 21, "kind": "property", "displayName": "Trust All Certificates", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to trust all certificates in case of overriding the [...]
- "useSessionCredentials": { "index": 22, "kind": "property", "displayName": "Use Session Credentials", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to use Session C [...]
+ "proxyHost": { "index": 15, "kind": "property", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy host when instantiating the Bedrock client" },
+ "proxyPort": { "index": 16, "kind": "property", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the Bedrock client" },
+ "proxyProtocol": { "index": 17, "kind": "property", "displayName": "Proxy Protocol", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy [...]
+ "accessKey": { "index": 18, "kind": "property", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Access Key" },
+ "secretKey": { "index": 19, "kind": "property", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" },
+ "sessionToken": { "index": 20, "kind": "property", "displayName": "Session Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Session Token used when the user needs to assume an IAM role" },
+ "trustAllCertificates": { "index": 21, "kind": "property", "displayName": "Trust All Certificates", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to trust all certificates in case of overrid [...]
+ "useSessionCredentials": { "index": 22, "kind": "property", "displayName": "Use Session Credentials", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to use S [...]
},
"headers": {
- "CamelAwsBedrockOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation we want to perform", "constantName": "org.apache.camel.component.aws2.bedrock.BedrockConstants#OPERATION" },
- "CamelAwsBedrockContentType": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The model content type", "constantName": "org.apache.camel.component.aws2.bedrock.BedrockConstants#MODEL_CONTENT_TYPE" },
- "CamelAwsBedrockAcceptContentType": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The model accept content type", "constantName": "org.apache.camel.component.aws2.bedrock.BedrockConstants#MODEL_ACCEPT_CONTENT_TYPE" }
+ "CamelAwsBedrockOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation we want to perform", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#OPERATION" },
+ "CamelAwsBedrockContentType": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The model content type", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#MODEL_CONTENT_TYPE" },
+ "CamelAwsBedrockAcceptContentType": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The model accept content type", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#MODEL_ACCEPT_CONTENT_TYPE" }
},
"properties": {
- "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Logical name" },
- "modelId": { "index": 1, "kind": "parameter", "displayName": "Model Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "amazon.titan-text-express-v1", "amazon.titan-text-lite-v1", "amazon.titan-image-generator-v1", "amazon.titan-embed-text-v1", "ai21.j2-ultra-v1", "ai21.j2-mid-v1" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.b [...]
- "operation": { "index": 2, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.BedrockOperations", "enum": [ "invokeTextModel", "invokeImageModel", "invokeEmbeddingsModel" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "con [...]
- "overrideEndpoint": { "index": 3, "kind": "parameter", "displayName": "Override Endpoint", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set the need for overriding the endpoint. This option needs to be used in combin [...]
- "pojoRequest": { "index": 4, "kind": "parameter", "displayName": "Pojo Request", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to use a POJO request as body or not" },
- "profileCredentialsName": { "index": 5, "kind": "parameter", "displayName": "Profile Credentials Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "If using a profile credentials provider, this parameter w [...]
- "region": { "index": 6, "kind": "parameter", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "eu-central-1" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "The region in which Bedroc [...]
- "uriEndpointOverride": { "index": 7, "kind": "parameter", "displayName": "Uri Endpoint Override", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set the overriding uri endpoint. This option needs to be used in combination with overri [...]
- "useDefaultCredentialsProvider": { "index": 8, "kind": "parameter", "displayName": "Use Default Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to load [...]
- "useProfileCredentialsProvider": { "index": 9, "kind": "parameter", "displayName": "Use Profile Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to load [...]
+ "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Logical name" },
+ "modelId": { "index": 1, "kind": "parameter", "displayName": "Model Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "amazon.titan-text-express-v1", "amazon.titan-text-lite-v1", "amazon.titan-image-generator-v1", "amazon.titan-embed-text-v1", "ai21.j2-ultra-v1", "ai21.j2-mid-v1" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.b [...]
+ "operation": { "index": 2, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations", "enum": [ "invokeTextModel", "invokeImageModel", "invokeEmbeddingsModel" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configura [...]
+ "overrideEndpoint": { "index": 3, "kind": "parameter", "displayName": "Override Endpoint", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set the need for overriding the endpoint. This option needs to be used i [...]
+ "pojoRequest": { "index": 4, "kind": "parameter", "displayName": "Pojo Request", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to use a POJO request as body or not" },
+ "profileCredentialsName": { "index": 5, "kind": "parameter", "displayName": "Profile Credentials Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "If using a profile credentials provider, this par [...]
+ "region": { "index": 6, "kind": "parameter", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "eu-central-1" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "The region in whic [...]
+ "uriEndpointOverride": { "index": 7, "kind": "parameter", "displayName": "Uri Endpoint Override", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set the overriding uri endpoint. This option needs to be used in combination wit [...]
+ "useDefaultCredentialsProvider": { "index": 8, "kind": "parameter", "displayName": "Use Default Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect [...]
+ "useProfileCredentialsProvider": { "index": 9, "kind": "parameter", "displayName": "Use Profile Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect [...]
"lazyStartProducer": { "index": 10, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "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 produ [...]
- "bedrockRuntimeClient": { "index": 11, "kind": "parameter", "displayName": "Bedrock Runtime Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To u [...]
- "proxyHost": { "index": 12, "kind": "parameter", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy host when instantiating the Bedrock client" },
- "proxyPort": { "index": 13, "kind": "parameter", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the Bedrock client" },
- "proxyProtocol": { "index": 14, "kind": "parameter", "displayName": "Proxy Protocol", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy protoc [...]
- "accessKey": { "index": 15, "kind": "parameter", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Access Key" },
- "secretKey": { "index": 16, "kind": "parameter", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" },
- "sessionToken": { "index": 17, "kind": "parameter", "displayName": "Session Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Session Token used when the user needs to assume an IAM role" },
- "trustAllCertificates": { "index": 18, "kind": "parameter", "displayName": "Trust All Certificates", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to trust all certificates in case of overriding the [...]
- "useSessionCredentials": { "index": 19, "kind": "parameter", "displayName": "Use Session Credentials", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to use Session [...]
+ "bedrockRuntimeClient": { "index": 11, "kind": "parameter", "displayName": "Bedrock Runtime Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description [...]
+ "proxyHost": { "index": 12, "kind": "parameter", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy host when instantiating the Bedrock client" },
+ "proxyPort": { "index": 13, "kind": "parameter", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the Bedrock client" },
+ "proxyProtocol": { "index": 14, "kind": "parameter", "displayName": "Proxy Protocol", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "To define a prox [...]
+ "accessKey": { "index": 15, "kind": "parameter", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Access Key" },
+ "secretKey": { "index": 16, "kind": "parameter", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" },
+ "sessionToken": { "index": 17, "kind": "parameter", "displayName": "Session Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Session Token used when the user needs to assume an IAM role" },
+ "trustAllCertificates": { "index": 18, "kind": "parameter", "displayName": "Trust All Certificates", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to trust all certificates in case of overri [...]
+ "useSessionCredentials": { "index": 19, "kind": "parameter", "displayName": "Use Session Credentials", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to use [...]
}
}
diff --git a/components/camel-aws/camel-aws-bedrock/pom.xml b/components/camel-aws/camel-aws-bedrock/pom.xml
index ea325d0e204..19f2a3f9bc9 100644
--- a/components/camel-aws/camel-aws-bedrock/pom.xml
+++ b/components/camel-aws/camel-aws-bedrock/pom.xml
@@ -54,6 +54,11 @@
<artifactId>bedrockruntime</artifactId>
<version>${aws-java-sdk2-version}</version>
</dependency>
+ <dependency>
+ <groupId>software.amazon.awssdk</groupId>
+ <artifactId>bedrockagentruntime</artifactId>
+ <version>${aws-java-sdk2-version}</version>
+ </dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>apache-client</artifactId>
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockComponentConfigurer.java b/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeComponentConfigurer.java
similarity index 82%
copy from components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockComponentConfigurer.java
copy to components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeComponentConfigurer.java
index 6c971669a3c..30a162516a0 100644
--- a/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockComponentConfigurer.java
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeComponentConfigurer.java
@@ -1,5 +1,5 @@
/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.agentruntime;
import java.util.Map;
@@ -15,35 +15,37 @@ import org.apache.camel.support.component.PropertyConfigurerSupport;
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
-public class BedrockComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+public class BedrockAgentRuntimeComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
- private org.apache.camel.component.aws2.bedrock.BedrockConfiguration getOrCreateConfiguration(BedrockComponent target) {
+ private org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration getOrCreateConfiguration(BedrockAgentRuntimeComponent target) {
if (target.getConfiguration() == null) {
- target.setConfiguration(new org.apache.camel.component.aws2.bedrock.BedrockConfiguration());
+ target.setConfiguration(new org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration());
}
return target.getConfiguration();
}
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- BedrockComponent target = (BedrockComponent) obj;
+ BedrockAgentRuntimeComponent target = (BedrockAgentRuntimeComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "accesskey":
case "accessKey": getOrCreateConfiguration(target).setAccessKey(property(camelContext, java.lang.String.class, value)); return true;
case "autowiredenabled":
case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
- case "bedrockruntimeclient":
- case "bedrockRuntimeClient": getOrCreateConfiguration(target).setBedrockRuntimeClient(property(camelContext, software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient.class, value)); return true;
- case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.aws2.bedrock.BedrockConfiguration.class, value)); return true;
+ case "bedrockagentruntimeclient":
+ case "bedrockAgentRuntimeClient": getOrCreateConfiguration(target).setBedrockAgentRuntimeClient(property(camelContext, software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient.class, value)); return true;
+ case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration.class, value)); return true;
case "healthcheckconsumerenabled":
case "healthCheckConsumerEnabled": target.setHealthCheckConsumerEnabled(property(camelContext, boolean.class, value)); return true;
case "healthcheckproducerenabled":
case "healthCheckProducerEnabled": target.setHealthCheckProducerEnabled(property(camelContext, boolean.class, value)); return true;
+ case "knowledgebaseid":
+ case "knowledgeBaseId": getOrCreateConfiguration(target).setKnowledgeBaseId(property(camelContext, java.lang.String.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "modelid":
case "modelId": getOrCreateConfiguration(target).setModelId(property(camelContext, java.lang.String.class, value)); return true;
- case "operation": getOrCreateConfiguration(target).setOperation(property(camelContext, org.apache.camel.component.aws2.bedrock.BedrockOperations.class, value)); return true;
+ case "operation": getOrCreateConfiguration(target).setOperation(property(camelContext, org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations.class, value)); return true;
case "overrideendpoint":
case "overrideEndpoint": getOrCreateConfiguration(target).setOverrideEndpoint(property(camelContext, boolean.class, value)); return true;
case "pojorequest":
@@ -77,7 +79,7 @@ public class BedrockComponentConfigurer extends PropertyConfigurerSupport implem
@Override
public String[] getAutowiredNames() {
- return new String[]{"bedrockRuntimeClient"};
+ return new String[]{"bedrockAgentRuntimeClient"};
}
@Override
@@ -87,18 +89,20 @@ public class BedrockComponentConfigurer extends PropertyConfigurerSupport implem
case "accessKey": return java.lang.String.class;
case "autowiredenabled":
case "autowiredEnabled": return boolean.class;
- case "bedrockruntimeclient":
- case "bedrockRuntimeClient": return software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient.class;
- case "configuration": return org.apache.camel.component.aws2.bedrock.BedrockConfiguration.class;
+ case "bedrockagentruntimeclient":
+ case "bedrockAgentRuntimeClient": return software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient.class;
+ case "configuration": return org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration.class;
case "healthcheckconsumerenabled":
case "healthCheckConsumerEnabled": return boolean.class;
case "healthcheckproducerenabled":
case "healthCheckProducerEnabled": return boolean.class;
+ case "knowledgebaseid":
+ case "knowledgeBaseId": return java.lang.String.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "modelid":
case "modelId": return java.lang.String.class;
- case "operation": return org.apache.camel.component.aws2.bedrock.BedrockOperations.class;
+ case "operation": return org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations.class;
case "overrideendpoint":
case "overrideEndpoint": return boolean.class;
case "pojorequest":
@@ -132,19 +136,21 @@ public class BedrockComponentConfigurer extends PropertyConfigurerSupport implem
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- BedrockComponent target = (BedrockComponent) obj;
+ BedrockAgentRuntimeComponent target = (BedrockAgentRuntimeComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "accesskey":
case "accessKey": return getOrCreateConfiguration(target).getAccessKey();
case "autowiredenabled":
case "autowiredEnabled": return target.isAutowiredEnabled();
- case "bedrockruntimeclient":
- case "bedrockRuntimeClient": return getOrCreateConfiguration(target).getBedrockRuntimeClient();
+ case "bedrockagentruntimeclient":
+ case "bedrockAgentRuntimeClient": return getOrCreateConfiguration(target).getBedrockAgentRuntimeClient();
case "configuration": return target.getConfiguration();
case "healthcheckconsumerenabled":
case "healthCheckConsumerEnabled": return target.isHealthCheckConsumerEnabled();
case "healthcheckproducerenabled":
case "healthCheckProducerEnabled": return target.isHealthCheckProducerEnabled();
+ case "knowledgebaseid":
+ case "knowledgeBaseId": return getOrCreateConfiguration(target).getKnowledgeBaseId();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "modelid":
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockEndpointConfigurer.java b/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeEndpointConfigurer.java
similarity index 83%
copy from components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockEndpointConfigurer.java
copy to components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeEndpointConfigurer.java
index 1f516f703a8..054b184364f 100644
--- a/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockEndpointConfigurer.java
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeEndpointConfigurer.java
@@ -1,5 +1,5 @@
/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.agentruntime;
import java.util.Map;
@@ -15,21 +15,23 @@ import org.apache.camel.support.component.PropertyConfigurerSupport;
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
-public class BedrockEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+public class BedrockAgentRuntimeEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
- BedrockEndpoint target = (BedrockEndpoint) obj;
+ BedrockAgentRuntimeEndpoint target = (BedrockAgentRuntimeEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "accesskey":
case "accessKey": target.getConfiguration().setAccessKey(property(camelContext, java.lang.String.class, value)); return true;
- case "bedrockruntimeclient":
- case "bedrockRuntimeClient": target.getConfiguration().setBedrockRuntimeClient(property(camelContext, software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient.class, value)); return true;
+ case "bedrockagentruntimeclient":
+ case "bedrockAgentRuntimeClient": target.getConfiguration().setBedrockAgentRuntimeClient(property(camelContext, software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient.class, value)); return true;
+ case "knowledgebaseid":
+ case "knowledgeBaseId": target.getConfiguration().setKnowledgeBaseId(property(camelContext, java.lang.String.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "modelid":
case "modelId": target.getConfiguration().setModelId(property(camelContext, java.lang.String.class, value)); return true;
- case "operation": target.getConfiguration().setOperation(property(camelContext, org.apache.camel.component.aws2.bedrock.BedrockOperations.class, value)); return true;
+ case "operation": target.getConfiguration().setOperation(property(camelContext, org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations.class, value)); return true;
case "overrideendpoint":
case "overrideEndpoint": target.getConfiguration().setOverrideEndpoint(property(camelContext, boolean.class, value)); return true;
case "pojorequest":
@@ -63,7 +65,7 @@ public class BedrockEndpointConfigurer extends PropertyConfigurerSupport impleme
@Override
public String[] getAutowiredNames() {
- return new String[]{"bedrockRuntimeClient"};
+ return new String[]{"bedrockAgentRuntimeClient"};
}
@Override
@@ -71,13 +73,15 @@ public class BedrockEndpointConfigurer extends PropertyConfigurerSupport impleme
switch (ignoreCase ? name.toLowerCase() : name) {
case "accesskey":
case "accessKey": return java.lang.String.class;
- case "bedrockruntimeclient":
- case "bedrockRuntimeClient": return software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient.class;
+ case "bedrockagentruntimeclient":
+ case "bedrockAgentRuntimeClient": return software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient.class;
+ case "knowledgebaseid":
+ case "knowledgeBaseId": return java.lang.String.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "modelid":
case "modelId": return java.lang.String.class;
- case "operation": return org.apache.camel.component.aws2.bedrock.BedrockOperations.class;
+ case "operation": return org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations.class;
case "overrideendpoint":
case "overrideEndpoint": return boolean.class;
case "pojorequest":
@@ -111,12 +115,14 @@ public class BedrockEndpointConfigurer extends PropertyConfigurerSupport impleme
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
- BedrockEndpoint target = (BedrockEndpoint) obj;
+ BedrockAgentRuntimeEndpoint target = (BedrockAgentRuntimeEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "accesskey":
case "accessKey": return target.getConfiguration().getAccessKey();
- case "bedrockruntimeclient":
- case "bedrockRuntimeClient": return target.getConfiguration().getBedrockRuntimeClient();
+ case "bedrockagentruntimeclient":
+ case "bedrockAgentRuntimeClient": return target.getConfiguration().getBedrockAgentRuntimeClient();
+ case "knowledgebaseid":
+ case "knowledgeBaseId": return target.getConfiguration().getKnowledgeBaseId();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "modelid":
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockEndpointUriFactory.java b/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeEndpointUriFactory.java
similarity index 86%
copy from components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockEndpointUriFactory.java
copy to components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeEndpointUriFactory.java
index 0109b235132..215554bab2d 100644
--- a/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockEndpointUriFactory.java
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeEndpointUriFactory.java
@@ -1,5 +1,5 @@
/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.agentruntime;
import java.net.URISyntaxException;
import java.util.Collections;
@@ -13,7 +13,7 @@ import org.apache.camel.spi.EndpointUriFactory;
/**
* Generated by camel build tools - do NOT edit this file!
*/
-public class BedrockEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {
+public class BedrockAgentRuntimeEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {
private static final String BASE = ":label";
@@ -21,9 +21,10 @@ public class BedrockEndpointUriFactory extends org.apache.camel.support.componen
private static final Set<String> SECRET_PROPERTY_NAMES;
private static final Set<String> MULTI_VALUE_PREFIXES;
static {
- Set<String> props = new HashSet<>(20);
+ Set<String> props = new HashSet<>(21);
props.add("accessKey");
- props.add("bedrockRuntimeClient");
+ props.add("bedrockAgentRuntimeClient");
+ props.add("knowledgeBaseId");
props.add("label");
props.add("lazyStartProducer");
props.add("modelId");
@@ -53,7 +54,7 @@ public class BedrockEndpointUriFactory extends org.apache.camel.support.componen
@Override
public boolean isEnabled(String scheme) {
- return "aws-bedrock".equals(scheme);
+ return "aws-bedrock-agent-runtime".equals(scheme);
}
@Override
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockComponentConfigurer.java b/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockComponentConfigurer.java
similarity index 95%
rename from components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockComponentConfigurer.java
rename to components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockComponentConfigurer.java
index 6c971669a3c..7ba6cda0547 100644
--- a/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockComponentConfigurer.java
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockComponentConfigurer.java
@@ -1,5 +1,5 @@
/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.runtime;
import java.util.Map;
@@ -17,9 +17,9 @@ import org.apache.camel.support.component.PropertyConfigurerSupport;
@SuppressWarnings("unchecked")
public class BedrockComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
- private org.apache.camel.component.aws2.bedrock.BedrockConfiguration getOrCreateConfiguration(BedrockComponent target) {
+ private org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration getOrCreateConfiguration(BedrockComponent target) {
if (target.getConfiguration() == null) {
- target.setConfiguration(new org.apache.camel.component.aws2.bedrock.BedrockConfiguration());
+ target.setConfiguration(new org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration());
}
return target.getConfiguration();
}
@@ -34,7 +34,7 @@ public class BedrockComponentConfigurer extends PropertyConfigurerSupport implem
case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
case "bedrockruntimeclient":
case "bedrockRuntimeClient": getOrCreateConfiguration(target).setBedrockRuntimeClient(property(camelContext, software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient.class, value)); return true;
- case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.aws2.bedrock.BedrockConfiguration.class, value)); return true;
+ case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration.class, value)); return true;
case "healthcheckconsumerenabled":
case "healthCheckConsumerEnabled": target.setHealthCheckConsumerEnabled(property(camelContext, boolean.class, value)); return true;
case "healthcheckproducerenabled":
@@ -43,7 +43,7 @@ public class BedrockComponentConfigurer extends PropertyConfigurerSupport implem
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "modelid":
case "modelId": getOrCreateConfiguration(target).setModelId(property(camelContext, java.lang.String.class, value)); return true;
- case "operation": getOrCreateConfiguration(target).setOperation(property(camelContext, org.apache.camel.component.aws2.bedrock.BedrockOperations.class, value)); return true;
+ case "operation": getOrCreateConfiguration(target).setOperation(property(camelContext, org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations.class, value)); return true;
case "overrideendpoint":
case "overrideEndpoint": getOrCreateConfiguration(target).setOverrideEndpoint(property(camelContext, boolean.class, value)); return true;
case "pojorequest":
@@ -89,7 +89,7 @@ public class BedrockComponentConfigurer extends PropertyConfigurerSupport implem
case "autowiredEnabled": return boolean.class;
case "bedrockruntimeclient":
case "bedrockRuntimeClient": return software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient.class;
- case "configuration": return org.apache.camel.component.aws2.bedrock.BedrockConfiguration.class;
+ case "configuration": return org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration.class;
case "healthcheckconsumerenabled":
case "healthCheckConsumerEnabled": return boolean.class;
case "healthcheckproducerenabled":
@@ -98,7 +98,7 @@ public class BedrockComponentConfigurer extends PropertyConfigurerSupport implem
case "lazyStartProducer": return boolean.class;
case "modelid":
case "modelId": return java.lang.String.class;
- case "operation": return org.apache.camel.component.aws2.bedrock.BedrockOperations.class;
+ case "operation": return org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations.class;
case "overrideendpoint":
case "overrideEndpoint": return boolean.class;
case "pojorequest":
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockEndpointConfigurer.java b/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockEndpointConfigurer.java
similarity index 98%
rename from components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockEndpointConfigurer.java
rename to components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockEndpointConfigurer.java
index 1f516f703a8..55e768a4f38 100644
--- a/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockEndpointConfigurer.java
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockEndpointConfigurer.java
@@ -1,5 +1,5 @@
/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.runtime;
import java.util.Map;
@@ -29,7 +29,7 @@ public class BedrockEndpointConfigurer extends PropertyConfigurerSupport impleme
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "modelid":
case "modelId": target.getConfiguration().setModelId(property(camelContext, java.lang.String.class, value)); return true;
- case "operation": target.getConfiguration().setOperation(property(camelContext, org.apache.camel.component.aws2.bedrock.BedrockOperations.class, value)); return true;
+ case "operation": target.getConfiguration().setOperation(property(camelContext, org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations.class, value)); return true;
case "overrideendpoint":
case "overrideEndpoint": target.getConfiguration().setOverrideEndpoint(property(camelContext, boolean.class, value)); return true;
case "pojorequest":
@@ -77,7 +77,7 @@ public class BedrockEndpointConfigurer extends PropertyConfigurerSupport impleme
case "lazyStartProducer": return boolean.class;
case "modelid":
case "modelId": return java.lang.String.class;
- case "operation": return org.apache.camel.component.aws2.bedrock.BedrockOperations.class;
+ case "operation": return org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations.class;
case "overrideendpoint":
case "overrideEndpoint": return boolean.class;
case "pojorequest":
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockEndpointUriFactory.java b/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockEndpointUriFactory.java
similarity index 98%
rename from components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockEndpointUriFactory.java
rename to components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockEndpointUriFactory.java
index 0109b235132..c95efd5d96e 100644
--- a/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/BedrockEndpointUriFactory.java
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockEndpointUriFactory.java
@@ -1,5 +1,5 @@
/* Generated by camel build tools - do NOT edit this file! */
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.runtime;
import java.net.URISyntaxException;
import java.util.Collections;
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/org/apache/camel/component/aws2/bedrock/agentruntime/aws-bedrock-agent-runtime.json b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/org/apache/camel/component/aws2/bedrock/agentruntime/aws-bedrock-agent-runtime.json
new file mode 100644
index 00000000000..94f3e81f90d
--- /dev/null
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/org/apache/camel/component/aws2/bedrock/agentruntime/aws-bedrock-agent-runtime.json
@@ -0,0 +1,78 @@
+{
+ "component": {
+ "kind": "component",
+ "name": "aws-bedrock-agent-runtime",
+ "title": "AWS Bedrock Agent Runtime",
+ "description": "Invoke Model of AWS Bedrock Agent Runtime service.",
+ "deprecated": false,
+ "firstVersion": "4.5.0",
+ "label": "ai,cloud",
+ "javaType": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeComponent",
+ "supportLevel": "Preview",
+ "groupId": "org.apache.camel",
+ "artifactId": "camel-aws-bedrock",
+ "version": "4.5.0-SNAPSHOT",
+ "scheme": "aws-bedrock-agent-runtime",
+ "extendsScheme": "",
+ "syntax": "aws-bedrock-agent-runtime:label",
+ "async": false,
+ "api": false,
+ "consumerOnly": false,
+ "producerOnly": true,
+ "lenientProperties": false,
+ "remote": true
+ },
+ "componentProperties": {
+ "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Component configuration" },
+ "knowledgeBaseId": { "index": 1, "kind": "property", "displayName": "Knowledge Base Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Define the Knowledge Base Id we are going to use" },
+ "lazyStartProducer": { "index": 2, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "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 [...]
+ "modelId": { "index": 3, "kind": "property", "displayName": "Model Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "amazon.titan-text-express-v1", "amazon.titan-text-lite-v1", "amazon.titan-image-generator-v1", "amazon.titan-embed-text-v1", "ai21.j2-ultra-v1", "ai21.j2-mid-v1" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.be [...]
+ "operation": { "index": 4, "kind": "property", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations", "enum": [ "retrieveAndGenerate" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationFiel [...]
+ "overrideEndpoint": { "index": 5, "kind": "property", "displayName": "Override Endpoint", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set the need for overriding the endpoint. This option ne [...]
+ "pojoRequest": { "index": 6, "kind": "property", "displayName": "Pojo Request", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "If we want to use a POJO request as body or not" },
+ "profileCredentialsName": { "index": 7, "kind": "property", "displayName": "Profile Credentials Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "If using a profile credentials pr [...]
+ "region": { "index": 8, "kind": "property", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "eu-central-1" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Th [...]
+ "uriEndpointOverride": { "index": 9, "kind": "property", "displayName": "Uri Endpoint Override", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set the overriding uri endpoint. This option needs to be used in [...]
+ "useDefaultCredentialsProvider": { "index": 10, "kind": "property", "displayName": "Use Default Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock cli [...]
+ "useProfileCredentialsProvider": { "index": 11, "kind": "property", "displayName": "Use Profile Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock cli [...]
+ "autowiredEnabled": { "index": 12, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "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 [...]
+ "bedrockAgentRuntimeClient": { "index": 13, "kind": "property", "displayName": "Bedrock Agent Runtime Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configuration [...]
+ "healthCheckConsumerEnabled": { "index": 14, "kind": "property", "displayName": "Health Check Consumer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all consumer based health checks from this component" },
+ "healthCheckProducerEnabled": { "index": 15, "kind": "property", "displayName": "Health Check Producer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "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 produce [...]
+ "proxyHost": { "index": 16, "kind": "property", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "To define a proxy host when instantiating the Bedrock client" },
+ "proxyPort": { "index": 17, "kind": "property", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the Bedrock client" },
+ "proxyProtocol": { "index": 18, "kind": "property", "displayName": "Proxy Protocol", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": " [...]
+ "accessKey": { "index": 19, "kind": "property", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Amazon AWS Access Key" },
+ "secretKey": { "index": 20, "kind": "property", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" },
+ "sessionToken": { "index": 21, "kind": "property", "displayName": "Session Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Amazon AWS Session Token used when the user needs to assume an IAM role" },
+ "trustAllCertificates": { "index": 22, "kind": "property", "displayName": "Trust All Certificates", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "If we want to trust all certificates i [...]
+ "useSessionCredentials": { "index": 23, "kind": "property", "displayName": "Use Session Credentials", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock Agent Runtim [...]
+ },
+ "headers": {
+ "CamelAwsBedrockAgentRuntimeOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation we want to perform", "constantName": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConstants#OPERATION" },
+ "CamelAwsBedrockAcceptContentType": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The model accept content type", "constantName": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConstants#MODEL_ACCEPT_CONTENT_TYPE" }
+ },
+ "properties": {
+ "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Logical name" },
+ "knowledgeBaseId": { "index": 1, "kind": "parameter", "displayName": "Knowledge Base Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Define the Knowledge Base Id we are going to use" },
+ "modelId": { "index": 2, "kind": "parameter", "displayName": "Model Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "amazon.titan-text-express-v1", "amazon.titan-text-lite-v1", "amazon.titan-image-generator-v1", "amazon.titan-embed-text-v1", "ai21.j2-ultra-v1", "ai21.j2-mid-v1" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.b [...]
+ "operation": { "index": 3, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations", "enum": [ "retrieveAndGenerate" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationFie [...]
+ "overrideEndpoint": { "index": 4, "kind": "parameter", "displayName": "Override Endpoint", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set the need for overriding the endpoint. This option n [...]
+ "pojoRequest": { "index": 5, "kind": "parameter", "displayName": "Pojo Request", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "If we want to use a POJO request as body or not" },
+ "profileCredentialsName": { "index": 6, "kind": "parameter", "displayName": "Profile Credentials Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "If using a profile credentials p [...]
+ "region": { "index": 7, "kind": "parameter", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "eu-central-1" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "T [...]
+ "uriEndpointOverride": { "index": 8, "kind": "parameter", "displayName": "Uri Endpoint Override", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set the overriding uri endpoint. This option needs to be used i [...]
+ "useDefaultCredentialsProvider": { "index": 9, "kind": "parameter", "displayName": "Use Default Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock cli [...]
+ "useProfileCredentialsProvider": { "index": 10, "kind": "parameter", "displayName": "Use Profile Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock cl [...]
+ "lazyStartProducer": { "index": 11, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "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 produ [...]
+ "bedrockAgentRuntimeClient": { "index": 12, "kind": "parameter", "displayName": "Bedrock Agent Runtime Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configuratio [...]
+ "proxyHost": { "index": 13, "kind": "parameter", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "To define a proxy host when instantiating the Bedrock client" },
+ "proxyPort": { "index": 14, "kind": "parameter", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the Bedrock client" },
+ "proxyProtocol": { "index": 15, "kind": "parameter", "displayName": "Proxy Protocol", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": [...]
+ "accessKey": { "index": 16, "kind": "parameter", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Amazon AWS Access Key" },
+ "secretKey": { "index": 17, "kind": "parameter", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" },
+ "sessionToken": { "index": 18, "kind": "parameter", "displayName": "Session Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Amazon AWS Session Token used when the user needs to assume an IAM role" },
+ "trustAllCertificates": { "index": 19, "kind": "parameter", "displayName": "Trust All Certificates", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "If we want to trust all certificates [...]
+ "useSessionCredentials": { "index": 20, "kind": "parameter", "displayName": "Use Session Credentials", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock Agent Runti [...]
+ }
+}
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/org/apache/camel/component/aws2/bedrock/aws-bedrock.json b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/org/apache/camel/component/aws2/bedrock/runtime/aws-bedrock.json
similarity index 67%
rename from components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/org/apache/camel/component/aws2/bedrock/aws-bedrock.json
rename to components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/org/apache/camel/component/aws2/bedrock/runtime/aws-bedrock.json
index 335dae3ff82..bff29e35c99 100644
--- a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/org/apache/camel/component/aws2/bedrock/aws-bedrock.json
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/org/apache/camel/component/aws2/bedrock/runtime/aws-bedrock.json
@@ -7,7 +7,7 @@
"deprecated": false,
"firstVersion": "4.5.0",
"label": "ai,cloud",
- "javaType": "org.apache.camel.component.aws2.bedrock.BedrockComponent",
+ "javaType": "org.apache.camel.component.aws2.bedrock.runtime.BedrockComponent",
"supportLevel": "Preview",
"groupId": "org.apache.camel",
"artifactId": "camel-aws-bedrock",
@@ -23,55 +23,55 @@
"remote": true
},
"componentProperties": {
- "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Component configuration" },
+ "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Component configuration" },
"lazyStartProducer": { "index": 1, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "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 [...]
- "modelId": { "index": 2, "kind": "property", "displayName": "Model Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "amazon.titan-text-express-v1", "amazon.titan-text-lite-v1", "amazon.titan-image-generator-v1", "amazon.titan-embed-text-v1", "ai21.j2-ultra-v1", "ai21.j2-mid-v1" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.be [...]
- "operation": { "index": 3, "kind": "property", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.BedrockOperations", "enum": [ "invokeTextModel", "invokeImageModel", "invokeEmbeddingsModel" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "conf [...]
- "overrideEndpoint": { "index": 4, "kind": "property", "displayName": "Override Endpoint", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set the need for overriding the endpoint. This option needs to be used in combina [...]
- "pojoRequest": { "index": 5, "kind": "property", "displayName": "Pojo Request", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to use a POJO request as body or not" },
- "profileCredentialsName": { "index": 6, "kind": "property", "displayName": "Profile Credentials Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "If using a profile credentials provider, this parameter wi [...]
- "region": { "index": 7, "kind": "property", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "eu-central-1" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "The region in which Bedrock [...]
- "uriEndpointOverride": { "index": 8, "kind": "property", "displayName": "Uri Endpoint Override", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set the overriding uri endpoint. This option needs to be used in combination with overrid [...]
- "useDefaultCredentialsProvider": { "index": 9, "kind": "property", "displayName": "Use Default Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to load [...]
- "useProfileCredentialsProvider": { "index": 10, "kind": "property", "displayName": "Use Profile Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to load [...]
+ "modelId": { "index": 2, "kind": "property", "displayName": "Model Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "amazon.titan-text-express-v1", "amazon.titan-text-lite-v1", "amazon.titan-image-generator-v1", "amazon.titan-embed-text-v1", "ai21.j2-ultra-v1", "ai21.j2-mid-v1" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.be [...]
+ "operation": { "index": 3, "kind": "property", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations", "enum": [ "invokeTextModel", "invokeImageModel", "invokeEmbeddingsModel" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurat [...]
+ "overrideEndpoint": { "index": 4, "kind": "property", "displayName": "Override Endpoint", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set the need for overriding the endpoint. This option needs to be used in [...]
+ "pojoRequest": { "index": 5, "kind": "property", "displayName": "Pojo Request", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to use a POJO request as body or not" },
+ "profileCredentialsName": { "index": 6, "kind": "property", "displayName": "Profile Credentials Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "If using a profile credentials provider, this para [...]
+ "region": { "index": 7, "kind": "property", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "eu-central-1" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "The region in which [...]
+ "uriEndpointOverride": { "index": 8, "kind": "property", "displayName": "Uri Endpoint Override", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set the overriding uri endpoint. This option needs to be used in combination with [...]
+ "useDefaultCredentialsProvider": { "index": 9, "kind": "property", "displayName": "Use Default Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect [...]
+ "useProfileCredentialsProvider": { "index": 10, "kind": "property", "displayName": "Use Profile Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect [...]
"autowiredEnabled": { "index": 11, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "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 [...]
- "bedrockRuntimeClient": { "index": 12, "kind": "property", "displayName": "Bedrock Runtime Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To us [...]
+ "bedrockRuntimeClient": { "index": 12, "kind": "property", "displayName": "Bedrock Runtime Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description" [...]
"healthCheckConsumerEnabled": { "index": 13, "kind": "property", "displayName": "Health Check Consumer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all consumer based health checks from this component" },
"healthCheckProducerEnabled": { "index": 14, "kind": "property", "displayName": "Health Check Producer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "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 produce [...]
- "proxyHost": { "index": 15, "kind": "property", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy host when instantiating the Bedrock client" },
- "proxyPort": { "index": 16, "kind": "property", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the Bedrock client" },
- "proxyProtocol": { "index": 17, "kind": "property", "displayName": "Proxy Protocol", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy protoco [...]
- "accessKey": { "index": 18, "kind": "property", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Access Key" },
- "secretKey": { "index": 19, "kind": "property", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" },
- "sessionToken": { "index": 20, "kind": "property", "displayName": "Session Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Session Token used when the user needs to assume an IAM role" },
- "trustAllCertificates": { "index": 21, "kind": "property", "displayName": "Trust All Certificates", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to trust all certificates in case of overriding the [...]
- "useSessionCredentials": { "index": 22, "kind": "property", "displayName": "Use Session Credentials", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to use Session C [...]
+ "proxyHost": { "index": 15, "kind": "property", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy host when instantiating the Bedrock client" },
+ "proxyPort": { "index": 16, "kind": "property", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the Bedrock client" },
+ "proxyProtocol": { "index": 17, "kind": "property", "displayName": "Proxy Protocol", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy [...]
+ "accessKey": { "index": 18, "kind": "property", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Access Key" },
+ "secretKey": { "index": 19, "kind": "property", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" },
+ "sessionToken": { "index": 20, "kind": "property", "displayName": "Session Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Session Token used when the user needs to assume an IAM role" },
+ "trustAllCertificates": { "index": 21, "kind": "property", "displayName": "Trust All Certificates", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to trust all certificates in case of overrid [...]
+ "useSessionCredentials": { "index": 22, "kind": "property", "displayName": "Use Session Credentials", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to use S [...]
},
"headers": {
- "CamelAwsBedrockOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation we want to perform", "constantName": "org.apache.camel.component.aws2.bedrock.BedrockConstants#OPERATION" },
- "CamelAwsBedrockContentType": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The model content type", "constantName": "org.apache.camel.component.aws2.bedrock.BedrockConstants#MODEL_CONTENT_TYPE" },
- "CamelAwsBedrockAcceptContentType": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The model accept content type", "constantName": "org.apache.camel.component.aws2.bedrock.BedrockConstants#MODEL_ACCEPT_CONTENT_TYPE" }
+ "CamelAwsBedrockOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation we want to perform", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#OPERATION" },
+ "CamelAwsBedrockContentType": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The model content type", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#MODEL_CONTENT_TYPE" },
+ "CamelAwsBedrockAcceptContentType": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The model accept content type", "constantName": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants#MODEL_ACCEPT_CONTENT_TYPE" }
},
"properties": {
- "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Logical name" },
- "modelId": { "index": 1, "kind": "parameter", "displayName": "Model Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "amazon.titan-text-express-v1", "amazon.titan-text-lite-v1", "amazon.titan-image-generator-v1", "amazon.titan-embed-text-v1", "ai21.j2-ultra-v1", "ai21.j2-mid-v1" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.b [...]
- "operation": { "index": 2, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.BedrockOperations", "enum": [ "invokeTextModel", "invokeImageModel", "invokeEmbeddingsModel" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "con [...]
- "overrideEndpoint": { "index": 3, "kind": "parameter", "displayName": "Override Endpoint", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set the need for overriding the endpoint. This option needs to be used in combin [...]
- "pojoRequest": { "index": 4, "kind": "parameter", "displayName": "Pojo Request", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to use a POJO request as body or not" },
- "profileCredentialsName": { "index": 5, "kind": "parameter", "displayName": "Profile Credentials Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "If using a profile credentials provider, this parameter w [...]
- "region": { "index": 6, "kind": "parameter", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "eu-central-1" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "The region in which Bedroc [...]
- "uriEndpointOverride": { "index": 7, "kind": "parameter", "displayName": "Uri Endpoint Override", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set the overriding uri endpoint. This option needs to be used in combination with overri [...]
- "useDefaultCredentialsProvider": { "index": 8, "kind": "parameter", "displayName": "Use Default Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to load [...]
- "useProfileCredentialsProvider": { "index": 9, "kind": "parameter", "displayName": "Use Profile Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to load [...]
+ "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Logical name" },
+ "modelId": { "index": 1, "kind": "parameter", "displayName": "Model Id", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "enum": [ "amazon.titan-text-express-v1", "amazon.titan-text-lite-v1", "amazon.titan-image-generator-v1", "amazon.titan-embed-text-v1", "ai21.j2-ultra-v1", "ai21.j2-mid-v1" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.b [...]
+ "operation": { "index": 2, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations", "enum": [ "invokeTextModel", "invokeImageModel", "invokeEmbeddingsModel" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configura [...]
+ "overrideEndpoint": { "index": 3, "kind": "parameter", "displayName": "Override Endpoint", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set the need for overriding the endpoint. This option needs to be used i [...]
+ "pojoRequest": { "index": 4, "kind": "parameter", "displayName": "Pojo Request", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to use a POJO request as body or not" },
+ "profileCredentialsName": { "index": 5, "kind": "parameter", "displayName": "Profile Credentials Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "If using a profile credentials provider, this par [...]
+ "region": { "index": 6, "kind": "parameter", "displayName": "Region", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "us-east-1", "us-west-1", "ap-southeast-1", "ap-northeast-1", "eu-central-1" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "The region in whic [...]
+ "uriEndpointOverride": { "index": 7, "kind": "parameter", "displayName": "Uri Endpoint Override", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set the overriding uri endpoint. This option needs to be used in combination wit [...]
+ "useDefaultCredentialsProvider": { "index": 8, "kind": "parameter", "displayName": "Use Default Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect [...]
+ "useProfileCredentialsProvider": { "index": 9, "kind": "parameter", "displayName": "Use Profile Credentials Provider", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect [...]
"lazyStartProducer": { "index": 10, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "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 produ [...]
- "bedrockRuntimeClient": { "index": 11, "kind": "parameter", "displayName": "Bedrock Runtime Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To u [...]
- "proxyHost": { "index": 12, "kind": "parameter", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy host when instantiating the Bedrock client" },
- "proxyPort": { "index": 13, "kind": "parameter", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the Bedrock client" },
- "proxyProtocol": { "index": 14, "kind": "parameter", "displayName": "Proxy Protocol", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy protoc [...]
- "accessKey": { "index": 15, "kind": "parameter", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Access Key" },
- "secretKey": { "index": 16, "kind": "parameter", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" },
- "sessionToken": { "index": 17, "kind": "parameter", "displayName": "Session Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Session Token used when the user needs to assume an IAM role" },
- "trustAllCertificates": { "index": 18, "kind": "parameter", "displayName": "Trust All Certificates", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to trust all certificates in case of overriding the [...]
- "useSessionCredentials": { "index": 19, "kind": "parameter", "displayName": "Use Session Credentials", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to use Session [...]
+ "bedrockRuntimeClient": { "index": 11, "kind": "parameter", "displayName": "Bedrock Runtime Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient", "deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description [...]
+ "proxyHost": { "index": 12, "kind": "parameter", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy host when instantiating the Bedrock client" },
+ "proxyPort": { "index": 13, "kind": "parameter", "displayName": "Proxy Port", "group": "proxy", "label": "proxy", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "To define a proxy port when instantiating the Bedrock client" },
+ "proxyProtocol": { "index": 14, "kind": "parameter", "displayName": "Proxy Protocol", "group": "proxy", "label": "proxy", "required": false, "type": "object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "HTTPS", "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "To define a prox [...]
+ "accessKey": { "index": 15, "kind": "parameter", "displayName": "Access Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Access Key" },
+ "secretKey": { "index": 16, "kind": "parameter", "displayName": "Secret Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Secret Key" },
+ "sessionToken": { "index": 17, "kind": "parameter", "displayName": "Session Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Amazon AWS Session Token used when the user needs to assume an IAM role" },
+ "trustAllCertificates": { "index": 18, "kind": "parameter", "displayName": "Trust All Certificates", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "If we want to trust all certificates in case of overri [...]
+ "useSessionCredentials": { "index": 19, "kind": "parameter", "displayName": "Use Session Credentials", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration", "configurationField": "configuration", "description": "Set whether the Bedrock client should expect to use [...]
}
}
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/component.properties b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/component.properties
index fcdea6d7925..421f033515c 100644
--- a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/component.properties
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/component.properties
@@ -1,5 +1,5 @@
# Generated by camel build tools - do NOT edit this file!
-components=aws-bedrock
+components=aws-bedrock aws-bedrock-agent-runtime
groupId=org.apache.camel
artifactId=camel-aws-bedrock
version=4.5.0-SNAPSHOT
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/component/aws-bedrock b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/component/aws-bedrock
index a8c817d85d6..605087b86b6 100644
--- a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/component/aws-bedrock
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/component/aws-bedrock
@@ -1,2 +1,2 @@
# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.aws2.bedrock.BedrockComponent
+class=org.apache.camel.component.aws2.bedrock.runtime.BedrockComponent
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/component/aws-bedrock-agent-runtime b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/component/aws-bedrock-agent-runtime
new file mode 100644
index 00000000000..a7e6c897ec9
--- /dev/null
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/component/aws-bedrock-agent-runtime
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeComponent
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-agent-runtime-component b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-agent-runtime-component
new file mode 100644
index 00000000000..66efce6f18e
--- /dev/null
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-agent-runtime-component
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeComponentConfigurer
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-agent-runtime-endpoint b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-agent-runtime-endpoint
new file mode 100644
index 00000000000..c014b11a3b6
--- /dev/null
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-agent-runtime-endpoint
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeEndpointConfigurer
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-component b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-component
index ba30d2eeb23..c6fb8f83635 100644
--- a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-component
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-component
@@ -1,2 +1,2 @@
# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.aws2.bedrock.BedrockComponentConfigurer
+class=org.apache.camel.component.aws2.bedrock.runtime.BedrockComponentConfigurer
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-endpoint b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-endpoint
index 6ed18382f3d..ed0155282f8 100644
--- a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-endpoint
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/configurer/aws-bedrock-endpoint
@@ -1,2 +1,2 @@
# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.aws2.bedrock.BedrockEndpointConfigurer
+class=org.apache.camel.component.aws2.bedrock.runtime.BedrockEndpointConfigurer
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/urifactory/aws-bedrock-agent-runtime-endpoint b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/urifactory/aws-bedrock-agent-runtime-endpoint
new file mode 100644
index 00000000000..a946ab938b4
--- /dev/null
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/urifactory/aws-bedrock-agent-runtime-endpoint
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeEndpointUriFactory
diff --git a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/urifactory/aws-bedrock-endpoint b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/urifactory/aws-bedrock-endpoint
index 2519dee437c..615e3947767 100644
--- a/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/urifactory/aws-bedrock-endpoint
+++ b/components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/services/org/apache/camel/urifactory/aws-bedrock-endpoint
@@ -1,2 +1,2 @@
# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.component.aws2.bedrock.BedrockEndpointUriFactory
+class=org.apache.camel.component.aws2.bedrock.runtime.BedrockEndpointUriFactory
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/docs/aws-bedrock-agent-runtime-component.adoc b/components/camel-aws/camel-aws-bedrock/src/main/docs/aws-bedrock-agent-runtime-component.adoc
new file mode 100644
index 00000000000..e2a06b02bcd
--- /dev/null
+++ b/components/camel-aws/camel-aws-bedrock/src/main/docs/aws-bedrock-agent-runtime-component.adoc
@@ -0,0 +1,102 @@
+= AWS Bedrock Agent Runtime Component
+:doctitle: AWS Bedrock Agent Runtime
+:shortname: aws-bedrock-agent-runtime
+:artifactid: camel-aws-bedrock
+:description: Invoke Model of AWS Bedrock Agent Runtime service.
+:since: 4.5
+:supportlevel: Preview
+:tabs-sync-option:
+:component-header: Only producer is supported
+//Manually maintained attributes
+:group: AWS
+:camel-spring-boot-name: aws-bedrock
+
+*Since Camel {since}*
+
+*{component-header}*
+
+The AWS2 Bedrock component supports invoking a supported LLM model from
+https://aws.amazon.com/bedrock/[AWS Bedrock] service.
+
+Prerequisites
+
+You must have a valid Amazon Web Services developer account, and be
+signed up to use Amazon Bedrock. More information is available at
+https://aws.amazon.com/bedrock/[Amazon Bedrock].
+
+
+== URI Format
+
+-------------------------
+aws-bedrock-agent-runtime://label[?options]
+-------------------------
+
+You can append query options to the URI in the following format:
+
+`?options=value&option2=value&...`
+
+
+// component-configure options: START
+
+// component-configure options: END
+
+// component options: START
+include::partial$component-configure-options.adoc[]
+include::partial$component-endpoint-options.adoc[]
+// component options: END
+
+// endpoint options: START
+
+// endpoint options: END
+
+
+Required Bedrock component options
+
+You have to provide the bedrockRuntimeClient in the
+Registry or your accessKey and secretKey to access
+the https://aws.amazon.com/bedrock/[Amazon Bedrock] service.
+
+== Usage
+
+=== Static credentials, Default Credential Provider and Profile Credentials Provider
+
+You have the possibility of avoiding the usage of explicit static credentials by specifying the useDefaultCredentialsProvider option and set it to true.
+
+The order of evaluation for Default Credentials Provider is the following:
+
+ - Java system properties - `aws.accessKeyId` and `aws.secretKey`.
+ - Environment variables - `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`.
+ - Web Identity Token from AWS STS.
+ - The shared credentials and config files.
+ - Amazon ECS container credentials - loaded from the Amazon ECS if the environment variable `AWS_CONTAINER_CREDENTIALS_RELATIVE_URI` is set.
+ - Amazon EC2 Instance profile credentials.
+
+You have also the possibility of using Profile Credentials Provider, by specifying the useProfileCredentialsProvider option to true and profileCredentialsName to the profile name.
+
+Only one of static, default and profile credentials could be used at the same time.
+
+For more information about this you can look at https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials.html[AWS credentials documentation]
+
+// component headers: START
+include::partial$component-endpoint-headers.adoc[]
+// component headers: END
+
+== Dependencies
+
+Maven users will need to add the following dependency to their pom.xml.
+
+*pom.xml*
+
+[source,xml]
+---------------------------------------
+<dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-aws-bedrock</artifactId>
+ <version>${camel-version}</version>
+</dependency>
+---------------------------------------
+
+where `$\{camel-version}` must be replaced by the actual version of Camel.
+
+
+include::spring-boot:partial$starter.adoc[]
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockModels.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockModels.java
index bc16f068e7e..7da67bbb1c8 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockModels.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockModels.java
@@ -23,7 +23,9 @@ public enum BedrockModels {
TITAN_IMAGE_GENERATOR_V1("amazon.titan-image-generator-v1"),
TITAN_EMBEDDINGS_G1("amazon.titan-embed-text-v1"),
JURASSIC2_ULTRA("ai21.j2-ultra-v1"),
- JURASSIC2_MID("ai21.j2-mid-v1");
+ JURASSIC2_MID("ai21.j2-mid-v1"),
+
+ ANTROPHIC_CLAUDE_INSTANT_V1("anthropic.claude-instant-v1");
public final String model;
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockComponent.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeComponent.java
similarity index 71%
copy from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockComponent.java
copy to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeComponent.java
index cccd9be975f..db4e5c39fc3 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockComponent.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeComponent.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.agentruntime;
import java.util.Map;
@@ -25,32 +25,32 @@ import org.apache.camel.spi.annotations.Component;
import org.apache.camel.support.HealthCheckComponent;
/**
- * For working with Amazon Bedrock SDK v2.
+ * For working with Amazon Bedrock Agent Runtime SDK v2.
*/
-@Component("aws-bedrock")
-public class BedrockComponent extends HealthCheckComponent {
+@Component("aws-bedrock-agent-runtime")
+public class BedrockAgentRuntimeComponent extends HealthCheckComponent {
@Metadata
- private BedrockConfiguration configuration = new BedrockConfiguration();
+ private BedrockAgentRuntimeConfiguration configuration = new BedrockAgentRuntimeConfiguration();
- public BedrockComponent() {
+ public BedrockAgentRuntimeComponent() {
this(null);
}
- public BedrockComponent(CamelContext context) {
+ public BedrockAgentRuntimeComponent(CamelContext context) {
super(context);
}
@Override
protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
- BedrockConfiguration configuration
- = this.configuration != null ? this.configuration.copy() : new BedrockConfiguration();
- BedrockEndpoint endpoint = new BedrockEndpoint(uri, this, configuration);
+ BedrockAgentRuntimeConfiguration configuration
+ = this.configuration != null ? this.configuration.copy() : new BedrockAgentRuntimeConfiguration();
+ BedrockAgentRuntimeEndpoint endpoint = new BedrockAgentRuntimeEndpoint(uri, this, configuration);
setProperties(endpoint, parameters);
if (Boolean.FALSE.equals(configuration.isUseDefaultCredentialsProvider())
&& Boolean.FALSE.equals(configuration.isUseProfileCredentialsProvider())
&& Boolean.FALSE.equals(configuration.isUseSessionCredentials())
- && configuration.getBedrockRuntimeClient() == null
+ && configuration.getBedrockAgentRuntimeClient() == null
&& (configuration.getAccessKey() == null || configuration.getSecretKey() == null)) {
throw new IllegalArgumentException(
"useDefaultCredentialsProvider is set to false, useProfileCredentialsProvider is set to false, useSessionCredentials is set to false, Amazon Bedrock runtime client or accessKey and secretKey must be specified");
@@ -59,14 +59,14 @@ public class BedrockComponent extends HealthCheckComponent {
return endpoint;
}
- public BedrockConfiguration getConfiguration() {
+ public BedrockAgentRuntimeConfiguration getConfiguration() {
return configuration;
}
/**
* Component configuration
*/
- public void setConfiguration(BedrockConfiguration configuration) {
+ public void setConfiguration(BedrockAgentRuntimeConfiguration configuration) {
this.configuration = configuration;
}
}
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockConfiguration.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeConfiguration.java
similarity index 81%
copy from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockConfiguration.java
copy to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeConfiguration.java
index 7dc3ba749c9..f13698bdd82 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockConfiguration.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeConfiguration.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.agentruntime;
import org.apache.camel.RuntimeCamelException;
import org.apache.camel.spi.Metadata;
@@ -22,17 +22,17 @@ import org.apache.camel.spi.UriParam;
import org.apache.camel.spi.UriParams;
import org.apache.camel.spi.UriPath;
import software.amazon.awssdk.core.Protocol;
-import software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient;
+import software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient;
@UriParams
-public class BedrockConfiguration implements Cloneable {
+public class BedrockAgentRuntimeConfiguration implements Cloneable {
@UriPath(description = "Logical name")
@Metadata(required = true)
private String label;
@UriParam
@Metadata(label = "advanced", autowired = true)
- private BedrockRuntimeClient bedrockRuntimeClient;
+ private BedrockAgentRuntimeClient bedrockAgentRuntimeClient;
@UriParam(label = "security", secret = true)
private String accessKey;
@UriParam(label = "security", secret = true)
@@ -44,7 +44,10 @@ public class BedrockConfiguration implements Cloneable {
private String modelId;
@UriParam
@Metadata(required = true)
- private BedrockOperations operation;
+ private String knowledgeBaseId;
+ @UriParam
+ @Metadata(required = true)
+ private BedrockAgentRuntimeOperations operation;
@UriParam(label = "proxy", enums = "HTTP,HTTPS", defaultValue = "HTTPS")
private Protocol proxyProtocol = Protocol.HTTPS;
@UriParam(label = "proxy")
@@ -70,15 +73,15 @@ public class BedrockConfiguration implements Cloneable {
@UriParam(defaultValue = "false")
private String profileCredentialsName;
- public BedrockRuntimeClient getBedrockRuntimeClient() {
- return bedrockRuntimeClient;
+ public BedrockAgentRuntimeClient getBedrockAgentRuntimeClient() {
+ return bedrockAgentRuntimeClient;
}
/**
- * To use an existing configured AWS Bedrock Runtime client
+ * To use an existing configured AWS Bedrock Agent Runtime client
*/
- public void setBedrockRuntimeClient(BedrockRuntimeClient bedrockRuntimeClient) {
- this.bedrockRuntimeClient = bedrockRuntimeClient;
+ public void setBedrockAgentRuntimeClient(BedrockAgentRuntimeClient bedrockRuntimeClient) {
+ this.bedrockAgentRuntimeClient = bedrockRuntimeClient;
}
public String getAccessKey() {
@@ -114,14 +117,14 @@ public class BedrockConfiguration implements Cloneable {
this.sessionToken = sessionToken;
}
- public BedrockOperations getOperation() {
+ public BedrockAgentRuntimeOperations getOperation() {
return operation;
}
/**
* The operation to perform
*/
- public void setOperation(BedrockOperations operation) {
+ public void setOperation(BedrockAgentRuntimeOperations operation) {
this.operation = operation;
}
@@ -163,8 +166,9 @@ public class BedrockConfiguration implements Cloneable {
}
/**
- * 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()
+ * The region in which Bedrock Agent Runtime 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()
*/
public void setRegion(String region) {
this.region = region;
@@ -243,8 +247,8 @@ public class BedrockConfiguration implements Cloneable {
}
/**
- * 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.
+ * Set whether the Bedrock Agent Runtime 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.
*/
public void setUseSessionCredentials(boolean useSessionCredentials) {
this.useSessionCredentials = useSessionCredentials;
@@ -272,13 +276,24 @@ public class BedrockConfiguration implements Cloneable {
this.modelId = modelId;
}
+ public String getKnowledgeBaseId() {
+ return knowledgeBaseId;
+ }
+
+ /**
+ * Define the Knowledge Base Id we are going to use
+ */
+ public void setKnowledgeBaseId(String knowledgeBaseId) {
+ this.knowledgeBaseId = knowledgeBaseId;
+ }
+
// *************************************************
//
// *************************************************
- public BedrockConfiguration copy() {
+ public BedrockAgentRuntimeConfiguration copy() {
try {
- return (BedrockConfiguration) super.clone();
+ return (BedrockAgentRuntimeConfiguration) super.clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeCamelException(e);
}
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockConstants.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeConstants.java
similarity index 77%
copy from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockConstants.java
copy to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeConstants.java
index 33951e902f2..368abdcc929 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockConstants.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeConstants.java
@@ -14,18 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.agentruntime;
import org.apache.camel.spi.Metadata;
/**
- * Constants used in Camel AWS Bedrock module SDK v2
+ * Constants used in Camel AWS Bedrock Agent Runtime module SDK v2
*/
-public interface BedrockConstants {
+public interface BedrockAgentRuntimeConstants {
@Metadata(description = "The operation we want to perform", javaType = "String")
- String OPERATION = "CamelAwsBedrockOperation";
- @Metadata(description = "The model content type", javaType = "String")
- String MODEL_CONTENT_TYPE = "CamelAwsBedrockContentType";
+ String OPERATION = "CamelAwsBedrockAgentRuntimeOperation";
@Metadata(description = "The model accept content type", javaType = "String")
String MODEL_ACCEPT_CONTENT_TYPE = "CamelAwsBedrockAcceptContentType";
}
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeEndpoint.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeEndpoint.java
new file mode 100644
index 00000000000..492e1924b0e
--- /dev/null
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeEndpoint.java
@@ -0,0 +1,86 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.aws2.bedrock.agentruntime;
+
+import org.apache.camel.*;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.BedrockAgentRuntimeClientFactory;
+import org.apache.camel.spi.UriEndpoint;
+import org.apache.camel.spi.UriParam;
+import org.apache.camel.support.ScheduledPollEndpoint;
+import org.apache.camel.util.ObjectHelper;
+import software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient;
+
+/**
+ * Invoke Model of AWS Bedrock Agent Runtime service.
+ */
+@UriEndpoint(firstVersion = "4.5.0", scheme = "aws-bedrock-agent-runtime", title = "AWS Bedrock Agent Runtime",
+ syntax = "aws-bedrock-agent-runtime:label", producerOnly = true, category = { Category.AI, Category.CLOUD },
+ headersClass = BedrockAgentRuntimeConstants.class)
+public class BedrockAgentRuntimeEndpoint extends ScheduledPollEndpoint {
+
+ private BedrockAgentRuntimeClient bedrockAgentRuntimeClient;
+
+ @UriParam
+ private BedrockAgentRuntimeConfiguration configuration;
+
+ public BedrockAgentRuntimeEndpoint(String uri, Component component, BedrockAgentRuntimeConfiguration configuration) {
+ super(uri, component);
+ this.configuration = configuration;
+ }
+
+ @Override
+ public Consumer createConsumer(Processor processor) throws Exception {
+ throw new UnsupportedOperationException("You cannot receive messages from this endpoint");
+ }
+
+ @Override
+ public Producer createProducer() throws Exception {
+ return new BedrockAgentRuntimeProducer(this);
+ }
+
+ @Override
+ public BedrockAgentRuntimeComponent getComponent() {
+ return (BedrockAgentRuntimeComponent) super.getComponent();
+ }
+
+ @Override
+ public void doStart() throws Exception {
+ super.doStart();
+
+ bedrockAgentRuntimeClient = configuration.getBedrockAgentRuntimeClient() != null
+ ? configuration.getBedrockAgentRuntimeClient()
+ : BedrockAgentRuntimeClientFactory.getBedrockAgentRuntimeClient(configuration).getBedrockAgentRuntimeClient();
+ }
+
+ @Override
+ public void doStop() throws Exception {
+ if (ObjectHelper.isEmpty(configuration.getBedrockAgentRuntimeClient())) {
+ if (bedrockAgentRuntimeClient != null) {
+ bedrockAgentRuntimeClient.close();
+ }
+ }
+ super.doStop();
+ }
+
+ public BedrockAgentRuntimeConfiguration getConfiguration() {
+ return configuration;
+ }
+
+ public BedrockAgentRuntimeClient getBedrockAgentRuntimeClient() {
+ return bedrockAgentRuntimeClient;
+ }
+}
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockOperations.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeOperations.java
similarity index 84%
copy from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockOperations.java
copy to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeOperations.java
index 0c0ff54ff6a..6a954d444a8 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockOperations.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeOperations.java
@@ -14,13 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.agentruntime;
-public enum BedrockOperations {
+public enum BedrockAgentRuntimeOperations {
- invokeTextModel,
-
- invokeImageModel,
-
- invokeEmbeddingsModel
+ retrieveAndGenerate
}
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeProducer.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeProducer.java
new file mode 100644
index 00000000000..14a83e065bb
--- /dev/null
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeProducer.java
@@ -0,0 +1,134 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.aws2.bedrock.agentruntime;
+
+import org.apache.camel.Endpoint;
+import org.apache.camel.Exchange;
+import org.apache.camel.InvalidPayloadException;
+import org.apache.camel.Message;
+import org.apache.camel.support.DefaultProducer;
+import org.apache.camel.util.URISupport;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import software.amazon.awssdk.awscore.exception.AwsServiceException;
+import software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient;
+import software.amazon.awssdk.services.bedrockagentruntime.model.*;
+
+/**
+ * A Producer which sends messages to the Amazon Bedrock Agent Runtime Service
+ * <a href="http://aws.amazon.com/bedrock/">AWS Bedrock</a>
+ */
+public class BedrockAgentRuntimeProducer extends DefaultProducer {
+
+ private static final Logger LOG = LoggerFactory.getLogger(BedrockAgentRuntimeProducer.class);
+ private transient String bedrockAgentRuntimeProducerToString;
+
+ public BedrockAgentRuntimeProducer(Endpoint endpoint) {
+ super(endpoint);
+ }
+
+ @Override
+ public void process(Exchange exchange) throws Exception {
+ switch (determineOperation(exchange)) {
+ case retrieveAndGenerate:
+ retrieveAndGenerate(getEndpoint().getBedrockAgentRuntimeClient(), exchange);
+ break;
+ default:
+ throw new IllegalArgumentException("Unsupported operation");
+ }
+ }
+
+ private BedrockAgentRuntimeOperations determineOperation(Exchange exchange) {
+ BedrockAgentRuntimeOperations operation
+ = exchange.getIn().getHeader(BedrockAgentRuntimeConstants.OPERATION, BedrockAgentRuntimeOperations.class);
+ if (operation == null) {
+ operation = getConfiguration().getOperation();
+ }
+ return operation;
+ }
+
+ protected BedrockAgentRuntimeConfiguration getConfiguration() {
+ return getEndpoint().getConfiguration();
+ }
+
+ @Override
+ public String toString() {
+ if (bedrockAgentRuntimeProducerToString == null) {
+ bedrockAgentRuntimeProducerToString
+ = "BedrockAgentRuntimeProducer[" + URISupport.sanitizeUri(getEndpoint().getEndpointUri()) + "]";
+ }
+ return bedrockAgentRuntimeProducerToString;
+ }
+
+ @Override
+ public BedrockAgentRuntimeEndpoint getEndpoint() {
+ return (BedrockAgentRuntimeEndpoint) super.getEndpoint();
+ }
+
+ private void retrieveAndGenerate(BedrockAgentRuntimeClient bedrockAgentRuntimeClient, Exchange exchange)
+ throws InvalidPayloadException {
+ if (getConfiguration().isPojoRequest()) {
+ Object payload = exchange.getMessage().getMandatoryBody();
+ if (payload instanceof RetrieveAndGenerateRequest) {
+ RetrieveAndGenerateResponse result;
+ try {
+ result = bedrockAgentRuntimeClient.retrieveAndGenerate((RetrieveAndGenerateRequest) payload);
+ } catch (AwsServiceException ase) {
+ LOG.trace("Retrieve and Generate command returned the error code {}", ase.awsErrorDetails().errorCode());
+ throw ase;
+ }
+ Message message = getMessageForResponse(exchange);
+ setGeneratedText(result, message);
+ }
+ } else {
+ KnowledgeBaseVectorSearchConfiguration knowledgeBaseVectorSearchConfiguration
+ = KnowledgeBaseVectorSearchConfiguration.builder()
+ .build();
+ KnowledgeBaseRetrievalConfiguration knowledgeBaseRetrievalConfiguration
+ = KnowledgeBaseRetrievalConfiguration.builder()
+ .vectorSearchConfiguration(knowledgeBaseVectorSearchConfiguration)
+ .build();
+ KnowledgeBaseRetrieveAndGenerateConfiguration configuration = KnowledgeBaseRetrieveAndGenerateConfiguration
+ .builder().knowledgeBaseId(getConfiguration().getKnowledgeBaseId())
+ .modelArn(getConfiguration().getModelId())
+ .retrievalConfiguration(knowledgeBaseRetrievalConfiguration).build();
+
+ RetrieveAndGenerateType type = RetrieveAndGenerateType.KNOWLEDGE_BASE;
+
+ RetrieveAndGenerateConfiguration build
+ = RetrieveAndGenerateConfiguration.builder().knowledgeBaseConfiguration(configuration).type(type).build();
+
+ RetrieveAndGenerateInput input = RetrieveAndGenerateInput.builder()
+ .text(exchange.getMessage().getBody(String.class)).build();
+
+ RetrieveAndGenerateResponse retrieveAndGenerateResponse = bedrockAgentRuntimeClient.retrieveAndGenerate(
+ RetrieveAndGenerateRequest.builder().retrieveAndGenerateConfiguration(build).input(input).build());
+
+ Message message = getMessageForResponse(exchange);
+ setGeneratedText(retrieveAndGenerateResponse, message);
+ }
+ }
+
+ private void setGeneratedText(RetrieveAndGenerateResponse result, Message message) {
+ message.setBody(result.output().text());
+ }
+
+ public static Message getMessageForResponse(final Exchange exchange) {
+ return exchange.getMessage();
+ }
+
+}
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/BedrockAgentRuntimeClientFactory.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/BedrockAgentRuntimeClientFactory.java
new file mode 100644
index 00000000000..2bf95bb7a2c
--- /dev/null
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/BedrockAgentRuntimeClientFactory.java
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.aws2.bedrock.agentruntime.client;
+
+import org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.impl.BedrockAgentRuntimeClientIAMOptimizedImpl;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.impl.BedrockAgentRuntimeClientIAMProfileOptimizedImpl;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.impl.BedrockAgentRuntimeClientSessionTokenImpl;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.impl.BedrockAgentRuntimeClientStandardImpl;
+
+/**
+ * Factory class to return the correct type of AWS Bedrock runtime client.
+ */
+public final class BedrockAgentRuntimeClientFactory {
+
+ private BedrockAgentRuntimeClientFactory() {
+ }
+
+ /**
+ * Return the correct AWS Bedrock Agent runtime client (based on remote vs local).
+ *
+ * @param configuration configuration
+ * @return BedrockAgentRuntimeInternalClient
+ */
+ public static BedrockAgentRuntimeInternalClient getBedrockAgentRuntimeClient(
+ BedrockAgentRuntimeConfiguration configuration) {
+ if (Boolean.TRUE.equals(configuration.isUseDefaultCredentialsProvider())) {
+ return new BedrockAgentRuntimeClientIAMOptimizedImpl(configuration);
+ } else if (Boolean.TRUE.equals(configuration.isUseProfileCredentialsProvider())) {
+ return new BedrockAgentRuntimeClientIAMProfileOptimizedImpl(configuration);
+ } else if (Boolean.TRUE.equals(configuration.isUseSessionCredentials())) {
+ return new BedrockAgentRuntimeClientSessionTokenImpl(configuration);
+ } else {
+ return new BedrockAgentRuntimeClientStandardImpl(configuration);
+ }
+ }
+}
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/BedrockRuntimeInternalClient.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/BedrockAgentRuntimeInternalClient.java
similarity index 65%
copy from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/BedrockRuntimeInternalClient.java
copy to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/BedrockAgentRuntimeInternalClient.java
index 01b50a05919..c254cf1f87f 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/BedrockRuntimeInternalClient.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/BedrockAgentRuntimeInternalClient.java
@@ -14,19 +14,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock.client;
+package org.apache.camel.component.aws2.bedrock.agentruntime.client;
-import software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient;
+import software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient;
/**
- * Manage the required actions of an Bedrock Runtime client for either local or remote.
+ * Manage the required actions of an Bedrock Agent Runtime client for either local or remote.
*/
-public interface BedrockRuntimeInternalClient {
+public interface BedrockAgentRuntimeInternalClient {
/**
- * Returns an Bedrock Runtime client after a factory method determines which one to return.
+ * Returns an Bedrock Agent Runtime client after a factory method determines which one to return.
*
* @return BedrockRuntimeClient BedrockRuntimeClient
*/
- BedrockRuntimeClient getBedrockRuntimeClient();
+ BedrockAgentRuntimeClient getBedrockAgentRuntimeClient();
}
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientIAMOptimizedImpl.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/impl/BedrockAgentRuntimeClientIAMOptimizedImpl.java
similarity index 73%
copy from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientIAMOptimizedImpl.java
copy to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/impl/BedrockAgentRuntimeClientIAMOptimizedImpl.java
index 425925526f1..dbd9730a5b0 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientIAMOptimizedImpl.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/impl/BedrockAgentRuntimeClientIAMOptimizedImpl.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock.client.impl;
+package org.apache.camel.component.aws2.bedrock.agentruntime.client.impl;
import java.net.URI;
-import org.apache.camel.component.aws2.bedrock.BedrockConfiguration;
-import org.apache.camel.component.aws2.bedrock.client.BedrockRuntimeInternalClient;
+import org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.BedrockAgentRuntimeInternalClient;
import org.apache.camel.util.ObjectHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -28,36 +28,36 @@ import software.amazon.awssdk.http.SdkHttpConfigurationOption;
import software.amazon.awssdk.http.apache.ApacheHttpClient;
import software.amazon.awssdk.http.apache.ProxyConfiguration;
import software.amazon.awssdk.regions.Region;
-import software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient;
-import software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClientBuilder;
+import software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient;
+import software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClientBuilder;
import software.amazon.awssdk.utils.AttributeMap;
/**
* Manage an AWS Bedrock Runtime client for all users to use (enabling temporary creds). This implementation is for
* remote instances to manage the credentials on their own (eliminating credential rotations)
*/
-public class BedrockRuntimeClientIAMOptimizedImpl implements BedrockRuntimeInternalClient {
- private static final Logger LOG = LoggerFactory.getLogger(BedrockRuntimeClientIAMOptimizedImpl.class);
- private BedrockConfiguration configuration;
+public class BedrockAgentRuntimeClientIAMOptimizedImpl implements BedrockAgentRuntimeInternalClient {
+ private static final Logger LOG = LoggerFactory.getLogger(BedrockAgentRuntimeClientIAMOptimizedImpl.class);
+ private BedrockAgentRuntimeConfiguration configuration;
/**
* Constructor that uses the config file.
*/
- public BedrockRuntimeClientIAMOptimizedImpl(BedrockConfiguration configuration) {
+ public BedrockAgentRuntimeClientIAMOptimizedImpl(BedrockAgentRuntimeConfiguration configuration) {
LOG.trace(
- "Creating an AWS Bedrock Runtime client for an ec2 instance with IAM temporary credentials (normal for ec2s).");
+ "Creating an AWS Bedrock Agent Runtime client for an ec2 instance with IAM temporary credentials (normal for ec2s).");
this.configuration = configuration;
}
/**
- * Getting the Bedrock aws client that is used.
+ * Getting the Bedrock Agent Runtime aws client that is used.
*
- * @return BedrockRuntimeClient Client.
+ * @return BedrockAgentRuntimeClient Client.
*/
@Override
- public BedrockRuntimeClient getBedrockRuntimeClient() {
- BedrockRuntimeClient client = null;
- BedrockRuntimeClientBuilder clientBuilder = BedrockRuntimeClient.builder();
+ public BedrockAgentRuntimeClient getBedrockAgentRuntimeClient() {
+ BedrockAgentRuntimeClient client = null;
+ BedrockAgentRuntimeClientBuilder clientBuilder = BedrockAgentRuntimeClient.builder();
ProxyConfiguration.Builder proxyConfig = null;
ApacheHttpClient.Builder httpClientBuilder = null;
if (ObjectHelper.isNotEmpty(configuration.getProxyHost()) && ObjectHelper.isNotEmpty(configuration.getProxyPort())) {
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientIAMProfileOptimizedImpl.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/impl/BedrockAgentRuntimeClientIAMProfileOptimizedImpl.java
similarity index 71%
copy from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientIAMProfileOptimizedImpl.java
copy to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/impl/BedrockAgentRuntimeClientIAMProfileOptimizedImpl.java
index 39d4f457f83..f41c6583e13 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientIAMProfileOptimizedImpl.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/impl/BedrockAgentRuntimeClientIAMProfileOptimizedImpl.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock.client.impl;
+package org.apache.camel.component.aws2.bedrock.agentruntime.client.impl;
import java.net.URI;
-import org.apache.camel.component.aws2.bedrock.BedrockConfiguration;
-import org.apache.camel.component.aws2.bedrock.client.BedrockRuntimeInternalClient;
+import org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.BedrockAgentRuntimeInternalClient;
import org.apache.camel.util.ObjectHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -29,36 +29,36 @@ import software.amazon.awssdk.http.SdkHttpConfigurationOption;
import software.amazon.awssdk.http.apache.ApacheHttpClient;
import software.amazon.awssdk.http.apache.ProxyConfiguration;
import software.amazon.awssdk.regions.Region;
-import software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient;
-import software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClientBuilder;
+import software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient;
+import software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClientBuilder;
import software.amazon.awssdk.utils.AttributeMap;
/**
- * Manage an AWS Bedrock Runtime client for all users to use (enabling temporary creds). This implementation is for
- * remote instances to manage the credentials on their own (eliminating credential rotations)
+ * Manage an AWS Bedrock Agent Runtime client for all users to use (enabling temporary creds). This implementation is
+ * for remote instances to manage the credentials on their own (eliminating credential rotations)
*/
-public class BedrockRuntimeClientIAMProfileOptimizedImpl implements BedrockRuntimeInternalClient {
- private static final Logger LOG = LoggerFactory.getLogger(BedrockRuntimeClientIAMProfileOptimizedImpl.class);
- private BedrockConfiguration configuration;
+public class BedrockAgentRuntimeClientIAMProfileOptimizedImpl implements BedrockAgentRuntimeInternalClient {
+ private static final Logger LOG = LoggerFactory.getLogger(BedrockAgentRuntimeClientIAMProfileOptimizedImpl.class);
+ private BedrockAgentRuntimeConfiguration configuration;
/**
* Constructor that uses the config file.
*/
- public BedrockRuntimeClientIAMProfileOptimizedImpl(BedrockConfiguration configuration) {
+ public BedrockAgentRuntimeClientIAMProfileOptimizedImpl(BedrockAgentRuntimeConfiguration configuration) {
LOG.trace(
- "Creating an AWS Bedrock Runtime client for an ec2 instance with IAM temporary credentials (normal for ec2s).");
+ "Creating an AWS Bedrock Agent Runtime client for an ec2 instance with IAM temporary credentials (normal for ec2s).");
this.configuration = configuration;
}
/**
- * Getting the Bedrock Runtime aws client that is used.
+ * Getting the Bedrock Agent Runtime aws client that is used.
*
- * @return Bedrock Runtime Client.
+ * @return Bedrock Agent Runtime Client.
*/
@Override
- public BedrockRuntimeClient getBedrockRuntimeClient() {
- BedrockRuntimeClient client = null;
- BedrockRuntimeClientBuilder clientBuilder = BedrockRuntimeClient.builder();
+ public BedrockAgentRuntimeClient getBedrockAgentRuntimeClient() {
+ BedrockAgentRuntimeClient client = null;
+ BedrockAgentRuntimeClientBuilder clientBuilder = BedrockAgentRuntimeClient.builder();
ProxyConfiguration.Builder proxyConfig = null;
ApacheHttpClient.Builder httpClientBuilder = null;
if (ObjectHelper.isNotEmpty(configuration.getProxyHost()) && ObjectHelper.isNotEmpty(configuration.getProxyPort())) {
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientSessionTokenImpl.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/impl/BedrockAgentRuntimeClientSessionTokenImpl.java
similarity index 75%
copy from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientSessionTokenImpl.java
copy to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/impl/BedrockAgentRuntimeClientSessionTokenImpl.java
index 9056bbf26bd..65ed10cfb28 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientSessionTokenImpl.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/impl/BedrockAgentRuntimeClientSessionTokenImpl.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock.client.impl;
+package org.apache.camel.component.aws2.bedrock.agentruntime.client.impl;
import java.net.URI;
-import org.apache.camel.component.aws2.bedrock.BedrockConfiguration;
-import org.apache.camel.component.aws2.bedrock.client.BedrockRuntimeInternalClient;
+import org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.BedrockAgentRuntimeInternalClient;
import org.apache.camel.util.ObjectHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -30,35 +30,35 @@ import software.amazon.awssdk.http.SdkHttpConfigurationOption;
import software.amazon.awssdk.http.apache.ApacheHttpClient;
import software.amazon.awssdk.http.apache.ProxyConfiguration;
import software.amazon.awssdk.regions.Region;
-import software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient;
-import software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClientBuilder;
+import software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient;
+import software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClientBuilder;
import software.amazon.awssdk.utils.AttributeMap;
/**
- * Manage an AWS Bedrock Runtime client for all users to use. This implementation is for local instances to use a static
- * and solid credential set.
+ * Manage an AWS Bedrock Agent Runtime client for all users to use. This implementation is for local instances to use a
+ * static and solid credential set.
*/
-public class BedrockRuntimeClientSessionTokenImpl implements BedrockRuntimeInternalClient {
- private static final Logger LOG = LoggerFactory.getLogger(BedrockRuntimeClientSessionTokenImpl.class);
- private BedrockConfiguration configuration;
+public class BedrockAgentRuntimeClientSessionTokenImpl implements BedrockAgentRuntimeInternalClient {
+ private static final Logger LOG = LoggerFactory.getLogger(BedrockAgentRuntimeClientSessionTokenImpl.class);
+ private BedrockAgentRuntimeConfiguration configuration;
/**
* Constructor that uses the config file.
*/
- public BedrockRuntimeClientSessionTokenImpl(BedrockConfiguration configuration) {
- LOG.trace("Creating an AWS Bedrock Runtime manager using static credentials.");
+ public BedrockAgentRuntimeClientSessionTokenImpl(BedrockAgentRuntimeConfiguration configuration) {
+ LOG.trace("Creating an AWS Bedrock Agent Runtime manager using static credentials.");
this.configuration = configuration;
}
/**
- * Getting the Bedrock Runtime AWS client that is used.
+ * Getting the Bedrock Agent Runtime AWS client that is used.
*
- * @return BedrockRuntimeClient Client.
+ * @return BedrockAgentRuntimeClient Client.
*/
@Override
- public BedrockRuntimeClient getBedrockRuntimeClient() {
- BedrockRuntimeClient client = null;
- BedrockRuntimeClientBuilder clientBuilder = BedrockRuntimeClient.builder();
+ public BedrockAgentRuntimeClient getBedrockAgentRuntimeClient() {
+ BedrockAgentRuntimeClient client = null;
+ BedrockAgentRuntimeClientBuilder clientBuilder = BedrockAgentRuntimeClient.builder();
ProxyConfiguration.Builder proxyConfig = null;
ApacheHttpClient.Builder httpClientBuilder = null;
boolean isClientConfigFound = false;
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientStandardImpl.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/impl/BedrockAgentRuntimeClientStandardImpl.java
similarity index 75%
copy from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientStandardImpl.java
copy to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/impl/BedrockAgentRuntimeClientStandardImpl.java
index 0ad58c27805..cc8e788ba95 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientStandardImpl.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agentruntime/client/impl/BedrockAgentRuntimeClientStandardImpl.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock.client.impl;
+package org.apache.camel.component.aws2.bedrock.agentruntime.client.impl;
import java.net.URI;
-import org.apache.camel.component.aws2.bedrock.BedrockConfiguration;
-import org.apache.camel.component.aws2.bedrock.client.BedrockRuntimeInternalClient;
+import org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.BedrockAgentRuntimeInternalClient;
import org.apache.camel.util.ObjectHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -30,35 +30,35 @@ import software.amazon.awssdk.http.SdkHttpConfigurationOption;
import software.amazon.awssdk.http.apache.ApacheHttpClient;
import software.amazon.awssdk.http.apache.ProxyConfiguration;
import software.amazon.awssdk.regions.Region;
-import software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient;
-import software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClientBuilder;
+import software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient;
+import software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClientBuilder;
import software.amazon.awssdk.utils.AttributeMap;
/**
- * Manage an AWS Bedrock Runtime client for all users to use. This implementation is for local instances to use a static
- * and solid credential set.
+ * Manage an AWS Bedrock Agent Runtime client for all users to use. This implementation is for local instances to use a
+ * static and solid credential set.
*/
-public class BedrockRuntimeClientStandardImpl implements BedrockRuntimeInternalClient {
- private static final Logger LOG = LoggerFactory.getLogger(BedrockRuntimeClientStandardImpl.class);
- private BedrockConfiguration configuration;
+public class BedrockAgentRuntimeClientStandardImpl implements BedrockAgentRuntimeInternalClient {
+ private static final Logger LOG = LoggerFactory.getLogger(BedrockAgentRuntimeClientStandardImpl.class);
+ private BedrockAgentRuntimeConfiguration configuration;
/**
* Constructor that uses the config file.
*/
- public BedrockRuntimeClientStandardImpl(BedrockConfiguration configuration) {
- LOG.trace("Creating an AWS Bedrock Runtime manager using static credentials.");
+ public BedrockAgentRuntimeClientStandardImpl(BedrockAgentRuntimeConfiguration configuration) {
+ LOG.trace("Creating an AWS Bedrock Agent Runtime manager using static credentials.");
this.configuration = configuration;
}
/**
- * Getting the Bedrock Runtime AWS client that is used.
+ * Getting the Bedrock Agent Runtime AWS client that is used.
*
- * @return BedrockRuntime Client.
+ * @return BedrockAgenRuitimeClient Client.
*/
@Override
- public BedrockRuntimeClient getBedrockRuntimeClient() {
- BedrockRuntimeClient client = null;
- BedrockRuntimeClientBuilder clientBuilder = BedrockRuntimeClient.builder();
+ public BedrockAgentRuntimeClient getBedrockAgentRuntimeClient() {
+ BedrockAgentRuntimeClient client = null;
+ BedrockAgentRuntimeClientBuilder clientBuilder = BedrockAgentRuntimeClient.builder();
ProxyConfiguration.Builder proxyConfig = null;
ApacheHttpClient.Builder httpClientBuilder = null;
boolean isClientConfigFound = false;
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockComponent.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockComponent.java
similarity index 98%
rename from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockComponent.java
rename to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockComponent.java
index cccd9be975f..1c80a5d6cb3 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockComponent.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockComponent.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.runtime;
import java.util.Map;
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockConfiguration.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockConfiguration.java
similarity index 99%
rename from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockConfiguration.java
rename to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockConfiguration.java
index 7dc3ba749c9..da767745645 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockConfiguration.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockConfiguration.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.runtime;
import org.apache.camel.RuntimeCamelException;
import org.apache.camel.spi.Metadata;
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockConstants.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockConstants.java
similarity index 96%
rename from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockConstants.java
rename to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockConstants.java
index 33951e902f2..2412b770eb1 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockConstants.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockConstants.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.runtime;
import org.apache.camel.spi.Metadata;
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockEndpoint.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockEndpoint.java
similarity index 95%
rename from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockEndpoint.java
rename to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockEndpoint.java
index 3d7f35df106..625d3f33dc5 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockEndpoint.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockEndpoint.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.runtime;
import org.apache.camel.Category;
import org.apache.camel.Component;
import org.apache.camel.Consumer;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
-import org.apache.camel.component.aws2.bedrock.client.BedrockClientFactory;
+import org.apache.camel.component.aws2.bedrock.runtime.client.BedrockClientFactory;
import org.apache.camel.spi.UriEndpoint;
import org.apache.camel.spi.UriParam;
import org.apache.camel.support.ScheduledPollEndpoint;
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockOperations.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockOperations.java
similarity index 94%
rename from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockOperations.java
rename to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockOperations.java
index 0c0ff54ff6a..0f0f7932020 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockOperations.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockOperations.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.runtime;
public enum BedrockOperations {
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockProducer.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockProducer.java
similarity index 99%
rename from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockProducer.java
rename to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockProducer.java
index 3434fea5921..e79c7138234 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockProducer.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockProducer.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.runtime;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/BedrockClientFactory.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/BedrockClientFactory.java
similarity index 77%
rename from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/BedrockClientFactory.java
rename to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/BedrockClientFactory.java
index 485ca1b0666..96417a59ceb 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/BedrockClientFactory.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/BedrockClientFactory.java
@@ -14,13 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock.client;
+package org.apache.camel.component.aws2.bedrock.runtime.client;
-import org.apache.camel.component.aws2.bedrock.BedrockConfiguration;
-import org.apache.camel.component.aws2.bedrock.client.impl.BedrockRuntimeClientIAMOptimizedImpl;
-import org.apache.camel.component.aws2.bedrock.client.impl.BedrockRuntimeClientIAMProfileOptimizedImpl;
-import org.apache.camel.component.aws2.bedrock.client.impl.BedrockRuntimeClientSessionTokenImpl;
-import org.apache.camel.component.aws2.bedrock.client.impl.BedrockRuntimeClientStandardImpl;
+import org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration;
+import org.apache.camel.component.aws2.bedrock.runtime.client.impl.BedrockRuntimeClientIAMOptimizedImpl;
+import org.apache.camel.component.aws2.bedrock.runtime.client.impl.BedrockRuntimeClientIAMProfileOptimizedImpl;
+import org.apache.camel.component.aws2.bedrock.runtime.client.impl.BedrockRuntimeClientSessionTokenImpl;
+import org.apache.camel.component.aws2.bedrock.runtime.client.impl.BedrockRuntimeClientStandardImpl;
/**
* Factory class to return the correct type of AWS Bedrock runtime client.
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/BedrockRuntimeInternalClient.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/BedrockRuntimeInternalClient.java
similarity index 95%
rename from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/BedrockRuntimeInternalClient.java
rename to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/BedrockRuntimeInternalClient.java
index 01b50a05919..d9ef32ebfab 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/BedrockRuntimeInternalClient.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/BedrockRuntimeInternalClient.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock.client;
+package org.apache.camel.component.aws2.bedrock.runtime.client;
import software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient;
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientIAMOptimizedImpl.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/impl/BedrockRuntimeClientIAMOptimizedImpl.java
similarity index 94%
rename from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientIAMOptimizedImpl.java
rename to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/impl/BedrockRuntimeClientIAMOptimizedImpl.java
index 425925526f1..75a159d9657 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientIAMOptimizedImpl.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/impl/BedrockRuntimeClientIAMOptimizedImpl.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock.client.impl;
+package org.apache.camel.component.aws2.bedrock.runtime.client.impl;
import java.net.URI;
-import org.apache.camel.component.aws2.bedrock.BedrockConfiguration;
-import org.apache.camel.component.aws2.bedrock.client.BedrockRuntimeInternalClient;
+import org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration;
+import org.apache.camel.component.aws2.bedrock.runtime.client.BedrockRuntimeInternalClient;
import org.apache.camel.util.ObjectHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientIAMProfileOptimizedImpl.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/impl/BedrockRuntimeClientIAMProfileOptimizedImpl.java
similarity index 95%
rename from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientIAMProfileOptimizedImpl.java
rename to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/impl/BedrockRuntimeClientIAMProfileOptimizedImpl.java
index 39d4f457f83..66b40e8d2e3 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientIAMProfileOptimizedImpl.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/impl/BedrockRuntimeClientIAMProfileOptimizedImpl.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock.client.impl;
+package org.apache.camel.component.aws2.bedrock.runtime.client.impl;
import java.net.URI;
-import org.apache.camel.component.aws2.bedrock.BedrockConfiguration;
-import org.apache.camel.component.aws2.bedrock.client.BedrockRuntimeInternalClient;
+import org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration;
+import org.apache.camel.component.aws2.bedrock.runtime.client.BedrockRuntimeInternalClient;
import org.apache.camel.util.ObjectHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientSessionTokenImpl.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/impl/BedrockRuntimeClientSessionTokenImpl.java
similarity index 95%
rename from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientSessionTokenImpl.java
rename to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/impl/BedrockRuntimeClientSessionTokenImpl.java
index 9056bbf26bd..730ca6ba780 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientSessionTokenImpl.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/impl/BedrockRuntimeClientSessionTokenImpl.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock.client.impl;
+package org.apache.camel.component.aws2.bedrock.runtime.client.impl;
import java.net.URI;
-import org.apache.camel.component.aws2.bedrock.BedrockConfiguration;
-import org.apache.camel.component.aws2.bedrock.client.BedrockRuntimeInternalClient;
+import org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration;
+import org.apache.camel.component.aws2.bedrock.runtime.client.BedrockRuntimeInternalClient;
import org.apache.camel.util.ObjectHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientStandardImpl.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/impl/BedrockRuntimeClientStandardImpl.java
similarity index 95%
rename from components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientStandardImpl.java
rename to components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/impl/BedrockRuntimeClientStandardImpl.java
index 0ad58c27805..c8013acae96 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/client/impl/BedrockRuntimeClientStandardImpl.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/runtime/client/impl/BedrockRuntimeClientStandardImpl.java
@@ -14,12 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock.client.impl;
+package org.apache.camel.component.aws2.bedrock.runtime.client.impl;
import java.net.URI;
-import org.apache.camel.component.aws2.bedrock.BedrockConfiguration;
-import org.apache.camel.component.aws2.bedrock.client.BedrockRuntimeInternalClient;
+import org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration;
+import org.apache.camel.component.aws2.bedrock.runtime.client.BedrockRuntimeInternalClient;
import org.apache.camel.util.ObjectHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeClientFactoryTest.java b/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeClientFactoryTest.java
new file mode 100644
index 00000000000..b77d95edd26
--- /dev/null
+++ b/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/agentruntime/BedrockAgentRuntimeClientFactoryTest.java
@@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.aws2.bedrock.agentruntime;
+
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.BedrockAgentRuntimeClientFactory;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.BedrockAgentRuntimeInternalClient;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.impl.BedrockAgentRuntimeClientIAMOptimizedImpl;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.impl.BedrockAgentRuntimeClientIAMProfileOptimizedImpl;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.impl.BedrockAgentRuntimeClientSessionTokenImpl;
+import org.apache.camel.component.aws2.bedrock.agentruntime.client.impl.BedrockAgentRuntimeClientStandardImpl;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+public class BedrockAgentRuntimeClientFactoryTest {
+
+ @Test
+ public void getStandardBedrockAgentRuntimeClientDefault() {
+ BedrockAgentRuntimeConfiguration bedrockConfiguration = new BedrockAgentRuntimeConfiguration();
+ BedrockAgentRuntimeInternalClient bedrockClient
+ = BedrockAgentRuntimeClientFactory.getBedrockAgentRuntimeClient(bedrockConfiguration);
+ assertTrue(bedrockClient instanceof BedrockAgentRuntimeClientStandardImpl);
+ }
+
+ @Test
+ public void getStandardDefaultBedrockAgentRuntimeClient() {
+ BedrockAgentRuntimeConfiguration bedrockConfiguration = new BedrockAgentRuntimeConfiguration();
+ bedrockConfiguration.setUseDefaultCredentialsProvider(false);
+ BedrockAgentRuntimeInternalClient bedrockClient
+ = BedrockAgentRuntimeClientFactory.getBedrockAgentRuntimeClient(bedrockConfiguration);
+ assertTrue(bedrockClient instanceof BedrockAgentRuntimeClientStandardImpl);
+ }
+
+ @Test
+ public void getIAMOptimizedBedrockAgentRuntimeClient() {
+ BedrockAgentRuntimeConfiguration bedrockConfiguration = new BedrockAgentRuntimeConfiguration();
+ bedrockConfiguration.setUseDefaultCredentialsProvider(true);
+ BedrockAgentRuntimeInternalClient bedrockClient
+ = BedrockAgentRuntimeClientFactory.getBedrockAgentRuntimeClient(bedrockConfiguration);
+ assertTrue(bedrockClient instanceof BedrockAgentRuntimeClientIAMOptimizedImpl);
+ }
+
+ @Test
+ public void getSessionTokenBedrockAgentRuntimeClient() {
+ BedrockAgentRuntimeConfiguration bedrockConfiguration = new BedrockAgentRuntimeConfiguration();
+ bedrockConfiguration.setUseSessionCredentials(true);
+ BedrockAgentRuntimeInternalClient bedrockClient
+ = BedrockAgentRuntimeClientFactory.getBedrockAgentRuntimeClient(bedrockConfiguration);
+ assertTrue(bedrockClient instanceof BedrockAgentRuntimeClientSessionTokenImpl);
+ }
+
+ @Test
+ public void getProfileBedrockAgentRuntimeClient() {
+ BedrockAgentRuntimeConfiguration bedrockConfiguration = new BedrockAgentRuntimeConfiguration();
+ bedrockConfiguration.setUseProfileCredentialsProvider(true);
+ BedrockAgentRuntimeInternalClient bedrockClient
+ = BedrockAgentRuntimeClientFactory.getBedrockAgentRuntimeClient(bedrockConfiguration);
+ assertTrue(bedrockClient instanceof BedrockAgentRuntimeClientIAMProfileOptimizedImpl);
+ }
+}
diff --git a/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/agentruntime/integration/BedrockAgentRuntimeProducerIT.java b/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/agentruntime/integration/BedrockAgentRuntimeProducerIT.java
new file mode 100644
index 00000000000..b0a38678ad1
--- /dev/null
+++ b/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/agentruntime/integration/BedrockAgentRuntimeProducerIT.java
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.aws2.bedrock.agentruntime.integration;
+
+import org.apache.camel.EndpointInject;
+import org.apache.camel.Exchange;
+import org.apache.camel.ProducerTemplate;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.aws2.bedrock.BedrockModels;
+import org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.test.junit5.CamelTestSupport;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestInstance;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperties;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
+
+// Must be manually tested. Provide your own accessKey and secretKey using -Daws.manual.access.key and -Daws.manual.secret.key
+@EnabledIfSystemProperties({
+ @EnabledIfSystemProperty(named = "aws.manual.access.key", matches = ".*", disabledReason = "Access key not provided"),
+ @EnabledIfSystemProperty(named = "aws.manual.secret.key", matches = ".*", disabledReason = "Secret key not provided")
+})
+@TestInstance(TestInstance.Lifecycle.PER_CLASS)
+class BedrockAgentRuntimeProducerIT extends CamelTestSupport {
+
+ @EndpointInject
+ private ProducerTemplate template;
+
+ @EndpointInject("mock:result")
+ private MockEndpoint result;
+
+ @Test
+ public void testInvokeKnowledgeBaseExpressModel() throws InterruptedException {
+
+ result.expectedMessageCount(1);
+ final Exchange result = template.send("direct:send_knowledge_base", exchange -> {
+ exchange.getMessage().setBody("What is the average price of natural gas between 1998 and 1999?");
+ exchange.getMessage().setHeader(BedrockConstants.MODEL_CONTENT_TYPE, "application/json");
+ exchange.getMessage().setHeader(BedrockConstants.MODEL_ACCEPT_CONTENT_TYPE, "application/json");
+ });
+
+ MockEndpoint.assertIsSatisfied(context);
+ }
+
+ @Override
+ protected RouteBuilder createRouteBuilder() {
+ return new RouteBuilder() {
+ @Override
+ public void configure() {
+ from("direct:send_knowledge_base")
+ .to("aws-bedrock-agent-runtime:label?accessKey=RAW({{aws.manual.access.key}})&secretKey=RAW({{aws.manual.secret.key}}®ion=us-east-1&operation=retrieveAndGenerate&knowledgeBaseId=QOZ68KOXTS&modelId="
+ + BedrockModels.ANTROPHIC_CLAUDE_INSTANT_V1.model)
+ .log("Answer ${body}")
+ .to(result);
+ }
+ };
+ }
+}
diff --git a/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/BedrockRuntimeClientFactoryTest.java b/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockRuntimeClientFactoryTest.java
similarity index 81%
rename from components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/BedrockRuntimeClientFactoryTest.java
rename to components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockRuntimeClientFactoryTest.java
index 5dddff89d86..07f89a8cd4d 100644
--- a/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/BedrockRuntimeClientFactoryTest.java
+++ b/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/runtime/BedrockRuntimeClientFactoryTest.java
@@ -14,14 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock;
+package org.apache.camel.component.aws2.bedrock.runtime;
-import org.apache.camel.component.aws2.bedrock.client.BedrockClientFactory;
-import org.apache.camel.component.aws2.bedrock.client.BedrockRuntimeInternalClient;
-import org.apache.camel.component.aws2.bedrock.client.impl.BedrockRuntimeClientIAMOptimizedImpl;
-import org.apache.camel.component.aws2.bedrock.client.impl.BedrockRuntimeClientIAMProfileOptimizedImpl;
-import org.apache.camel.component.aws2.bedrock.client.impl.BedrockRuntimeClientSessionTokenImpl;
-import org.apache.camel.component.aws2.bedrock.client.impl.BedrockRuntimeClientStandardImpl;
+import org.apache.camel.component.aws2.bedrock.runtime.client.BedrockClientFactory;
+import org.apache.camel.component.aws2.bedrock.runtime.client.BedrockRuntimeInternalClient;
+import org.apache.camel.component.aws2.bedrock.runtime.client.impl.BedrockRuntimeClientIAMOptimizedImpl;
+import org.apache.camel.component.aws2.bedrock.runtime.client.impl.BedrockRuntimeClientIAMProfileOptimizedImpl;
+import org.apache.camel.component.aws2.bedrock.runtime.client.impl.BedrockRuntimeClientSessionTokenImpl;
+import org.apache.camel.component.aws2.bedrock.runtime.client.impl.BedrockRuntimeClientStandardImpl;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertTrue;
diff --git a/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/integration/BedrockProducerIT.java b/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/runtime/integration/BedrockProducerIT.java
similarity index 99%
rename from components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/integration/BedrockProducerIT.java
rename to components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/runtime/integration/BedrockProducerIT.java
index a071215eb02..aa2044461e3 100644
--- a/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/integration/BedrockProducerIT.java
+++ b/components/camel-aws/camel-aws-bedrock/src/test/java/org/apache/camel/component/aws2/bedrock/runtime/integration/BedrockProducerIT.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.camel.component.aws2.bedrock.integration;
+package org.apache.camel.component.aws2.bedrock.runtime.integration;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
@@ -25,8 +25,8 @@ import org.apache.camel.EndpointInject;
import org.apache.camel.Exchange;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.aws2.bedrock.BedrockConstants;
import org.apache.camel.component.aws2.bedrock.BedrockModels;
+import org.apache.camel.component.aws2.bedrock.runtime.BedrockConstants;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.junit5.CamelTestSupport;
import org.junit.jupiter.api.Test;
diff --git a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
index 964b2197cc9..c06addb20ee 100644
--- a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
+++ b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
@@ -7,6 +7,7 @@ atmosphere-websocket
atom
avro
aws-bedrock
+aws-bedrock-agent-runtime
aws-cloudtrail
aws-config
aws-secrets-manager
diff --git a/docs/components/modules/ROOT/examples/json/aws-bedrock-agent-runtime.json b/docs/components/modules/ROOT/examples/json/aws-bedrock-agent-runtime.json
new file mode 120000
index 00000000000..662dd629af9
--- /dev/null
+++ b/docs/components/modules/ROOT/examples/json/aws-bedrock-agent-runtime.json
@@ -0,0 +1 @@
+../../../../../../components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/org/apache/camel/component/aws2/bedrock/agentruntime/aws-bedrock-agent-runtime.json
\ No newline at end of file
diff --git a/docs/components/modules/ROOT/examples/json/aws-bedrock.json b/docs/components/modules/ROOT/examples/json/aws-bedrock.json
index 073b35b8fdc..cf8d0392173 120000
--- a/docs/components/modules/ROOT/examples/json/aws-bedrock.json
+++ b/docs/components/modules/ROOT/examples/json/aws-bedrock.json
@@ -1 +1 @@
-../../../../../../components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/org/apache/camel/component/aws2/bedrock/aws-bedrock.json
\ No newline at end of file
+../../../../../../components/camel-aws/camel-aws-bedrock/src/generated/resources/META-INF/org/apache/camel/component/aws2/bedrock/runtime/aws-bedrock.json
\ No newline at end of file
diff --git a/docs/components/modules/ROOT/nav.adoc b/docs/components/modules/ROOT/nav.adoc
index ce3e7124bf9..512d76367c5 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -13,6 +13,7 @@
** xref:aws-summary.adoc[AWS]
*** xref:aws2-athena-component.adoc[AWS Athena]
*** xref:aws-bedrock-component.adoc[AWS Bedrock]
+*** xref:aws-bedrock-agent-runtime-component.adoc[AWS Bedrock Agent Runtime]
*** xref:aws-cloudtrail-component.adoc[AWS Cloudtrail]
*** xref:aws2-cw-component.adoc[AWS CloudWatch]
*** xref:aws-config-component.adoc[AWS Config Service]
diff --git a/docs/components/modules/ROOT/pages/aws-bedrock-agent-runtime-component.adoc b/docs/components/modules/ROOT/pages/aws-bedrock-agent-runtime-component.adoc
new file mode 120000
index 00000000000..08b83c4d444
--- /dev/null
+++ b/docs/components/modules/ROOT/pages/aws-bedrock-agent-runtime-component.adoc
@@ -0,0 +1 @@
+../../../../../components/camel-aws/camel-aws-bedrock/src/main/docs/aws-bedrock-agent-runtime-component.adoc
\ No newline at end of file
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index cdb54a68559..c2bda639b97 100644
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -162,6 +162,19 @@ public interface ComponentsBuilderFactory {
static org.apache.camel.builder.component.dsl.AwsBedrockComponentBuilderFactory.AwsBedrockComponentBuilder awsBedrock() {
return org.apache.camel.builder.component.dsl.AwsBedrockComponentBuilderFactory.awsBedrock();
}
+ /**
+ * AWS Bedrock Agent Runtime (camel-aws-bedrock)
+ * Invoke Model of AWS Bedrock Agent Runtime service.
+ *
+ * Category: ai,cloud
+ * Since: 4.5
+ * Maven coordinates: org.apache.camel:camel-aws-bedrock
+ *
+ * @return the dsl builder
+ */
+ static org.apache.camel.builder.component.dsl.AwsBedrockAgentRuntimeComponentBuilderFactory.AwsBedrockAgentRuntimeComponentBuilder awsBedrockAgentRuntime() {
+ return org.apache.camel.builder.component.dsl.AwsBedrockAgentRuntimeComponentBuilderFactory.awsBedrockAgentRuntime();
+ }
/**
* AWS Cloudtrail (camel-aws-cloudtrail)
* Consume events from Amazon Cloudtrail using AWS SDK version 2.x.
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsBedrockComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsBedrockAgentRuntimeComponentBuilderFactory.java
similarity index 62%
copy from dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsBedrockComponentBuilderFactory.java
copy to dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsBedrockAgentRuntimeComponentBuilderFactory.java
index ca62aca5e66..431b4083e4d 100644
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsBedrockComponentBuilderFactory.java
+++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsBedrockAgentRuntimeComponentBuilderFactory.java
@@ -20,19 +20,19 @@ import javax.annotation.processing.Generated;
import org.apache.camel.Component;
import org.apache.camel.builder.component.AbstractComponentBuilder;
import org.apache.camel.builder.component.ComponentBuilder;
-import org.apache.camel.component.aws2.bedrock.BedrockComponent;
+import org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeComponent;
/**
- * Invoke Model of AWS Bedrock service.
+ * Invoke Model of AWS Bedrock Agent Runtime service.
*
* Generated by camel-package-maven-plugin - do not edit this file!
*/
@Generated("org.apache.camel.maven.packaging.ComponentDslMojo")
-public interface AwsBedrockComponentBuilderFactory {
+public interface AwsBedrockAgentRuntimeComponentBuilderFactory {
/**
- * AWS Bedrock (camel-aws-bedrock)
- * Invoke Model of AWS Bedrock service.
+ * AWS Bedrock Agent Runtime (camel-aws-bedrock)
+ * Invoke Model of AWS Bedrock Agent Runtime service.
*
* Category: ai,cloud
* Since: 4.5
@@ -40,32 +40,47 @@ public interface AwsBedrockComponentBuilderFactory {
*
* @return the dsl builder
*/
- static AwsBedrockComponentBuilder awsBedrock() {
- return new AwsBedrockComponentBuilderImpl();
+ static AwsBedrockAgentRuntimeComponentBuilder awsBedrockAgentRuntime() {
+ return new AwsBedrockAgentRuntimeComponentBuilderImpl();
}
/**
- * Builder for the AWS Bedrock component.
+ * Builder for the AWS Bedrock Agent Runtime component.
*/
- interface AwsBedrockComponentBuilder
+ interface AwsBedrockAgentRuntimeComponentBuilder
extends
- ComponentBuilder<BedrockComponent> {
+ ComponentBuilder<BedrockAgentRuntimeComponent> {
/**
* Component configuration.
*
* The option is a:
- * <code>org.apache.camel.component.aws2.bedrock.BedrockConfiguration</code> type.
+ * <code>org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration</code> type.
*
* Group: producer
*
* @param configuration the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder configuration(
- org.apache.camel.component.aws2.bedrock.BedrockConfiguration configuration) {
+ default AwsBedrockAgentRuntimeComponentBuilder configuration(
+ org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration configuration) {
doSetProperty("configuration", configuration);
return this;
}
+ /**
+ * Define the Knowledge Base Id we are going to use.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Group: producer
+ *
+ * @param knowledgeBaseId the value to set
+ * @return the dsl builder
+ */
+ default AwsBedrockAgentRuntimeComponentBuilder knowledgeBaseId(
+ java.lang.String knowledgeBaseId) {
+ doSetProperty("knowledgeBaseId", knowledgeBaseId);
+ return this;
+ }
/**
* Whether the producer should be started lazy (on the first message).
* By starting lazy you can use this to allow CamelContext and routes to
@@ -85,7 +100,7 @@ public interface AwsBedrockComponentBuilderFactory {
* @param lazyStartProducer the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder lazyStartProducer(
+ default AwsBedrockAgentRuntimeComponentBuilder lazyStartProducer(
boolean lazyStartProducer) {
doSetProperty("lazyStartProducer", lazyStartProducer);
return this;
@@ -100,7 +115,8 @@ public interface AwsBedrockComponentBuilderFactory {
* @param modelId the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder modelId(java.lang.String modelId) {
+ default AwsBedrockAgentRuntimeComponentBuilder modelId(
+ java.lang.String modelId) {
doSetProperty("modelId", modelId);
return this;
}
@@ -108,15 +124,15 @@ public interface AwsBedrockComponentBuilderFactory {
* The operation to perform.
*
* The option is a:
- * <code>org.apache.camel.component.aws2.bedrock.BedrockOperations</code> type.
+ * <code>org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations</code> type.
*
* Group: producer
*
* @param operation the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder operation(
- org.apache.camel.component.aws2.bedrock.BedrockOperations operation) {
+ default AwsBedrockAgentRuntimeComponentBuilder operation(
+ org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations operation) {
doSetProperty("operation", operation);
return this;
}
@@ -132,7 +148,7 @@ public interface AwsBedrockComponentBuilderFactory {
* @param overrideEndpoint the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder overrideEndpoint(
+ default AwsBedrockAgentRuntimeComponentBuilder overrideEndpoint(
boolean overrideEndpoint) {
doSetProperty("overrideEndpoint", overrideEndpoint);
return this;
@@ -148,7 +164,8 @@ public interface AwsBedrockComponentBuilderFactory {
* @param pojoRequest the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder pojoRequest(boolean pojoRequest) {
+ default AwsBedrockAgentRuntimeComponentBuilder pojoRequest(
+ boolean pojoRequest) {
doSetProperty("pojoRequest", pojoRequest);
return this;
}
@@ -164,16 +181,16 @@ public interface AwsBedrockComponentBuilderFactory {
* @param profileCredentialsName the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder profileCredentialsName(
+ default AwsBedrockAgentRuntimeComponentBuilder profileCredentialsName(
java.lang.String profileCredentialsName) {
doSetProperty("profileCredentialsName", profileCredentialsName);
return this;
}
/**
- * 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().
+ * The region in which Bedrock Agent Runtime 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().
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -182,7 +199,8 @@ public interface AwsBedrockComponentBuilderFactory {
* @param region the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder region(java.lang.String region) {
+ default AwsBedrockAgentRuntimeComponentBuilder region(
+ java.lang.String region) {
doSetProperty("region", region);
return this;
}
@@ -197,7 +215,7 @@ public interface AwsBedrockComponentBuilderFactory {
* @param uriEndpointOverride the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder uriEndpointOverride(
+ default AwsBedrockAgentRuntimeComponentBuilder uriEndpointOverride(
java.lang.String uriEndpointOverride) {
doSetProperty("uriEndpointOverride", uriEndpointOverride);
return this;
@@ -215,7 +233,7 @@ public interface AwsBedrockComponentBuilderFactory {
* @param useDefaultCredentialsProvider the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder useDefaultCredentialsProvider(
+ default AwsBedrockAgentRuntimeComponentBuilder useDefaultCredentialsProvider(
boolean useDefaultCredentialsProvider) {
doSetProperty("useDefaultCredentialsProvider", useDefaultCredentialsProvider);
return this;
@@ -232,7 +250,7 @@ public interface AwsBedrockComponentBuilderFactory {
* @param useProfileCredentialsProvider the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder useProfileCredentialsProvider(
+ default AwsBedrockAgentRuntimeComponentBuilder useProfileCredentialsProvider(
boolean useProfileCredentialsProvider) {
doSetProperty("useProfileCredentialsProvider", useProfileCredentialsProvider);
return this;
@@ -253,25 +271,25 @@ public interface AwsBedrockComponentBuilderFactory {
* @param autowiredEnabled the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder autowiredEnabled(
+ default AwsBedrockAgentRuntimeComponentBuilder autowiredEnabled(
boolean autowiredEnabled) {
doSetProperty("autowiredEnabled", autowiredEnabled);
return this;
}
/**
- * To use an existing configured AWS Bedrock Runtime client.
+ * To use an existing configured AWS Bedrock Agent Runtime client.
*
* The option is a:
- * <code>software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient</code> type.
+ * <code>software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient</code> type.
*
* Group: advanced
*
- * @param bedrockRuntimeClient the value to set
+ * @param bedrockAgentRuntimeClient the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder bedrockRuntimeClient(
- software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient bedrockRuntimeClient) {
- doSetProperty("bedrockRuntimeClient", bedrockRuntimeClient);
+ default AwsBedrockAgentRuntimeComponentBuilder bedrockAgentRuntimeClient(
+ software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient bedrockAgentRuntimeClient) {
+ doSetProperty("bedrockAgentRuntimeClient", bedrockAgentRuntimeClient);
return this;
}
/**
@@ -286,7 +304,7 @@ public interface AwsBedrockComponentBuilderFactory {
* @param healthCheckConsumerEnabled the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder healthCheckConsumerEnabled(
+ default AwsBedrockAgentRuntimeComponentBuilder healthCheckConsumerEnabled(
boolean healthCheckConsumerEnabled) {
doSetProperty("healthCheckConsumerEnabled", healthCheckConsumerEnabled);
return this;
@@ -305,7 +323,7 @@ public interface AwsBedrockComponentBuilderFactory {
* @param healthCheckProducerEnabled the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder healthCheckProducerEnabled(
+ default AwsBedrockAgentRuntimeComponentBuilder healthCheckProducerEnabled(
boolean healthCheckProducerEnabled) {
doSetProperty("healthCheckProducerEnabled", healthCheckProducerEnabled);
return this;
@@ -320,7 +338,8 @@ public interface AwsBedrockComponentBuilderFactory {
* @param proxyHost the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder proxyHost(java.lang.String proxyHost) {
+ default AwsBedrockAgentRuntimeComponentBuilder proxyHost(
+ java.lang.String proxyHost) {
doSetProperty("proxyHost", proxyHost);
return this;
}
@@ -334,7 +353,8 @@ public interface AwsBedrockComponentBuilderFactory {
* @param proxyPort the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder proxyPort(java.lang.Integer proxyPort) {
+ default AwsBedrockAgentRuntimeComponentBuilder proxyPort(
+ java.lang.Integer proxyPort) {
doSetProperty("proxyPort", proxyPort);
return this;
}
@@ -350,7 +370,7 @@ public interface AwsBedrockComponentBuilderFactory {
* @param proxyProtocol the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder proxyProtocol(
+ default AwsBedrockAgentRuntimeComponentBuilder proxyProtocol(
software.amazon.awssdk.core.Protocol proxyProtocol) {
doSetProperty("proxyProtocol", proxyProtocol);
return this;
@@ -365,7 +385,8 @@ public interface AwsBedrockComponentBuilderFactory {
* @param accessKey the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder accessKey(java.lang.String accessKey) {
+ default AwsBedrockAgentRuntimeComponentBuilder accessKey(
+ java.lang.String accessKey) {
doSetProperty("accessKey", accessKey);
return this;
}
@@ -379,7 +400,8 @@ public interface AwsBedrockComponentBuilderFactory {
* @param secretKey the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder secretKey(java.lang.String secretKey) {
+ default AwsBedrockAgentRuntimeComponentBuilder secretKey(
+ java.lang.String secretKey) {
doSetProperty("secretKey", secretKey);
return this;
}
@@ -394,7 +416,7 @@ public interface AwsBedrockComponentBuilderFactory {
* @param sessionToken the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder sessionToken(
+ default AwsBedrockAgentRuntimeComponentBuilder sessionToken(
java.lang.String sessionToken) {
doSetProperty("sessionToken", sessionToken);
return this;
@@ -411,15 +433,15 @@ public interface AwsBedrockComponentBuilderFactory {
* @param trustAllCertificates the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder trustAllCertificates(
+ default AwsBedrockAgentRuntimeComponentBuilder trustAllCertificates(
boolean trustAllCertificates) {
doSetProperty("trustAllCertificates", trustAllCertificates);
return this;
}
/**
- * 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.
+ * Set whether the Bedrock Agent Runtime 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.
*
* The option is a: <code>boolean</code> type.
*
@@ -429,26 +451,26 @@ public interface AwsBedrockComponentBuilderFactory {
* @param useSessionCredentials the value to set
* @return the dsl builder
*/
- default AwsBedrockComponentBuilder useSessionCredentials(
+ default AwsBedrockAgentRuntimeComponentBuilder useSessionCredentials(
boolean useSessionCredentials) {
doSetProperty("useSessionCredentials", useSessionCredentials);
return this;
}
}
- class AwsBedrockComponentBuilderImpl
+ class AwsBedrockAgentRuntimeComponentBuilderImpl
extends
- AbstractComponentBuilder<BedrockComponent>
+ AbstractComponentBuilder<BedrockAgentRuntimeComponent>
implements
- AwsBedrockComponentBuilder {
+ AwsBedrockAgentRuntimeComponentBuilder {
@Override
- protected BedrockComponent buildConcreteComponent() {
- return new BedrockComponent();
+ protected BedrockAgentRuntimeComponent buildConcreteComponent() {
+ return new BedrockAgentRuntimeComponent();
}
- private org.apache.camel.component.aws2.bedrock.BedrockConfiguration getOrCreateConfiguration(
- org.apache.camel.component.aws2.bedrock.BedrockComponent component) {
+ private org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration getOrCreateConfiguration(
+ org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeComponent component) {
if (component.getConfiguration() == null) {
- component.setConfiguration(new org.apache.camel.component.aws2.bedrock.BedrockConfiguration());
+ component.setConfiguration(new org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration());
}
return component.getConfiguration();
}
@@ -458,29 +480,30 @@ public interface AwsBedrockComponentBuilderFactory {
String name,
Object value) {
switch (name) {
- case "configuration": ((BedrockComponent) component).setConfiguration((org.apache.camel.component.aws2.bedrock.BedrockConfiguration) value); return true;
- case "lazyStartProducer": ((BedrockComponent) component).setLazyStartProducer((boolean) value); return true;
- case "modelId": getOrCreateConfiguration((BedrockComponent) component).setModelId((java.lang.String) value); return true;
- case "operation": getOrCreateConfiguration((BedrockComponent) component).setOperation((org.apache.camel.component.aws2.bedrock.BedrockOperations) value); return true;
- case "overrideEndpoint": getOrCreateConfiguration((BedrockComponent) component).setOverrideEndpoint((boolean) value); return true;
- case "pojoRequest": getOrCreateConfiguration((BedrockComponent) component).setPojoRequest((boolean) value); return true;
- case "profileCredentialsName": getOrCreateConfiguration((BedrockComponent) component).setProfileCredentialsName((java.lang.String) value); return true;
- case "region": getOrCreateConfiguration((BedrockComponent) component).setRegion((java.lang.String) value); return true;
- case "uriEndpointOverride": getOrCreateConfiguration((BedrockComponent) component).setUriEndpointOverride((java.lang.String) value); return true;
- case "useDefaultCredentialsProvider": getOrCreateConfiguration((BedrockComponent) component).setUseDefaultCredentialsProvider((boolean) value); return true;
- case "useProfileCredentialsProvider": getOrCreateConfiguration((BedrockComponent) component).setUseProfileCredentialsProvider((boolean) value); return true;
- case "autowiredEnabled": ((BedrockComponent) component).setAutowiredEnabled((boolean) value); return true;
- case "bedrockRuntimeClient": getOrCreateConfiguration((BedrockComponent) component).setBedrockRuntimeClient((software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient) value); return true;
- case "healthCheckConsumerEnabled": ((BedrockComponent) component).setHealthCheckConsumerEnabled((boolean) value); return true;
- case "healthCheckProducerEnabled": ((BedrockComponent) component).setHealthCheckProducerEnabled((boolean) value); return true;
- case "proxyHost": getOrCreateConfiguration((BedrockComponent) component).setProxyHost((java.lang.String) value); return true;
- case "proxyPort": getOrCreateConfiguration((BedrockComponent) component).setProxyPort((java.lang.Integer) value); return true;
- case "proxyProtocol": getOrCreateConfiguration((BedrockComponent) component).setProxyProtocol((software.amazon.awssdk.core.Protocol) value); return true;
- case "accessKey": getOrCreateConfiguration((BedrockComponent) component).setAccessKey((java.lang.String) value); return true;
- case "secretKey": getOrCreateConfiguration((BedrockComponent) component).setSecretKey((java.lang.String) value); return true;
- case "sessionToken": getOrCreateConfiguration((BedrockComponent) component).setSessionToken((java.lang.String) value); return true;
- case "trustAllCertificates": getOrCreateConfiguration((BedrockComponent) component).setTrustAllCertificates((boolean) value); return true;
- case "useSessionCredentials": getOrCreateConfiguration((BedrockComponent) component).setUseSessionCredentials((boolean) value); return true;
+ case "configuration": ((BedrockAgentRuntimeComponent) component).setConfiguration((org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeConfiguration) value); return true;
+ case "knowledgeBaseId": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setKnowledgeBaseId((java.lang.String) value); return true;
+ case "lazyStartProducer": ((BedrockAgentRuntimeComponent) component).setLazyStartProducer((boolean) value); return true;
+ case "modelId": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setModelId((java.lang.String) value); return true;
+ case "operation": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setOperation((org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations) value); return true;
+ case "overrideEndpoint": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setOverrideEndpoint((boolean) value); return true;
+ case "pojoRequest": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setPojoRequest((boolean) value); return true;
+ case "profileCredentialsName": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setProfileCredentialsName((java.lang.String) value); return true;
+ case "region": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setRegion((java.lang.String) value); return true;
+ case "uriEndpointOverride": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setUriEndpointOverride((java.lang.String) value); return true;
+ case "useDefaultCredentialsProvider": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setUseDefaultCredentialsProvider((boolean) value); return true;
+ case "useProfileCredentialsProvider": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setUseProfileCredentialsProvider((boolean) value); return true;
+ case "autowiredEnabled": ((BedrockAgentRuntimeComponent) component).setAutowiredEnabled((boolean) value); return true;
+ case "bedrockAgentRuntimeClient": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setBedrockAgentRuntimeClient((software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient) value); return true;
+ case "healthCheckConsumerEnabled": ((BedrockAgentRuntimeComponent) component).setHealthCheckConsumerEnabled((boolean) value); return true;
+ case "healthCheckProducerEnabled": ((BedrockAgentRuntimeComponent) component).setHealthCheckProducerEnabled((boolean) value); return true;
+ case "proxyHost": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setProxyHost((java.lang.String) value); return true;
+ case "proxyPort": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setProxyPort((java.lang.Integer) value); return true;
+ case "proxyProtocol": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setProxyProtocol((software.amazon.awssdk.core.Protocol) value); return true;
+ case "accessKey": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setAccessKey((java.lang.String) value); return true;
+ case "secretKey": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setSecretKey((java.lang.String) value); return true;
+ case "sessionToken": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setSessionToken((java.lang.String) value); return true;
+ case "trustAllCertificates": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setTrustAllCertificates((boolean) value); return true;
+ case "useSessionCredentials": getOrCreateConfiguration((BedrockAgentRuntimeComponent) component).setUseSessionCredentials((boolean) value); return true;
default: return false;
}
}
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsBedrockComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsBedrockComponentBuilderFactory.java
index ca62aca5e66..0594a61fc2a 100644
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsBedrockComponentBuilderFactory.java
+++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsBedrockComponentBuilderFactory.java
@@ -20,7 +20,7 @@ import javax.annotation.processing.Generated;
import org.apache.camel.Component;
import org.apache.camel.builder.component.AbstractComponentBuilder;
import org.apache.camel.builder.component.ComponentBuilder;
-import org.apache.camel.component.aws2.bedrock.BedrockComponent;
+import org.apache.camel.component.aws2.bedrock.runtime.BedrockComponent;
/**
* Invoke Model of AWS Bedrock service.
@@ -54,7 +54,7 @@ public interface AwsBedrockComponentBuilderFactory {
* Component configuration.
*
* The option is a:
- * <code>org.apache.camel.component.aws2.bedrock.BedrockConfiguration</code> type.
+ * <code>org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration</code> type.
*
* Group: producer
*
@@ -62,7 +62,7 @@ public interface AwsBedrockComponentBuilderFactory {
* @return the dsl builder
*/
default AwsBedrockComponentBuilder configuration(
- org.apache.camel.component.aws2.bedrock.BedrockConfiguration configuration) {
+ org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration configuration) {
doSetProperty("configuration", configuration);
return this;
}
@@ -108,7 +108,7 @@ public interface AwsBedrockComponentBuilderFactory {
* The operation to perform.
*
* The option is a:
- * <code>org.apache.camel.component.aws2.bedrock.BedrockOperations</code> type.
+ * <code>org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations</code> type.
*
* Group: producer
*
@@ -116,7 +116,7 @@ public interface AwsBedrockComponentBuilderFactory {
* @return the dsl builder
*/
default AwsBedrockComponentBuilder operation(
- org.apache.camel.component.aws2.bedrock.BedrockOperations operation) {
+ org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations operation) {
doSetProperty("operation", operation);
return this;
}
@@ -445,10 +445,10 @@ public interface AwsBedrockComponentBuilderFactory {
protected BedrockComponent buildConcreteComponent() {
return new BedrockComponent();
}
- private org.apache.camel.component.aws2.bedrock.BedrockConfiguration getOrCreateConfiguration(
- org.apache.camel.component.aws2.bedrock.BedrockComponent component) {
+ private org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration getOrCreateConfiguration(
+ org.apache.camel.component.aws2.bedrock.runtime.BedrockComponent component) {
if (component.getConfiguration() == null) {
- component.setConfiguration(new org.apache.camel.component.aws2.bedrock.BedrockConfiguration());
+ component.setConfiguration(new org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration());
}
return component.getConfiguration();
}
@@ -458,10 +458,10 @@ public interface AwsBedrockComponentBuilderFactory {
String name,
Object value) {
switch (name) {
- case "configuration": ((BedrockComponent) component).setConfiguration((org.apache.camel.component.aws2.bedrock.BedrockConfiguration) value); return true;
+ case "configuration": ((BedrockComponent) component).setConfiguration((org.apache.camel.component.aws2.bedrock.runtime.BedrockConfiguration) value); return true;
case "lazyStartProducer": ((BedrockComponent) component).setLazyStartProducer((boolean) value); return true;
case "modelId": getOrCreateConfiguration((BedrockComponent) component).setModelId((java.lang.String) value); return true;
- case "operation": getOrCreateConfiguration((BedrockComponent) component).setOperation((org.apache.camel.component.aws2.bedrock.BedrockOperations) value); return true;
+ case "operation": getOrCreateConfiguration((BedrockComponent) component).setOperation((org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations) value); return true;
case "overrideEndpoint": getOrCreateConfiguration((BedrockComponent) component).setOverrideEndpoint((boolean) value); return true;
case "pojoRequest": getOrCreateConfiguration((BedrockComponent) component).setPojoRequest((boolean) value); return true;
case "profileCredentialsName": getOrCreateConfiguration((BedrockComponent) component).setProfileCredentialsName((java.lang.String) value); return true;
diff --git a/dsl/camel-componentdsl/src/generated/resources/metadata.json b/dsl/camel-componentdsl/src/generated/resources/metadata.json
index b49d9f0b998..fca9b65b9a5 100644
--- a/dsl/camel-componentdsl/src/generated/resources/metadata.json
+++ b/dsl/camel-componentdsl/src/generated/resources/metadata.json
@@ -736,6 +736,29 @@
"lenientProperties": false,
"remote": true
},
+ "AwsBedrockAgentRuntimeComponentBuilderFactory": {
+ "kind": "component",
+ "name": "aws-bedrock-agent-runtime",
+ "title": "AWS Bedrock Agent Runtime",
+ "description": "Invoke Model of AWS Bedrock Agent Runtime service.",
+ "deprecated": false,
+ "firstVersion": "4.5.0",
+ "label": "ai,cloud",
+ "javaType": "org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeComponent",
+ "supportLevel": "Preview",
+ "groupId": "org.apache.camel",
+ "artifactId": "camel-aws-bedrock",
+ "version": "4.5.0-SNAPSHOT",
+ "scheme": "aws-bedrock-agent-runtime",
+ "extendsScheme": "",
+ "syntax": "aws-bedrock-agent-runtime:label",
+ "async": false,
+ "api": false,
+ "consumerOnly": false,
+ "producerOnly": true,
+ "lenientProperties": false,
+ "remote": true
+ },
"AwsBedrockComponentBuilderFactory": {
"kind": "component",
"name": "aws-bedrock",
@@ -744,7 +767,7 @@
"deprecated": false,
"firstVersion": "4.5.0",
"label": "ai,cloud",
- "javaType": "org.apache.camel.component.aws2.bedrock.BedrockComponent",
+ "javaType": "org.apache.camel.component.aws2.bedrock.runtime.BedrockComponent",
"supportLevel": "Preview",
"groupId": "org.apache.camel",
"artifactId": "camel-aws-bedrock",
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
index 2b46d443dba..9742c598aed 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
@@ -41,6 +41,7 @@ public interface EndpointBuilderFactory
org.apache.camel.builder.endpoint.dsl.AvroEndpointBuilderFactory.AvroBuilders,
org.apache.camel.builder.endpoint.dsl.BeanEndpointBuilderFactory.BeanBuilders,
org.apache.camel.builder.endpoint.dsl.BeanValidatorEndpointBuilderFactory.BeanValidatorBuilders,
+ org.apache.camel.builder.endpoint.dsl.BedrockAgentRuntimeEndpointBuilderFactory.BedrockAgentRuntimeBuilders,
org.apache.camel.builder.endpoint.dsl.BedrockEndpointBuilderFactory.BedrockBuilders,
org.apache.camel.builder.endpoint.dsl.BlobEndpointBuilderFactory.BlobBuilders,
org.apache.camel.builder.endpoint.dsl.BonitaEndpointBuilderFactory.BonitaBuilders,
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
index 80ef3229130..f61ed1ad51c 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
@@ -38,6 +38,7 @@ public interface EndpointBuilders
org.apache.camel.builder.endpoint.dsl.AvroEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.BeanEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.BeanValidatorEndpointBuilderFactory,
+ org.apache.camel.builder.endpoint.dsl.BedrockAgentRuntimeEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.BedrockEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.BlobEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.BonitaEndpointBuilderFactory,
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 4bfdb4d8927..2421ed3dac1 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -1507,6 +1507,49 @@ public class StaticEndpointBuilders {
String path) {
return org.apache.camel.builder.endpoint.dsl.BedrockEndpointBuilderFactory.endpointBuilder(componentName, path);
}
+ /**
+ * AWS Bedrock Agent Runtime (camel-aws-bedrock)
+ * Invoke Model of AWS Bedrock Agent Runtime service.
+ *
+ * Category: ai,cloud
+ * Since: 4.5
+ * Maven coordinates: org.apache.camel:camel-aws-bedrock
+ *
+ * Syntax: <code>aws-bedrock-agent-runtime:label</code>
+ *
+ * Path parameter: label (required)
+ * Logical name
+ *
+ * @param path label
+ * @return the dsl builder
+ */
+ public static org.apache.camel.builder.endpoint.dsl.BedrockAgentRuntimeEndpointBuilderFactory.BedrockAgentRuntimeEndpointBuilder awsBedrockAgentRuntime(
+ String path) {
+ return org.apache.camel.builder.endpoint.dsl.BedrockAgentRuntimeEndpointBuilderFactory.endpointBuilder("aws-bedrock-agent-runtime", path);
+ }
+ /**
+ * AWS Bedrock Agent Runtime (camel-aws-bedrock)
+ * Invoke Model of AWS Bedrock Agent Runtime service.
+ *
+ * Category: ai,cloud
+ * Since: 4.5
+ * Maven coordinates: org.apache.camel:camel-aws-bedrock
+ *
+ * Syntax: <code>aws-bedrock-agent-runtime:label</code>
+ *
+ * Path parameter: label (required)
+ * Logical name
+ *
+ * @param componentName to use a custom component name for the endpoint
+ * instead of the default name
+ * @param path label
+ * @return the dsl builder
+ */
+ public static org.apache.camel.builder.endpoint.dsl.BedrockAgentRuntimeEndpointBuilderFactory.BedrockAgentRuntimeEndpointBuilder awsBedrockAgentRuntime(
+ String componentName,
+ String path) {
+ return org.apache.camel.builder.endpoint.dsl.BedrockAgentRuntimeEndpointBuilderFactory.endpointBuilder(componentName, path);
+ }
/**
* AWS Cloudtrail (camel-aws-cloudtrail)
* Consume events from Amazon Cloudtrail using AWS SDK version 2.x.
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BedrockEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BedrockAgentRuntimeEndpointBuilderFactory.java
similarity index 70%
copy from dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BedrockEndpointBuilderFactory.java
copy to dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BedrockAgentRuntimeEndpointBuilderFactory.java
index e70a15227a3..d196c0a3f10 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BedrockEndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BedrockAgentRuntimeEndpointBuilderFactory.java
@@ -26,20 +26,38 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Invoke Model of AWS Bedrock service.
+ * Invoke Model of AWS Bedrock Agent Runtime service.
*
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
-public interface BedrockEndpointBuilderFactory {
+public interface BedrockAgentRuntimeEndpointBuilderFactory {
/**
- * Builder for endpoint for the AWS Bedrock component.
+ * Builder for endpoint for the AWS Bedrock Agent Runtime component.
*/
- public interface BedrockEndpointBuilder extends EndpointProducerBuilder {
- default AdvancedBedrockEndpointBuilder advanced() {
- return (AdvancedBedrockEndpointBuilder) this;
+ public interface BedrockAgentRuntimeEndpointBuilder
+ extends
+ EndpointProducerBuilder {
+ default AdvancedBedrockAgentRuntimeEndpointBuilder advanced() {
+ return (AdvancedBedrockAgentRuntimeEndpointBuilder) this;
+ }
+ /**
+ * Define the Knowledge Base Id we are going to use.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Required: true
+ * Group: producer
+ *
+ * @param knowledgeBaseId the value to set
+ * @return the dsl builder
+ */
+ default BedrockAgentRuntimeEndpointBuilder knowledgeBaseId(
+ String knowledgeBaseId) {
+ doSetProperty("knowledgeBaseId", knowledgeBaseId);
+ return this;
}
/**
* Define the model Id we are going to use.
@@ -52,7 +70,7 @@ public interface BedrockEndpointBuilderFactory {
* @param modelId the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder modelId(String modelId) {
+ default BedrockAgentRuntimeEndpointBuilder modelId(String modelId) {
doSetProperty("modelId", modelId);
return this;
}
@@ -60,7 +78,7 @@ public interface BedrockEndpointBuilderFactory {
* The operation to perform.
*
* The option is a:
- * <code>org.apache.camel.component.aws2.bedrock.BedrockOperations</code> type.
+ * <code>org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations</code> type.
*
* Required: true
* Group: producer
@@ -68,8 +86,8 @@ public interface BedrockEndpointBuilderFactory {
* @param operation the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder operation(
- org.apache.camel.component.aws2.bedrock.BedrockOperations operation) {
+ default BedrockAgentRuntimeEndpointBuilder operation(
+ org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations operation) {
doSetProperty("operation", operation);
return this;
}
@@ -77,7 +95,7 @@ public interface BedrockEndpointBuilderFactory {
* The operation to perform.
*
* The option will be converted to a
- * <code>org.apache.camel.component.aws2.bedrock.BedrockOperations</code> type.
+ * <code>org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeOperations</code> type.
*
* Required: true
* Group: producer
@@ -85,7 +103,7 @@ public interface BedrockEndpointBuilderFactory {
* @param operation the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder operation(String operation) {
+ default BedrockAgentRuntimeEndpointBuilder operation(String operation) {
doSetProperty("operation", operation);
return this;
}
@@ -101,7 +119,8 @@ public interface BedrockEndpointBuilderFactory {
* @param overrideEndpoint the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder overrideEndpoint(boolean overrideEndpoint) {
+ default BedrockAgentRuntimeEndpointBuilder overrideEndpoint(
+ boolean overrideEndpoint) {
doSetProperty("overrideEndpoint", overrideEndpoint);
return this;
}
@@ -118,7 +137,8 @@ public interface BedrockEndpointBuilderFactory {
* @param overrideEndpoint the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder overrideEndpoint(String overrideEndpoint) {
+ default BedrockAgentRuntimeEndpointBuilder overrideEndpoint(
+ String overrideEndpoint) {
doSetProperty("overrideEndpoint", overrideEndpoint);
return this;
}
@@ -133,7 +153,8 @@ public interface BedrockEndpointBuilderFactory {
* @param pojoRequest the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder pojoRequest(boolean pojoRequest) {
+ default BedrockAgentRuntimeEndpointBuilder pojoRequest(
+ boolean pojoRequest) {
doSetProperty("pojoRequest", pojoRequest);
return this;
}
@@ -149,7 +170,8 @@ public interface BedrockEndpointBuilderFactory {
* @param pojoRequest the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder pojoRequest(String pojoRequest) {
+ default BedrockAgentRuntimeEndpointBuilder pojoRequest(
+ String pojoRequest) {
doSetProperty("pojoRequest", pojoRequest);
return this;
}
@@ -165,16 +187,16 @@ public interface BedrockEndpointBuilderFactory {
* @param profileCredentialsName the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder profileCredentialsName(
+ default BedrockAgentRuntimeEndpointBuilder profileCredentialsName(
String profileCredentialsName) {
doSetProperty("profileCredentialsName", profileCredentialsName);
return this;
}
/**
- * 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().
+ * The region in which Bedrock Agent Runtime 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().
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -183,7 +205,7 @@ public interface BedrockEndpointBuilderFactory {
* @param region the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder region(String region) {
+ default BedrockAgentRuntimeEndpointBuilder region(String region) {
doSetProperty("region", region);
return this;
}
@@ -198,7 +220,7 @@ public interface BedrockEndpointBuilderFactory {
* @param uriEndpointOverride the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder uriEndpointOverride(
+ default BedrockAgentRuntimeEndpointBuilder uriEndpointOverride(
String uriEndpointOverride) {
doSetProperty("uriEndpointOverride", uriEndpointOverride);
return this;
@@ -216,7 +238,7 @@ public interface BedrockEndpointBuilderFactory {
* @param useDefaultCredentialsProvider the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder useDefaultCredentialsProvider(
+ default BedrockAgentRuntimeEndpointBuilder useDefaultCredentialsProvider(
boolean useDefaultCredentialsProvider) {
doSetProperty("useDefaultCredentialsProvider", useDefaultCredentialsProvider);
return this;
@@ -235,7 +257,7 @@ public interface BedrockEndpointBuilderFactory {
* @param useDefaultCredentialsProvider the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder useDefaultCredentialsProvider(
+ default BedrockAgentRuntimeEndpointBuilder useDefaultCredentialsProvider(
String useDefaultCredentialsProvider) {
doSetProperty("useDefaultCredentialsProvider", useDefaultCredentialsProvider);
return this;
@@ -252,7 +274,7 @@ public interface BedrockEndpointBuilderFactory {
* @param useProfileCredentialsProvider the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder useProfileCredentialsProvider(
+ default BedrockAgentRuntimeEndpointBuilder useProfileCredentialsProvider(
boolean useProfileCredentialsProvider) {
doSetProperty("useProfileCredentialsProvider", useProfileCredentialsProvider);
return this;
@@ -270,7 +292,7 @@ public interface BedrockEndpointBuilderFactory {
* @param useProfileCredentialsProvider the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder useProfileCredentialsProvider(
+ default BedrockAgentRuntimeEndpointBuilder useProfileCredentialsProvider(
String useProfileCredentialsProvider) {
doSetProperty("useProfileCredentialsProvider", useProfileCredentialsProvider);
return this;
@@ -285,7 +307,7 @@ public interface BedrockEndpointBuilderFactory {
* @param proxyHost the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder proxyHost(String proxyHost) {
+ default BedrockAgentRuntimeEndpointBuilder proxyHost(String proxyHost) {
doSetProperty("proxyHost", proxyHost);
return this;
}
@@ -299,7 +321,7 @@ public interface BedrockEndpointBuilderFactory {
* @param proxyPort the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder proxyPort(Integer proxyPort) {
+ default BedrockAgentRuntimeEndpointBuilder proxyPort(Integer proxyPort) {
doSetProperty("proxyPort", proxyPort);
return this;
}
@@ -314,7 +336,7 @@ public interface BedrockEndpointBuilderFactory {
* @param proxyPort the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder proxyPort(String proxyPort) {
+ default BedrockAgentRuntimeEndpointBuilder proxyPort(String proxyPort) {
doSetProperty("proxyPort", proxyPort);
return this;
}
@@ -330,7 +352,7 @@ public interface BedrockEndpointBuilderFactory {
* @param proxyProtocol the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder proxyProtocol(
+ default BedrockAgentRuntimeEndpointBuilder proxyProtocol(
software.amazon.awssdk.core.Protocol proxyProtocol) {
doSetProperty("proxyProtocol", proxyProtocol);
return this;
@@ -347,7 +369,8 @@ public interface BedrockEndpointBuilderFactory {
* @param proxyProtocol the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder proxyProtocol(String proxyProtocol) {
+ default BedrockAgentRuntimeEndpointBuilder proxyProtocol(
+ String proxyProtocol) {
doSetProperty("proxyProtocol", proxyProtocol);
return this;
}
@@ -361,7 +384,7 @@ public interface BedrockEndpointBuilderFactory {
* @param accessKey the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder accessKey(String accessKey) {
+ default BedrockAgentRuntimeEndpointBuilder accessKey(String accessKey) {
doSetProperty("accessKey", accessKey);
return this;
}
@@ -375,7 +398,7 @@ public interface BedrockEndpointBuilderFactory {
* @param secretKey the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder secretKey(String secretKey) {
+ default BedrockAgentRuntimeEndpointBuilder secretKey(String secretKey) {
doSetProperty("secretKey", secretKey);
return this;
}
@@ -390,7 +413,8 @@ public interface BedrockEndpointBuilderFactory {
* @param sessionToken the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder sessionToken(String sessionToken) {
+ default BedrockAgentRuntimeEndpointBuilder sessionToken(
+ String sessionToken) {
doSetProperty("sessionToken", sessionToken);
return this;
}
@@ -406,7 +430,7 @@ public interface BedrockEndpointBuilderFactory {
* @param trustAllCertificates the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder trustAllCertificates(
+ default BedrockAgentRuntimeEndpointBuilder trustAllCertificates(
boolean trustAllCertificates) {
doSetProperty("trustAllCertificates", trustAllCertificates);
return this;
@@ -424,15 +448,15 @@ public interface BedrockEndpointBuilderFactory {
* @param trustAllCertificates the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder trustAllCertificates(
+ default BedrockAgentRuntimeEndpointBuilder trustAllCertificates(
String trustAllCertificates) {
doSetProperty("trustAllCertificates", trustAllCertificates);
return this;
}
/**
- * 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.
+ * Set whether the Bedrock Agent Runtime 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.
*
* The option is a: <code>boolean</code> type.
*
@@ -442,15 +466,15 @@ public interface BedrockEndpointBuilderFactory {
* @param useSessionCredentials the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder useSessionCredentials(
+ default BedrockAgentRuntimeEndpointBuilder useSessionCredentials(
boolean useSessionCredentials) {
doSetProperty("useSessionCredentials", useSessionCredentials);
return this;
}
/**
- * 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.
+ * Set whether the Bedrock Agent Runtime 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.
*
* The option will be converted to a <code>boolean</code>
* type.
@@ -461,7 +485,7 @@ public interface BedrockEndpointBuilderFactory {
* @param useSessionCredentials the value to set
* @return the dsl builder
*/
- default BedrockEndpointBuilder useSessionCredentials(
+ default BedrockAgentRuntimeEndpointBuilder useSessionCredentials(
String useSessionCredentials) {
doSetProperty("useSessionCredentials", useSessionCredentials);
return this;
@@ -469,13 +493,14 @@ public interface BedrockEndpointBuilderFactory {
}
/**
- * Advanced builder for endpoint for the AWS Bedrock component.
+ * Advanced builder for endpoint for the AWS Bedrock Agent Runtime
+ * component.
*/
- public interface AdvancedBedrockEndpointBuilder
+ public interface AdvancedBedrockAgentRuntimeEndpointBuilder
extends
EndpointProducerBuilder {
- default BedrockEndpointBuilder basic() {
- return (BedrockEndpointBuilder) this;
+ default BedrockAgentRuntimeEndpointBuilder basic() {
+ return (BedrockAgentRuntimeEndpointBuilder) this;
}
/**
* Whether the producer should be started lazy (on the first message).
@@ -496,7 +521,7 @@ public interface BedrockEndpointBuilderFactory {
* @param lazyStartProducer the value to set
* @return the dsl builder
*/
- default AdvancedBedrockEndpointBuilder lazyStartProducer(
+ default AdvancedBedrockAgentRuntimeEndpointBuilder lazyStartProducer(
boolean lazyStartProducer) {
doSetProperty("lazyStartProducer", lazyStartProducer);
return this;
@@ -521,49 +546,49 @@ public interface BedrockEndpointBuilderFactory {
* @param lazyStartProducer the value to set
* @return the dsl builder
*/
- default AdvancedBedrockEndpointBuilder lazyStartProducer(
+ default AdvancedBedrockAgentRuntimeEndpointBuilder lazyStartProducer(
String lazyStartProducer) {
doSetProperty("lazyStartProducer", lazyStartProducer);
return this;
}
/**
- * To use an existing configured AWS Bedrock Runtime client.
+ * To use an existing configured AWS Bedrock Agent Runtime client.
*
* The option is a:
- * <code>software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient</code> type.
+ * <code>software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient</code> type.
*
* Group: advanced
*
- * @param bedrockRuntimeClient the value to set
+ * @param bedrockAgentRuntimeClient the value to set
* @return the dsl builder
*/
- default AdvancedBedrockEndpointBuilder bedrockRuntimeClient(
- software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient bedrockRuntimeClient) {
- doSetProperty("bedrockRuntimeClient", bedrockRuntimeClient);
+ default AdvancedBedrockAgentRuntimeEndpointBuilder bedrockAgentRuntimeClient(
+ software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient bedrockAgentRuntimeClient) {
+ doSetProperty("bedrockAgentRuntimeClient", bedrockAgentRuntimeClient);
return this;
}
/**
- * To use an existing configured AWS Bedrock Runtime client.
+ * To use an existing configured AWS Bedrock Agent Runtime client.
*
* The option will be converted to a
- * <code>software.amazon.awssdk.services.bedrockruntime.BedrockRuntimeClient</code> type.
+ * <code>software.amazon.awssdk.services.bedrockagentruntime.BedrockAgentRuntimeClient</code> type.
*
* Group: advanced
*
- * @param bedrockRuntimeClient the value to set
+ * @param bedrockAgentRuntimeClient the value to set
* @return the dsl builder
*/
- default AdvancedBedrockEndpointBuilder bedrockRuntimeClient(
- String bedrockRuntimeClient) {
- doSetProperty("bedrockRuntimeClient", bedrockRuntimeClient);
+ default AdvancedBedrockAgentRuntimeEndpointBuilder bedrockAgentRuntimeClient(
+ String bedrockAgentRuntimeClient) {
+ doSetProperty("bedrockAgentRuntimeClient", bedrockAgentRuntimeClient);
return this;
}
}
- public interface BedrockBuilders {
+ public interface BedrockAgentRuntimeBuilders {
/**
- * AWS Bedrock (camel-aws-bedrock)
- * Invoke Model of AWS Bedrock service.
+ * AWS Bedrock Agent Runtime (camel-aws-bedrock)
+ * Invoke Model of AWS Bedrock Agent Runtime service.
*
* Category: ai,cloud
* Since: 4.5
@@ -571,18 +596,18 @@ public interface BedrockEndpointBuilderFactory {
*
* @return the dsl builder for the headers' name.
*/
- default BedrockHeaderNameBuilder awsBedrock() {
- return BedrockHeaderNameBuilder.INSTANCE;
+ default BedrockAgentRuntimeHeaderNameBuilder awsBedrockAgentRuntime() {
+ return BedrockAgentRuntimeHeaderNameBuilder.INSTANCE;
}
/**
- * AWS Bedrock (camel-aws-bedrock)
- * Invoke Model of AWS Bedrock service.
+ * AWS Bedrock Agent Runtime (camel-aws-bedrock)
+ * Invoke Model of AWS Bedrock Agent Runtime service.
*
* Category: ai,cloud
* Since: 4.5
* Maven coordinates: org.apache.camel:camel-aws-bedrock
*
- * Syntax: <code>aws-bedrock:label</code>
+ * Syntax: <code>aws-bedrock-agent-runtime:label</code>
*
* Path parameter: label (required)
* Logical name
@@ -590,18 +615,19 @@ public interface BedrockEndpointBuilderFactory {
* @param path label
* @return the dsl builder
*/
- default BedrockEndpointBuilder awsBedrock(String path) {
- return BedrockEndpointBuilderFactory.endpointBuilder("aws-bedrock", path);
+ default BedrockAgentRuntimeEndpointBuilder awsBedrockAgentRuntime(
+ String path) {
+ return BedrockAgentRuntimeEndpointBuilderFactory.endpointBuilder("aws-bedrock-agent-runtime", path);
}
/**
- * AWS Bedrock (camel-aws-bedrock)
- * Invoke Model of AWS Bedrock service.
+ * AWS Bedrock Agent Runtime (camel-aws-bedrock)
+ * Invoke Model of AWS Bedrock Agent Runtime service.
*
* Category: ai,cloud
* Since: 4.5
* Maven coordinates: org.apache.camel:camel-aws-bedrock
*
- * Syntax: <code>aws-bedrock:label</code>
+ * Syntax: <code>aws-bedrock-agent-runtime:label</code>
*
* Path parameter: label (required)
* Logical name
@@ -611,22 +637,22 @@ public interface BedrockEndpointBuilderFactory {
* @param path label
* @return the dsl builder
*/
- default BedrockEndpointBuilder awsBedrock(
+ default BedrockAgentRuntimeEndpointBuilder awsBedrockAgentRuntime(
String componentName,
String path) {
- return BedrockEndpointBuilderFactory.endpointBuilder(componentName, path);
+ return BedrockAgentRuntimeEndpointBuilderFactory.endpointBuilder(componentName, path);
}
}
/**
- * The builder of headers' name for the AWS Bedrock component.
+ * The builder of headers' name for the AWS Bedrock Agent Runtime component.
*/
- public static class BedrockHeaderNameBuilder {
+ public static class BedrockAgentRuntimeHeaderNameBuilder {
/**
* The internal instance of the builder used to access to all the
* methods representing the name of headers.
*/
- private static final BedrockHeaderNameBuilder INSTANCE = new BedrockHeaderNameBuilder();
+ private static final BedrockAgentRuntimeHeaderNameBuilder INSTANCE = new BedrockAgentRuntimeHeaderNameBuilder();
/**
* The operation we want to perform.
@@ -635,23 +661,11 @@ public interface BedrockEndpointBuilderFactory {
*
* Group: producer
*
- * @return the name of the header {@code AwsBedrockOperation}.
- */
- public String awsBedrockOperation() {
- return "CamelAwsBedrockOperation";
- }
-
- /**
- * The model content type.
- *
- * The option is a: {@code String} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code AwsBedrockContentType}.
+ * @return the name of the header {@code
+ * AwsBedrockAgentRuntimeOperation}.
*/
- public String awsBedrockContentType() {
- return "CamelAwsBedrockContentType";
+ public String awsBedrockAgentRuntimeOperation() {
+ return "CamelAwsBedrockAgentRuntimeOperation";
}
/**
@@ -667,14 +681,14 @@ public interface BedrockEndpointBuilderFactory {
return "CamelAwsBedrockAcceptContentType";
}
}
- static BedrockEndpointBuilder endpointBuilder(
+ static BedrockAgentRuntimeEndpointBuilder endpointBuilder(
String componentName,
String path) {
- class BedrockEndpointBuilderImpl extends AbstractEndpointBuilder implements BedrockEndpointBuilder, AdvancedBedrockEndpointBuilder {
- public BedrockEndpointBuilderImpl(String path) {
+ class BedrockAgentRuntimeEndpointBuilderImpl extends AbstractEndpointBuilder implements BedrockAgentRuntimeEndpointBuilder, AdvancedBedrockAgentRuntimeEndpointBuilder {
+ public BedrockAgentRuntimeEndpointBuilderImpl(String path) {
super(componentName, path);
}
}
- return new BedrockEndpointBuilderImpl(path);
+ return new BedrockAgentRuntimeEndpointBuilderImpl(path);
}
}
\ No newline at end of file
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BedrockEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BedrockEndpointBuilderFactory.java
index e70a15227a3..a4e475cff41 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BedrockEndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BedrockEndpointBuilderFactory.java
@@ -60,7 +60,7 @@ public interface BedrockEndpointBuilderFactory {
* The operation to perform.
*
* The option is a:
- * <code>org.apache.camel.component.aws2.bedrock.BedrockOperations</code> type.
+ * <code>org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations</code> type.
*
* Required: true
* Group: producer
@@ -69,7 +69,7 @@ public interface BedrockEndpointBuilderFactory {
* @return the dsl builder
*/
default BedrockEndpointBuilder operation(
- org.apache.camel.component.aws2.bedrock.BedrockOperations operation) {
+ org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations operation) {
doSetProperty("operation", operation);
return this;
}
@@ -77,7 +77,7 @@ public interface BedrockEndpointBuilderFactory {
* The operation to perform.
*
* The option will be converted to a
- * <code>org.apache.camel.component.aws2.bedrock.BedrockOperations</code> type.
+ * <code>org.apache.camel.component.aws2.bedrock.runtime.BedrockOperations</code> type.
*
* Required: true
* Group: producer
diff --git a/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties b/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
index b89ac864c1e..0a37af386a9 100644
--- a/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
+++ b/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
@@ -29,7 +29,8 @@ org.apache.camel.component.aws.cloudtrail.CloudtrailComponent=camel:aws-cloudtra
org.apache.camel.component.aws.config.AWSConfigComponent=camel:aws-config
org.apache.camel.component.aws.secretsmanager.SecretsManagerComponent=camel:aws-secrets-manager
org.apache.camel.component.aws2.athena.Athena2Component=camel:aws2-athena
-org.apache.camel.component.aws2.bedrock.BedrockComponent=camel:aws-bedrock
+org.apache.camel.component.aws2.bedrock.agentruntime.BedrockAgentRuntimeComponent=camel:aws-bedrock
+org.apache.camel.component.aws2.bedrock.runtime.BedrockComponent=camel:aws-bedrock
org.apache.camel.component.aws2.cw.Cw2Component=camel:aws2-cw
org.apache.camel.component.aws2.ddb.Ddb2Component=camel:aws2-ddb
org.apache.camel.component.aws2.ddbstream.Ddb2StreamComponent=camel:aws2-ddb
diff --git a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/AwsBedrockAgentRuntimeUriDsl.kt b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/AwsBedrockAgentRuntimeUriDsl.kt
new file mode 100644
index 00000000000..f6353ab085a
--- /dev/null
+++ b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/AwsBedrockAgentRuntimeUriDsl.kt
@@ -0,0 +1,159 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.kotlin.components
+
+import kotlin.Boolean
+import kotlin.Int
+import kotlin.String
+import kotlin.Unit
+import org.apache.camel.kotlin.CamelDslMarker
+import org.apache.camel.kotlin.UriDsl
+
+public fun UriDsl.`aws-bedrock-agent-runtime`(i: AwsBedrockAgentRuntimeUriDsl.() -> Unit) {
+ AwsBedrockAgentRuntimeUriDsl(this).apply(i)
+}
+
+@CamelDslMarker
+public class AwsBedrockAgentRuntimeUriDsl(
+ it: UriDsl,
+) {
+ private val it: UriDsl
+
+ init {
+ this.it = it
+ this.it.component("aws-bedrock-agent-runtime")
+ }
+
+ private var label: String = ""
+
+ public fun label(label: String) {
+ this.label = label
+ it.url("$label")
+ }
+
+ public fun knowledgeBaseId(knowledgeBaseId: String) {
+ it.property("knowledgeBaseId", knowledgeBaseId)
+ }
+
+ public fun modelId(modelId: String) {
+ it.property("modelId", modelId)
+ }
+
+ public fun operation(operation: String) {
+ it.property("operation", operation)
+ }
+
+ public fun overrideEndpoint(overrideEndpoint: String) {
+ it.property("overrideEndpoint", overrideEndpoint)
+ }
+
+ public fun overrideEndpoint(overrideEndpoint: Boolean) {
+ it.property("overrideEndpoint", overrideEndpoint.toString())
+ }
+
+ public fun pojoRequest(pojoRequest: String) {
+ it.property("pojoRequest", pojoRequest)
+ }
+
+ public fun pojoRequest(pojoRequest: Boolean) {
+ it.property("pojoRequest", pojoRequest.toString())
+ }
+
+ public fun profileCredentialsName(profileCredentialsName: String) {
+ it.property("profileCredentialsName", profileCredentialsName)
+ }
+
+ public fun region(region: String) {
+ it.property("region", region)
+ }
+
+ public fun uriEndpointOverride(uriEndpointOverride: String) {
+ it.property("uriEndpointOverride", uriEndpointOverride)
+ }
+
+ public fun useDefaultCredentialsProvider(useDefaultCredentialsProvider: String) {
+ it.property("useDefaultCredentialsProvider", useDefaultCredentialsProvider)
+ }
+
+ public fun useDefaultCredentialsProvider(useDefaultCredentialsProvider: Boolean) {
+ it.property("useDefaultCredentialsProvider", useDefaultCredentialsProvider.toString())
+ }
+
+ public fun useProfileCredentialsProvider(useProfileCredentialsProvider: String) {
+ it.property("useProfileCredentialsProvider", useProfileCredentialsProvider)
+ }
+
+ public fun useProfileCredentialsProvider(useProfileCredentialsProvider: Boolean) {
+ it.property("useProfileCredentialsProvider", useProfileCredentialsProvider.toString())
+ }
+
+ public fun lazyStartProducer(lazyStartProducer: String) {
+ it.property("lazyStartProducer", lazyStartProducer)
+ }
+
+ public fun lazyStartProducer(lazyStartProducer: Boolean) {
+ it.property("lazyStartProducer", lazyStartProducer.toString())
+ }
+
+ public fun bedrockAgentRuntimeClient(bedrockAgentRuntimeClient: String) {
+ it.property("bedrockAgentRuntimeClient", bedrockAgentRuntimeClient)
+ }
+
+ public fun proxyHost(proxyHost: String) {
+ it.property("proxyHost", proxyHost)
+ }
+
+ public fun proxyPort(proxyPort: String) {
+ it.property("proxyPort", proxyPort)
+ }
+
+ public fun proxyPort(proxyPort: Int) {
+ it.property("proxyPort", proxyPort.toString())
+ }
+
+ public fun proxyProtocol(proxyProtocol: String) {
+ it.property("proxyProtocol", proxyProtocol)
+ }
+
+ public fun accessKey(accessKey: String) {
+ it.property("accessKey", accessKey)
+ }
+
+ public fun secretKey(secretKey: String) {
+ it.property("secretKey", secretKey)
+ }
+
+ public fun sessionToken(sessionToken: String) {
+ it.property("sessionToken", sessionToken)
+ }
+
+ public fun trustAllCertificates(trustAllCertificates: String) {
+ it.property("trustAllCertificates", trustAllCertificates)
+ }
+
+ public fun trustAllCertificates(trustAllCertificates: Boolean) {
+ it.property("trustAllCertificates", trustAllCertificates.toString())
+ }
+
+ public fun useSessionCredentials(useSessionCredentials: String) {
+ it.property("useSessionCredentials", useSessionCredentials)
+ }
+
+ public fun useSessionCredentials(useSessionCredentials: Boolean) {
+ it.property("useSessionCredentials", useSessionCredentials.toString())
+ }
+}