Java 类com.amazonaws.services.elasticloadbalancing.AmazonElasticLoadBalancingClientBuilder 实例源码

项目:aem-orchestrator    文件:AwsConfig.java   
@Bean
public AmazonElasticLoadBalancing amazonElbClient(final AWSCredentialsProvider awsCredentialsProvider,
    final ClientConfiguration awsClientConfig, final Region awsRegion) {
    return AmazonElasticLoadBalancingClientBuilder.standard()
        .withCredentials(awsCredentialsProvider)
        .withClientConfiguration(awsClientConfig)
        .withRegion(awsRegion.getName())
        .build();
}
项目:ignite    文件:TcpDiscoveryElbIpFinder.java   
/**
 * 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();
}
项目:cfnassist    文件:FacadeFactory.java   
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();
}
项目:cmn-project    文件:ElasticLoadBalancing.java   
public ElasticLoadBalancing(AWSCredentialsProvider credentials, Regions region) {
    elb = AmazonElasticLoadBalancingClientBuilder.standard().withRegion(region).withCredentials(credentials).build();
}
项目:cfnassist    文件:EnvironmentSetupForTests.java   
public static AmazonElasticLoadBalancing createELBClient() {
       return AmazonElasticLoadBalancingClientBuilder.defaultClient();

}