@Bean public AmazonElasticLoadBalancing amazonElbClient(final AWSCredentialsProvider awsCredentialsProvider, final ClientConfiguration awsClientConfig, final Region awsRegion) { return AmazonElasticLoadBalancingClientBuilder.standard() .withCredentials(awsCredentialsProvider) .withClientConfiguration(awsClientConfig) .withRegion(awsRegion.getName()) .build(); }
/** * Initializing the IP finder. */ private void initClients() { if (credsProvider == null || isNullOrEmpty(loadBalancerName) || isNullOrEmpty(region)) throw new IgniteSpiException("One or more configuration parameters are invalid [setCredentialsProvider=" + credsProvider + ", setRegion=" + region + ", setLoadBalancerName=" + loadBalancerName + "]"); if (amazonEC2Client == null) amazonEC2Client = AmazonEC2ClientBuilder.standard().withRegion(region).withCredentials(credsProvider) .build(); if (amazonELBClient == null) amazonELBClient = AmazonElasticLoadBalancingClientBuilder.standard().withRegion(region) .withCredentials(credsProvider).build(); }
private void createAmazonAPIClients() { cfnClient = AmazonCloudFormationClientBuilder.defaultClient(); ec2Client = AmazonEC2ClientBuilder.defaultClient(); snsClient = AmazonSNSClientBuilder.defaultClient(); sqsClient = AmazonSQSClientBuilder.defaultClient(); elbClient = AmazonElasticLoadBalancingClientBuilder.defaultClient(); s3Client = AmazonS3ClientBuilder.defaultClient(); rdsClient = AmazonRDSClientBuilder.defaultClient(); iamClient = AmazonIdentityManagementClientBuilder.defaultClient(); }
public ElasticLoadBalancing(AWSCredentialsProvider credentials, Regions region) { elb = AmazonElasticLoadBalancingClientBuilder.standard().withRegion(region).withCredentials(credentials).build(); }
public static AmazonElasticLoadBalancing createELBClient() { return AmazonElasticLoadBalancingClientBuilder.defaultClient(); }