/** * Construct a synchronous implementation of AWSElasticBeanstalk using the current builder configuration. * * @param params * Current builder configuration represented as a parameter object. * @return Fully configured implementation of AWSElasticBeanstalk. */ @Override protected AWSElasticBeanstalk build(AwsSyncClientParams params) { return new AWSElasticBeanstalkClient(params); }
/** * Construct a synchronous implementation of AWSElasticBeanstalk using the current builder configuration. * * @param params * Current builder configuration represented as a parameter object. * @return Fully configured implementation of AWSElasticBeanstalk. */ @Override protected AWSElasticBeanstalk build(AwsSyncClientParams params) { return new AWSElasticBeanstalkClient(params); }
@Provides @Singleton @Inject public AWSElasticBeanstalk getAWSElasticBeanstalk(AWSCredentials creds) { return new AWSElasticBeanstalkClient(creds); } }
public BeanstalkConnector(String login, String pass, String region) { awsCredentials = new BasicAWSCredentials(login, pass); beanstalkClient = new AWSElasticBeanstalkClient(awsCredentials); this.beanstalkEndpoint = String.format("elasticbeanstalk.%s.amazonaws.com", region); beanstalkClient.setEndpoint(beanstalkEndpoint); this.rdsEndpoint = String.format("rds.%s.amazonaws.com", region); rdsClient = new AmazonRDSClient(awsCredentials); rdsClient.setEndpoint(rdsEndpoint); this.sqsEndpoint = String.format("sqs.%s.amazonaws.com", region); sqsClient=new AmazonSQSAsyncClient(awsCredentials); sqsClient.setEndpoint(this.sqsEndpoint); }
public BeanstalkDeployer(String s3Endpoint, String beanstalkEndpoint, AWSCredentialsProvider credentialsProvider) { s3 = new AmazonS3Client(credentialsProvider); elasticBeanstalk = new AWSElasticBeanstalkClient(credentialsProvider); s3.setEndpoint(s3Endpoint); elasticBeanstalk.setEndpoint(beanstalkEndpoint); }
public BeanstalkDeployer(String s3Endpoint, String beanstalkEndpoint, AWSCredentialsProvider credentialsProvider) { s3 = new AmazonS3Client(credentialsProvider); elasticBeanstalk = new AWSElasticBeanstalkClient(credentialsProvider); s3.setEndpoint(s3Endpoint); elasticBeanstalk.setEndpoint(beanstalkEndpoint); }
@BeforeClass public static void setUp() throws InterruptedException { bcClient = new AWSElasticBeanstalkClient(); s3Client = new AmazonS3Client(); s3Client.createBucket(BUCKET_NAME); bcClient = new AWSElasticBeanstalkClient(); iamClient = new AmazonIdentityManagementClient(); iamClient.createInstanceProfile(new CreateInstanceProfileRequest() .withInstanceProfileName(TEST_INSTANCEPROFILE_VALUE)); iamClient .addRoleToInstanceProfile(new AddRoleToInstanceProfileRequest() .withRoleName("aws-elasticbeanstalk-ec2-role") .withInstanceProfileName(TEST_INSTANCEPROFILE_VALUE)); }