Class AwsS3ClientBuilderConfigurer
java.lang.Object
org.craftercms.deployer.utils.aws.AwsClientBuilderConfigurer<com.amazonaws.services.s3.AmazonS3ClientBuilder>
org.craftercms.deployer.utils.aws.AwsS3ClientBuilderConfigurer
public class AwsS3ClientBuilderConfigurer
extends AwsClientBuilderConfigurer<com.amazonaws.services.s3.AmazonS3ClientBuilder>
AwsClientBuilderConfigurer
extension for S3 clients.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected boolean
Whether to use path style access or notFields inherited from class org.craftercms.deployer.utils.aws.AwsClientBuilderConfigurer
accessKey, CONFIG_KEY_ACCESS_KEY, CONFIG_KEY_ENDPOINT, CONFIG_KEY_REGION, CONFIG_KEY_SECRET_KEY, endpoint, region, secretKey
-
Constructor Summary
ConstructorsConstructorDescriptionAwsS3ClientBuilderConfigurer
(org.apache.commons.configuration2.Configuration config) Main constructor Extracts the region and credentials from the config. -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureClientBuilder
(com.amazonaws.services.s3.AmazonS3ClientBuilder builder) Configures the specified builder, with any credentials and other properties provided in the configuration.
-
Field Details
-
CONFIG_KEY_PATH_STYLE_ACCESS_ENABLED
- See Also:
-
pathStyleAccessEnabled
protected boolean pathStyleAccessEnabledWhether to use path style access or not
-
-
Constructor Details
-
AwsS3ClientBuilderConfigurer
public AwsS3ClientBuilderConfigurer(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(com.amazonaws.services.s3.AmazonS3ClientBuilder builder) Description copied from class:AwsClientBuilderConfigurer
Configures the specified builder, with any credentials and other properties provided in the configuration.- Overrides:
configureClientBuilder
in classAwsClientBuilderConfigurer<com.amazonaws.services.s3.AmazonS3ClientBuilder>
- Parameters:
builder
- the AWS client builder
-