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

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


The following commit(s) were added to refs/heads/main by this push:
     new e2dd55b47b0 Regen
e2dd55b47b0 is described below

commit e2dd55b47b0b3a168dc0c6c02d7dec97fcc69fc2
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue Feb 6 10:56:32 2024 +0100

    Regen
    
    Signed-off-by: Andrea Cosentino <anco...@gmail.com>
---
 .../springboot/catalog/components/aws2-ecs.json    | 16 ++++++++-----
 .../src/main/docs/aws2-ecs.json                    | 13 +++++++++++
 .../ecs/springboot/ECS2ComponentConfiguration.java | 26 ++++++++++++++++++++++
 3 files changed, 49 insertions(+), 6 deletions(-)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-ecs.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-ecs.json
index 65624baabc3..537e38494fc 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-ecs.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-ecs.json
@@ -40,9 +40,11 @@
     "accessKey": { "index": 14, "kind": "property", "displayName": "Access 
Key", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": true, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Access Key" },
     "profileCredentialsName": { "index": 15, "kind": "property", 
"displayName": "Profile Credentials Name", "group": "security", "label": 
"security", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.ecs.ECS2Configuration", 
"configurationField": "configuration", "description": "If using a profile 
credentials provider this parameter will set the profile name" },
     "secretKey": { "index": 16, "kind": "property", "displayName": "Secret 
Key", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": true, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Secret Key" },
-    "trustAllCertificates": { "index": 17, "kind": "property", "displayName": 
"Trust All Certificates", "group": "security", "label": "security", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.aws2.ecs.ECS2Configuration", 
"configurationField": "configuration", "description": "If we want to trust all 
certificates in case of overriding the endpoint" },
-    "useDefaultCredentialsProvider": { "index": 18, "kind": "property", 
"displayName": "Use Default Credentials Provider", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Set whether the ECS client should expect to 
load cr [...]
-    "useProfileCredentialsProvider": { "index": 19, "kind": "property", 
"displayName": "Use Profile Credentials Provider", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Set whether the ECS client should expect to 
load cr [...]
+    "sessionToken": { "index": 17, "kind": "property", "displayName": "Session 
Token", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": true, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Session Token used when the user 
needs to assume a IAM role" },
+    "trustAllCertificates": { "index": 18, "kind": "property", "displayName": 
"Trust All Certificates", "group": "security", "label": "security", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.aws2.ecs.ECS2Configuration", 
"configurationField": "configuration", "description": "If we want to trust all 
certificates in case of overriding the endpoint" },
+    "useDefaultCredentialsProvider": { "index": 19, "kind": "property", 
"displayName": "Use Default Credentials Provider", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Set whether the ECS client should expect to 
load cr [...]
+    "useProfileCredentialsProvider": { "index": 20, "kind": "property", 
"displayName": "Use Profile Credentials Provider", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Set whether the ECS client should expect to 
load cr [...]
+    "useSessionCredentials": { "index": 21, "kind": "property", "displayName": 
"Use Session Credentials", "group": "security", "label": "security", 
"required": false, "type": "boolean", "javaType": "boolean", "deprecated": 
false, "autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.aws2.ecs.ECS2Configuration", 
"configurationField": "configuration", "description": "Set whether the ECS 
client should expect to use Session Credentials. [...]
   },
   "headers": {
     "CamelAwsECSOperation": { "index": 0, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "The operation we want to perform", "constantName": 
"org.apache.camel.component.aws2.ecs.ECS2Constants#OPERATION" },
@@ -64,8 +66,10 @@
     "accessKey": { "index": 11, "kind": "parameter", "displayName": "Access 
Key", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": true, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Access Key" },
     "profileCredentialsName": { "index": 12, "kind": "parameter", 
"displayName": "Profile Credentials Name", "group": "security", "label": 
"security", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.ecs.ECS2Configuration", 
"configurationField": "configuration", "description": "If using a profile 
credentials provider this parameter will set the profile name" },
     "secretKey": { "index": 13, "kind": "parameter", "displayName": "Secret 
Key", "group": "security", "label": "security", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": true, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Secret Key" },
-    "trustAllCertificates": { "index": 14, "kind": "parameter", "displayName": 
"Trust All Certificates", "group": "security", "label": "security", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.aws2.ecs.ECS2Configuration", 
"configurationField": "configuration", "description": "If we want to trust all 
certificates in case of overriding the endpoint" },
-    "useDefaultCredentialsProvider": { "index": 15, "kind": "parameter", 
"displayName": "Use Default Credentials Provider", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Set whether the ECS client should expect to 
load c [...]
-    "useProfileCredentialsProvider": { "index": 16, "kind": "parameter", 
"displayName": "Use Profile Credentials Provider", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Set whether the ECS client should expect to 
load c [...]
+    "sessionToken": { "index": 14, "kind": "parameter", "displayName": 
"Session Token", "group": "security", "label": "security", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": true, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Session Token used when the user 
needs to assume a IAM role" },
+    "trustAllCertificates": { "index": 15, "kind": "parameter", "displayName": 
"Trust All Certificates", "group": "security", "label": "security", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, 
"configurationClass": "org.apache.camel.component.aws2.ecs.ECS2Configuration", 
"configurationField": "configuration", "description": "If we want to trust all 
certificates in case of overriding the endpoint" },
+    "useDefaultCredentialsProvider": { "index": 16, "kind": "parameter", 
"displayName": "Use Default Credentials Provider", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Set whether the ECS client should expect to 
load c [...]
+    "useProfileCredentialsProvider": { "index": 17, "kind": "parameter", 
"displayName": "Use Profile Credentials Provider", "group": "security", 
"label": "security", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Set whether the ECS client should expect to 
load c [...]
+    "useSessionCredentials": { "index": 18, "kind": "parameter", 
"displayName": "Use Session Credentials", "group": "security", "label": 
"security", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.aws2.ecs.ECS2Configuration", "configurationField": 
"configuration", "description": "Set whether the ECS client should expect to 
use Session Credentials [...]
   }
 }
diff --git 
a/components-starter/camel-aws2-ecs-starter/src/main/docs/aws2-ecs.json 
b/components-starter/camel-aws2-ecs-starter/src/main/docs/aws2-ecs.json
index a2df2ef0eea..ff76e42b805 100644
--- a/components-starter/camel-aws2-ecs-starter/src/main/docs/aws2-ecs.json
+++ b/components-starter/camel-aws2-ecs-starter/src/main/docs/aws2-ecs.json
@@ -126,6 +126,12 @@
       "description": "Amazon AWS Secret Key",
       "sourceType": 
"org.apache.camel.component.aws2.ecs.springboot.ECS2ComponentConfiguration"
     },
+    {
+      "name": "camel.component.aws2-ecs.session-token",
+      "type": "java.lang.String",
+      "description": "Amazon AWS Session Token used when the user needs to 
assume a IAM role",
+      "sourceType": 
"org.apache.camel.component.aws2.ecs.springboot.ECS2ComponentConfiguration"
+    },
     {
       "name": "camel.component.aws2-ecs.trust-all-certificates",
       "type": "java.lang.Boolean",
@@ -152,6 +158,13 @@
       "description": "Set whether the ECS client should expect to load 
credentials through a profile credentials provider.",
       "sourceType": 
"org.apache.camel.component.aws2.ecs.springboot.ECS2ComponentConfiguration",
       "defaultValue": false
+    },
+    {
+      "name": "camel.component.aws2-ecs.use-session-credentials",
+      "type": "java.lang.Boolean",
+      "description": "Set whether the ECS client should expect to use Session 
Credentials. This is useful in situation in which the user needs to assume a 
IAM role for doing operations in ECS.",
+      "sourceType": 
"org.apache.camel.component.aws2.ecs.springboot.ECS2ComponentConfiguration",
+      "defaultValue": false
     }
   ],
   "hints": []
diff --git 
a/components-starter/camel-aws2-ecs-starter/src/main/java/org/apache/camel/component/aws2/ecs/springboot/ECS2ComponentConfiguration.java
 
b/components-starter/camel-aws2-ecs-starter/src/main/java/org/apache/camel/component/aws2/ecs/springboot/ECS2ComponentConfiguration.java
index 2b176872384..fdc28ee2fde 100644
--- 
a/components-starter/camel-aws2-ecs-starter/src/main/java/org/apache/camel/component/aws2/ecs/springboot/ECS2ComponentConfiguration.java
+++ 
b/components-starter/camel-aws2-ecs-starter/src/main/java/org/apache/camel/component/aws2/ecs/springboot/ECS2ComponentConfiguration.java
@@ -130,6 +130,10 @@ public class ECS2ComponentConfiguration
      * Amazon AWS Secret Key
      */
     private String secretKey;
+    /**
+     * Amazon AWS Session Token used when the user needs to assume a IAM role
+     */
+    private String sessionToken;
     /**
      * If we want to trust all certificates in case of overriding the endpoint
      */
@@ -145,6 +149,12 @@ public class ECS2ComponentConfiguration
      * profile credentials provider.
      */
     private Boolean useProfileCredentialsProvider = false;
+    /**
+     * Set whether the ECS client should expect to use Session Credentials. 
This
+     * is useful in situation in which the user needs to assume a IAM role for
+     * doing operations in ECS.
+     */
+    private Boolean useSessionCredentials = false;
 
     public ECS2Configuration getConfiguration() {
         return configuration;
@@ -282,6 +292,14 @@ public class ECS2ComponentConfiguration
         this.secretKey = secretKey;
     }
 
+    public String getSessionToken() {
+        return sessionToken;
+    }
+
+    public void setSessionToken(String sessionToken) {
+        this.sessionToken = sessionToken;
+    }
+
     public Boolean getTrustAllCertificates() {
         return trustAllCertificates;
     }
@@ -307,4 +325,12 @@ public class ECS2ComponentConfiguration
             Boolean useProfileCredentialsProvider) {
         this.useProfileCredentialsProvider = useProfileCredentialsProvider;
     }
+
+    public Boolean getUseSessionCredentials() {
+        return useSessionCredentials;
+    }
+
+    public void setUseSessionCredentials(Boolean useSessionCredentials) {
+        this.useSessionCredentials = useSessionCredentials;
+    }
 }
\ No newline at end of file

Reply via email to