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/09/18 09:10:08 UTC
[camel-kamelets] branch 1629 created (now 5d5dd63f)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch 1629
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
at 5d5dd63f AWS2-SQS: Expose Kamelet data type information
This branch includes the following new commits:
new 5d5dd63f AWS2-SQS: Expose Kamelet data type information
The 1 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] 01/01: AWS2-SQS: Expose Kamelet data type information
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch 1629
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 5d5dd63f9ccc29479513f3e966af0453714715dd
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Sep 18 11:09:29 2023 +0200
AWS2-SQS: Expose Kamelet data type information
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/aws-sqs-source.kamelet.yaml | 59 ++++++++++++++++++++++
.../resources/kamelets/aws-sqs-source.kamelet.yaml | 59 ++++++++++++++++++++++
2 files changed, 118 insertions(+)
diff --git a/kamelets/aws-sqs-source.kamelet.yaml b/kamelets/aws-sqs-source.kamelet.yaml
index 31ee25c6..2fada84d 100644
--- a/kamelets/aws-sqs-source.kamelet.yaml
+++ b/kamelets/aws-sqs-source.kamelet.yaml
@@ -139,6 +139,65 @@ spec:
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: false
+ dataTypes:
+ out:
+ default: text
+ headers:
+ CamelAwsSqsMessageId:
+ title: The SQS Message Id
+ description: The Amazon SQS message ID
+ type: string
+ CamelAwsSqsReceiptHandle:
+ title: The SQS Message Receipt Handle
+ description: The Amazon SQS message receipt handle.
+ type: string
+ CamelAwsSqsMD5OfBody:
+ title: The SQS Message MD5 Checksum
+ description: The content type of the retrieved object.
+ default: application/octet-stream
+ type: string
+ CamelAwsSqsAttributes:
+ title: The SQS Message System Attributes
+ description: |-
+ A map of the attributes requested in ReceiveMessage to their respective values, the Map type is Map<MessageSystemAttributeName, String>
+ type: object
+ CamelAwsSqsMessageAttributes:
+ title: The SQS Message Attributes
+ description: |-
+ The Amazon SQS message attributes, the Map type is Map<String, MessageAttributeValue>
+ type: object
+ types:
+ text:
+ format: "text-plain"
+ description: Default String representation of the SQS message received from the queue.
+ mediaType: text/plain
+ cloudevents:
+ format: "aws2-sqs:application-cloudevents"
+ description: |-
+ Output data type represents AWS SQS receive message response as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the exchange with
+ respective data from the SQS message and its derived object.
+ headers:
+ CamelCloudEventID:
+ title: CloudEvent ID
+ description: The Camel exchange id set as event id
+ type: string
+ CamelCloudEventType:
+ title: CloudEvent Type
+ description: The event type
+ default: "org.apache.camel.event.aws.sqs.receiveMessage"
+ type: string
+ CamelCloudEventSource:
+ title: CloudEvent Source
+ description: The event source. By default, the SQS Received message receipt handle with prefix "aws.sqs.queue.".
+ type: string
+ CamelCloudEventSubject:
+ title: CloudEvent Subject
+ description: The event subject. The SQS message ID
+ type: string
+ CamelCloudEventTime:
+ title: CloudEvent Time
+ description: The exchange creation timestamp as event time.
+ type: string
dependencies:
- "camel:core"
- "camel:aws2-sqs"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-sqs-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-sqs-source.kamelet.yaml
index 31ee25c6..2fada84d 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-sqs-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-sqs-source.kamelet.yaml
@@ -139,6 +139,65 @@ spec:
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: false
+ dataTypes:
+ out:
+ default: text
+ headers:
+ CamelAwsSqsMessageId:
+ title: The SQS Message Id
+ description: The Amazon SQS message ID
+ type: string
+ CamelAwsSqsReceiptHandle:
+ title: The SQS Message Receipt Handle
+ description: The Amazon SQS message receipt handle.
+ type: string
+ CamelAwsSqsMD5OfBody:
+ title: The SQS Message MD5 Checksum
+ description: The content type of the retrieved object.
+ default: application/octet-stream
+ type: string
+ CamelAwsSqsAttributes:
+ title: The SQS Message System Attributes
+ description: |-
+ A map of the attributes requested in ReceiveMessage to their respective values, the Map type is Map<MessageSystemAttributeName, String>
+ type: object
+ CamelAwsSqsMessageAttributes:
+ title: The SQS Message Attributes
+ description: |-
+ The Amazon SQS message attributes, the Map type is Map<String, MessageAttributeValue>
+ type: object
+ types:
+ text:
+ format: "text-plain"
+ description: Default String representation of the SQS message received from the queue.
+ mediaType: text/plain
+ cloudevents:
+ format: "aws2-sqs:application-cloudevents"
+ description: |-
+ Output data type represents AWS SQS receive message response as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the exchange with
+ respective data from the SQS message and its derived object.
+ headers:
+ CamelCloudEventID:
+ title: CloudEvent ID
+ description: The Camel exchange id set as event id
+ type: string
+ CamelCloudEventType:
+ title: CloudEvent Type
+ description: The event type
+ default: "org.apache.camel.event.aws.sqs.receiveMessage"
+ type: string
+ CamelCloudEventSource:
+ title: CloudEvent Source
+ description: The event source. By default, the SQS Received message receipt handle with prefix "aws.sqs.queue.".
+ type: string
+ CamelCloudEventSubject:
+ title: CloudEvent Subject
+ description: The event subject. The SQS message ID
+ type: string
+ CamelCloudEventTime:
+ title: CloudEvent Time
+ description: The exchange creation timestamp as event time.
+ type: string
dependencies:
- "camel:core"
- "camel:aws2-sqs"