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

commit d2a9ab462ca52544846230b1784a1a2a7c16c7ce
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Mon Jun 19 14:54:51 2023 +0200

    CAMEL-19159 - Camel-AWS: Support Profile Credential provider as 
configuration - AWS STS
    
    Signed-off-by: Andrea Cosentino <anco...@gmail.com>
---
 .../apache/camel/catalog/components/aws2-sts.json  | 48 ++++++++++----------
 .../dsl/Aws2StsComponentBuilderFactory.java        | 35 +++++++++++++++
 .../endpoint/dsl/STS2EndpointBuilderFactory.java   | 51 ++++++++++++++++++++++
 3 files changed, 112 insertions(+), 22 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-sts.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-sts.json
index 219aa089c90..bd7e9671b63 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-sts.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-sts.json
@@ -27,17 +27,19 @@
     "operation": { "index": 2, "kind": "property", "displayName": "Operation", 
"group": "producer", "label": "", "required": true, "type": "object", 
"javaType": "org.apache.camel.component.aws2.sts.STS2Operations", "enum": [ 
"assumeRole", "getSessionToken", "getFederationToken" ], "deprecated": false, 
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue": 
"assumeRole", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField" 
[...]
     "overrideEndpoint": { "index": 3, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Set the need for overidding the endpoint. This 
option needs to be used in combination wi [...]
     "pojoRequest": { "index": 4, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "If we want to use a POJO request as body or 
not" },
-    "proxyHost": { "index": 5, "kind": "property", "displayName": "Proxy 
Host", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": 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": { "index": 6, "kind": "property", "displayName": "Proxy 
Port", "group": "producer", "label": "", "required": false, "type": "integer", 
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "To define a proxy port when instantiating the 
STS client" },
-    "proxyProtocol": { "index": 7, "kind": "property", "displayName": "Proxy 
Protocol", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", 
"HTTPS" ], "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "HTTPS", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "To define a proxy protocol when ins [...]
-    "region": { "index": 8, "kind": "property", "displayName": "Region", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": "aws-global", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "The region in which STS client needs to work. 
When using this parameter, the configuration wil [...]
-    "stsClient": { "index": 9, "kind": "property", "displayName": "Sts 
Client", "group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "software.amazon.awssdk.services.sts.StsClient", "deprecated": 
false, "deprecationNote": "", "autowired": true, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.sts.STS2Configuration", 
"configurationField": "configuration", "description": "To use a existing 
configured AWS STS as client" },
-    "trustAllCertificates": { "index": 10, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "If we want to trust all certificates in case 
of overriding the endpoint" },
-    "uriEndpointOverride": { "index": 11, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Set the overriding uri endpoint. This option 
needs to be used in combination with overrideEndpo [...]
-    "useDefaultCredentialsProvider": { "index": 12, "kind": "property", 
"displayName": "Use Default Credentials Provider", "group": "producer", 
"label": "", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Set whether the STS client should expect to 
load credential [...]
-    "autowiredEnabled": { "index": 13, "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  [...]
-    "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Access Key" },
-    "secretKey": { "index": 15, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Secret Key" }
+    "profileCredentialsName": { "index": 5, "kind": "property", "displayName": 
"Profile Credentials Name", "group": "producer", "label": "", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "If using a profile credentials provider this 
parameter will set the profile name" },
+    "proxyHost": { "index": 6, "kind": "property", "displayName": "Proxy 
Host", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": 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": { "index": 7, "kind": "property", "displayName": "Proxy 
Port", "group": "producer", "label": "", "required": false, "type": "integer", 
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "To define a proxy port when instantiating the 
STS client" },
+    "proxyProtocol": { "index": 8, "kind": "property", "displayName": "Proxy 
Protocol", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", 
"HTTPS" ], "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "HTTPS", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "To define a proxy protocol when ins [...]
+    "region": { "index": 9, "kind": "property", "displayName": "Region", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": "aws-global", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "The region in which STS client needs to work. 
When using this parameter, the configuration wil [...]
+    "stsClient": { "index": 10, "kind": "property", "displayName": "Sts 
Client", "group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "software.amazon.awssdk.services.sts.StsClient", "deprecated": 
false, "deprecationNote": "", "autowired": true, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.sts.STS2Configuration", 
"configurationField": "configuration", "description": "To use a existing 
configured AWS STS as client" },
+    "trustAllCertificates": { "index": 11, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "If we want to trust all certificates in case 
of overriding the endpoint" },
+    "uriEndpointOverride": { "index": 12, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Set the overriding uri endpoint. This option 
needs to be used in combination with overrideEndpo [...]
+    "useDefaultCredentialsProvider": { "index": 13, "kind": "property", 
"displayName": "Use Default Credentials Provider", "group": "producer", 
"label": "", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Set whether the STS client should expect to 
load credential [...]
+    "useProfileCredentialsProvider": { "index": 14, "kind": "property", 
"displayName": "Use Profile Credentials Provider", "group": "producer", 
"label": "", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Set whether the STS client should expect to 
load credential [...]
+    "autowiredEnabled": { "index": 15, "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  [...]
+    "accessKey": { "index": 16, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Access Key" },
+    "secretKey": { "index": 17, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Secret Key" }
   },
   "headers": {
     "CamelAwsStsOperation": { "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.sts.STS2Constants#OPERATION" },
@@ -50,16 +52,18 @@
     "operation": { "index": 1, "kind": "parameter", "displayName": 
"Operation", "group": "producer", "label": "", "required": true, "type": 
"object", "javaType": "org.apache.camel.component.aws2.sts.STS2Operations", 
"enum": [ "assumeRole", "getSessionToken", "getFederationToken" ], 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "defaultValue": "assumeRole", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField 
[...]
     "overrideEndpoint": { "index": 2, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Set the need for overidding the endpoint. This 
option needs to be used in combination w [...]
     "pojoRequest": { "index": 3, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "If we want to use a POJO request as body or 
not" },
-    "proxyHost": { "index": 4, "kind": "parameter", "displayName": "Proxy 
Host", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": 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": { "index": 5, "kind": "parameter", "displayName": "Proxy 
Port", "group": "producer", "label": "", "required": false, "type": "integer", 
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "To define a proxy port when instantiating the 
STS client" },
-    "proxyProtocol": { "index": 6, "kind": "parameter", "displayName": "Proxy 
Protocol", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", 
"HTTPS" ], "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "HTTPS", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "To define a proxy protocol when in [...]
-    "region": { "index": 7, "kind": "parameter", "displayName": "Region", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": "aws-global", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "The region in which STS client needs to work. 
When using this parameter, the configuration wi [...]
-    "stsClient": { "index": 8, "kind": "parameter", "displayName": "Sts 
Client", "group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "software.amazon.awssdk.services.sts.StsClient", "deprecated": 
false, "deprecationNote": "", "autowired": true, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.sts.STS2Configuration", 
"configurationField": "configuration", "description": "To use a existing 
configured AWS STS as client" },
-    "trustAllCertificates": { "index": 9, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "If we want to trust all certificates in case 
of overriding the endpoint" },
-    "uriEndpointOverride": { "index": 10, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Set the overriding uri endpoint. This option 
needs to be used in combination with overrideEndp [...]
-    "useDefaultCredentialsProvider": { "index": 11, "kind": "parameter", 
"displayName": "Use Default Credentials Provider", "group": "producer", 
"label": "", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Set whether the STS client should expect to 
load credentia [...]
-    "lazyStartProducer": { "index": 12, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "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 produ [...]
-    "accessKey": { "index": 13, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Access Key" },
-    "secretKey": { "index": 14, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Secret Key" }
+    "profileCredentialsName": { "index": 4, "kind": "parameter", 
"displayName": "Profile Credentials Name", "group": "producer", "label": "", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "If using a profile credentials provider this 
parameter will set the profile name" },
+    "proxyHost": { "index": 5, "kind": "parameter", "displayName": "Proxy 
Host", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": 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": { "index": 6, "kind": "parameter", "displayName": "Proxy 
Port", "group": "producer", "label": "", "required": false, "type": "integer", 
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "To define a proxy port when instantiating the 
STS client" },
+    "proxyProtocol": { "index": 7, "kind": "parameter", "displayName": "Proxy 
Protocol", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", 
"HTTPS" ], "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": "HTTPS", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "To define a proxy protocol when in [...]
+    "region": { "index": 8, "kind": "parameter", "displayName": "Region", 
"group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": "aws-global", "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "The region in which STS client needs to work. 
When using this parameter, the configuration wi [...]
+    "stsClient": { "index": 9, "kind": "parameter", "displayName": "Sts 
Client", "group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "software.amazon.awssdk.services.sts.StsClient", "deprecated": 
false, "deprecationNote": "", "autowired": true, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.sts.STS2Configuration", 
"configurationField": "configuration", "description": "To use a existing 
configured AWS STS as client" },
+    "trustAllCertificates": { "index": 10, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "If we want to trust all certificates in case 
of overriding the endpoint" },
+    "uriEndpointOverride": { "index": 11, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Set the overriding uri endpoint. This option 
needs to be used in combination with overrideEndp [...]
+    "useDefaultCredentialsProvider": { "index": 12, "kind": "parameter", 
"displayName": "Use Default Credentials Provider", "group": "producer", 
"label": "", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Set whether the STS client should expect to 
load credentia [...]
+    "useProfileCredentialsProvider": { "index": 13, "kind": "parameter", 
"displayName": "Use Profile Credentials Provider", "group": "producer", 
"label": "", "required": false, "type": "boolean", "javaType": "boolean", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 
false, "configurationClass": 
"org.apache.camel.component.aws2.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Set whether the STS client should expect to 
load credentia [...]
+    "lazyStartProducer": { "index": 14, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "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 produ [...]
+    "accessKey": { "index": 15, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Access Key" },
+    "secretKey": { "index": 16, "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.sts.STS2Configuration", "configurationField": 
"configuration", "description": "Amazon AWS Secret Key" }
   }
 }
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2StsComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2StsComponentBuilderFactory.java
index 26c064f9097..6de77e10bf0 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2StsComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2StsComponentBuilderFactory.java
@@ -137,6 +137,22 @@ public interface Aws2StsComponentBuilderFactory {
             doSetProperty("pojoRequest", pojoRequest);
             return this;
         }
+        /**
+         * If using a profile credentials provider this parameter will set the
+         * profile name.
+         * 
+         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
+         * 
+         * Group: producer
+         * 
+         * @param profileCredentialsName the value to set
+         * @return the dsl builder
+         */
+        default Aws2StsComponentBuilder profileCredentialsName(
+                java.lang.String profileCredentialsName) {
+            doSetProperty("profileCredentialsName", profileCredentialsName);
+            return this;
+        }
         /**
          * To define a proxy host when instantiating the STS client.
          * 
@@ -267,6 +283,23 @@ public interface Aws2StsComponentBuilderFactory {
             doSetProperty("useDefaultCredentialsProvider", 
useDefaultCredentialsProvider);
             return this;
         }
+        /**
+         * Set whether the STS client should expect to load credentials through
+         * a profile credentials provider.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param useProfileCredentialsProvider the value to set
+         * @return the dsl builder
+         */
+        default Aws2StsComponentBuilder useProfileCredentialsProvider(
+                boolean useProfileCredentialsProvider) {
+            doSetProperty("useProfileCredentialsProvider", 
useProfileCredentialsProvider);
+            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
@@ -345,6 +378,7 @@ public interface Aws2StsComponentBuilderFactory {
             case "operation": getOrCreateConfiguration((STS2Component) 
component).setOperation((org.apache.camel.component.aws2.sts.STS2Operations) 
value); return true;
             case "overrideEndpoint": getOrCreateConfiguration((STS2Component) 
component).setOverrideEndpoint((boolean) value); return true;
             case "pojoRequest": getOrCreateConfiguration((STS2Component) 
component).setPojoRequest((boolean) value); return true;
+            case "profileCredentialsName": 
getOrCreateConfiguration((STS2Component) 
component).setProfileCredentialsName((java.lang.String) value); return true;
             case "proxyHost": getOrCreateConfiguration((STS2Component) 
component).setProxyHost((java.lang.String) value); return true;
             case "proxyPort": getOrCreateConfiguration((STS2Component) 
component).setProxyPort((java.lang.Integer) value); return true;
             case "proxyProtocol": getOrCreateConfiguration((STS2Component) 
component).setProxyProtocol((software.amazon.awssdk.core.Protocol) value); 
return true;
@@ -353,6 +387,7 @@ public interface Aws2StsComponentBuilderFactory {
             case "trustAllCertificates": 
getOrCreateConfiguration((STS2Component) 
component).setTrustAllCertificates((boolean) value); return true;
             case "uriEndpointOverride": 
getOrCreateConfiguration((STS2Component) 
component).setUriEndpointOverride((java.lang.String) value); return true;
             case "useDefaultCredentialsProvider": 
getOrCreateConfiguration((STS2Component) 
component).setUseDefaultCredentialsProvider((boolean) value); return true;
+            case "useProfileCredentialsProvider": 
getOrCreateConfiguration((STS2Component) 
component).setUseProfileCredentialsProvider((boolean) value); return true;
             case "autowiredEnabled": ((STS2Component) 
component).setAutowiredEnabled((boolean) value); return true;
             case "accessKey": getOrCreateConfiguration((STS2Component) 
component).setAccessKey((java.lang.String) value); return true;
             case "secretKey": getOrCreateConfiguration((STS2Component) 
component).setSecretKey((java.lang.String) value); return true;
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/STS2EndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/STS2EndpointBuilderFactory.java
index a27c8b2dc9d..6cb2dd9481c 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/STS2EndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/STS2EndpointBuilderFactory.java
@@ -140,6 +140,22 @@ public interface STS2EndpointBuilderFactory {
             doSetProperty("pojoRequest", pojoRequest);
             return this;
         }
+        /**
+         * If using a profile credentials provider this parameter will set the
+         * profile name.
+         * 
+         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
+         * 
+         * Group: producer
+         * 
+         * @param profileCredentialsName the value to set
+         * @return the dsl builder
+         */
+        default STS2EndpointBuilder profileCredentialsName(
+                String profileCredentialsName) {
+            doSetProperty("profileCredentialsName", profileCredentialsName);
+            return this;
+        }
         /**
          * To define a proxy host when instantiating the STS client.
          * 
@@ -353,6 +369,41 @@ public interface STS2EndpointBuilderFactory {
             doSetProperty("useDefaultCredentialsProvider", 
useDefaultCredentialsProvider);
             return this;
         }
+        /**
+         * Set whether the STS client should expect to load credentials through
+         * a profile credentials provider.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param useProfileCredentialsProvider the value to set
+         * @return the dsl builder
+         */
+        default STS2EndpointBuilder useProfileCredentialsProvider(
+                boolean useProfileCredentialsProvider) {
+            doSetProperty("useProfileCredentialsProvider", 
useProfileCredentialsProvider);
+            return this;
+        }
+        /**
+         * Set whether the STS client should expect to load credentials through
+         * a profile credentials provider.
+         * 
+         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
+         * type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param useProfileCredentialsProvider the value to set
+         * @return the dsl builder
+         */
+        default STS2EndpointBuilder useProfileCredentialsProvider(
+                String useProfileCredentialsProvider) {
+            doSetProperty("useProfileCredentialsProvider", 
useProfileCredentialsProvider);
+            return this;
+        }
         /**
          * Amazon AWS Access Key.
          * 

Reply via email to