[
https://issues.apache.org/jira/browse/CAMEL-14598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17041002#comment-17041002
]
Luca Burgazzoli commented on CAMEL-14598:
-----------------------------------------
Probably it can be achieved by adding some additional fields to the Metadata
annotation or introducing a new annotation and generate some code that
initializes the component when it is created.
> Component Properties aliases
> ----------------------------
>
> Key: CAMEL-14598
> URL: https://issues.apache.org/jira/browse/CAMEL-14598
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Luca Burgazzoli
> Priority: Minor
> Fix For: 3.2.0
>
>
> For some components such as those related to AWS service, each component has
> its own authentication configuration option so in case you want to use
> multiple services in the same integration, then you'll end up having to
> repeat them, like:
> {code}
> # S3
> camel.component.aws-s3.access-key={{env:AWS_ACCESS_KEY}}
> camel.component.aws-s3.secret-key={{env:AWS_SECRET_KEY}}
> camel.component.aws-s3.region={{env:AWS_REGION}}
> # SNS
> camel.component.aws-sns.access-key={{env:AWS_ACCESS_KEY}}
> camel.component.aws-sns.secret-key={{env:AWS_SECRET_KEY}}
> camel.component.aws-sns.region={{env:AWS_REGION}}
> {code}
> So I think it would be nice to have an option to define component properties
> aliases so we can rewrite the configuration above like:
> {code}
> aws.access-key={{env:AWS_ACCESS_KEY}}
> aws.secret-key={{env:AWS_SECRET_KEY}}
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)