[ 
https://issues.apache.org/jira/browse/CAMEL-14717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17059383#comment-17059383
 ] 

Claus Ibsen edited comment on CAMEL-14717 at 3/16/20, 8:28 AM:
---------------------------------------------------------------

camel.component.aws*.access-key=myAccessKey
camel.component.aws*.secret-key=mySecretKey
camel.component.aws*.region=US_EAST_1
?camel.component.aws*.unknown=does not exist

So you can mark the option as optional by using ? in the beginning of they key 
name (ignore missing key)


was (Author: davsclaus):
camel.component.aws*.access-key=myAccessKey
camel.component.aws*.secret-key=mySecretKey
camel.component.aws*.region=US_EAST_1
camel.component.aws*.unknown?=does not exist

So you can say unknown? to indicate its an optional key that should only be set 
if its there or not (ignore missing key)

> camel-core - Binding properties add support for optional keys
> -------------------------------------------------------------
>
>                 Key: CAMEL-14717
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14717
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, camel-main
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.2.0
>
>
> See https://issues.apache.org/jira/browse/CAMEL-14598
> So you can use keys that may be optional, by having a ? at the end of the key 
> name



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to