Class AwsClientBuilderConfigurer
- java.lang.Object
-
- org.craftercms.deployer.utils.aws.AwsClientBuilderConfigurer
-
public class AwsClientBuilderConfigurer extends Object
Helper class the configures aAwsClientBuilder
with properties like region and credentials.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description protected String
accessKey
AWS Access Keystatic String
CONFIG_KEY_ACCESS_KEY
static String
CONFIG_KEY_REGION
static String
CONFIG_KEY_SECRET_KEY
protected String
region
AWS Regionprotected String
secretKey
AWS Secret Key
-
Constructor Summary
Constructors Constructor Description AwsClientBuilderConfigurer(org.apache.commons.configuration2.Configuration config)
Main constructor Extracts the region and credentials from the config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureClientBuilder(com.amazonaws.client.builder.AwsClientBuilder<?,?> builder)
Configures the specified builder, with any credentials and other properties provided in the configuration.
-
-
-
Field Detail
-
CONFIG_KEY_REGION
public static final String CONFIG_KEY_REGION
- See Also:
- Constant Field Values
-
CONFIG_KEY_ACCESS_KEY
public static final String CONFIG_KEY_ACCESS_KEY
- See Also:
- Constant Field Values
-
CONFIG_KEY_SECRET_KEY
public static final String CONFIG_KEY_SECRET_KEY
- See Also:
- Constant Field Values
-
region
protected String region
AWS Region
-
accessKey
protected String accessKey
AWS Access Key
-
secretKey
protected String secretKey
AWS Secret Key
-
-
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
-
-