@Component public class AwsClientFactory extends Object
| Constructor and Description |
|---|
AwsClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
com.amazonaws.services.ec2.AmazonEC2Client |
getEc2Client(AwsParamsDto awsParamsDto)
Create the EC2 client with the given proxy and access key details This is the main AmazonEC2Client object
|
com.amazonaws.services.elasticmapreduce.AmazonElasticMapReduceClient |
getEmrClient(AwsParamsDto awsParamsDto)
Create the EMR client with the given proxy and access key details.
|
@Cacheable(value="herd_cache") public com.amazonaws.services.elasticmapreduce.AmazonElasticMapReduceClient getEmrClient(AwsParamsDto awsParamsDto)
awsParamsDto - AWS related parameters for access/secret keys and proxy details.@Cacheable(value="herd_cache") public com.amazonaws.services.ec2.AmazonEC2Client getEc2Client(AwsParamsDto awsParamsDto)
awsParamsDto - AWS related parameters for access/secret keys and proxy detailsCopyright © 2017. All rights reserved.