title: Passing S3 Bucket Name with as a Parameter from properties file to aws-s3 camel component
body: <p>I have a camel route end point as below where I want to replace the hardcoded s3 bucket name and replace with a parameter and pass it from a Properties file. </p>
  
  <pre><code>&lt;to uri="aws-s3://input-test-bucket?amazonS3Client=#aws-s3-client"/&gt; 
  </code></pre>
  
  <p>I have a bean as below which passes the aws-s3-client containing the access key and the secret key </p>
  
  <pre><code>&lt;bean id="aws-s3-client" class="com.amazonaws.services.s3.AmazonS3Clie nt"&gt; 
  &lt;constructor-arg&gt; 
  &lt;bean class="com.amazonaws.auth.BasicAWSCredentials "&gt; 
  &lt;constructor-arg index="0" value="${aws.accessKey}"/&gt; 
  &lt;constructor-arg index="1" value="${aws.secretKey}"/&gt; 
  &lt;/bean&gt; 
  &lt;/constructor-arg&gt; 
  &lt;/bean&gt; 
  </code></pre>
  
  <p>The values for the aws.accessKey and the aws.secretKey are coming from a properties file from where I want the bucket name also to be taken. </p>
  
  <p>Please could anyone let me know how to add the bucket name to the bean and pass it to the aws-s3 route as a parameter.</p>