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

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/master by this push:
     new c8ff192  CAMEL-16171 - Add uri-endpoint-override options to all AWS2 
components - AWS2-Lambda component
c8ff192 is described below

commit c8ff1922bdce806dd64c0129f1d442a995b3e27d
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Mar 2 09:15:20 2021 +0100

    CAMEL-16171 - Add uri-endpoint-override options to all AWS2 components - 
AWS2-Lambda component
---
 .../springboot/catalog/components/aws2-lambda.json |  4 ++++
 .../src/main/docs/aws2-lambda-starter.adoc         |  4 +++-
 .../springboot/Lambda2ComponentConfiguration.java  | 26 ++++++++++++++++++++++
 docs/modules/ROOT/pages/aws2-lambda-starter.adoc   |  4 +++-
 4 files changed, 36 insertions(+), 2 deletions(-)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-lambda.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-lambda.json
index fa5e778..6ca4679 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-lambda.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-lambda.json
@@ -25,9 +25,11 @@
     "configuration": { "kind": "property", "displayName": "Configuration", 
"group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Component configuration" },
     "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the producer 
should be started lazy (on the first message). By starting lazy you can use 
this to allow CamelContext and routes to startup in situations where a producer 
may otherwise fail during star [...]
     "operation": { "kind": "property", "displayName": "Operation", "group": 
"producer", "label": "", "required": false, "type": "object", "javaType": 
"org.apache.camel.component.aws2.lambda.Lambda2Operations", "enum": [ 
"listFunctions", "getFunction", "createAlias", "deleteAlias", "getAlias", 
"listAliases", "createFunction", "deleteFunction", "invokeFunction", 
"updateFunction", "createEventSourceMapping", "deleteEventSourceMapping", 
"listEventSourceMapping", "listTags", "tagResource", "u [...]
+    "overrideEndpoint": { "kind": "property", "displayName": "Override 
Endpoint", "group": "producer", "label": "", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "Set the need for 
overidding the endpoint. This option needs to be used in combination with uri 
[...]
     "pojoRequest": { "kind": "property", "displayName": "Pojo Request", 
"group": "producer", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "If we want to use a POJO 
request as body or not" },
     "region": { "kind": "property", "displayName": "Region", "group": 
"producer", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "The region in which ECS 
client needs to work. When using this parameter, the configuration will expect 
the lowercase name of the r [...]
     "trustAllCertificates": { "kind": "property", "displayName": "Trust All 
Certificates", "group": "producer", "label": "", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "If we want to trust all 
certificates in case of overriding the endpoint" },
+    "uriEndpointOverride": { "kind": "property", "displayName": "Uri Endpoint 
Override", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "Set the overriding uri 
endpoint. This option needs to be used in combination with overrideEndpoint 
option" },
     "autowiredEnabled": { "kind": "property", "displayName": "Autowired 
Enabled", "group": "advanced", "label": "advanced", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Whether autowiring is 
enabled. This is used for automatic autowiring options (the option must be 
marked as autowired) by looking up in the registry to find if there is a single 
instance of matching type, which t [...]
     "awsLambdaClient": { "kind": "property", "displayName": "Aws Lambda 
Client", "group": "advanced", "label": "advanced", "required": false, "type": 
"object", "javaType": "software.amazon.awssdk.services.lambda.LambdaClient", 
"deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, 
"configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "To use a existing 
configured AwsLambdaClient  [...]
     "proxyHost": { "kind": "property", "displayName": "Proxy Host", "group": 
"proxy", "label": "proxy", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "To define a proxy host 
when instantiating the Lambda client" },
@@ -40,9 +42,11 @@
     "function": { "kind": "path", "displayName": "Function", "group": 
"producer", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Name of the Lambda function." },
     "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the producer 
should be started lazy (on the first message). By starting lazy you can use 
this to allow CamelContext and routes to startup in situations where a producer 
may otherwise fail during sta [...]
     "operation": { "kind": "parameter", "displayName": "Operation", "group": 
"producer", "label": "", "required": false, "type": "object", "javaType": 
"org.apache.camel.component.aws2.lambda.Lambda2Operations", "enum": [ 
"listFunctions", "getFunction", "createAlias", "deleteAlias", "getAlias", 
"listAliases", "createFunction", "deleteFunction", "invokeFunction", 
"updateFunction", "createEventSourceMapping", "deleteEventSourceMapping", 
"listEventSourceMapping", "listTags", "tagResource", " [...]
+    "overrideEndpoint": { "kind": "parameter", "displayName": "Override 
Endpoint", "group": "producer", "label": "", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "Set the need for 
overidding the endpoint. This option needs to be used in combination with ur 
[...]
     "pojoRequest": { "kind": "parameter", "displayName": "Pojo Request", 
"group": "producer", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "If we want to use a POJO 
request as body or not" },
     "region": { "kind": "parameter", "displayName": "Region", "group": 
"producer", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "The region in which ECS 
client needs to work. When using this parameter, the configuration will expect 
the lowercase name of the  [...]
     "trustAllCertificates": { "kind": "parameter", "displayName": "Trust All 
Certificates", "group": "producer", "label": "", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "If we want to trust all 
certificates in case of overriding the endpoint" },
+    "uriEndpointOverride": { "kind": "parameter", "displayName": "Uri Endpoint 
Override", "group": "producer", "label": "", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "Set the overriding uri 
endpoint. This option needs to be used in combination with overrideEndpoint op 
[...]
     "awsLambdaClient": { "kind": "parameter", "displayName": "Aws Lambda 
Client", "group": "advanced", "label": "advanced", "required": false, "type": 
"object", "javaType": "software.amazon.awssdk.services.lambda.LambdaClient", 
"deprecated": false, "deprecationNote": "", "autowired": true, "secret": false, 
"configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "To use a existing 
configured AwsLambdaClient [...]
     "proxyHost": { "kind": "parameter", "displayName": "Proxy Host", "group": 
"proxy", "label": "proxy", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "To define a proxy host 
when instantiating the Lambda client" },
     "proxyPort": { "kind": "parameter", "displayName": "Proxy Port", "group": 
"proxy", "label": "proxy", "required": false, "type": "integer", "javaType": 
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "To define a proxy port 
when instantiating the Lambda client" },
diff --git 
a/components-starter/camel-aws2-lambda-starter/src/main/docs/aws2-lambda-starter.adoc
 
b/components-starter/camel-aws2-lambda-starter/src/main/docs/aws2-lambda-starter.adoc
index 600ac7b..5b8362b 100644
--- 
a/components-starter/camel-aws2-lambda-starter/src/main/docs/aws2-lambda-starter.adoc
+++ 
b/components-starter/camel-aws2-lambda-starter/src/main/docs/aws2-lambda-starter.adoc
@@ -17,7 +17,7 @@ When using aws2-lambda with Spring Boot make sure to use the 
following Maven dep
 ----
 
 
-The component supports 14 options, which are listed below.
+The component supports 16 options, which are listed below.
 
 
 
@@ -31,6 +31,7 @@ The component supports 14 options, which are listed below.
 | *camel.component.aws2-lambda.enabled* | Whether to enable auto configuration 
of the aws2-lambda component. This is enabled by default. |  | Boolean
 | *camel.component.aws2-lambda.lazy-start-producer* | Whether the producer 
should be started lazy (on the first message). By starting lazy you can use 
this to allow CamelContext and routes to startup in situations where a producer 
may otherwise fail during starting and cause the route to fail being started. 
By deferring this startup to be lazy then the startup failure can be handled 
during routing messages via Camel's routing error handlers. Beware that when 
the first message is processe [...]
 | *camel.component.aws2-lambda.operation* | The operation to perform. It can 
be listFunctions, getFunction, createFunction, deleteFunction or invokeFunction 
|  | Lambda2Operations
+| *camel.component.aws2-lambda.override-endpoint* | Set the need for 
overidding the endpoint. This option needs to be used in combination with 
uriEndpointOverride option | false | Boolean
 | *camel.component.aws2-lambda.pojo-request* | If we want to use a POJO 
request as body or not | false | Boolean
 | *camel.component.aws2-lambda.proxy-host* | To define a proxy host when 
instantiating the Lambda client |  | String
 | *camel.component.aws2-lambda.proxy-port* | To define a proxy port when 
instantiating the Lambda client |  | Integer
@@ -38,5 +39,6 @@ The component supports 14 options, which are listed below.
 | *camel.component.aws2-lambda.region* | The region in which ECS client needs 
to work. When using this parameter, the configuration will expect the lowercase 
name of the region (for example ap-east-1) You'll need to use the name 
Region.EU_WEST_1.id() |  | String
 | *camel.component.aws2-lambda.secret-key* | Amazon AWS Secret Key |  | String
 | *camel.component.aws2-lambda.trust-all-certificates* | If we want to trust 
all certificates in case of overriding the endpoint | false | Boolean
+| *camel.component.aws2-lambda.uri-endpoint-override* | Set the overriding uri 
endpoint. This option needs to be used in combination with overrideEndpoint 
option |  | String
 |===
 // spring-boot-auto-configure options: END
diff --git 
a/components-starter/camel-aws2-lambda-starter/src/main/java/org/apache/camel/component/aws2/lambda/springboot/Lambda2ComponentConfiguration.java
 
b/components-starter/camel-aws2-lambda-starter/src/main/java/org/apache/camel/component/aws2/lambda/springboot/Lambda2ComponentConfiguration.java
index 1861afb..f65bd73 100644
--- 
a/components-starter/camel-aws2-lambda-starter/src/main/java/org/apache/camel/component/aws2/lambda/springboot/Lambda2ComponentConfiguration.java
+++ 
b/components-starter/camel-aws2-lambda-starter/src/main/java/org/apache/camel/component/aws2/lambda/springboot/Lambda2ComponentConfiguration.java
@@ -63,6 +63,11 @@ public class Lambda2ComponentConfiguration
      */
     private Lambda2Operations operation = Lambda2Operations.invokeFunction;
     /**
+     * Set the need for overidding the endpoint. This option needs to be used 
in
+     * combination with uriEndpointOverride option
+     */
+    private Boolean overrideEndpoint = false;
+    /**
      * If we want to use a POJO request as body or not
      */
     private Boolean pojoRequest = false;
@@ -77,6 +82,11 @@ public class Lambda2ComponentConfiguration
      */
     private Boolean trustAllCertificates = false;
     /**
+     * Set the overriding uri endpoint. This option needs to be used in
+     * combination with overrideEndpoint option
+     */
+    private String uriEndpointOverride;
+    /**
      * Whether autowiring is enabled. This is used for automatic autowiring
      * options (the option must be marked as autowired) by looking up in the
      * registry to find if there is a single instance of matching type, which
@@ -135,6 +145,14 @@ public class Lambda2ComponentConfiguration
         this.operation = operation;
     }
 
+    public Boolean getOverrideEndpoint() {
+        return overrideEndpoint;
+    }
+
+    public void setOverrideEndpoint(Boolean overrideEndpoint) {
+        this.overrideEndpoint = overrideEndpoint;
+    }
+
     public Boolean getPojoRequest() {
         return pojoRequest;
     }
@@ -159,6 +177,14 @@ public class Lambda2ComponentConfiguration
         this.trustAllCertificates = trustAllCertificates;
     }
 
+    public String getUriEndpointOverride() {
+        return uriEndpointOverride;
+    }
+
+    public void setUriEndpointOverride(String uriEndpointOverride) {
+        this.uriEndpointOverride = uriEndpointOverride;
+    }
+
     public Boolean getAutowiredEnabled() {
         return autowiredEnabled;
     }
diff --git a/docs/modules/ROOT/pages/aws2-lambda-starter.adoc 
b/docs/modules/ROOT/pages/aws2-lambda-starter.adoc
index 600ac7b..5b8362b 100644
--- a/docs/modules/ROOT/pages/aws2-lambda-starter.adoc
+++ b/docs/modules/ROOT/pages/aws2-lambda-starter.adoc
@@ -17,7 +17,7 @@ When using aws2-lambda with Spring Boot make sure to use the 
following Maven dep
 ----
 
 
-The component supports 14 options, which are listed below.
+The component supports 16 options, which are listed below.
 
 
 
@@ -31,6 +31,7 @@ The component supports 14 options, which are listed below.
 | *camel.component.aws2-lambda.enabled* | Whether to enable auto configuration 
of the aws2-lambda component. This is enabled by default. |  | Boolean
 | *camel.component.aws2-lambda.lazy-start-producer* | Whether the producer 
should be started lazy (on the first message). By starting lazy you can use 
this to allow CamelContext and routes to startup in situations where a producer 
may otherwise fail during starting and cause the route to fail being started. 
By deferring this startup to be lazy then the startup failure can be handled 
during routing messages via Camel's routing error handlers. Beware that when 
the first message is processe [...]
 | *camel.component.aws2-lambda.operation* | The operation to perform. It can 
be listFunctions, getFunction, createFunction, deleteFunction or invokeFunction 
|  | Lambda2Operations
+| *camel.component.aws2-lambda.override-endpoint* | Set the need for 
overidding the endpoint. This option needs to be used in combination with 
uriEndpointOverride option | false | Boolean
 | *camel.component.aws2-lambda.pojo-request* | If we want to use a POJO 
request as body or not | false | Boolean
 | *camel.component.aws2-lambda.proxy-host* | To define a proxy host when 
instantiating the Lambda client |  | String
 | *camel.component.aws2-lambda.proxy-port* | To define a proxy port when 
instantiating the Lambda client |  | Integer
@@ -38,5 +39,6 @@ The component supports 14 options, which are listed below.
 | *camel.component.aws2-lambda.region* | The region in which ECS client needs 
to work. When using this parameter, the configuration will expect the lowercase 
name of the region (for example ap-east-1) You'll need to use the name 
Region.EU_WEST_1.id() |  | String
 | *camel.component.aws2-lambda.secret-key* | Amazon AWS Secret Key |  | String
 | *camel.component.aws2-lambda.trust-all-certificates* | If we want to trust 
all certificates in case of overriding the endpoint | false | Boolean
+| *camel.component.aws2-lambda.uri-endpoint-override* | Set the overriding uri 
endpoint. This option needs to be used in combination with overrideEndpoint 
option |  | String
 |===
 // spring-boot-auto-configure options: END

Reply via email to