Example usage for com.amazonaws.services.pricing AWSPricingAsyncClientBuilder standard

List of usage examples for com.amazonaws.services.pricing AWSPricingAsyncClientBuilder standard

Introduction

In this page you can find the example usage for com.amazonaws.services.pricing AWSPricingAsyncClientBuilder standard.

Prototype

public static AWSPricingAsyncClientBuilder standard() 

Source Link

Usage

From source file:org.pentaho.amazon.client.impl.PricingClientFactory.java

License:Apache License

@Override
public PricingClient createClient(String accessKey, String secretKey, String region) {
    AmazonClientCredentials clientCredentials = new AmazonClientCredentials(accessKey, secretKey, region);

    AWSPricing awsPricingClient = AWSPricingAsyncClientBuilder.standard()
            .withRegion(Region.US_Standard.toAWSRegion().getName())
            .withCredentials(new AWSStaticCredentialsProvider(clientCredentials.getAWSCredentials())).build();

    PricingClient pricingClient = new PricingClientImpl(awsPricingClient, region);

    return pricingClient;
}