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:48 UTC

[camel-kamelets] 01/08: AWS SQS Kamelets: Introduce optional overrideEndpoint and uriEndpointOverride for testing purpose - SQS 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 0c97cfd3338c5cd12c65c511434fdf21a78a601b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 17 11:49:19 2022 +0100

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

diff --git a/kamelets/aws-sqs-sink.kamelet.yaml b/kamelets/aws-sqs-sink.kamelet.yaml
index 42e0688..80ecdbf 100644
--- a/kamelets/aws-sqs-sink.kamelet.yaml
+++ b/kamelets/aws-sqs-sink.kamelet.yaml
@@ -77,6 +77,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
@@ -89,6 +90,17 @@ spec:
         type: boolean
         x-descriptors:
         - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        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"
@@ -106,4 +118,6 @@ spec:
             region: "{{region}}"
             amazonAWSHost: "{{?amazonAWSHost}}"
             protocol: "{{?protocol}}"
-            useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"            
+            useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
+            uriEndpointOverride: "{{?uriEndpointOverride}}"
+            overrideEndpoint: "{{overrideEndpoint}}"