class AwsHelper {

    public ClientConfiguration getClientConfiguration(AwsParamsDto awsParamsDto)
    {
        ClientConfiguration clientConfiguration = new ClientConfiguration();

        // Set a retry policy.
        clientConfiguration.withRetryPolicy(retryPolicyFactory.getRetryPolicy());

        // If the proxy hostname and port both are configured, set the HTTP proxy information.
        if (StringUtils.isNotBlank(awsParamsDto.getHttpProxyHost()) && awsParamsDto.getHttpProxyPort() != null)
        {
            clientConfiguration.withProxyHost(awsParamsDto.getHttpProxyHost()).withProxyPort(awsParamsDto.getHttpProxyPort());
        }

        return clientConfiguration;
    }

}