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.git

commit f481480587fe9e504c0ee089b647a8602e5a1ba8
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Mar 2 08:58:14 2021 +0100

    CAMEL-16171 - Add uri-endpoint-override options to all AWS2 components - 
AWS2-Lambda component
---
 .../camel/catalog/docs/aws2-lambda-component.adoc  |  8 +++-
 .../aws2/lambda/Lambda2ComponentConfigurer.java    | 12 ++++++
 .../aws2/lambda/Lambda2EndpointConfigurer.java     | 12 ++++++
 .../aws2/lambda/Lambda2EndpointUriFactory.java     | 14 ++++---
 .../camel/component/aws2/lambda/aws2-lambda.json   |  4 ++
 .../src/main/docs/aws2-lambda-component.adoc       |  8 +++-
 .../dsl/Aws2LambdaComponentBuilderFactory.java     | 35 ++++++++++++++++
 .../dsl/Lambda2EndpointBuilderFactory.java         | 49 ++++++++++++++++++++++
 .../modules/ROOT/pages/aws2-lambda-component.adoc  |  8 +++-
 9 files changed, 138 insertions(+), 12 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-lambda-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-lambda-component.adoc
index 64bb5ec..2206bd9 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-lambda-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-lambda-component.adoc
@@ -44,7 +44,7 @@ You can append query options to the URI in the following 
format,
 
 
 // component options: START
-The AWS 2 Lambda component supports 13 options, which are listed below.
+The AWS 2 Lambda component supports 15 options, which are listed below.
 
 
 
@@ -54,9 +54,11 @@ The AWS 2 Lambda component supports 13 options, which are 
listed below.
 | *configuration* (producer) | Component configuration |  | 
Lambda2Configuration
 | *lazyStartProducer* (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 processed 
then creating and [...]
 | *operation* (producer) | The operation to perform. It can be listFunctions, 
getFunction, createFunction, deleteFunction or invokeFunction. There are 18 
enums and the value can be one of: listFunctions, getFunction, createAlias, 
deleteAlias, getAlias, listAliases, createFunction, deleteFunction, 
invokeFunction, updateFunction, createEventSourceMapping, 
deleteEventSourceMapping, listEventSourceMapping, listTags, tagResource, 
untagResource, publishVersion, listVersions | invokeFunction |  [...]
+| *overrideEndpoint* (producer) | Set the need for overidding the endpoint. 
This option needs to be used in combination with uriEndpointOverride option | 
false | boolean
 | *pojoRequest* (producer) | If we want to use a POJO request as body or not | 
false | boolean
 | *region* (producer) | 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
 | *trustAllCertificates* (producer) | If we want to trust all certificates in 
case of overriding the endpoint | false | boolean
+| *uriEndpointOverride* (producer) | Set the overriding uri endpoint. This 
option needs to be used in combination with overrideEndpoint option |  | String
 | *autowiredEnabled* (advanced) | 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 then gets configured on the component. This can be used for 
automatic configuring JDBC data sources, JMS connection factories, AWS Clients, 
etc. | true | boolean
 | *awsLambdaClient* (advanced) | *Autowired* To use a existing configured 
AwsLambdaClient as client |  | LambdaClient
 | *proxyHost* (proxy) | To define a proxy host when instantiating the Lambda 
client |  | String
@@ -89,7 +91,7 @@ with the following path and query parameters:
 |===
 
 
-=== Query Parameters (11 parameters):
+=== Query Parameters (13 parameters):
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
@@ -97,9 +99,11 @@ with the following path and query parameters:
 | Name | Description | Default | Type
 | *lazyStartProducer* (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 processed 
then creating and [...]
 | *operation* (producer) | The operation to perform. It can be listFunctions, 
getFunction, createFunction, deleteFunction or invokeFunction. There are 18 
enums and the value can be one of: listFunctions, getFunction, createAlias, 
deleteAlias, getAlias, listAliases, createFunction, deleteFunction, 
invokeFunction, updateFunction, createEventSourceMapping, 
deleteEventSourceMapping, listEventSourceMapping, listTags, tagResource, 
untagResource, publishVersion, listVersions | invokeFunction |  [...]
+| *overrideEndpoint* (producer) | Set the need for overidding the endpoint. 
This option needs to be used in combination with uriEndpointOverride option | 
false | boolean
 | *pojoRequest* (producer) | If we want to use a POJO request as body or not | 
false | boolean
 | *region* (producer) | 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
 | *trustAllCertificates* (producer) | If we want to trust all certificates in 
case of overriding the endpoint | false | boolean
+| *uriEndpointOverride* (producer) | Set the overriding uri endpoint. This 
option needs to be used in combination with overrideEndpoint option |  | String
 | *awsLambdaClient* (advanced) | *Autowired* To use a existing configured 
AwsLambdaClient as client |  | LambdaClient
 | *proxyHost* (proxy) | To define a proxy host when instantiating the Lambda 
client |  | String
 | *proxyPort* (proxy) | To define a proxy port when instantiating the Lambda 
client |  | Integer
diff --git 
a/components/camel-aws2-lambda/src/generated/java/org/apache/camel/component/aws2/lambda/Lambda2ComponentConfigurer.java
 
b/components/camel-aws2-lambda/src/generated/java/org/apache/camel/component/aws2/lambda/Lambda2ComponentConfigurer.java
index 1a46381..1a0650f 100644
--- 
a/components/camel-aws2-lambda/src/generated/java/org/apache/camel/component/aws2/lambda/Lambda2ComponentConfigurer.java
+++ 
b/components/camel-aws2-lambda/src/generated/java/org/apache/camel/component/aws2/lambda/Lambda2ComponentConfigurer.java
@@ -38,6 +38,8 @@ public class Lambda2ComponentConfigurer extends 
PropertyConfigurerSupport implem
         case "lazystartproducer":
         case "lazyStartProducer": 
target.setLazyStartProducer(property(camelContext, boolean.class, value)); 
return true;
         case "operation": 
getOrCreateConfiguration(target).setOperation(property(camelContext, 
org.apache.camel.component.aws2.lambda.Lambda2Operations.class, value)); return 
true;
+        case "overrideendpoint":
+        case "overrideEndpoint": 
getOrCreateConfiguration(target).setOverrideEndpoint(property(camelContext, 
boolean.class, value)); return true;
         case "pojorequest":
         case "pojoRequest": 
getOrCreateConfiguration(target).setPojoRequest(property(camelContext, 
boolean.class, value)); return true;
         case "proxyhost":
@@ -51,6 +53,8 @@ public class Lambda2ComponentConfigurer extends 
PropertyConfigurerSupport implem
         case "secretKey": 
getOrCreateConfiguration(target).setSecretKey(property(camelContext, 
java.lang.String.class, value)); return true;
         case "trustallcertificates":
         case "trustAllCertificates": 
getOrCreateConfiguration(target).setTrustAllCertificates(property(camelContext, 
boolean.class, value)); return true;
+        case "uriendpointoverride":
+        case "uriEndpointOverride": 
getOrCreateConfiguration(target).setUriEndpointOverride(property(camelContext, 
java.lang.String.class, value)); return true;
         default: return false;
         }
     }
@@ -73,6 +77,8 @@ public class Lambda2ComponentConfigurer extends 
PropertyConfigurerSupport implem
         case "lazystartproducer":
         case "lazyStartProducer": return boolean.class;
         case "operation": return 
org.apache.camel.component.aws2.lambda.Lambda2Operations.class;
+        case "overrideendpoint":
+        case "overrideEndpoint": return boolean.class;
         case "pojorequest":
         case "pojoRequest": return boolean.class;
         case "proxyhost":
@@ -86,6 +92,8 @@ public class Lambda2ComponentConfigurer extends 
PropertyConfigurerSupport implem
         case "secretKey": return java.lang.String.class;
         case "trustallcertificates":
         case "trustAllCertificates": return boolean.class;
+        case "uriendpointoverride":
+        case "uriEndpointOverride": return java.lang.String.class;
         default: return null;
         }
     }
@@ -104,6 +112,8 @@ public class Lambda2ComponentConfigurer extends 
PropertyConfigurerSupport implem
         case "lazystartproducer":
         case "lazyStartProducer": return target.isLazyStartProducer();
         case "operation": return 
getOrCreateConfiguration(target).getOperation();
+        case "overrideendpoint":
+        case "overrideEndpoint": return 
getOrCreateConfiguration(target).isOverrideEndpoint();
         case "pojorequest":
         case "pojoRequest": return 
getOrCreateConfiguration(target).isPojoRequest();
         case "proxyhost":
@@ -117,6 +127,8 @@ public class Lambda2ComponentConfigurer extends 
PropertyConfigurerSupport implem
         case "secretKey": return 
getOrCreateConfiguration(target).getSecretKey();
         case "trustallcertificates":
         case "trustAllCertificates": return 
getOrCreateConfiguration(target).isTrustAllCertificates();
+        case "uriendpointoverride":
+        case "uriEndpointOverride": return 
getOrCreateConfiguration(target).getUriEndpointOverride();
         default: return null;
         }
     }
diff --git 
a/components/camel-aws2-lambda/src/generated/java/org/apache/camel/component/aws2/lambda/Lambda2EndpointConfigurer.java
 
b/components/camel-aws2-lambda/src/generated/java/org/apache/camel/component/aws2/lambda/Lambda2EndpointConfigurer.java
index 65ea1a5..962d84c 100644
--- 
a/components/camel-aws2-lambda/src/generated/java/org/apache/camel/component/aws2/lambda/Lambda2EndpointConfigurer.java
+++ 
b/components/camel-aws2-lambda/src/generated/java/org/apache/camel/component/aws2/lambda/Lambda2EndpointConfigurer.java
@@ -28,6 +28,8 @@ public class Lambda2EndpointConfigurer extends 
PropertyConfigurerSupport impleme
         case "lazystartproducer":
         case "lazyStartProducer": 
target.setLazyStartProducer(property(camelContext, boolean.class, value)); 
return true;
         case "operation": 
target.getConfiguration().setOperation(property(camelContext, 
org.apache.camel.component.aws2.lambda.Lambda2Operations.class, value)); return 
true;
+        case "overrideendpoint":
+        case "overrideEndpoint": 
target.getConfiguration().setOverrideEndpoint(property(camelContext, 
boolean.class, value)); return true;
         case "pojorequest":
         case "pojoRequest": 
target.getConfiguration().setPojoRequest(property(camelContext, boolean.class, 
value)); return true;
         case "proxyhost":
@@ -41,6 +43,8 @@ public class Lambda2EndpointConfigurer extends 
PropertyConfigurerSupport impleme
         case "secretKey": 
target.getConfiguration().setSecretKey(property(camelContext, 
java.lang.String.class, value)); return true;
         case "trustallcertificates":
         case "trustAllCertificates": 
target.getConfiguration().setTrustAllCertificates(property(camelContext, 
boolean.class, value)); return true;
+        case "uriendpointoverride":
+        case "uriEndpointOverride": 
target.getConfiguration().setUriEndpointOverride(property(camelContext, 
java.lang.String.class, value)); return true;
         default: return false;
         }
     }
@@ -60,6 +64,8 @@ public class Lambda2EndpointConfigurer extends 
PropertyConfigurerSupport impleme
         case "lazystartproducer":
         case "lazyStartProducer": return boolean.class;
         case "operation": return 
org.apache.camel.component.aws2.lambda.Lambda2Operations.class;
+        case "overrideendpoint":
+        case "overrideEndpoint": return boolean.class;
         case "pojorequest":
         case "pojoRequest": return boolean.class;
         case "proxyhost":
@@ -73,6 +79,8 @@ public class Lambda2EndpointConfigurer extends 
PropertyConfigurerSupport impleme
         case "secretKey": return java.lang.String.class;
         case "trustallcertificates":
         case "trustAllCertificates": return boolean.class;
+        case "uriendpointoverride":
+        case "uriEndpointOverride": return java.lang.String.class;
         default: return null;
         }
     }
@@ -88,6 +96,8 @@ public class Lambda2EndpointConfigurer extends 
PropertyConfigurerSupport impleme
         case "lazystartproducer":
         case "lazyStartProducer": return target.isLazyStartProducer();
         case "operation": return target.getConfiguration().getOperation();
+        case "overrideendpoint":
+        case "overrideEndpoint": return 
target.getConfiguration().isOverrideEndpoint();
         case "pojorequest":
         case "pojoRequest": return target.getConfiguration().isPojoRequest();
         case "proxyhost":
@@ -101,6 +111,8 @@ public class Lambda2EndpointConfigurer extends 
PropertyConfigurerSupport impleme
         case "secretKey": return target.getConfiguration().getSecretKey();
         case "trustallcertificates":
         case "trustAllCertificates": return 
target.getConfiguration().isTrustAllCertificates();
+        case "uriendpointoverride":
+        case "uriEndpointOverride": return 
target.getConfiguration().getUriEndpointOverride();
         default: return null;
         }
     }
diff --git 
a/components/camel-aws2-lambda/src/generated/java/org/apache/camel/component/aws2/lambda/Lambda2EndpointUriFactory.java
 
b/components/camel-aws2-lambda/src/generated/java/org/apache/camel/component/aws2/lambda/Lambda2EndpointUriFactory.java
index 5fef2ed..475682d 100644
--- 
a/components/camel-aws2-lambda/src/generated/java/org/apache/camel/component/aws2/lambda/Lambda2EndpointUriFactory.java
+++ 
b/components/camel-aws2-lambda/src/generated/java/org/apache/camel/component/aws2/lambda/Lambda2EndpointUriFactory.java
@@ -20,19 +20,21 @@ public class Lambda2EndpointUriFactory extends 
org.apache.camel.support.componen
     private static final Set<String> PROPERTY_NAMES;
     private static final Set<String> SECRET_PROPERTY_NAMES;
     static {
-        Set<String> props = new HashSet<>(12);
+        Set<String> props = new HashSet<>(14);
+        props.add("proxyProtocol");
+        props.add("secretKey");
+        props.add("uriEndpointOverride");
+        props.add("pojoRequest");
+        props.add("proxyHost");
+        props.add("trustAllCertificates");
         props.add("awsLambdaClient");
         props.add("proxyPort");
         props.add("lazyStartProducer");
-        props.add("proxyProtocol");
-        props.add("secretKey");
         props.add("accessKey");
         props.add("function");
+        props.add("overrideEndpoint");
         props.add("region");
         props.add("operation");
-        props.add("pojoRequest");
-        props.add("proxyHost");
-        props.add("trustAllCertificates");
         PROPERTY_NAMES = Collections.unmodifiableSet(props);
         Set<String> secretProps = new HashSet<>(2);
         secretProps.add("secretKey");
diff --git 
a/components/camel-aws2-lambda/src/generated/resources/org/apache/camel/component/aws2/lambda/aws2-lambda.json
 
b/components/camel-aws2-lambda/src/generated/resources/org/apache/camel/component/aws2/lambda/aws2-lambda.json
index 5047371..e110e42 100644
--- 
a/components/camel-aws2-lambda/src/generated/resources/org/apache/camel/component/aws2/lambda/aws2-lambda.json
+++ 
b/components/camel-aws2-lambda/src/generated/resources/org/apache/camel/component/aws2/lambda/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/camel-aws2-lambda/src/main/docs/aws2-lambda-component.adoc 
b/components/camel-aws2-lambda/src/main/docs/aws2-lambda-component.adoc
index 64bb5ec..2206bd9 100644
--- a/components/camel-aws2-lambda/src/main/docs/aws2-lambda-component.adoc
+++ b/components/camel-aws2-lambda/src/main/docs/aws2-lambda-component.adoc
@@ -44,7 +44,7 @@ You can append query options to the URI in the following 
format,
 
 
 // component options: START
-The AWS 2 Lambda component supports 13 options, which are listed below.
+The AWS 2 Lambda component supports 15 options, which are listed below.
 
 
 
@@ -54,9 +54,11 @@ The AWS 2 Lambda component supports 13 options, which are 
listed below.
 | *configuration* (producer) | Component configuration |  | 
Lambda2Configuration
 | *lazyStartProducer* (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 processed 
then creating and [...]
 | *operation* (producer) | The operation to perform. It can be listFunctions, 
getFunction, createFunction, deleteFunction or invokeFunction. There are 18 
enums and the value can be one of: listFunctions, getFunction, createAlias, 
deleteAlias, getAlias, listAliases, createFunction, deleteFunction, 
invokeFunction, updateFunction, createEventSourceMapping, 
deleteEventSourceMapping, listEventSourceMapping, listTags, tagResource, 
untagResource, publishVersion, listVersions | invokeFunction |  [...]
+| *overrideEndpoint* (producer) | Set the need for overidding the endpoint. 
This option needs to be used in combination with uriEndpointOverride option | 
false | boolean
 | *pojoRequest* (producer) | If we want to use a POJO request as body or not | 
false | boolean
 | *region* (producer) | 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
 | *trustAllCertificates* (producer) | If we want to trust all certificates in 
case of overriding the endpoint | false | boolean
+| *uriEndpointOverride* (producer) | Set the overriding uri endpoint. This 
option needs to be used in combination with overrideEndpoint option |  | String
 | *autowiredEnabled* (advanced) | 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 then gets configured on the component. This can be used for 
automatic configuring JDBC data sources, JMS connection factories, AWS Clients, 
etc. | true | boolean
 | *awsLambdaClient* (advanced) | *Autowired* To use a existing configured 
AwsLambdaClient as client |  | LambdaClient
 | *proxyHost* (proxy) | To define a proxy host when instantiating the Lambda 
client |  | String
@@ -89,7 +91,7 @@ with the following path and query parameters:
 |===
 
 
-=== Query Parameters (11 parameters):
+=== Query Parameters (13 parameters):
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
@@ -97,9 +99,11 @@ with the following path and query parameters:
 | Name | Description | Default | Type
 | *lazyStartProducer* (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 processed 
then creating and [...]
 | *operation* (producer) | The operation to perform. It can be listFunctions, 
getFunction, createFunction, deleteFunction or invokeFunction. There are 18 
enums and the value can be one of: listFunctions, getFunction, createAlias, 
deleteAlias, getAlias, listAliases, createFunction, deleteFunction, 
invokeFunction, updateFunction, createEventSourceMapping, 
deleteEventSourceMapping, listEventSourceMapping, listTags, tagResource, 
untagResource, publishVersion, listVersions | invokeFunction |  [...]
+| *overrideEndpoint* (producer) | Set the need for overidding the endpoint. 
This option needs to be used in combination with uriEndpointOverride option | 
false | boolean
 | *pojoRequest* (producer) | If we want to use a POJO request as body or not | 
false | boolean
 | *region* (producer) | 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
 | *trustAllCertificates* (producer) | If we want to trust all certificates in 
case of overriding the endpoint | false | boolean
+| *uriEndpointOverride* (producer) | Set the overriding uri endpoint. This 
option needs to be used in combination with overrideEndpoint option |  | String
 | *awsLambdaClient* (advanced) | *Autowired* To use a existing configured 
AwsLambdaClient as client |  | LambdaClient
 | *proxyHost* (proxy) | To define a proxy host when instantiating the Lambda 
client |  | String
 | *proxyPort* (proxy) | To define a proxy port when instantiating the Lambda 
client |  | Integer
diff --git 
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2LambdaComponentBuilderFactory.java
 
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2LambdaComponentBuilderFactory.java
index 1e21f72..48783b9 100644
--- 
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2LambdaComponentBuilderFactory.java
+++ 
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2LambdaComponentBuilderFactory.java
@@ -109,6 +109,23 @@ public interface Aws2LambdaComponentBuilderFactory {
             return this;
         }
         /**
+         * Set the need for overidding the endpoint. This option needs to be
+         * used in combination with uriEndpointOverride option.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param overrideEndpoint the value to set
+         * @return the dsl builder
+         */
+        default Aws2LambdaComponentBuilder overrideEndpoint(
+                boolean overrideEndpoint) {
+            doSetProperty("overrideEndpoint", overrideEndpoint);
+            return this;
+        }
+        /**
          * If we want to use a POJO request as body or not.
          * 
          * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
@@ -158,6 +175,22 @@ public interface Aws2LambdaComponentBuilderFactory {
             return this;
         }
         /**
+         * Set the overriding uri endpoint. This option needs to be used in
+         * combination with overrideEndpoint option.
+         * 
+         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
+         * 
+         * Group: producer
+         * 
+         * @param uriEndpointOverride the value to set
+         * @return the dsl builder
+         */
+        default Aws2LambdaComponentBuilder uriEndpointOverride(
+                java.lang.String uriEndpointOverride) {
+            doSetProperty("uriEndpointOverride", uriEndpointOverride);
+            return this;
+        }
+        /**
          * 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,
@@ -294,9 +327,11 @@ public interface Aws2LambdaComponentBuilderFactory {
             case "configuration": ((Lambda2Component) 
component).setConfiguration((org.apache.camel.component.aws2.lambda.Lambda2Configuration)
 value); return true;
             case "lazyStartProducer": ((Lambda2Component) 
component).setLazyStartProducer((boolean) value); return true;
             case "operation": getOrCreateConfiguration((Lambda2Component) 
component).setOperation((org.apache.camel.component.aws2.lambda.Lambda2Operations)
 value); return true;
+            case "overrideEndpoint": 
getOrCreateConfiguration((Lambda2Component) 
component).setOverrideEndpoint((boolean) value); return true;
             case "pojoRequest": getOrCreateConfiguration((Lambda2Component) 
component).setPojoRequest((boolean) value); return true;
             case "region": getOrCreateConfiguration((Lambda2Component) 
component).setRegion((java.lang.String) value); return true;
             case "trustAllCertificates": 
getOrCreateConfiguration((Lambda2Component) 
component).setTrustAllCertificates((boolean) value); return true;
+            case "uriEndpointOverride": 
getOrCreateConfiguration((Lambda2Component) 
component).setUriEndpointOverride((java.lang.String) value); return true;
             case "autowiredEnabled": ((Lambda2Component) 
component).setAutowiredEnabled((boolean) value); return true;
             case "awsLambdaClient": 
getOrCreateConfiguration((Lambda2Component) 
component).setAwsLambdaClient((software.amazon.awssdk.services.lambda.LambdaClient)
 value); return true;
             case "proxyHost": getOrCreateConfiguration((Lambda2Component) 
component).setProxyHost((java.lang.String) value); return true;
diff --git 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Lambda2EndpointBuilderFactory.java
 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Lambda2EndpointBuilderFactory.java
index f9cbd04..996f15b 100644
--- 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Lambda2EndpointBuilderFactory.java
+++ 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Lambda2EndpointBuilderFactory.java
@@ -121,6 +121,39 @@ public interface Lambda2EndpointBuilderFactory {
             return this;
         }
         /**
+         * Set the need for overidding the endpoint. This option needs to be
+         * used in combination with uriEndpointOverride option.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param overrideEndpoint the value to set
+         * @return the dsl builder
+         */
+        default Lambda2EndpointBuilder overrideEndpoint(boolean 
overrideEndpoint) {
+            doSetProperty("overrideEndpoint", overrideEndpoint);
+            return this;
+        }
+        /**
+         * Set the need for overidding the endpoint. This option needs to be
+         * used in combination with uriEndpointOverride option.
+         * 
+         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
+         * type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param overrideEndpoint the value to set
+         * @return the dsl builder
+         */
+        default Lambda2EndpointBuilder overrideEndpoint(String 
overrideEndpoint) {
+            doSetProperty("overrideEndpoint", overrideEndpoint);
+            return this;
+        }
+        /**
          * If we want to use a POJO request as body or not.
          * 
          * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
@@ -204,6 +237,22 @@ public interface Lambda2EndpointBuilderFactory {
             return this;
         }
         /**
+         * Set the overriding uri endpoint. This option needs to be used in
+         * combination with overrideEndpoint option.
+         * 
+         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
+         * 
+         * Group: producer
+         * 
+         * @param uriEndpointOverride the value to set
+         * @return the dsl builder
+         */
+        default Lambda2EndpointBuilder uriEndpointOverride(
+                String uriEndpointOverride) {
+            doSetProperty("uriEndpointOverride", uriEndpointOverride);
+            return this;
+        }
+        /**
          * To define a proxy host when instantiating the Lambda client.
          * 
          * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
diff --git a/docs/components/modules/ROOT/pages/aws2-lambda-component.adoc 
b/docs/components/modules/ROOT/pages/aws2-lambda-component.adoc
index e792657..98d6fee 100644
--- a/docs/components/modules/ROOT/pages/aws2-lambda-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-lambda-component.adoc
@@ -46,7 +46,7 @@ You can append query options to the URI in the following 
format,
 
 
 // component options: START
-The AWS 2 Lambda component supports 13 options, which are listed below.
+The AWS 2 Lambda component supports 15 options, which are listed below.
 
 
 
@@ -56,9 +56,11 @@ The AWS 2 Lambda component supports 13 options, which are 
listed below.
 | *configuration* (producer) | Component configuration |  | 
Lambda2Configuration
 | *lazyStartProducer* (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 processed 
then creating and [...]
 | *operation* (producer) | The operation to perform. It can be listFunctions, 
getFunction, createFunction, deleteFunction or invokeFunction. There are 18 
enums and the value can be one of: listFunctions, getFunction, createAlias, 
deleteAlias, getAlias, listAliases, createFunction, deleteFunction, 
invokeFunction, updateFunction, createEventSourceMapping, 
deleteEventSourceMapping, listEventSourceMapping, listTags, tagResource, 
untagResource, publishVersion, listVersions | invokeFunction |  [...]
+| *overrideEndpoint* (producer) | Set the need for overidding the endpoint. 
This option needs to be used in combination with uriEndpointOverride option | 
false | boolean
 | *pojoRequest* (producer) | If we want to use a POJO request as body or not | 
false | boolean
 | *region* (producer) | 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
 | *trustAllCertificates* (producer) | If we want to trust all certificates in 
case of overriding the endpoint | false | boolean
+| *uriEndpointOverride* (producer) | Set the overriding uri endpoint. This 
option needs to be used in combination with overrideEndpoint option |  | String
 | *autowiredEnabled* (advanced) | 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 then gets configured on the component. This can be used for 
automatic configuring JDBC data sources, JMS connection factories, AWS Clients, 
etc. | true | boolean
 | *awsLambdaClient* (advanced) | *Autowired* To use a existing configured 
AwsLambdaClient as client |  | LambdaClient
 | *proxyHost* (proxy) | To define a proxy host when instantiating the Lambda 
client |  | String
@@ -91,7 +93,7 @@ with the following path and query parameters:
 |===
 
 
-=== Query Parameters (11 parameters):
+=== Query Parameters (13 parameters):
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
@@ -99,9 +101,11 @@ with the following path and query parameters:
 | Name | Description | Default | Type
 | *lazyStartProducer* (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 processed 
then creating and [...]
 | *operation* (producer) | The operation to perform. It can be listFunctions, 
getFunction, createFunction, deleteFunction or invokeFunction. There are 18 
enums and the value can be one of: listFunctions, getFunction, createAlias, 
deleteAlias, getAlias, listAliases, createFunction, deleteFunction, 
invokeFunction, updateFunction, createEventSourceMapping, 
deleteEventSourceMapping, listEventSourceMapping, listTags, tagResource, 
untagResource, publishVersion, listVersions | invokeFunction |  [...]
+| *overrideEndpoint* (producer) | Set the need for overidding the endpoint. 
This option needs to be used in combination with uriEndpointOverride option | 
false | boolean
 | *pojoRequest* (producer) | If we want to use a POJO request as body or not | 
false | boolean
 | *region* (producer) | 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
 | *trustAllCertificates* (producer) | If we want to trust all certificates in 
case of overriding the endpoint | false | boolean
+| *uriEndpointOverride* (producer) | Set the overriding uri endpoint. This 
option needs to be used in combination with overrideEndpoint option |  | String
 | *awsLambdaClient* (advanced) | *Autowired* To use a existing configured 
AwsLambdaClient as client |  | LambdaClient
 | *proxyHost* (proxy) | To define a proxy host when instantiating the Lambda 
client |  | String
 | *proxyPort* (proxy) | To define a proxy port when instantiating the Lambda 
client |  | Integer

Reply via email to