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 6e0f247cad50bce0e938a5d6e1abf71db71ace71
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Nov 20 11:19:54 2020 +0100

    CAMEL-15843 - Camel-AWS2: Rename useIamCredentials to 
useDefaultCredentialProvider where it is used, SNS
---
 .../org/apache/camel/component/aws2/sns/Sns2Configuration.java | 10 +++++-----
 .../camel/component/aws2/sns/client/Sns2ClientFactory.java     |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java
 
b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java
index 3b57d19..043116b 100644
--- 
a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java
+++ 
b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java
@@ -66,7 +66,7 @@ public class Sns2Configuration implements Cloneable {
     @UriParam(defaultValue = "false")
     private boolean trustAllCertificates;
     @UriParam(defaultValue = "false")
-    private boolean useIAMCredentials;
+    private boolean useDefaultCredentialsProvider;
 
     public String getSubject() {
         return subject;
@@ -267,16 +267,16 @@ public class Sns2Configuration implements Cloneable {
         this.trustAllCertificates = trustAllCertificates;
     }
 
-    public boolean isUseIAMCredentials() {
-        return useIAMCredentials;
+    public boolean isUseDefaultCredentialsProvider() {
+        return useDefaultCredentialsProvider;
     }
 
     /**
      * Set whether the SQS client should expect to load credentials on an AWS 
infra instance or to expect static
      * credentials to be passed in.
      */
-    public void setUseIAMCredentials(boolean useIAMCredentials) {
-        this.useIAMCredentials = useIAMCredentials;
+    public void setUseDefaultCredentialsProvider(boolean 
useDefaultCredentialsProvider) {
+        this.useDefaultCredentialsProvider = useDefaultCredentialsProvider;
     }
 
     // *************************************************
diff --git 
a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/client/Sns2ClientFactory.java
 
b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/client/Sns2ClientFactory.java
index 3e1fd60..bae1e95 100644
--- 
a/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/client/Sns2ClientFactory.java
+++ 
b/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/client/Sns2ClientFactory.java
@@ -35,7 +35,7 @@ public final class Sns2ClientFactory {
      * @return               SNSClient
      */
     public static Sns2InternalClient getSnsClient(Sns2Configuration 
configuration) {
-        return configuration.isUseIAMCredentials()
+        return configuration.isUseDefaultCredentialsProvider()
                 ? new Sns2ClientIAMOptimized(configuration) : new 
Sns2ClientStandardImpl(configuration);
     }
 }

Reply via email to