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/11/21 12:19:52 UTC
(camel-kamelets) branch timestream created (now 0ee174d7)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch timestream
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
at 0ee174d7 Create Kamelets for AWS Timestream
This branch includes the following new commits:
new f2068a2d Create Kamelets for AWS Timestream
new 4e332dbb Create Kamelets for AWS Timestream
new 760db3c8 Create Kamelets for AWS Timestream
new 0ee174d7 Create Kamelets for AWS Timestream
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(camel-kamelets) 02/04: Create Kamelets for AWS Timestream
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch timestream
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 4e332dbbde69106ec64133c0ee62d082ef08883e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Nov 21 13:18:26 2023 +0100
Create Kamelets for AWS Timestream
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
index 35de6f43..06510575 100644
--- a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
+++ b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
@@ -103,7 +103,7 @@ public class KameletsCatalogTest {
void testGetKameletsByNamespace() throws Exception {
List<Kamelet> c = catalog.getKameletsByNamespace("AWS");
assertFalse(c.isEmpty());
- assertEquals(25, c.size());
+ assertEquals(26, c.size());
c = catalog.getKameletsByGroups("Not-existing-group");
assertTrue(c.isEmpty());
}
(camel-kamelets) 03/04: Create Kamelets for AWS Timestream
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch timestream
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 760db3c8b19e41a847bb8d26c88aba25f2d5776e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Nov 21 13:18:56 2023 +0100
Create Kamelets for AWS Timestream
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../aws-timestream-query-sink.kamelet.yaml | 112 +++++++++++++++++++++
1 file changed, 112 insertions(+)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-timestream-query-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-timestream-query-sink.kamelet.yaml
new file mode 100644
index 00000000..13812b7e
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-timestream-query-sink.kamelet.yaml
@@ -0,0 +1,112 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+ name: aws-timestream-query-sink
+ annotations:
+ camel.apache.org/kamelet.support.level: "Preview"
+ camel.apache.org/catalog.version: "4.3.0-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjU2cHgiIGhlaWdodD0iMjU2cHgiIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICAgIDx0aXRsZT5BV1MgVGltZXN0cmVhbTwvdGl0bGU+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjAlIiB5MT0iMTAwJSIgeDI9IjEwMCUiIHkyPSIwJS [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "AWS Timestream"
+ camel.apache.org/kamelet.namespace: "AWS"
+ labels:
+ camel.apache.org/kamelet.type: sink
+spec:
+ definition:
+ title: AWS Timestream Query Sink
+ description: |-
+ Query an AWS Timestream Database
+
+ Access Key/Secret Key are the basic method for authenticating to the AWS Timestream Service. These parameters are optional because the Kamelet provides the 'useDefaultCredentialsProvider'.
+
+ When using a default Credentials Provider the Timestream client will load the credentials through this provider and won't use the static credential. This is reason for not having the access key and secret key as mandatory parameter for this Kamelet.
+
+ The Kamelet expects the following headers to be set:
+
+ - `query` / `ce-query`: as a Timestream Query
+ required:
+ - region
+ type: object
+ properties:
+ accessKey:
+ title: Access Key
+ description: The access key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:camel:group:credentials
+ secretKey:
+ title: Secret Key
+ description: The secret key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:camel:group:credentials
+ region:
+ title: AWS Region
+ description: The AWS region to access.
+ type: string
+ enum: ["ap-south-1", "eu-south-1", "us-gov-east-1", "me-central-1", "ca-central-1", "eu-central-1", "us-iso-west-1", "us-west-1", "us-west-2", "af-south-1", "eu-north-1", "eu-west-3", "eu-west-2", "eu-west-1", "ap-northeast-3", "ap-northeast-2", "ap-northeast-1", "me-south-1", "sa-east-1", "ap-east-1", "cn-north-1", "us-gov-west-1", "ap-southeast-1", "ap-southeast-2", "us-iso-east-1", "ap-southeast-3", "us-east-1", "us-east-2", "cn-northwest-1", "us-isob-east-1", "aws-global", "a [...]
+ useDefaultCredentialsProvider:
+ title: Default Credentials Provider
+ description: If true, the CloudWatch client loads credentials through a default credentials provider. If false, it uses the basic authentication method (access key and secret key).
+ type: boolean
+ x-descriptors:
+ default: false
+ uriEndpointOverride:
+ title: Overwrite Endpoint URI
+ description: The overriding endpoint URI. To use this option, you must also select the `overrideEndpoint` option.
+ type: string
+ overrideEndpoint:
+ title: Endpoint Overwrite
+ description: Select this option to override the endpoint URI. To use this option, you must also provide a URI for the `uriEndpointOverride` option.
+ type: boolean
+ x-descriptors:
+ default: false
+ dependencies:
+ - "camel:core"
+ - "camel:aws2-timestream"
+ - "camel:kamelet"
+ template:
+ from:
+ uri: kamelet:source
+ steps:
+ - choice:
+ when:
+ - simple: "${header[query]}"
+ steps:
+ - setHeader:
+ name: CamelAwsTimestreamQueryString
+ simple: "${header[query]}"
+ - simple: "${header[ce-query]}"
+ steps:
+ - setHeader:
+ name: CamelAwsTimestreamQueryString
+ simple: "${header[ce-query]}"
+ - to:
+ uri: "aws2-timestream:query"
+ parameters:
+ accessKey: "{{?accessKey}}"
+ secretKey: "{{?secretKey}}"
+ region: "{{region}}"
+ operation: "query"
+ useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
+ uriEndpointOverride: "{{?uriEndpointOverride}}"
+ overrideEndpoint: "{{overrideEndpoint}}"
(camel-kamelets) 01/04: Create Kamelets for AWS Timestream
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch timestream
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit f2068a2d475c92a8dfdbe24c09a014c709483ae2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Nov 21 13:17:31 2023 +0100
Create Kamelets for AWS Timestream
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/aws-timestream-query-sink.kamelet.yaml | 112 ++++++++++++++++++++++++
1 file changed, 112 insertions(+)
diff --git a/kamelets/aws-timestream-query-sink.kamelet.yaml b/kamelets/aws-timestream-query-sink.kamelet.yaml
new file mode 100644
index 00000000..13812b7e
--- /dev/null
+++ b/kamelets/aws-timestream-query-sink.kamelet.yaml
@@ -0,0 +1,112 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+ name: aws-timestream-query-sink
+ annotations:
+ camel.apache.org/kamelet.support.level: "Preview"
+ camel.apache.org/catalog.version: "4.3.0-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjU2cHgiIGhlaWdodD0iMjU2cHgiIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICAgIDx0aXRsZT5BV1MgVGltZXN0cmVhbTwvdGl0bGU+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9IjAlIiB5MT0iMTAwJSIgeDI9IjEwMCUiIHkyPSIwJS [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "AWS Timestream"
+ camel.apache.org/kamelet.namespace: "AWS"
+ labels:
+ camel.apache.org/kamelet.type: sink
+spec:
+ definition:
+ title: AWS Timestream Query Sink
+ description: |-
+ Query an AWS Timestream Database
+
+ Access Key/Secret Key are the basic method for authenticating to the AWS Timestream Service. These parameters are optional because the Kamelet provides the 'useDefaultCredentialsProvider'.
+
+ When using a default Credentials Provider the Timestream client will load the credentials through this provider and won't use the static credential. This is reason for not having the access key and secret key as mandatory parameter for this Kamelet.
+
+ The Kamelet expects the following headers to be set:
+
+ - `query` / `ce-query`: as a Timestream Query
+ required:
+ - region
+ type: object
+ properties:
+ accessKey:
+ title: Access Key
+ description: The access key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:camel:group:credentials
+ secretKey:
+ title: Secret Key
+ description: The secret key obtained from AWS.
+ type: string
+ format: password
+ x-descriptors:
+ - urn:camel:group:credentials
+ region:
+ title: AWS Region
+ description: The AWS region to access.
+ type: string
+ enum: ["ap-south-1", "eu-south-1", "us-gov-east-1", "me-central-1", "ca-central-1", "eu-central-1", "us-iso-west-1", "us-west-1", "us-west-2", "af-south-1", "eu-north-1", "eu-west-3", "eu-west-2", "eu-west-1", "ap-northeast-3", "ap-northeast-2", "ap-northeast-1", "me-south-1", "sa-east-1", "ap-east-1", "cn-north-1", "us-gov-west-1", "ap-southeast-1", "ap-southeast-2", "us-iso-east-1", "ap-southeast-3", "us-east-1", "us-east-2", "cn-northwest-1", "us-isob-east-1", "aws-global", "a [...]
+ useDefaultCredentialsProvider:
+ title: Default Credentials Provider
+ description: If true, the CloudWatch client loads credentials through a default credentials provider. If false, it uses the basic authentication method (access key and secret key).
+ type: boolean
+ x-descriptors:
+ default: false
+ uriEndpointOverride:
+ title: Overwrite Endpoint URI
+ description: The overriding endpoint URI. To use this option, you must also select the `overrideEndpoint` option.
+ type: string
+ overrideEndpoint:
+ title: Endpoint Overwrite
+ description: Select this option to override the endpoint URI. To use this option, you must also provide a URI for the `uriEndpointOverride` option.
+ type: boolean
+ x-descriptors:
+ default: false
+ dependencies:
+ - "camel:core"
+ - "camel:aws2-timestream"
+ - "camel:kamelet"
+ template:
+ from:
+ uri: kamelet:source
+ steps:
+ - choice:
+ when:
+ - simple: "${header[query]}"
+ steps:
+ - setHeader:
+ name: CamelAwsTimestreamQueryString
+ simple: "${header[query]}"
+ - simple: "${header[ce-query]}"
+ steps:
+ - setHeader:
+ name: CamelAwsTimestreamQueryString
+ simple: "${header[ce-query]}"
+ - to:
+ uri: "aws2-timestream:query"
+ parameters:
+ accessKey: "{{?accessKey}}"
+ secretKey: "{{?secretKey}}"
+ region: "{{region}}"
+ operation: "query"
+ useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
+ uriEndpointOverride: "{{?uriEndpointOverride}}"
+ overrideEndpoint: "{{overrideEndpoint}}"
(camel-kamelets) 04/04: Create Kamelets for AWS Timestream
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch timestream
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 0ee174d7afa3f17842ceaf1e03fbc976fc2e06eb
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Nov 21 13:19:36 2023 +0100
Create Kamelets for AWS Timestream
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
docs/modules/ROOT/nav.adoc | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 1becc06c..40b094cb 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -25,6 +25,7 @@
* xref:aws-sqs-fifo-sink.adoc[]
* xref:aws-sqs-sink.adoc[]
* xref:aws-sqs-source.adoc[]
+* xref:aws-timestream-query-sink.adoc[]
* xref:aws-translate-action.adoc[]
* xref:azure-cosmosdb-sink.adoc[]
* xref:azure-cosmosdb-source.adoc[]