Example usage for com.amazonaws.client.builder AwsClientBuilder withCredentials

List of usage examples for com.amazonaws.client.builder AwsClientBuilder withCredentials

Introduction

In this page you can find the example usage for com.amazonaws.client.builder AwsClientBuilder withCredentials.

Prototype

public final Subclass withCredentials(AWSCredentialsProvider credentialsProvider) 

Source Link

Document

Sets the AWSCredentialsProvider used by the client.

Usage

From source file:com.github.kaklakariada.aws.sam.service.AwsClientFactory.java

License:Open Source License

public <T, B extends AwsClientBuilder<B, T>> T create(final AwsClientBuilder<B, T> builder) {
    return builder //
            .withCredentials(credentialsProvider) //
            .withRegion(region) //
            .build();/*  w ww  .j a v  a 2 s .co m*/
}