You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/05/28 11:26:08 UTC

[camel] branch master updated (e244720 -> 5efdabf)

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

acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from e244720  Regen docs
     new 47342db  CAMEL-13591 - Camel-AWS S3: Add an option for the autocreation of the bucket
     new f200caa  CAMEL-13591 - Fixed CS
     new 3baeec0  CAMEL-13591 - Docs
     new f69e4da  Regen
     new 5efdabf  Regen of Regen

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/docs/aws-s3-component.adoc            | 11 +++++--
 .../camel/component/aws/s3/S3Configuration.java    | 35 +++++++++++++++-------
 .../apache/camel/component/aws/s3/S3Endpoint.java  | 15 +++++-----
 .../aws/s3/S3ComponentConfigurationTest.java       | 13 ++++++++
 .../modules/ROOT/pages/aws-s3-component.adoc       | 11 +++++--
 .../s3/springboot/S3ComponentConfiguration.java    | 12 ++++++++
 6 files changed, 75 insertions(+), 22 deletions(-)


[camel] 01/05: CAMEL-13591 - Camel-AWS S3: Add an option for the autocreation of the bucket

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 47342dbf4a7650c101d44b24a21c1b5404236a9b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue May 28 13:04:36 2019 +0200

    CAMEL-13591 - Camel-AWS S3: Add an option for the autocreation of the bucket
---
 .../camel-aws-s3/src/main/docs/aws-s3-component.adoc      |  3 ++-
 .../apache/camel/component/aws/s3/S3Configuration.java    | 15 ++++++++++++++-
 .../org/apache/camel/component/aws/s3/S3Endpoint.java     |  2 ++
 .../component/aws/s3/S3ComponentConfigurationTest.java    | 13 +++++++++++++
 .../aws/s3/springboot/S3ComponentConfiguration.java       | 12 ++++++++++++
 5 files changed, 43 insertions(+), 2 deletions(-)

diff --git a/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc b/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc
index e5a3120..23020b4 100644
--- a/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc
+++ b/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc
@@ -81,13 +81,14 @@ with the following path and query parameters:
 |===
 
 
-==== Query Parameters (52 parameters):
+==== Query Parameters (53 parameters):
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
 | *amazonS3Client* (common) | Reference to a com.amazonaws.services.s3.AmazonS3 in the link:registry.htmlRegistry. |  | AmazonS3
+| *autoCreateBucket* (common) | Setting the autocreation of the bucket | true | boolean
 | *pathStyleAccess* (common) | Whether or not the S3 client should use path style access | false | boolean
 | *policy* (common) | The policy for this queue to set in the com.amazonaws.services.s3.AmazonS3#setBucketPolicy() method. |  | String
 | *proxyHost* (common) | To define a proxy host when instantiating the SQS client |  | String
diff --git a/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Configuration.java b/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Configuration.java
index 7c71a2f..86f4382 100644
--- a/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Configuration.java
+++ b/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Configuration.java
@@ -82,6 +82,8 @@ public class S3Configuration implements Cloneable {
     private boolean payloadSigningEnabled;
     @UriParam(label = "common, advanced", defaultValue = "false")
     private boolean forceGlobalBucketAccessEnabled;
+    @UriParam(label = "common", defaultValue = "true")
+    private boolean autoCreateBucket = true;
     @UriParam(label = "producer,advanced", defaultValue = "false")
     private boolean useAwsKMS;
     @UriParam(label = "producer,advanced")
@@ -462,7 +464,18 @@ public class S3Configuration implements Cloneable {
         return useIAMCredentials;
     }
 
-    public boolean hasProxyConfiguration() {
+    public boolean isAutoCreateBucket() {
+		return autoCreateBucket;
+	}
+
+    /**
+     * Setting the autocreation of the bucket
+     */
+	public void setAutoCreateBucket(boolean autoCreateBucket) {
+		this.autoCreateBucket = autoCreateBucket;
+	}
+
+	public boolean hasProxyConfiguration() {
         return ObjectHelper.isNotEmpty(getProxyHost()) && ObjectHelper.isNotEmpty(getProxyPort());
     }
     
diff --git a/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Endpoint.java b/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Endpoint.java
index c8cb678..d11aae7 100644
--- a/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Endpoint.java
+++ b/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Endpoint.java
@@ -110,6 +110,7 @@ public class S3Endpoint extends ScheduledPollEndpoint {
 
         LOG.trace("Bucket [{}] doesn't exist yet", bucketName);
 
+        if (getConfiguration().isAutoCreateBucket()) {
         // creates the new bucket because it doesn't exist yet
         CreateBucketRequest createBucketRequest = new CreateBucketRequest(getConfiguration().getBucketName());
 
@@ -118,6 +119,7 @@ public class S3Endpoint extends ScheduledPollEndpoint {
         s3Client.createBucket(createBucketRequest);
 
         LOG.trace("Bucket created");
+        }
 
         if (configuration.getPolicy() != null) {
             LOG.trace("Updating bucket [{}] with policy [{}]", bucketName, configuration.getPolicy());
diff --git a/components/camel-aws-s3/src/test/java/org/apache/camel/component/aws/s3/S3ComponentConfigurationTest.java b/components/camel-aws-s3/src/test/java/org/apache/camel/component/aws/s3/S3ComponentConfigurationTest.java
index e81a4c0..bde0a75 100644
--- a/components/camel-aws-s3/src/test/java/org/apache/camel/component/aws/s3/S3ComponentConfigurationTest.java
+++ b/components/camel-aws-s3/src/test/java/org/apache/camel/component/aws/s3/S3ComponentConfigurationTest.java
@@ -219,6 +219,19 @@ public class S3ComponentConfigurationTest extends CamelTestSupport {
         assertEquals("yyy", endpoint.getConfiguration().getSecretKey());
         assertTrue(endpoint.getConfiguration().isForceGlobalBucketAccessEnabled());
     }
+    
+    @Test
+    public void createEndpointWithAutocreateOption() throws Exception {
+
+        S3Component component = new S3Component(context);
+        S3Endpoint endpoint = (S3Endpoint)component.createEndpoint("aws-s3://MyBucket?forceGlobalBucketAccessEnabled=true&accessKey=xxx&secretKey=yyy&region=US_WEST_1&autoCreateBucket=false");
+
+        assertEquals("MyBucket", endpoint.getConfiguration().getBucketName());
+        assertEquals("xxx", endpoint.getConfiguration().getAccessKey());
+        assertEquals("yyy", endpoint.getConfiguration().getSecretKey());
+        assertTrue(endpoint.getConfiguration().isForceGlobalBucketAccessEnabled());
+        assertFalse(endpoint.getConfiguration().isAutoCreateBucket());
+    }
 
     @Test
     public void createEndpointWithoutSecretKeyAndAccessKeyConfiguration() throws Exception {
diff --git a/platforms/spring-boot/components-starter/camel-aws-s3-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-aws-s3-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentConfiguration.java
index 6aa6895..66eda9d 100644
--- a/platforms/spring-boot/components-starter/camel-aws-s3-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentConfiguration.java
+++ b/platforms/spring-boot/components-starter/camel-aws-s3-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentConfiguration.java
@@ -276,6 +276,10 @@ public class S3ComponentConfiguration
          * instance or to expect static credentials to be passed in.
          */
         private Boolean useIAMCredentials = false;
+        /**
+         * Setting the autocreation of the bucket
+         */
+        private Boolean autoCreateBucket = true;
 
         public Long getPartSize() {
             return partSize;
@@ -526,5 +530,13 @@ public class S3ComponentConfiguration
         public void setUseIAMCredentials(Boolean useIAMCredentials) {
             this.useIAMCredentials = useIAMCredentials;
         }
+
+        public Boolean getAutoCreateBucket() {
+            return autoCreateBucket;
+        }
+
+        public void setAutoCreateBucket(Boolean autoCreateBucket) {
+            this.autoCreateBucket = autoCreateBucket;
+        }
     }
 }
\ No newline at end of file


[camel] 05/05: Regen of Regen

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 5efdabf0060b2faa0ae6e35f62a3d1070c1f7755
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue May 28 13:25:42 2019 +0200

    Regen of Regen
---
 components/readme.adoc | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/components/readme.adoc b/components/readme.adoc
index a3293e0..ebbbf5f 100644
--- a/components/readme.adoc
+++ b/components/readme.adoc
@@ -1,7 +1,7 @@
 ==== Components
 
 // components: START
-Number of Components: 293 in 230 JAR artifacts (0 deprecated)
+Number of Components: 296 in 233 JAR artifacts (0 deprecated)
 
 [width="100%",cols="4,1,5",options="header"]
 |===
@@ -112,6 +112,12 @@ Number of Components: 293 in 230 JAR artifacts (0 deprecated)
 | link:camel-aws-ses/src/main/docs/aws-ses-component.adoc[AWS Simple Email Service] (camel-aws-ses) +
 `aws-ses:from` | 2.9 | The aws-ses component is used for sending emails with Amazon's SES service.
 
+| link:camel-aws-sns/src/main/docs/aws-sns-component.adoc[AWS Simple Notification System] (camel-aws-sns) +
+`aws-sns:topicNameOrArn` | 2.8 | The aws-sns component is used for sending messages to an Amazon Simple Notification Topic.
+
+| link:camel-aws-sqs/src/main/docs/aws-sqs-component.adoc[AWS Simple Queue Service] (camel-aws-sqs) +
+`aws-sqs:queueNameOrArn` | 2.6 | The aws-sqs component is used for sending and receiving messages to Amazon's SQS service.
+
 | link:camel-aws-swf/src/main/docs/aws-swf-component.adoc[AWS Simple Workflow] (camel-aws-swf) +
 `aws-swf:type` | 2.13 | The aws-swf component is used for managing workflows from Amazon Simple Workflow.
 
@@ -481,6 +487,9 @@ Number of Components: 293 in 230 JAR artifacts (0 deprecated)
 | link:camel-jt400/src/main/docs/jt400-component.adoc[JT400] (camel-jt400) +
 `jt400:userID:password/systemName/objectPath.type` | 1.5 | The jt400 component allows you to exchanges messages with an AS/400 system using data queues or program call.
 
+| link:camel-kafka/src/main/docs/kafka-component.adoc[Kafka] (camel-kafka) +
+`kafka:topic` | 2.13 | The kafka component allows messages to be sent to (or consumed from) Apache Kafka brokers.
+
 | link:camel-kubernetes/src/main/docs/kubernetes-config-maps-component.adoc[Kubernetes ConfigMap] (camel-kubernetes) +
 `kubernetes-config-maps:masterUrl` | 2.17 | The Kubernetes Configmaps component provides a producer to execute kubernetes configmap operations.
 


[camel] 02/05: CAMEL-13591 - Fixed CS

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit f200caa64648e3878c4b3c4454716744b4257ff2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue May 28 13:05:59 2019 +0200

    CAMEL-13591 - Fixed CS
---
 .../camel/component/aws/s3/S3Configuration.java    | 34 +++++++++++-----------
 .../apache/camel/component/aws/s3/S3Endpoint.java  | 13 ++++-----
 2 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Configuration.java b/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Configuration.java
index 86f4382..91bc4a2 100644
--- a/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Configuration.java
+++ b/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Configuration.java
@@ -96,8 +96,8 @@ public class S3Configuration implements Cloneable {
     }
 
     /**
-     * Setup the partSize which is used in multi part upload,
-     * the default size is 25M.
+     * Setup the partSize which is used in multi part upload, the default size
+     * is 25M.
      */
     public void setPartSize(long partSize) {
         this.partSize = partSize;
@@ -108,8 +108,8 @@ public class S3Configuration implements Cloneable {
     }
 
     /**
-     * If it is true, camel will upload the file with multi part
-     * format, the part size is decided by the option of `partSize`
+     * If it is true, camel will upload the file with multi part format, the
+     * part size is decided by the option of `partSize`
      */
     public void setMultiPartUpload(boolean multiPartUpload) {
         this.multiPartUpload = multiPartUpload;
@@ -152,7 +152,7 @@ public class S3Configuration implements Cloneable {
     public String getPrefix() {
         return prefix;
     }
-    
+
     /**
      * The prefix which is used in the
      * com.amazonaws.services.s3.model.ListObjectsRequest to only consume
@@ -161,7 +161,7 @@ public class S3Configuration implements Cloneable {
     public void setPrefix(String prefix) {
         this.prefix = prefix;
     }
-    
+
     public String getDelimiter() {
         return delimiter;
     }
@@ -285,8 +285,8 @@ public class S3Configuration implements Cloneable {
     }
 
     /**
-     * Sets the server-side encryption algorithm when encrypting
-     * the object using AWS-managed keys. For example use <tt>AES256</tt>.
+     * Sets the server-side encryption algorithm when encrypting the object
+     * using AWS-managed keys. For example use <tt>AES256</tt>.
      */
     public void setServerSideEncryption(String serverSideEncryption) {
         this.serverSideEncryption = serverSideEncryption;
@@ -453,8 +453,8 @@ public class S3Configuration implements Cloneable {
     }
 
     /**
-     * Set whether the S3 client should expect to load credentials on an EC2 instance or to
-     * expect static credentials to be passed in.
+     * Set whether the S3 client should expect to load credentials on an EC2
+     * instance or to expect static credentials to be passed in.
      */
     public void setUseIAMCredentials(Boolean useIAMCredentials) {
         this.useIAMCredentials = useIAMCredentials;
@@ -465,20 +465,20 @@ public class S3Configuration implements Cloneable {
     }
 
     public boolean isAutoCreateBucket() {
-		return autoCreateBucket;
-	}
+        return autoCreateBucket;
+    }
 
     /**
      * Setting the autocreation of the bucket
      */
-	public void setAutoCreateBucket(boolean autoCreateBucket) {
-		this.autoCreateBucket = autoCreateBucket;
-	}
+    public void setAutoCreateBucket(boolean autoCreateBucket) {
+        this.autoCreateBucket = autoCreateBucket;
+    }
 
-	public boolean hasProxyConfiguration() {
+    public boolean hasProxyConfiguration() {
         return ObjectHelper.isNotEmpty(getProxyHost()) && ObjectHelper.isNotEmpty(getProxyPort());
     }
-    
+
     // *************************************************
     //
     // *************************************************
diff --git a/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Endpoint.java b/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Endpoint.java
index d11aae7..d1c5a7b 100644
--- a/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Endpoint.java
+++ b/components/camel-aws-s3/src/main/java/org/apache/camel/component/aws/s3/S3Endpoint.java
@@ -82,8 +82,7 @@ public class S3Endpoint extends ScheduledPollEndpoint {
     public void doStart() throws Exception {
         super.doStart();
 
-        s3Client = configuration.getAmazonS3Client() != null ? configuration.getAmazonS3Client()
-                : S3ClientFactory.getAWSS3Client(configuration, getMaxConnections()).getS3Client();
+        s3Client = configuration.getAmazonS3Client() != null ? configuration.getAmazonS3Client() : S3ClientFactory.getAWSS3Client(configuration, getMaxConnections()).getS3Client();
 
         String fileName = getConfiguration().getFileName();
 
@@ -111,14 +110,14 @@ public class S3Endpoint extends ScheduledPollEndpoint {
         LOG.trace("Bucket [{}] doesn't exist yet", bucketName);
 
         if (getConfiguration().isAutoCreateBucket()) {
-        // creates the new bucket because it doesn't exist yet
-        CreateBucketRequest createBucketRequest = new CreateBucketRequest(getConfiguration().getBucketName());
+            // creates the new bucket because it doesn't exist yet
+            CreateBucketRequest createBucketRequest = new CreateBucketRequest(getConfiguration().getBucketName());
 
-        LOG.trace("Creating bucket [{}] in region [{}] with request [{}]...", configuration.getBucketName(), configuration.getRegion(), createBucketRequest);
+            LOG.trace("Creating bucket [{}] in region [{}] with request [{}]...", configuration.getBucketName(), configuration.getRegion(), createBucketRequest);
 
-        s3Client.createBucket(createBucketRequest);
+            s3Client.createBucket(createBucketRequest);
 
-        LOG.trace("Bucket created");
+            LOG.trace("Bucket created");
         }
 
         if (configuration.getPolicy() != null) {


[camel] 04/05: Regen

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit f69e4daad97b68de676f2136122c58699818e9d2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue May 28 13:13:47 2019 +0200

    Regen
---
 components/camel-aws-s3/src/main/docs/aws-s3-component.adoc |  3 ++-
 components/readme.adoc                                      | 11 +----------
 docs/components/modules/ROOT/pages/aws-s3-component.adoc    | 11 +++++++++--
 3 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc b/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc
index a4f9757..dc540dd 100644
--- a/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc
+++ b/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc
@@ -158,7 +158,7 @@ When using Spring Boot make sure to use the following Maven dependency to have s
 ----
 
 
-The component supports 37 options, which are listed below.
+The component supports 38 options, which are listed below.
 
 
 
@@ -170,6 +170,7 @@ The component supports 37 options, which are listed below.
 | *camel.component.aws-s3.configuration.accelerate-mode-enabled* | Define if Accelerate Mode enabled is true or false | false | Boolean
 | *camel.component.aws-s3.configuration.access-key* | Amazon AWS Access Key |  | String
 | *camel.component.aws-s3.configuration.amazon-s3-client* | Reference to a `com.amazonaws.services.s3.AmazonS3` in the link:registry.html[Registry]. |  | AmazonS3
+| *camel.component.aws-s3.configuration.auto-create-bucket* | Setting the autocreation of the bucket | true | Boolean
 | *camel.component.aws-s3.configuration.autoclose-body* | If this option is true and includeBody is true, then the S3Object.close() method will be called on exchange completion. This option is strongly related to includeBody option. In case of setting includeBody to true and autocloseBody to false, it will be up to the caller to close the S3Object stream. Setting autocloseBody to true, will close the S3Object stream automatically. | true | Boolean
 | *camel.component.aws-s3.configuration.aws-k-m-s-key-id* | Define the id of KMS key to use in case KMS is enabled |  | String
 | *camel.component.aws-s3.configuration.bucket-name* | Name of the bucket. The bucket will be created if it doesn't already exists. |  | String
diff --git a/components/readme.adoc b/components/readme.adoc
index ebbbf5f..a3293e0 100644
--- a/components/readme.adoc
+++ b/components/readme.adoc
@@ -1,7 +1,7 @@
 ==== Components
 
 // components: START
-Number of Components: 296 in 233 JAR artifacts (0 deprecated)
+Number of Components: 293 in 230 JAR artifacts (0 deprecated)
 
 [width="100%",cols="4,1,5",options="header"]
 |===
@@ -112,12 +112,6 @@ Number of Components: 296 in 233 JAR artifacts (0 deprecated)
 | link:camel-aws-ses/src/main/docs/aws-ses-component.adoc[AWS Simple Email Service] (camel-aws-ses) +
 `aws-ses:from` | 2.9 | The aws-ses component is used for sending emails with Amazon's SES service.
 
-| link:camel-aws-sns/src/main/docs/aws-sns-component.adoc[AWS Simple Notification System] (camel-aws-sns) +
-`aws-sns:topicNameOrArn` | 2.8 | The aws-sns component is used for sending messages to an Amazon Simple Notification Topic.
-
-| link:camel-aws-sqs/src/main/docs/aws-sqs-component.adoc[AWS Simple Queue Service] (camel-aws-sqs) +
-`aws-sqs:queueNameOrArn` | 2.6 | The aws-sqs component is used for sending and receiving messages to Amazon's SQS service.
-
 | link:camel-aws-swf/src/main/docs/aws-swf-component.adoc[AWS Simple Workflow] (camel-aws-swf) +
 `aws-swf:type` | 2.13 | The aws-swf component is used for managing workflows from Amazon Simple Workflow.
 
@@ -487,9 +481,6 @@ Number of Components: 296 in 233 JAR artifacts (0 deprecated)
 | link:camel-jt400/src/main/docs/jt400-component.adoc[JT400] (camel-jt400) +
 `jt400:userID:password/systemName/objectPath.type` | 1.5 | The jt400 component allows you to exchanges messages with an AS/400 system using data queues or program call.
 
-| link:camel-kafka/src/main/docs/kafka-component.adoc[Kafka] (camel-kafka) +
-`kafka:topic` | 2.13 | The kafka component allows messages to be sent to (or consumed from) Apache Kafka brokers.
-
 | link:camel-kubernetes/src/main/docs/kubernetes-config-maps-component.adoc[Kubernetes ConfigMap] (camel-kubernetes) +
 `kubernetes-config-maps:masterUrl` | 2.17 | The Kubernetes Configmaps component provides a producer to execute kubernetes configmap operations.
 
diff --git a/docs/components/modules/ROOT/pages/aws-s3-component.adoc b/docs/components/modules/ROOT/pages/aws-s3-component.adoc
index e5a3120..dc540dd 100644
--- a/docs/components/modules/ROOT/pages/aws-s3-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws-s3-component.adoc
@@ -81,13 +81,14 @@ with the following path and query parameters:
 |===
 
 
-==== Query Parameters (52 parameters):
+==== Query Parameters (53 parameters):
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
 | *amazonS3Client* (common) | Reference to a com.amazonaws.services.s3.AmazonS3 in the link:registry.htmlRegistry. |  | AmazonS3
+| *autoCreateBucket* (common) | Setting the autocreation of the bucket | true | boolean
 | *pathStyleAccess* (common) | Whether or not the S3 client should use path style access | false | boolean
 | *policy* (common) | The policy for this queue to set in the com.amazonaws.services.s3.AmazonS3#setBucketPolicy() method. |  | String
 | *proxyHost* (common) | To define a proxy host when instantiating the SQS client |  | String
@@ -157,7 +158,7 @@ When using Spring Boot make sure to use the following Maven dependency to have s
 ----
 
 
-The component supports 37 options, which are listed below.
+The component supports 38 options, which are listed below.
 
 
 
@@ -169,6 +170,7 @@ The component supports 37 options, which are listed below.
 | *camel.component.aws-s3.configuration.accelerate-mode-enabled* | Define if Accelerate Mode enabled is true or false | false | Boolean
 | *camel.component.aws-s3.configuration.access-key* | Amazon AWS Access Key |  | String
 | *camel.component.aws-s3.configuration.amazon-s3-client* | Reference to a `com.amazonaws.services.s3.AmazonS3` in the link:registry.html[Registry]. |  | AmazonS3
+| *camel.component.aws-s3.configuration.auto-create-bucket* | Setting the autocreation of the bucket | true | Boolean
 | *camel.component.aws-s3.configuration.autoclose-body* | If this option is true and includeBody is true, then the S3Object.close() method will be called on exchange completion. This option is strongly related to includeBody option. In case of setting includeBody to true and autocloseBody to false, it will be up to the caller to close the S3Object stream. Setting autocloseBody to true, will close the S3Object stream automatically. | true | Boolean
 | *camel.component.aws-s3.configuration.aws-k-m-s-key-id* | Define the id of KMS key to use in case KMS is enabled |  | String
 | *camel.component.aws-s3.configuration.bucket-name* | Name of the bucket. The bucket will be created if it doesn't already exists. |  | String
@@ -505,6 +507,11 @@ This operation will list the objects in the mycamelbucket bucket
 
 This operation will return an S3Object instance related to the camelKey object in mycamelbucket bucket.
 
+### Bucket Autocreation
+
+With the option `autoCreateBucket` users are able to avoid the autocreation of an S3 Bucket in case it doesn't exist. The default for this option is `true`.
+If set to false any operation on a not-existent bucket in AWS won't be successful and an error will be returned.
+
 ### Automatic detection of AmazonS3 client in registry
 
 From Camel 3.0.0-M3 the component will be able to detect the presence of an AmazonS3 bean into the registry.


[camel] 03/05: CAMEL-13591 - Docs

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 3baeec0046794c83046d790698cf39f14961ba55
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue May 28 13:08:38 2019 +0200

    CAMEL-13591 - Docs
---
 components/camel-aws-s3/src/main/docs/aws-s3-component.adoc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc b/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc
index 23020b4..a4f9757 100644
--- a/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc
+++ b/components/camel-aws-s3/src/main/docs/aws-s3-component.adoc
@@ -506,6 +506,11 @@ This operation will list the objects in the mycamelbucket bucket
 
 This operation will return an S3Object instance related to the camelKey object in mycamelbucket bucket.
 
+### Bucket Autocreation
+
+With the option `autoCreateBucket` users are able to avoid the autocreation of an S3 Bucket in case it doesn't exist. The default for this option is `true`.
+If set to false any operation on a not-existent bucket in AWS won't be successful and an error will be returned.
+
 ### Automatic detection of AmazonS3 client in registry
 
 From Camel 3.0.0-M3 the component will be able to detect the presence of an AmazonS3 bean into the registry.