use of com.amazonaws.auth.DefaultAWSCredentialsProviderChain in project archaius by Netflix.
the class DynamoDbConfigurationSourceIntegrationTest method setUpClass.
@BeforeClass
public static void setUpClass() throws Exception {
try {
dbClient = new AmazonDynamoDBClient(new DefaultAWSCredentialsProviderChain().getCredentials());
} catch (Exception e) {
e.printStackTrace();
}
System.setProperty("com.netflix.config.dynamo.tableName", tableName);
if (dbClient != null) {
createTable(dbClient, tableName);
addElements(dbClient, tableName);
}
}
use of com.amazonaws.auth.DefaultAWSCredentialsProviderChain in project chassis by Kixeye.
the class DefaultCloudWatchFactory method getCloudWatchClient.
@Override
public AmazonCloudWatchClient getCloudWatchClient() {
AmazonCloudWatchClient client;
if (StringUtils.isBlank(accessKeyId) || StringUtils.isBlank(secretKey)) {
LOGGER.debug("Constructing AmazonCloudWatchClient using DefaultAWSCredentialsProviderChain for region {}.", region);
client = new AmazonCloudWatchClient(new DefaultAWSCredentialsProviderChain());
} else {
LOGGER.debug("Constructing AmazonCloudWatchClient from given credentials for region {}.", region);
client = new AmazonCloudWatchClient(new BasicAWSCredentials(accessKeyId, secretKey));
}
client.setRegion(region);
return client;
}
use of com.amazonaws.auth.DefaultAWSCredentialsProviderChain in project apex-malhar by apache.
the class KinesisTestProducer method createClient.
private void createClient() {
AWSCredentialsProvider credentials = new DefaultAWSCredentialsProviderChain();
client = new AmazonKinesisClient(credentials);
}
use of com.amazonaws.auth.DefaultAWSCredentialsProviderChain in project apex-malhar by apache.
the class KinesisOperatorTestBase method createClient.
private void createClient() {
credentials = new DefaultAWSCredentialsProviderChain();
client = new AmazonKinesisClient(credentials);
}
use of com.amazonaws.auth.DefaultAWSCredentialsProviderChain in project apex-malhar by apache.
the class KinesisTestConsumer method createClient.
private void createClient() {
AWSCredentialsProvider credentials = new DefaultAWSCredentialsProviderChain();
client = new AmazonKinesisClient(credentials);
}
Aggregations