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 43e40728086d8061813e2e54e4e84f0100a8c705
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Aug 6 08:39:35 2020 +0200

    CAMEL-15374 - Camel-AWS2-STS: Add more operation to the producer, regen docs
---
 .../resources/org/apache/camel/component/aws2/sts/aws2-sts.json       | 4 ++--
 components/camel-aws2-sts/src/main/docs/aws2-sts-component.adoc       | 4 ++--
 .../apache/camel/builder/endpoint/dsl/STS2EndpointBuilderFactory.java | 3 ++-
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git 
a/components/camel-aws2-sts/src/generated/resources/org/apache/camel/component/aws2/sts/aws2-sts.json
 
b/components/camel-aws2-sts/src/generated/resources/org/apache/camel/component/aws2/sts/aws2-sts.json
index b256f65..a6045b6 100644
--- 
a/components/camel-aws2-sts/src/generated/resources/org/apache/camel/component/aws2/sts/aws2-sts.json
+++ 
b/components/camel-aws2-sts/src/generated/resources/org/apache/camel/component/aws2/sts/aws2-sts.json
@@ -24,7 +24,7 @@
     "autoDiscoverClient": { "kind": "property", "displayName": "Auto Discover 
Client", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": "true", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the regist [...]
     "configuration": { "kind": "property", "displayName": "Configuration", 
"group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "org.apache.camel.component.aws2.sts.STS2Configuration", 
"deprecated": 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, "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 r [...]
-    "operation": { "kind": "property", "displayName": "Operation", "group": 
"producer", "label": "", "required": true, "type": "object", "javaType": 
"org.apache.camel.component.aws2.sts.STS2Operations", "enum": [ "assumeRole" ], 
"deprecated": false, "deprecationNote": "", "secret": false, "defaultValue": 
"assumeRole", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "The operation to perform" },
+    "operation": { "kind": "property", "displayName": "Operation", "group": 
"producer", "label": "", "required": true, "type": "object", "javaType": 
"org.apache.camel.component.aws2.sts.STS2Operations", "enum": [ "assumeRole", 
"getSessionToken" ], "deprecated": false, "deprecationNote": "", "secret": 
false, "defaultValue": "assumeRole", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "The operation to pe [...]
     "pojoRequest": { "kind": "property", "displayName": "Pojo Request", 
"group": "producer", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"false", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "If we want to use a POJO request as body or 
not" },
     "proxyHost": { "kind": "property", "displayName": "Proxy Host", "group": 
"producer", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "To define a proxy host when instantiating the 
STS client" },
     "proxyPort": { "kind": "property", "displayName": "Proxy Port", "group": 
"producer", "label": "", "required": false, "type": "integer", "javaType": 
"java.lang.Integer", "deprecated": false, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.sts.STS2Configuration", 
"configurationField": "configuration", "description": "To define a proxy port 
when instantiating the STS client" },
@@ -40,7 +40,7 @@
     "label": { "kind": "path", "displayName": "Label", "group": "producer", 
"label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "deprecationNote": "", "secret": 
false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Logical name" },
     "autoDiscoverClient": { "kind": "parameter", "displayName": "Auto Discover 
Client", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": "true", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the regis [...]
     "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": true, "type": "object", "javaType": 
"org.apache.camel.component.aws2.sts.STS2Operations", "enum": [ "assumeRole" ], 
"deprecated": false, "deprecationNote": "", "secret": false, "defaultValue": 
"assumeRole", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "The operation to perform" },
+    "operation": { "kind": "parameter", "displayName": "Operation", "group": 
"producer", "label": "", "required": true, "type": "object", "javaType": 
"org.apache.camel.component.aws2.sts.STS2Operations", "enum": [ "assumeRole", 
"getSessionToken" ], "deprecated": false, "deprecationNote": "", "secret": 
false, "defaultValue": "assumeRole", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "The operation to p [...]
     "pojoRequest": { "kind": "parameter", "displayName": "Pojo Request", 
"group": "producer", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"false", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "If we want to use a POJO request as body or 
not" },
     "proxyHost": { "kind": "parameter", "displayName": "Proxy Host", "group": 
"producer", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "To define a proxy host when instantiating the 
STS client" },
     "proxyPort": { "kind": "parameter", "displayName": "Proxy Port", "group": 
"producer", "label": "", "required": false, "type": "integer", "javaType": 
"java.lang.Integer", "deprecated": false, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.sts.STS2Configuration", 
"configurationField": "configuration", "description": "To define a proxy port 
when instantiating the STS client" },
diff --git a/components/camel-aws2-sts/src/main/docs/aws2-sts-component.adoc 
b/components/camel-aws2-sts/src/main/docs/aws2-sts-component.adoc
index eabe3f8..c99f9a9 100644
--- a/components/camel-aws2-sts/src/main/docs/aws2-sts-component.adoc
+++ b/components/camel-aws2-sts/src/main/docs/aws2-sts-component.adoc
@@ -51,7 +51,7 @@ The AWS 2 Security Token Service (STS) component supports 14 
options, which are
 | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the registry 
automatically otherwise it will skip that checking. | true | boolean
 | *configuration* (producer) | Component configuration |  | STS2Configuration
 | *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) | *Required* The operation to perform. The value can 
be one of: assumeRole | assumeRole | STS2Operations
+| *operation* (producer) | *Required* The operation to perform. The value can 
be one of: assumeRole, getSessionToken | assumeRole | STS2Operations
 | *pojoRequest* (producer) | If we want to use a POJO request as body or not | 
false | boolean
 | *proxyHost* (producer) | To define a proxy host when instantiating the STS 
client |  | String
 | *proxyPort* (producer) | To define a proxy port when instantiating the STS 
client |  | Integer
@@ -95,7 +95,7 @@ with the following path and query parameters:
 | Name | Description | Default | Type
 | *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the registry 
automatically otherwise it will skip that checking. | true | boolean
 | *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) | *Required* The operation to perform. The value can 
be one of: assumeRole | assumeRole | STS2Operations
+| *operation* (producer) | *Required* The operation to perform. The value can 
be one of: assumeRole, getSessionToken | assumeRole | STS2Operations
 | *pojoRequest* (producer) | If we want to use a POJO request as body or not | 
false | boolean
 | *proxyHost* (producer) | To define a proxy host when instantiating the STS 
client |  | String
 | *proxyPort* (producer) | To define a proxy port when instantiating the STS 
client |  | Integer
diff --git 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/STS2EndpointBuilderFactory.java
 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/STS2EndpointBuilderFactory.java
index 4e66623..c67bf6c 100644
--- 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/STS2EndpointBuilderFactory.java
+++ 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/STS2EndpointBuilderFactory.java
@@ -381,7 +381,8 @@ public interface STS2EndpointBuilderFactory {
      * <code>org.apache.camel.component.aws2.sts.STS2Operations</code> enum.
      */
     enum STS2Operations {
-        assumeRole;
+        assumeRole,
+        getSessionToken;
     }
 
     /**

Reply via email to