Example usage for com.amazonaws.auth BasicAWSCredentials BasicAWSCredentials

List of usage examples for com.amazonaws.auth BasicAWSCredentials BasicAWSCredentials

Introduction

In this page you can find the example usage for com.amazonaws.auth BasicAWSCredentials BasicAWSCredentials.

Prototype

public BasicAWSCredentials(String accessKey, String secretKey) 

Source Link

Document

Constructs a new BasicAWSCredentials object, with the specified AWS access key and AWS secret key.

Usage

From source file:com.swf.common.ConfigHelper.java

License:Open Source License

public AWSCredentials createEMRCredentials() {
    return new BasicAWSCredentials(this.emrAccessId, this.emrSecretKey);
}

From source file:com.swf.common.ConfigHelper.java

License:Open Source License

public AWSCredentials createRedshiftCredentials() {
    return new BasicAWSCredentials(this.redshiftAccessId, this.redshiftSecretKey);
}

From source file:com.swf.common.ConfigHelper.java

License:Open Source License

public AWSCredentials createS3Credentials() {
    return new BasicAWSCredentials(this.s3AccessId, this.s3SecretKey);
}

From source file:com.tango.flume.kinesis.sink.KinesisSink.java

License:Apache License

@Override
public synchronized void start() {
    logger.info("Starting KinesisSink:  " + this.getName());
    if (this.kinesisClient == null) {
        this.kinesisClient = new AmazonKinesisClient(
                new BasicAWSCredentials(this.accessKey, this.accessSecretKey));
    }/* w w w  . j  av  a2s . c o  m*/
    this.kinesisClient.setEndpoint(kinesisEndpoint);
    super.start();
}

From source file:com.tango.flume.kinesis.source.KinesisSourceConfigurationConstant.java

License:Apache License

@Override
public AWSCredentials getCredentials() {
    return new BasicAWSCredentials(this.accessKey, this.accessSecretKey);
}

From source file:com.telefonica.iot.cygnus.backends.dynamo.DynamoDBBackendImpl.java

License:Open Source License

/**
 * Constructor.//w w  w  .  j  a va  2 s.com
 * @param accessKeyId
 * @param secretAccessKey
 * @param region
 */
public DynamoDBBackendImpl(String accessKeyId, String secretAccessKey, String region) {
    BasicAWSCredentials awsCredentials = new BasicAWSCredentials(accessKeyId, secretAccessKey);
    AmazonDynamoDBClient client = new AmazonDynamoDBClient(awsCredentials);
    client.setRegion(Region.getRegion(Regions.fromName(region)));
    dynamoDB = new DynamoDB(client);
}

From source file:com.threepillar.labs.quartz.simpledb.SimpleDbJobStore.java

License:Apache License

static AmazonSimpleDBClient makeSimpleDbClient(String accessKey, String secretKey) {
    if (!isNullOrEmpty(accessKey) || !isNullOrEmpty(secretKey)) {
        return new AmazonSimpleDBClient(new BasicAWSCredentials(accessKey, secretKey));
    } else {//ww w.j ava  2 s .c om
        logDebug("allowing AWS tools to locate authentication credentials, as you didn't provide them");
        return new AmazonSimpleDBClient();
    }
}

From source file:com.threewks.thundr.deferred.provider.SqsQueueProvider.java

License:Apache License

public SqsQueueProvider(String deferredSqsAccessKey, String deferredSqsSecretKey, String deferredSqsRegion,
        String deferredSqsQueueName) {
    this(new BasicAWSCredentials(deferredSqsAccessKey, deferredSqsSecretKey),
            RegionUtils.getRegion(deferredSqsRegion), deferredSqsQueueName);
}

From source file:com.tispr.aws.OpsWorksClient.java

License:Apache License

public OpsWorksClient(String accessKey, String secretKey) {
    AWSCredentials creds = new BasicAWSCredentials(accessKey, secretKey);
    opsWorksClient = new AWSOpsWorksClient(creds);
}

From source file:com.tracermedia.maven.plugins.AbstractBeanstalkMojo.java

License:Open Source License

protected AWSElasticBeanstalk getBeanstalkClient() {
    if (_beanstalkClient == null) {
        AWSCredentials cred = new BasicAWSCredentials(accessKey, secretKey);
        _beanstalkClient = new AWSElasticBeanstalkClient(cred);
    }//from   www . ja  va2s. c om
    return _beanstalkClient;
}