Class AwsClientBuilderConfigurer<ClientBuilderSubclass extends com.amazonaws.client.builder.AwsClientBuilder>

java.lang.Object
org.craftercms.deployer.utils.aws.AwsClientBuilderConfigurer<ClientBuilderSubclass>
Direct Known Subclasses:
AwsS3ClientBuilderConfigurer

public class AwsClientBuilderConfigurer<ClientBuilderSubclass extends com.amazonaws.client.builder.AwsClientBuilder> extends Object
Helper class the configures a AwsClientBuilder with properties like region and credentials.
Author:
avasquez
  • Field Details

  • Constructor Details

    • 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 Details

    • configureClientBuilder

      public void configureClientBuilder(ClientBuilderSubclass builder)
      Configures the specified builder, with any credentials and other properties provided in the configuration.
      Parameters:
      builder - the AWS client builder