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-spring-boot.git
The following commit(s) were added to refs/heads/master by this push:
new 865b330 Regen after master updates
865b330 is described below
commit 865b33031ff5321c9d12def39cfc03ec688d3888
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Mar 20 16:34:49 2020 +0100
Regen after master updates
---
.../springboot/catalog/components/aws-s3.json | 2 ++
.../springboot/catalog/components/aws2-s3.json | 4 ++++
.../src/main/docs/aws-s3-starter.adoc | 3 ++-
.../s3/springboot/S3ComponentConfiguration.java | 13 +++++++++++
.../src/main/docs/aws2-s3-starter.adoc | 4 +++-
.../springboot/AWS2S3ComponentConfiguration.java | 26 ++++++++++++++++++++++
docs/modules/ROOT/pages/aws-s3-starter.adoc | 3 ++-
docs/modules/ROOT/pages/aws2-s3-starter.adoc | 4 +++-
8 files changed, 55 insertions(+), 4 deletions(-)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws-s3.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws-s3.json
index 0c0bc99..d58c357 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws-s3.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws-s3.json
@@ -22,6 +22,7 @@
"amazonS3Client": { "kind": "property", "displayName": "Amazon S3 Client",
"group": "common", "label": "", "required": false, "type": "object",
"javaType": "com.amazonaws.services.s3.AmazonS3", "deprecated": false,
"secret": false, "configurationClass":
"org.apache.camel.component.aws.s3.S3Configuration", "configurationField":
"configuration", "description": "Reference to a
com.amazonaws.services.s3.AmazonS3 in the registry." },
"autoCreateBucket": { "kind": "property", "displayName": "Auto Create
Bucket", "group": "common", "label": "common", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": "true", "configurationClass":
"org.apache.camel.component.aws.s3.S3Configuration", "configurationField":
"configuration", "description": "Setting the autocreation of the bucket" },
"configuration": { "kind": "property", "displayName": "Configuration",
"group": "common", "label": "", "required": false, "type": "object",
"javaType": "org.apache.camel.component.aws.s3.S3Configuration", "deprecated":
false, "secret": false, "description": "The component configuration" },
+ "endpointConfiguration": { "kind": "property", "displayName": "Endpoint
Configuration", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration",
"deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws.s3.S3Configuration", "configurationField":
"configuration", "description": "Amazon AWS Endpoint Configuration" },
"pathStyleAccess": { "kind": "property", "displayName": "Path Style
Access", "group": "common", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.aws.s3.S3Configuration", "configurationField":
"configuration", "description": "Whether or not the S3 client should use path
style access" },
"policy": { "kind": "property", "displayName": "Policy", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws.s3.S3Configuration", "configurationField":
"configuration", "description": "The policy for this queue to set in the
com.amazonaws.services.s3.AmazonS3#setBucketPolicy() method." },
"proxyHost": { "kind": "property", "displayName": "Proxy Host", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws.s3.S3Configuration", "configurationField":
"configuration", "description": "To define a proxy host when instantiating the
SQS client" },
@@ -61,6 +62,7 @@
"bucketNameOrArn": { "kind": "path", "displayName": "Bucket Name Or Arn",
"group": "common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "secret":
false, "description": "Bucket name or ARN" },
"amazonS3Client": { "kind": "parameter", "displayName": "Amazon S3
Client", "group": "common", "label": "", "required": false, "type": "object",
"javaType": "com.amazonaws.services.s3.AmazonS3", "deprecated": false,
"secret": false, "configurationClass":
"org.apache.camel.component.aws.s3.S3Configuration", "configurationField":
"configuration", "description": "Reference to a
com.amazonaws.services.s3.AmazonS3 in the registry." },
"autoCreateBucket": { "kind": "parameter", "displayName": "Auto Create
Bucket", "group": "common", "label": "common", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": "true", "configurationClass":
"org.apache.camel.component.aws.s3.S3Configuration", "configurationField":
"configuration", "description": "Setting the autocreation of the bucket" },
+ "endpointConfiguration": { "kind": "parameter", "displayName": "Endpoint
Configuration", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration",
"deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws.s3.S3Configuration", "configurationField":
"configuration", "description": "Amazon AWS Endpoint Configuration" },
"pathStyleAccess": { "kind": "parameter", "displayName": "Path Style
Access", "group": "common", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.aws.s3.S3Configuration", "configurationField":
"configuration", "description": "Whether or not the S3 client should use path
style access" },
"policy": { "kind": "parameter", "displayName": "Policy", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws.s3.S3Configuration", "configurationField":
"configuration", "description": "The policy for this queue to set in the
com.amazonaws.services.s3.AmazonS3#setBucketPolicy() method." },
"proxyHost": { "kind": "parameter", "displayName": "Proxy Host", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws.s3.S3Configuration", "configurationField":
"configuration", "description": "To define a proxy host when instantiating the
SQS client" },
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-s3.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-s3.json
index 561ca94..bbf355c 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-s3.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-s3.json
@@ -22,11 +22,13 @@
"amazonS3Client": { "kind": "property", "displayName": "Amazon S3 Client",
"group": "common", "label": "", "required": false, "type": "object",
"javaType": "software.amazon.awssdk.services.s3.S3Client", "deprecated": false,
"secret": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Reference to a
com.amazonaws.services.s3.AmazonS3 in the registry." },
"autoCreateBucket": { "kind": "property", "displayName": "Auto Create
Bucket", "group": "common", "label": "common", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": "true", "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Setting the autocreation of the bucket" },
"configuration": { "kind": "property", "displayName": "Configuration",
"group": "common", "label": "", "required": false, "type": "object",
"javaType": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"deprecated": false, "secret": false, "description": "The component
configuration" },
+ "overrideEndpoint": { "kind": "property", "displayName": "Override
Endpoint", "group": "common", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": "false", "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Set the need for overidding the endpoint. This
option needs to be used in combination with uriEndpointOverride option" },
"policy": { "kind": "property", "displayName": "Policy", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "The policy for this queue to set in the
com.amazonaws.services.s3.AmazonS3#setBucketPolicy() method." },
"proxyHost": { "kind": "property", "displayName": "Proxy Host", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "To define a proxy host when instantiating the
SQS client" },
"proxyPort": { "kind": "property", "displayName": "Proxy Port", "group":
"common", "label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "secret": false,
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"configurationField": "configuration", "description": "Specify a proxy port to
be used inside the client definition." },
"proxyProtocol": { "kind": "property", "displayName": "Proxy Protocol",
"group": "common", "label": "", "required": false, "type": "object",
"javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS"
], "deprecated": false, "secret": false, "defaultValue": "HTTPS",
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"configurationField": "configuration", "description": "To define a proxy
protocol when instantiating the S3 client" },
"region": { "kind": "property", "displayName": "Region", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "The region in which S3 client needs to work.
When using this parameter, the configuration will expect the lowercase name of
the region (for example ap-east-1 [...]
+ "uriEndpointOverride": { "kind": "property", "displayName": "Uri Endpoint
Override", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "secret": false,
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"configurationField": "configuration", "description": "Set the overriding uri
endpoint. This option needs to be used in combination with overrideEndpoint
option" },
"useIAMCredentials": { "kind": "property", "displayName": "Use
IAMCredentials", "group": "common", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": "false", "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Set whether the S3 client should expect to
load credentials on an EC2 instance or to expect static credentials to be [...]
"bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error
Handler", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions occurred while the
consumer is trying to pickup incoming messages, or the likes, will now be
processed as a message and handled by [...]
"deleteAfterRead": { "kind": "property", "displayName": "Delete After
Read", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": "true", "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Delete objects from S3 after they have been
retrieved. The delete is only performed if the Exchange is committe [...]
@@ -52,11 +54,13 @@
"bucketNameOrArn": { "kind": "path", "displayName": "Bucket Name Or Arn",
"group": "common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "secret":
false, "description": "Bucket name or ARN" },
"amazonS3Client": { "kind": "parameter", "displayName": "Amazon S3
Client", "group": "common", "label": "", "required": false, "type": "object",
"javaType": "software.amazon.awssdk.services.s3.S3Client", "deprecated": false,
"secret": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Reference to a
com.amazonaws.services.s3.AmazonS3 in the registry." },
"autoCreateBucket": { "kind": "parameter", "displayName": "Auto Create
Bucket", "group": "common", "label": "common", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": "true", "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Setting the autocreation of the bucket" },
+ "overrideEndpoint": { "kind": "parameter", "displayName": "Override
Endpoint", "group": "common", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": "false", "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Set the need for overidding the endpoint. This
option needs to be used in combination with uriEndpointOverride option" },
"policy": { "kind": "parameter", "displayName": "Policy", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "The policy for this queue to set in the
com.amazonaws.services.s3.AmazonS3#setBucketPolicy() method." },
"proxyHost": { "kind": "parameter", "displayName": "Proxy Host", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "To define a proxy host when instantiating the
SQS client" },
"proxyPort": { "kind": "parameter", "displayName": "Proxy Port", "group":
"common", "label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "secret": false,
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"configurationField": "configuration", "description": "Specify a proxy port to
be used inside the client definition." },
"proxyProtocol": { "kind": "parameter", "displayName": "Proxy Protocol",
"group": "common", "label": "", "required": false, "type": "object",
"javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS"
], "deprecated": false, "secret": false, "defaultValue": "HTTPS",
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"configurationField": "configuration", "description": "To define a proxy
protocol when instantiating the S3 client" },
"region": { "kind": "parameter", "displayName": "Region", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "The region in which S3 client needs to work.
When using this parameter, the configuration will expect the lowercase name of
the region (for example ap-east- [...]
+ "uriEndpointOverride": { "kind": "parameter", "displayName": "Uri Endpoint
Override", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "secret": false,
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"configurationField": "configuration", "description": "Set the overriding uri
endpoint. This option needs to be used in combination with overrideEndpoint
option" },
"useIAMCredentials": { "kind": "parameter", "displayName": "Use
IAMCredentials", "group": "common", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": "false", "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Set whether the S3 client should expect to
load credentials on an EC2 instance or to expect static credentials to be [...]
"bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error
Handler", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions occurred while the
consumer is trying to pickup incoming messages, or the likes, will now be
processed as a message and handled b [...]
"deleteAfterRead": { "kind": "parameter", "displayName": "Delete After
Read", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": "true", "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Delete objects from S3 after they have been
retrieved. The delete is only performed if the Exchange is committ [...]
diff --git
a/components-starter/camel-aws-s3-starter/src/main/docs/aws-s3-starter.adoc
b/components-starter/camel-aws-s3-starter/src/main/docs/aws-s3-starter.adoc
index 93dacdd..e2341db 100644
--- a/components-starter/camel-aws-s3-starter/src/main/docs/aws-s3-starter.adoc
+++ b/components-starter/camel-aws-s3-starter/src/main/docs/aws-s3-starter.adoc
@@ -17,7 +17,7 @@ When using aws-s3 with Spring Boot make sure to use the
following Maven dependen
----
-The component supports 38 options, which are listed below.
+The component supports 39 options, which are listed below.
@@ -40,6 +40,7 @@ The component supports 38 options, which are listed below.
| *camel.component.aws-s3.dualstack-enabled* | Define if Dualstack enabled is
true or false | false | Boolean
| *camel.component.aws-s3.enabled* | Whether to enable auto configuration of
the aws-s3 component. This is enabled by default. | | Boolean
| *camel.component.aws-s3.encryption-materials* | The encryption materials to
use in case of Symmetric/Asymmetric client usage. The option is a
com.amazonaws.services.s3.model.EncryptionMaterials type. | | String
+| *camel.component.aws-s3.endpoint-configuration* | Amazon AWS Endpoint
Configuration. The option is a
com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration type. | |
String
| *camel.component.aws-s3.file-name* | To get the object from the bucket with
the given file name | | String
| *camel.component.aws-s3.force-global-bucket-access-enabled* | Define if
Force Global Bucket Access enabled is true or false | false | Boolean
| *camel.component.aws-s3.include-body* | If it is true, the exchange body
will be set to a stream to the contents of the file. If false, the headers will
be set with the S3 object metadata, but the body will be null. This option is
strongly related to autocloseBody 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
diff --git
a/components-starter/camel-aws-s3-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentConfiguration.java
b/components-starter/camel-aws-s3-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentConfiguration.java
index f8edb95..063ab30 100644
---
a/components-starter/camel-aws-s3-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentConfiguration.java
+++
b/components-starter/camel-aws-s3-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentConfiguration.java
@@ -55,6 +55,11 @@ public class S3ComponentConfiguration
*/
private String configuration;
/**
+ * Amazon AWS Endpoint Configuration. The option is a
+ * com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration
type.
+ */
+ private String endpointConfiguration;
+ /**
* Whether or not the S3 client should use path style access
*/
private Boolean pathStyleAccess = false;
@@ -260,6 +265,14 @@ public class S3ComponentConfiguration
this.configuration = configuration;
}
+ public String getEndpointConfiguration() {
+ return endpointConfiguration;
+ }
+
+ public void setEndpointConfiguration(String endpointConfiguration) {
+ this.endpointConfiguration = endpointConfiguration;
+ }
+
public Boolean getPathStyleAccess() {
return pathStyleAccess;
}
diff --git
a/components-starter/camel-aws2-s3-starter/src/main/docs/aws2-s3-starter.adoc
b/components-starter/camel-aws2-s3-starter/src/main/docs/aws2-s3-starter.adoc
index 0cf8f97..29287ec 100644
---
a/components-starter/camel-aws2-s3-starter/src/main/docs/aws2-s3-starter.adoc
+++
b/components-starter/camel-aws2-s3-starter/src/main/docs/aws2-s3-starter.adoc
@@ -17,7 +17,7 @@ When using aws2-s3 with Spring Boot make sure to use the
following Maven depende
----
-The component supports 29 options, which are listed below.
+The component supports 31 options, which are listed below.
@@ -42,6 +42,7 @@ The component supports 29 options, which are listed below.
| *camel.component.aws2-s3.lazy-start-producer* | 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 producer may
otherwise fail during starting and cause the route to fail being started. By
deferring this startup to be lazy then the startup failure can be handled
during routing messages via Camel's routing error handlers. Beware that when
the first message is processed th [...]
| *camel.component.aws2-s3.multi-part-upload* | If it is true, camel will
upload the file with multi part format, the part size is decided by the option
of partSize | false | Boolean
| *camel.component.aws2-s3.operation* | The operation to do in case the user
don't want to do only an upload | | AWS2S3Operations
+| *camel.component.aws2-s3.override-endpoint* | Set the need for overidding
the endpoint. This option needs to be used in combination with
uriEndpointOverride option | false | Boolean
| *camel.component.aws2-s3.part-size* | Setup the partSize which is used in
multi part upload, the default size is 25M. | 26214400 | Long
| *camel.component.aws2-s3.policy* | The policy for this queue to set in the
com.amazonaws.services.s3.AmazonS3#setBucketPolicy() method. | | String
| *camel.component.aws2-s3.prefix* | The prefix which is used in the
com.amazonaws.services.s3.model.ListObjectsRequest to only consume objects we
are interested in. | | String
@@ -51,6 +52,7 @@ The component supports 29 options, which are listed below.
| *camel.component.aws2-s3.region* | The region in which S3 client needs to
work. When using this parameter, the configuration will expect the lowercase
name of the region (for example ap-east-1) You'll need to use the name
Region.EU_WEST_1.id() | | String
| *camel.component.aws2-s3.secret-key* | Amazon AWS Secret Key | | String
| *camel.component.aws2-s3.storage-class* | The storage class to set in the
com.amazonaws.services.s3.model.PutObjectRequest request. | | String
+| *camel.component.aws2-s3.uri-endpoint-override* | Set the overriding uri
endpoint. This option needs to be used in combination with overrideEndpoint
option | | String
| *camel.component.aws2-s3.use-aws-k-m-s* | Define if KMS must be used or not
| false | Boolean
| *camel.component.aws2-s3.use-i-a-m-credentials* | Set whether the S3 client
should expect to load credentials on an EC2 instance or to expect static
credentials to be passed in. | false | Boolean
|===
diff --git
a/components-starter/camel-aws2-s3-starter/src/main/java/org/apache/camel/component/aws2/s3/springboot/AWS2S3ComponentConfiguration.java
b/components-starter/camel-aws2-s3-starter/src/main/java/org/apache/camel/component/aws2/s3/springboot/AWS2S3ComponentConfiguration.java
index aa6b5df..2b16e92 100644
---
a/components-starter/camel-aws2-s3-starter/src/main/java/org/apache/camel/component/aws2/s3/springboot/AWS2S3ComponentConfiguration.java
+++
b/components-starter/camel-aws2-s3-starter/src/main/java/org/apache/camel/component/aws2/s3/springboot/AWS2S3ComponentConfiguration.java
@@ -55,6 +55,11 @@ public class AWS2S3ComponentConfiguration
*/
private String configuration;
/**
+ * Set the need for overidding the endpoint. This option needs to be used
in
+ * combination with uriEndpointOverride option
+ */
+ private Boolean overrideEndpoint = false;
+ /**
* The policy for this queue to set in the
* com.amazonaws.services.s3.AmazonS3#setBucketPolicy() method.
*/
@@ -78,6 +83,11 @@ public class AWS2S3ComponentConfiguration
*/
private String region;
/**
+ * Set the overriding uri endpoint. This option needs to be used in
+ * combination with overrideEndpoint option
+ */
+ private String uriEndpointOverride;
+ /**
* Set whether the S3 client should expect to load credentials on an EC2
* instance or to expect static credentials to be passed in.
*/
@@ -221,6 +231,14 @@ public class AWS2S3ComponentConfiguration
this.configuration = configuration;
}
+ public Boolean getOverrideEndpoint() {
+ return overrideEndpoint;
+ }
+
+ public void setOverrideEndpoint(Boolean overrideEndpoint) {
+ this.overrideEndpoint = overrideEndpoint;
+ }
+
public String getPolicy() {
return policy;
}
@@ -261,6 +279,14 @@ public class AWS2S3ComponentConfiguration
this.region = region;
}
+ public String getUriEndpointOverride() {
+ return uriEndpointOverride;
+ }
+
+ public void setUriEndpointOverride(String uriEndpointOverride) {
+ this.uriEndpointOverride = uriEndpointOverride;
+ }
+
public Boolean getUseIAMCredentials() {
return useIAMCredentials;
}
diff --git a/docs/modules/ROOT/pages/aws-s3-starter.adoc
b/docs/modules/ROOT/pages/aws-s3-starter.adoc
index 93dacdd..e2341db 100644
--- a/docs/modules/ROOT/pages/aws-s3-starter.adoc
+++ b/docs/modules/ROOT/pages/aws-s3-starter.adoc
@@ -17,7 +17,7 @@ When using aws-s3 with Spring Boot make sure to use the
following Maven dependen
----
-The component supports 38 options, which are listed below.
+The component supports 39 options, which are listed below.
@@ -40,6 +40,7 @@ The component supports 38 options, which are listed below.
| *camel.component.aws-s3.dualstack-enabled* | Define if Dualstack enabled is
true or false | false | Boolean
| *camel.component.aws-s3.enabled* | Whether to enable auto configuration of
the aws-s3 component. This is enabled by default. | | Boolean
| *camel.component.aws-s3.encryption-materials* | The encryption materials to
use in case of Symmetric/Asymmetric client usage. The option is a
com.amazonaws.services.s3.model.EncryptionMaterials type. | | String
+| *camel.component.aws-s3.endpoint-configuration* | Amazon AWS Endpoint
Configuration. The option is a
com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration type. | |
String
| *camel.component.aws-s3.file-name* | To get the object from the bucket with
the given file name | | String
| *camel.component.aws-s3.force-global-bucket-access-enabled* | Define if
Force Global Bucket Access enabled is true or false | false | Boolean
| *camel.component.aws-s3.include-body* | If it is true, the exchange body
will be set to a stream to the contents of the file. If false, the headers will
be set with the S3 object metadata, but the body will be null. This option is
strongly related to autocloseBody 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
diff --git a/docs/modules/ROOT/pages/aws2-s3-starter.adoc
b/docs/modules/ROOT/pages/aws2-s3-starter.adoc
index 0cf8f97..29287ec 100644
--- a/docs/modules/ROOT/pages/aws2-s3-starter.adoc
+++ b/docs/modules/ROOT/pages/aws2-s3-starter.adoc
@@ -17,7 +17,7 @@ When using aws2-s3 with Spring Boot make sure to use the
following Maven depende
----
-The component supports 29 options, which are listed below.
+The component supports 31 options, which are listed below.
@@ -42,6 +42,7 @@ The component supports 29 options, which are listed below.
| *camel.component.aws2-s3.lazy-start-producer* | 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 producer may
otherwise fail during starting and cause the route to fail being started. By
deferring this startup to be lazy then the startup failure can be handled
during routing messages via Camel's routing error handlers. Beware that when
the first message is processed th [...]
| *camel.component.aws2-s3.multi-part-upload* | If it is true, camel will
upload the file with multi part format, the part size is decided by the option
of partSize | false | Boolean
| *camel.component.aws2-s3.operation* | The operation to do in case the user
don't want to do only an upload | | AWS2S3Operations
+| *camel.component.aws2-s3.override-endpoint* | Set the need for overidding
the endpoint. This option needs to be used in combination with
uriEndpointOverride option | false | Boolean
| *camel.component.aws2-s3.part-size* | Setup the partSize which is used in
multi part upload, the default size is 25M. | 26214400 | Long
| *camel.component.aws2-s3.policy* | The policy for this queue to set in the
com.amazonaws.services.s3.AmazonS3#setBucketPolicy() method. | | String
| *camel.component.aws2-s3.prefix* | The prefix which is used in the
com.amazonaws.services.s3.model.ListObjectsRequest to only consume objects we
are interested in. | | String
@@ -51,6 +52,7 @@ The component supports 29 options, which are listed below.
| *camel.component.aws2-s3.region* | The region in which S3 client needs to
work. When using this parameter, the configuration will expect the lowercase
name of the region (for example ap-east-1) You'll need to use the name
Region.EU_WEST_1.id() | | String
| *camel.component.aws2-s3.secret-key* | Amazon AWS Secret Key | | String
| *camel.component.aws2-s3.storage-class* | The storage class to set in the
com.amazonaws.services.s3.model.PutObjectRequest request. | | String
+| *camel.component.aws2-s3.uri-endpoint-override* | Set the overriding uri
endpoint. This option needs to be used in combination with overrideEndpoint
option | | String
| *camel.component.aws2-s3.use-aws-k-m-s* | Define if KMS must be used or not
| false | Boolean
| *camel.component.aws2-s3.use-i-a-m-credentials* | Set whether the S3 client
should expect to load credentials on an EC2 instance or to expect static
credentials to be passed in. | false | Boolean
|===