List of usage examples for com.amazonaws.services.route53 AmazonRoute53Client builder
public static AmazonRoute53ClientBuilder builder()
From source file:com.netflix.edda.AwsClientFactory.java
License:Apache License
public static AmazonRoute53 newRoute53Client(AwsConfiguration config, AWSCredentialsProvider provider, String vip, String region) { if (config.useMock()) throw new UnsupportedOperationException("Route53 mock not yet supported"); EddaRoute53Client edda = new EddaRoute53Client(config, vip, region); if (config.useEdda() && !config.wrapAwsClient()) return edda.readOnly(); AmazonRoute53 client = AmazonRoute53Client.builder().withCredentials(provider) .withClientConfiguration(clientConfig(config)).withRegion(Regions.US_EAST_1) // us-east-1 only and needs to be explicit .build();/* w ww.ja v a 2 s. c o m*/ if (config.useEdda()) client = edda.wrapAwsClient(client); return client; }