Class AwsClientBuilderConfigurer


  • public class AwsClientBuilderConfigurer
    extends Object
    Helper class the configures a AwsClientBuilder with properties like region and credentials.
    Author:
    avasquez
    • Constructor Detail

      • AwsClientBuilderConfigurer

        public AwsClientBuilderConfigurer​(org.apache.commons.configuration2.Configuration config)
                                   throws org.craftercms.commons.config.ConfigurationException
        Main constructor Extracts the region and credentials from the config.
        Parameters:
        config - the config with the client properties
        Throws:
        org.craftercms.commons.config.ConfigurationException - if an exception occurs while reading the configuration
    • Method Detail

      • configureClientBuilder

        public void configureClientBuilder​(com.amazonaws.client.builder.AwsClientBuilder<?,​?> builder)
        Configures the specified builder, with any credentials and other properties provided in the configuration.
        Parameters:
        builder - the AWS client builder