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 f8a2ecf2931950c7b765b8e098272e736e446ac3 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Jan 30 09:24:14 2018 +0100 Camel-AWS SQS - Use Regions.valueOf in the verifier --- .../apache/camel/component/aws/sqs/SqsComponentVerifierExtension.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/sqs/SqsComponentVerifierExtension.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/sqs/SqsComponentVerifierExtension.java index 2402a85..e48d556 100644 --- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/sqs/SqsComponentVerifierExtension.java +++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/sqs/SqsComponentVerifierExtension.java @@ -23,6 +23,7 @@ import com.amazonaws.auth.AWSCredentials; import com.amazonaws.auth.AWSCredentialsProvider; import com.amazonaws.auth.AWSStaticCredentialsProvider; import com.amazonaws.auth.BasicAWSCredentials; +import com.amazonaws.regions.Regions; import com.amazonaws.services.sqs.AmazonSQS; import com.amazonaws.services.sqs.AmazonSQSClientBuilder; @@ -70,7 +71,7 @@ public class SqsComponentVerifierExtension extends DefaultComponentVerifierExten SqsConfiguration configuration = setProperties(new SqsConfiguration(), parameters); AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey()); AWSCredentialsProvider credentialsProvider = new AWSStaticCredentialsProvider(credentials); - AmazonSQS client = AmazonSQSClientBuilder.standard().withCredentials(credentialsProvider).withRegion(configuration.getRegion()).build(); + AmazonSQS client = AmazonSQSClientBuilder.standard().withCredentials(credentialsProvider).withRegion(Regions.valueOf(configuration.getRegion())).build(); client.listQueues(); } catch (SdkClientException e) { ResultErrorBuilder errorBuilder = ResultErrorBuilder.withCodeAndDescription(VerificationError.StandardCode.AUTHENTICATION, e.getMessage()) -- To stop receiving notification emails like this one, please contact acosent...@apache.org.