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 6bcdc09fa4889187f5a876a70f4fbcbf3f43bcc0
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Feb 20 14:49:04 2020 +0100

    Camel-AWS2-Lambda: Better description for region
---
 .../org/apache/camel/component/aws2/lambda/aws2-lambda.json        | 2 +-
 .../camel-aws2-lambda/src/main/docs/aws2-lambda-component.adoc     | 2 +-
 .../apache/camel/component/aws2/lambda/Lambda2Configuration.java   | 7 ++++---
 3 files changed, 6 insertions(+), 5 deletions(-)

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 c5b020b..5a8d2a2 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
@@ -30,7 +30,7 @@
     "function": { "kind": "path", "displayName": "Function", "group": 
"producer", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "deprecationNote": "", "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, "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 starting and cause the  [...]
     "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", " [...]
-    "region": { "kind": "parameter", "displayName": "Region", "group": 
"producer", "label": "producer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "Amazon AWS Region. When 
using this parameter, the configuration will expect the capitalized name of the 
region (for example AP_EAST_1) You'll [...]
+    "region": { "kind": "parameter", "displayName": "Region", "group": 
"producer", "label": "producer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": 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 region (for  [...]
     "awsLambdaClient": { "kind": "parameter", "displayName": "Aws Lambda 
Client", "group": "advanced", "label": "advanced", "required": false, "type": 
"object", "javaType": "software.amazon.awssdk.services.lambda.LambdaClient", 
"deprecated": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.lambda.Lambda2Configuration", 
"configurationField": "configuration", "description": "To use a existing 
configured AwsLambdaClient as client" },
     "basicPropertyBinding": { "kind": "parameter", "displayName": "Basic 
Property Binding", "group": "advanced", "label": "advanced", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": false, "description": "Whether the endpoint should use basic 
property binding (Camel 2.x) or the newer property binding with additional 
capabilities" },
     "synchronous": { "kind": "parameter", "displayName": "Synchronous", 
"group": "advanced", "label": "advanced", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"false", "description": "Sets whether synchronous processing should be strictly 
used, or Camel is allowed to use asynchronous processing (if supported)." },
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 e9d82f0..f4216d7 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
@@ -86,7 +86,7 @@ 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. 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 | Lambda2Operations
-| *region* (producer) | Amazon AWS Region. When using this parameter, the 
configuration will expect the capitalized name of the region (for example 
AP_EAST_1) You'll need to use the name Regions.EU_WEST_1.name() |  | String
+| *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
 | *awsLambdaClient* (advanced) | To use a existing configured AwsLambdaClient 
as client |  | LambdaClient
 | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic 
property binding (Camel 2.x) or the newer property binding with additional 
capabilities | false | boolean
 | *synchronous* (advanced) | Sets whether synchronous processing should be 
strictly used, or Camel is allowed to use asynchronous processing (if 
supported). | false | boolean
diff --git 
a/components/camel-aws2-lambda/src/main/java/org/apache/camel/component/aws2/lambda/Lambda2Configuration.java
 
b/components/camel-aws2-lambda/src/main/java/org/apache/camel/component/aws2/lambda/Lambda2Configuration.java
index d315f94..e759d47 100644
--- 
a/components/camel-aws2-lambda/src/main/java/org/apache/camel/component/aws2/lambda/Lambda2Configuration.java
+++ 
b/components/camel-aws2-lambda/src/main/java/org/apache/camel/component/aws2/lambda/Lambda2Configuration.java
@@ -80,9 +80,10 @@ public class Lambda2Configuration implements Cloneable {
     }
 
     /**
-     * Amazon AWS Region. When using this parameter, the configuration will
-     * expect the capitalized name of the region (for example AP_EAST_1) You'll
-     * need to use the name Regions.EU_WEST_1.name()
+     * 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()
      */
     public void setRegion(String region) {
         this.region = region;

Reply via email to