Example usage for com.amazonaws ClientConfigurationFactory getConfig

List of usage examples for com.amazonaws ClientConfigurationFactory getConfig

Introduction

In this page you can find the example usage for com.amazonaws ClientConfigurationFactory getConfig.

Prototype

public final ClientConfiguration getConfig() 

Source Link

Document

Builds a ClientConfiguration instance with the default configuration for the current client.

Usage

From source file:org.apache.zeppelin.notebook.repo.OldS3NotebookRepo.java

License:Apache License

/**
 * Create AWS client configuration and return it.
 * @return AWS client configuration/* ww  w .ja  v  a 2 s  .c o m*/
 */
private ClientConfiguration createClientConfiguration() {
    ClientConfigurationFactory configFactory = new ClientConfigurationFactory();
    ClientConfiguration config = configFactory.getConfig();

    String s3SignerOverride = conf.getS3SignerOverride();
    if (StringUtils.isNotBlank(s3SignerOverride)) {
        config.setSignerOverride(s3SignerOverride);
    }

    return config;
}