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 2023/03/21 10:19:03 UTC
[camel] 07/08: CAMEL-19159 - Camel-AWS: Support Profile Credential provider as configuration - AWS SQS
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 49225ccaa1e1f3b89bcd6edc4cf2b5db5a439937
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 21 11:12:14 2023 +0100
CAMEL-19159 - Camel-AWS: Support Profile Credential provider as configuration - AWS SQS
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../main/java/org/apache/camel/component/aws2/sqs/Sqs2Component.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Component.java b/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Component.java
index 284714bfcd5..224e327e74b 100644
--- a/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Component.java
+++ b/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Component.java
@@ -66,7 +66,7 @@ public class Sqs2Component extends DefaultComponent {
// - covered by SqsDeadletterWithClientRegistryLocalstackIT
if (!configuration.isUseDefaultCredentialsProvider() && !configuration.isUseProfileCredentialsProvider() && configuration.getAmazonSQSClient() == null
&& (configuration.getAccessKey() == null || configuration.getSecretKey() == null)) {
- throw new IllegalArgumentException("AmazonSQSClient or accessKey and secretKey must be specified.");
+ throw new IllegalArgumentException("useDefaultCredentialsProvider is set to false, useProfileCredentialsProvider is set to false, AmazonSQSClient or accessKey and secretKey must be specified");
}
// Verify that visibilityTimeout is set if extendMessageVisibility is
// set to true.