I'm using Java. Instead of using
AmazonSimpleDB sdb = new AmazonSimpleDBClient(new PropertiesCredentials(
new File("/AwsCredentials.properties")));
is there anyway to store the credential information (the accesskey and secretkey) in the program; something like
AmazonSimpleDB sdb = new AmazonSimpleDBClient("acesskey","secretkey");
It seems like this function does not exist.
Have you looked at BasicAWSCredentials?
BasicAWSCredentials credentials = new BasicAWSCredentials(accessKeyId, secretKey);
AmazonSimpleDB mDB = new AmazonSimpleDBClient(credentials);
You can load accessKeyId and secretKey through the use of Properties.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With