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 2022/03/17 11:26:55 UTC

[camel-kamelets] 08/08: AWS SQS Kamelets: Introduce optional overrideEndpoint and uriEndpointOverride for testing purpose - SQS FIFO Sink

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch sqs-optional-params
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 4ca91188c7e01b49f9e7ee06b8e80f9122d45a7f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 17 12:26:21 2022 +0100

    AWS SQS Kamelets: Introduce optional overrideEndpoint and uriEndpointOverride for testing purpose - SQS FIFO Sink
---
 .../resources/kamelets/aws-sqs-fifo-sink.kamelet.yaml  | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-sqs-fifo-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-sqs-fifo-sink.kamelet.yaml
index 59b8153..40c5949 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-sqs-fifo-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-sqs-fifo-sink.kamelet.yaml
@@ -85,6 +85,7 @@ spec:
         title: AWS Host
         description: The hostname of the Amazon AWS cloud. 
         type: string
+        default: amazonaws.com
       protocol:
         title: Protocol
         description: The underlying protocol used to communicate with SQS
@@ -97,7 +98,18 @@ spec:
         type: boolean
         x-descriptors:
         - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
-        default: false  
+        default: false
+      uriEndpointOverride:
+        title: Overwritte Endpoint URI
+        description: Set the overriding endpoint URI. This option needs to be used in combination with overrideEndpoint option.
+        type: string
+      overrideEndpoint:
+        title: Endpoint Overwrite
+        description: Set the need for overiding the endpoint URI. This option needs to be used in combination with uriEndpointOverride setting.
+        type: boolean
+        x-descriptors:
+          - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false   
   dependencies:
   - "camel:aws2-sqs"
   - "camel:core"
@@ -140,6 +152,8 @@ spec:
                   useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}" 
                   messageGroupIdStrategy: "usePropertyValue"
                   messageDeduplicationIdStrategy: "useContentBasedDeduplication"
+                  uriEndpointOverride: "{{?uriEndpointOverride}}"
+                  overrideEndpoint: "{{overrideEndpoint}}"
           otherwise:
             steps:
             - to:
@@ -154,3 +168,5 @@ spec:
                   messageDeduplicationIdStrategy: "useExchangeId"
                   amazonAWSHost: "{{?amazonAWSHost}}"
                   protocol: "{{?protocol}}"
+                  uriEndpointOverride: "{{?uriEndpointOverride}}"
+                  overrideEndpoint: "{{overrideEndpoint}}"