aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/config/Keys.java6
-rw-r--r--src/main/java/org/traccar/sms/SnsSmsClient.java5
2 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 423c6a31b..937510f10 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -691,14 +691,14 @@ public final class Keys {
* AWS Access Key with SNS permission.
*/
public static final ConfigKey<String> AWS_ACCESS_KEY = new ConfigKey<>(
- "aws.access_key",
+ "aws.access",
Collections.singletonList(KeyType.GLOBAL));
/**
* AWS Secret Access Key with SNS permission.
*/
public static final ConfigKey<String> AWS_SECRET_KEY = new ConfigKey<>(
- "aws.secret_key",
+ "aws.secret",
Collections.singletonList(KeyType.GLOBAL));
/**
@@ -706,7 +706,7 @@ public final class Keys {
* Use 'enable' to send message with SNS or 'disable' to stop using SNS
*/
public static final ConfigKey<String> AWS_SNS_ENABLED = new ConfigKey<>(
- "aws.sns_enabled",
+ "aws.sns.enabled",
Collections.singletonList(KeyType.GLOBAL));
/**
diff --git a/src/main/java/org/traccar/sms/SnsSmsClient.java b/src/main/java/org/traccar/sms/SnsSmsClient.java
index cacf08811..dcfe5b536 100644
--- a/src/main/java/org/traccar/sms/SnsSmsClient.java
+++ b/src/main/java/org/traccar/sms/SnsSmsClient.java
@@ -17,7 +17,7 @@ import java.util.HashMap;
import java.util.Map;
-public class SnsSmsClient implements SmsManager{
+public class SnsSmsClient implements SmsManager {
private static final Logger LOGGER = LoggerFactory.getLogger(SnsSmsClient.class);
private final String access_key;
@@ -57,7 +57,8 @@ public class SnsSmsClient implements SmsManager{
}
@java.lang.Override
- public void sendMessageSync(String destAddress, String message, boolean command) throws InterruptedException, MessageException {
+ public void sendMessageSync(String destAddress, String message, boolean command)
+ throws InterruptedException, MessageException {
sendSNSMessage(message, destAddress);
}