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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAwsClientBuilderConfigurer
(org.apache.commons.configuration2.Configuration config) Main constructor Extracts the region and credentials from the config. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Configures the specified builder, with any credentials and other properties provided in the configuration.
-
Field Details
-
CONFIG_KEY_REGION
- See Also:
-
CONFIG_KEY_ENDPOINT
- See Also:
-
CONFIG_KEY_ACCESS_KEY
- See Also:
-
CONFIG_KEY_SECRET_KEY
- See Also:
-
region
AWS Region -
endpoint
-
accessKey
AWS Access Key -
secretKey
AWS Secret Key
-
-
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
Configures the specified builder, with any credentials and other properties provided in the configuration.- Parameters:
builder
- the AWS client builder
-