List of usage examples for com.amazonaws.services.cloudfront AmazonCloudFrontClientBuilder standard
public static AmazonCloudFrontClientBuilder standard()
From source file:ch.cyberduck.core.cloudfront.CloudFrontDistributionConfiguration.java
License:Open Source License
private AmazonCloudFront client(final Path container) throws BackgroundException { return AmazonCloudFrontClientBuilder.standard() .withCredentials(new AWSStaticCredentialsProvider(new com.amazonaws.auth.AWSCredentials() { @Override//from w w w .jav a 2 s .c o m public String getAWSAccessKeyId() { return bookmark.getCredentials().getUsername(); } @Override public String getAWSSecretKey() { return bookmark.getCredentials().getPassword(); } })).withClientConfiguration(configuration) .withRegion(locationFeature.getLocation(container).getIdentifier()).build(); }