Last active
August 29, 2015 14:25
-
-
Save bitsmuggler/5bf68faea30f7a3ff34f to your computer and use it in GitHub Desktop.
Initialize AmazonSNSClient
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Change to your credentials | |
private final String AwsAccessKeyid = "<<your aws accesskey>>"; | |
private final String AwsSecretKey = "<<your aws secretkey>>"; | |
// Change to your sns-endpoint | |
private final String SnsEndpoint = "https://sns.eu-west-1.amazonaws.com"; | |
private AmazonSNS sns = null; | |
//Initializing AmazonSNSClient | |
this.sns = new AmazonSNSClient(new AWSCredentials() { | |
public String getAWSAccessKeyId() { | |
return AwsAccessKeyid; | |
} | |
public String getAWSSecretKey() { | |
return AwsSecretKey; | |
} | |
}); | |
this.sns.setEndpoint(SnsEndpoint); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment