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-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new ee206ec774 Create AWS bedrock extensions (#5987)
ee206ec774 is described below
commit ee206ec774cf08a27dd0a59a60867f7d3a2e5728
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Apr 10 14:22:27 2024 +0200
Create AWS bedrock extensions (#5987)
* Create AWS bedrock extensions
Signed-off-by: Andrea Cosentino <[email protected]>
* Update
integration-tests/aws2/src/main/java/org/apache/camel/quarkus/component/aws2/CamelRoute.java
Co-authored-by: Alexandre Gallice <[email protected]>
---------
Signed-off-by: Andrea Cosentino <[email protected]>
Co-authored-by: Alexandre Gallice <[email protected]>
---
catalog/pom.xml | 26 ++++++
.../components/aws-bedrock-agent-runtime.yml | 13 +++
.../ROOT/examples/components/aws-bedrock-agent.yml | 13 +++
.../ROOT/examples/components/aws-bedrock.yml | 13 +++
docs/modules/ROOT/nav.adoc | 1 +
.../pages/reference/extensions/aws-bedrock.adoc | 47 ++++++++++
extensions/aws-bedrock/deployment/pom.xml | 63 +++++++++++++
.../bedrock/deployment/AwsBedrockProcessor.java | 30 ++++++
extensions/aws-bedrock/pom.xml | 39 ++++++++
extensions/aws-bedrock/runtime/pom.xml | 101 +++++++++++++++++++++
.../main/resources/META-INF/quarkus-extension.yaml | 32 +++++++
extensions/pom.xml | 1 +
integration-tests/aws2/pom.xml | 17 ++++
.../camel/quarkus/component/aws2/CamelRoute.java | 4 +
poms/bom/pom.xml | 21 +++++
poms/bom/src/main/generated/flattened-full-pom.xml | 21 +++++
.../src/main/generated/flattened-reduced-pom.xml | 41 +++++++++
.../generated/flattened-reduced-verbose-pom.xml | 41 +++++++++
18 files changed, 524 insertions(+)
diff --git a/catalog/pom.xml b/catalog/pom.xml
index 03f622bf6c..46efd3a52c 100644
--- a/catalog/pom.xml
+++ b/catalog/pom.xml
@@ -201,6 +201,19 @@
</exclusion>
</exclusions>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-bedrock</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-aws-secrets-manager</artifactId>
@@ -2424,6 +2437,19 @@
</exclusion>
</exclusions>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-langchain-embeddings</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-language</artifactId>
diff --git
a/docs/modules/ROOT/examples/components/aws-bedrock-agent-runtime.yml
b/docs/modules/ROOT/examples/components/aws-bedrock-agent-runtime.yml
new file mode 100644
index 0000000000..5ff8d7dc36
--- /dev/null
+++ b/docs/modules/ROOT/examples/components/aws-bedrock-agent-runtime.yml
@@ -0,0 +1,13 @@
+# Do not edit directly!
+# This file was generated by
camel-quarkus-maven-plugin:update-extension-doc-page
+cqArtifactId: camel-quarkus-aws-bedrock
+cqArtifactIdBase: aws-bedrock
+cqNativeSupported: true
+cqStatus: Stable
+cqDeprecated: false
+cqJvmSince: 3.10.0
+cqNativeSince: 3.10.0
+cqCamelPartName: aws-bedrock-agent-runtime
+cqCamelPartTitle: AWS Bedrock Agent Runtime
+cqCamelPartDescription: Invoke Model of AWS Bedrock Agent Runtime service.
+cqExtensionPageTitle: AWS Bedrock
diff --git a/docs/modules/ROOT/examples/components/aws-bedrock-agent.yml
b/docs/modules/ROOT/examples/components/aws-bedrock-agent.yml
new file mode 100644
index 0000000000..d49d060d79
--- /dev/null
+++ b/docs/modules/ROOT/examples/components/aws-bedrock-agent.yml
@@ -0,0 +1,13 @@
+# Do not edit directly!
+# This file was generated by
camel-quarkus-maven-plugin:update-extension-doc-page
+cqArtifactId: camel-quarkus-aws-bedrock
+cqArtifactIdBase: aws-bedrock
+cqNativeSupported: true
+cqStatus: Stable
+cqDeprecated: false
+cqJvmSince: 3.10.0
+cqNativeSince: 3.10.0
+cqCamelPartName: aws-bedrock-agent
+cqCamelPartTitle: AWS Bedrock Agent
+cqCamelPartDescription: Operate on AWS Bedrock through its Agent.
+cqExtensionPageTitle: AWS Bedrock
diff --git a/docs/modules/ROOT/examples/components/aws-bedrock.yml
b/docs/modules/ROOT/examples/components/aws-bedrock.yml
new file mode 100644
index 0000000000..730af31587
--- /dev/null
+++ b/docs/modules/ROOT/examples/components/aws-bedrock.yml
@@ -0,0 +1,13 @@
+# Do not edit directly!
+# This file was generated by
camel-quarkus-maven-plugin:update-extension-doc-page
+cqArtifactId: camel-quarkus-aws-bedrock
+cqArtifactIdBase: aws-bedrock
+cqNativeSupported: true
+cqStatus: Stable
+cqDeprecated: false
+cqJvmSince: 3.10.0
+cqNativeSince: 3.10.0
+cqCamelPartName: aws-bedrock
+cqCamelPartTitle: AWS Bedrock
+cqCamelPartDescription: Invoke Model of AWS Bedrock service.
+cqExtensionPageTitle: AWS Bedrock
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 45d9ebb336..a27ee26006 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -48,6 +48,7 @@
*** xref:reference/extensions/aws2-sns.adoc[AWS 2 Simple Notification System
(SNS)]
*** xref:reference/extensions/aws2-sqs.adoc[AWS 2 Simple Queue Service (SQS)]
*** xref:reference/extensions/aws2-translate.adoc[AWS 2 Translate]
+*** xref:reference/extensions/aws-bedrock.adoc[AWS Bedrock]
*** xref:reference/extensions/aws-secrets-manager.adoc[AWS Secrets Manager]
*** xref:reference/extensions/aws-xray.adoc[AWS XRay]
*** xref:reference/extensions/activemq.adoc[ActiveMQ]
diff --git a/docs/modules/ROOT/pages/reference/extensions/aws-bedrock.adoc
b/docs/modules/ROOT/pages/reference/extensions/aws-bedrock.adoc
new file mode 100644
index 0000000000..461073fdc9
--- /dev/null
+++ b/docs/modules/ROOT/pages/reference/extensions/aws-bedrock.adoc
@@ -0,0 +1,47 @@
+// Do not edit directly!
+// This file was generated by
camel-quarkus-maven-plugin:update-extension-doc-page
+[id="extensions-aws-bedrock"]
+= AWS Bedrock
+:linkattrs:
+:cq-artifact-id: camel-quarkus-aws-bedrock
+:cq-native-supported: true
+:cq-status: Stable
+:cq-status-deprecation: Stable
+:cq-description: Invoke Model of AWS Bedrock service.
+:cq-deprecated: false
+:cq-jvm-since: 3.10.0
+:cq-native-since: 3.10.0
+
+ifeval::[{doc-show-badges} == true]
+[.badges]
+[.badge-key]##JVM since##[.badge-supported]##3.10.0## [.badge-key]##Native
since##[.badge-supported]##3.10.0##
+endif::[]
+
+Invoke Model of AWS Bedrock service.
+
+[id="extensions-aws-bedrock-whats-inside"]
+== What's inside
+
+* xref:{cq-camel-components}::aws-bedrock-component.adoc[AWS Bedrock
component], URI syntax: `aws-bedrock:label`
+* xref:{cq-camel-components}::aws-bedrock-agent-component.adoc[AWS Bedrock
Agent component], URI syntax: `aws-bedrock-agent:label`
+* xref:{cq-camel-components}::aws-bedrock-agent-runtime-component.adoc[AWS
Bedrock Agent Runtime component], URI syntax: `aws-bedrock-agent-runtime:label`
+
+Please refer to the above links for usage and configuration details.
+
+[id="extensions-aws-bedrock-maven-coordinates"]
+== Maven coordinates
+
+https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-aws-bedrock[Create
a new project with this extension on {link-quarkus-code-generator},
window="_blank"]
+
+Or add the coordinates to your existing project:
+
+[source,xml]
+----
+<dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-bedrock</artifactId>
+</dependency>
+----
+ifeval::[{doc-show-user-guide-link} == true]
+Check the xref:user-guide/index.adoc[User guide] for more information about
writing Camel Quarkus applications.
+endif::[]
diff --git a/extensions/aws-bedrock/deployment/pom.xml
b/extensions/aws-bedrock/deployment/pom.xml
new file mode 100644
index 0000000000..e363dba28c
--- /dev/null
+++ b/extensions/aws-bedrock/deployment/pom.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-bedrock-parent</artifactId>
+ <version>3.10.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>camel-quarkus-aws-bedrock-deployment</artifactId>
+ <name>Camel Quarkus :: AWS Bedrock :: Deployment</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-core-deployment</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-bedrock</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <annotationProcessorPaths>
+ <path>
+ <groupId>io.quarkus</groupId>
+
<artifactId>quarkus-extension-processor</artifactId>
+ <version>${quarkus.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git
a/extensions/aws-bedrock/deployment/src/main/java/org/apache/camel/quarkus/component/aws/bedrock/deployment/AwsBedrockProcessor.java
b/extensions/aws-bedrock/deployment/src/main/java/org/apache/camel/quarkus/component/aws/bedrock/deployment/AwsBedrockProcessor.java
new file mode 100644
index 0000000000..1375d06b75
--- /dev/null
+++
b/extensions/aws-bedrock/deployment/src/main/java/org/apache/camel/quarkus/component/aws/bedrock/deployment/AwsBedrockProcessor.java
@@ -0,0 +1,30 @@
+/*
+ * 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.quarkus.component.aws.bedrock.deployment;
+
+import io.quarkus.deployment.annotations.BuildStep;
+import io.quarkus.deployment.builditem.FeatureBuildItem;
+
+class AwsBedrockProcessor {
+
+ private static final String FEATURE = "camel-aws-bedrock";
+
+ @BuildStep
+ FeatureBuildItem feature() {
+ return new FeatureBuildItem(FEATURE);
+ }
+}
diff --git a/extensions/aws-bedrock/pom.xml b/extensions/aws-bedrock/pom.xml
new file mode 100644
index 0000000000..661f43dc4b
--- /dev/null
+++ b/extensions/aws-bedrock/pom.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-extensions</artifactId>
+ <version>3.10.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>camel-quarkus-aws-bedrock-parent</artifactId>
+ <name>Camel Quarkus :: AWS Bedrock</name>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>deployment</module>
+ <module>runtime</module>
+ </modules>
+</project>
diff --git a/extensions/aws-bedrock/runtime/pom.xml
b/extensions/aws-bedrock/runtime/pom.xml
new file mode 100644
index 0000000000..e35db8cc06
--- /dev/null
+++ b/extensions/aws-bedrock/runtime/pom.xml
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-bedrock-parent</artifactId>
+ <version>3.10.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>camel-quarkus-aws-bedrock</artifactId>
+ <name>Camel Quarkus :: AWS Bedrock :: Runtime</name>
+ <description>Invoke Model of AWS Bedrock service.</description>
+
+ <properties>
+ <camel.quarkus.jvmSince>3.10.0</camel.quarkus.jvmSince>
+ <camel.quarkus.nativeSince>3.10.0</camel.quarkus.nativeSince>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-aws-bedrock</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-extension-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <annotationProcessorPaths>
+ <path>
+ <groupId>io.quarkus</groupId>
+
<artifactId>quarkus-extension-processor</artifactId>
+ <version>${quarkus.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+
+ <profiles>
+ <profile>
+ <id>full</id>
+ <activation>
+ <property>
+ <name>!quickly</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>update-extension-doc-page</id>
+ <goals>
+ <goal>update-extension-doc-page</goal>
+ </goals>
+ <phase>process-classes</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
diff --git
a/extensions/aws-bedrock/runtime/src/main/resources/META-INF/quarkus-extension.yaml
b/extensions/aws-bedrock/runtime/src/main/resources/META-INF/quarkus-extension.yaml
new file mode 100644
index 0000000000..3f6966c892
--- /dev/null
+++
b/extensions/aws-bedrock/runtime/src/main/resources/META-INF/quarkus-extension.yaml
@@ -0,0 +1,32 @@
+#
+# 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.
+#
+
+# This is a generated file. Do not edit directly!
+# To re-generate, run the following command from the top level directory:
+#
+# mvn -N cq:update-quarkus-metadata
+#
+---
+name: "Camel AWS Bedrock"
+description: "Invoke Model of AWS Bedrock service"
+metadata:
+ icon-url:
"https://raw.githubusercontent.com/apache/camel-website/main/antora-ui-camel/src/img/logo-d.svg"
+ guide:
"https://camel.apache.org/camel-quarkus/latest/reference/extensions/aws-bedrock.html"
+ categories:
+ - "integration"
+ status:
+ - "stable"
diff --git a/extensions/pom.xml b/extensions/pom.xml
index c107834b6a..d3378acef9 100644
--- a/extensions/pom.xml
+++ b/extensions/pom.xml
@@ -42,6 +42,7 @@
<module>attachments</module>
<module>avro</module>
<!--<module>avro-rpc</module>
https://github.com/apache/camel-quarkus/issues/4462 -->
+ <module>aws-bedrock</module>
<module>aws2-athena</module>
<module>aws2-cw</module>
<module>aws2-ddb</module>
diff --git a/integration-tests/aws2/pom.xml b/integration-tests/aws2/pom.xml
index d9c273225b..f0260408a9 100644
--- a/integration-tests/aws2/pom.xml
+++ b/integration-tests/aws2/pom.xml
@@ -31,6 +31,10 @@
<description>The camel integration tests</description>
<dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-bedrock</artifactId>
+ </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-aws2-athena</artifactId>
@@ -134,6 +138,19 @@
</activation>
<dependencies>
<!-- The following dependencies guarantee that this module is
built after them. You can update them by running `mvn process-resources
-Pformat -N` from the source tree root directory -->
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+
<artifactId>camel-quarkus-aws-bedrock-deployment</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-aws2-athena-deployment</artifactId>
diff --git
a/integration-tests/aws2/src/main/java/org/apache/camel/quarkus/component/aws2/CamelRoute.java
b/integration-tests/aws2/src/main/java/org/apache/camel/quarkus/component/aws2/CamelRoute.java
index 95fa16b1df..96298cc8ed 100644
---
a/integration-tests/aws2/src/main/java/org/apache/camel/quarkus/component/aws2/CamelRoute.java
+++
b/integration-tests/aws2/src/main/java/org/apache/camel/quarkus/component/aws2/CamelRoute.java
@@ -75,6 +75,10 @@ public class CamelRoute extends RouteBuilder {
.to("aws2-sts://myaccount?operation=getSessionToken")
.to("log:sf?showAll=true");
+ from("timer:quarkus-bedrock?repeatCount=1")
+ .to("aws-bedrock://myaccount?operation=invokeTextModel")
+ .to("log:sf?showAll=true");
+
from("timer:quarkus-translate?repeatCount=1")
.setHeader(Translate2Constants.SOURCE_LANGUAGE,
constant(Translate2LanguageEnum.ITALIAN))
.setHeader(Translate2Constants.TARGET_LANGUAGE,
constant(Translate2LanguageEnum.GERMAN))
diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml
index d86420092d..7b58c4563d 100644
--- a/poms/bom/pom.xml
+++ b/poms/bom/pom.xml
@@ -189,6 +189,17 @@
<artifactId>camel-avro-rpc-spi</artifactId>
<version>${camel.version}</version>
</dependency>-->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-aws-bedrock</artifactId>
+ <version>${camel.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-aws-secrets-manager</artifactId>
@@ -2883,6 +2894,16 @@
<artifactId>camel-quarkus-avro-rpc-deployment</artifactId>
<version>${camel-quarkus.version}</version>
</dependency>-->
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-bedrock</artifactId>
+ <version>${camel-quarkus.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-bedrock-deployment</artifactId>
+ <version>${camel-quarkus.version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-aws-secrets-manager</artifactId>
diff --git a/poms/bom/src/main/generated/flattened-full-pom.xml
b/poms/bom/src/main/generated/flattened-full-pom.xml
index feb837715d..dd84e6b2ba 100644
--- a/poms/bom/src/main/generated/flattened-full-pom.xml
+++ b/poms/bom/src/main/generated/flattened-full-pom.xml
@@ -127,6 +127,17 @@
<artifactId>camel-avro</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<version>4.5.0</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>camel-aws-bedrock</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>4.5.0</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>commons-logging</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </exclusion>
+ </exclusions>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>camel-aws-secrets-manager</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -2808,6 +2819,16 @@
<artifactId>camel-quarkus-avro-deployment</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<version>3.10.0-SNAPSHOT</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
</dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>camel-quarkus-aws-bedrock</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>3.10.0-SNAPSHOT</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>camel-quarkus-aws-bedrock-deployment</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>3.10.0-SNAPSHOT</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>camel-quarkus-aws-secrets-manager</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
diff --git a/poms/bom/src/main/generated/flattened-reduced-pom.xml
b/poms/bom/src/main/generated/flattened-reduced-pom.xml
index 7b0c702820..d14d1e54e3 100644
--- a/poms/bom/src/main/generated/flattened-reduced-pom.xml
+++ b/poms/bom/src/main/generated/flattened-reduced-pom.xml
@@ -127,6 +127,17 @@
<artifactId>camel-avro</artifactId>
<version>4.5.0</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-aws-bedrock</artifactId>
+ <version>4.5.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-aws-secrets-manager</artifactId>
@@ -2808,6 +2819,16 @@
<artifactId>camel-quarkus-avro-deployment</artifactId>
<version>3.10.0-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-bedrock</artifactId>
+ <version>3.10.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-bedrock-deployment</artifactId>
+ <version>3.10.0-SNAPSHOT</version>
+ </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-aws-secrets-manager</artifactId>
@@ -7683,6 +7704,26 @@
<artifactId>metrics-spi</artifactId>
<version>2.25.15</version>
</dependency>
+ <dependency>
+ <groupId>software.amazon.awssdk</groupId>
+ <artifactId>bedrockruntime</artifactId>
+ <version>2.25.15</version>
+ </dependency>
+ <dependency>
+ <groupId>software.amazon.awssdk</groupId>
+ <artifactId>bedrock</artifactId>
+ <version>2.25.15</version>
+ </dependency>
+ <dependency>
+ <groupId>software.amazon.awssdk</groupId>
+ <artifactId>bedrockagentruntime</artifactId>
+ <version>2.25.15</version>
+ </dependency>
+ <dependency>
+ <groupId>software.amazon.awssdk</groupId>
+ <artifactId>bedrockagent</artifactId>
+ <version>2.25.15</version>
+ </dependency>
<dependency>
<groupId>org.apache.qpid</groupId>
<artifactId>qpid-jms-client</artifactId>
diff --git a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
index 714c62a850..387486f3a5 100644
--- a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
+++ b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
@@ -127,6 +127,17 @@
<artifactId>camel-avro</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<version>4.5.0</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>camel-aws-bedrock</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>4.5.0</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>commons-logging</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </exclusion>
+ </exclusions>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>camel-aws-secrets-manager</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -2808,6 +2819,16 @@
<artifactId>camel-quarkus-avro-deployment</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<version>3.10.0-SNAPSHOT</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
</dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>camel-quarkus-aws-bedrock</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>3.10.0-SNAPSHOT</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <artifactId>camel-quarkus-aws-bedrock-deployment</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>3.10.0-SNAPSHOT</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>camel-quarkus-aws-secrets-manager</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7683,6 +7704,26 @@
<artifactId>metrics-spi</artifactId><!--
software.amazon.awssdk:bom:2.25.15 -->
<version>2.25.15</version><!-- software.amazon.awssdk:bom:2.25.15 -->
</dependency>
+ <dependency>
+ <groupId>software.amazon.awssdk</groupId><!--
software.amazon.awssdk:bom:2.25.15 -->
+ <artifactId>bedrockruntime</artifactId><!--
software.amazon.awssdk:bom:2.25.15 -->
+ <version>2.25.15</version><!-- software.amazon.awssdk:bom:2.25.15 -->
+ </dependency>
+ <dependency>
+ <groupId>software.amazon.awssdk</groupId><!--
software.amazon.awssdk:bom:2.25.15 -->
+ <artifactId>bedrock</artifactId><!--
software.amazon.awssdk:bom:2.25.15 -->
+ <version>2.25.15</version><!-- software.amazon.awssdk:bom:2.25.15 -->
+ </dependency>
+ <dependency>
+ <groupId>software.amazon.awssdk</groupId><!--
software.amazon.awssdk:bom:2.25.15 -->
+ <artifactId>bedrockagentruntime</artifactId><!--
software.amazon.awssdk:bom:2.25.15 -->
+ <version>2.25.15</version><!-- software.amazon.awssdk:bom:2.25.15 -->
+ </dependency>
+ <dependency>
+ <groupId>software.amazon.awssdk</groupId><!--
software.amazon.awssdk:bom:2.25.15 -->
+ <artifactId>bedrockagent</artifactId><!--
software.amazon.awssdk:bom:2.25.15 -->
+ <version>2.25.15</version><!-- software.amazon.awssdk:bom:2.25.15 -->
+ </dependency>
<dependency>
<groupId>org.apache.qpid</groupId><!--
org.amqphub.quarkus:quarkus-qpid-jms-bom:2.6.1 -->
<artifactId>qpid-jms-client</artifactId><!--
org.amqphub.quarkus:quarkus-qpid-jms-bom:2.6.1 -->