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 2023/05/23 12:25:20 UTC
[camel-kamelets] 05/10: Bean: Use properties instead of property with key and value - AWS Redshift Source
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch 1475
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 480cb0dee38f0a2197caaed66d8dc032ebd86678
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue May 23 13:56:51 2023 +0200
Bean: Use properties instead of property with key and value - AWS Redshift Source
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/aws-redshift-source.kamelet.yaml | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/kamelets/aws-redshift-source.kamelet.yaml b/kamelets/aws-redshift-source.kamelet.yaml
index 3be9fa3f..d31ff4d0 100644
--- a/kamelets/aws-redshift-source.kamelet.yaml
+++ b/kamelets/aws-redshift-source.kamelet.yaml
@@ -96,15 +96,11 @@ spec:
beans:
- name: dsBean
type: "#class:org.apache.commons.dbcp2.BasicDataSource"
- property:
- - key: username
- value: '{{username}}'
- - key: password
- value: '{{password}}'
- - key: url
- value: 'jdbc:redshift://{{serverName}}:{{serverPort}}/{{databaseName}}'
- - key: driverClassName
- value: 'com.amazon.redshift.jdbc.Driver'
+ properties:
+ username: '{{username}}'
+ password: '{{password}}'
+ url: 'jdbc:redshift://{{serverName}}:{{serverPort}}/{{databaseName}}'
+ driverClassName: 'com.amazon.redshift.jdbc.Driver'
from:
uri: "sql:{{query}}"
parameters: