public class CloudFrontInvalidationProcessor extends AbstractMainDeploymentProcessor
DeploymentProcessor
that invalidates the changed
files in the given AWS Cloudfront distributions.
Can be configured with the following YAML properties:
Modifier and Type | Field and Description |
---|---|
protected AwsClientBuilderConfigurer |
builderConfigurer
Helper class the configures credentials and other properties for a
AmazonCloudFront client. |
protected static String |
CONFIG_KEY_DISTRIBUTIONS |
protected String[] |
distributions
List of distribution ids
|
FAIL_DEPLOYMENT_CONFIG_KEY, failDeploymentOnFailure
alwaysRun, env, excludeFiles, includeFiles, initialized, JUMPING_TO_PARAM_NAME, jumpTo, label, name, siteName, targetId
Constructor and Description |
---|
CloudFrontInvalidationProcessor() |
Modifier and Type | Method and Description |
---|---|
protected com.amazonaws.services.cloudfront.AmazonCloudFront |
buildClient()
Builds the
AmazonCloudFront client. |
protected void |
doDestroy()
Allows extending classes perform any custom cleanup
|
protected void |
doInit(org.apache.commons.configuration2.Configuration config)
Allows extending classes perform any custom initialization
|
protected ChangeSet |
doMainProcess(Deployment deployment,
ProcessorExecution execution,
ChangeSet filteredChangeSet,
ChangeSet originalChangeSet)
|
doExecute, failDeploymentOnProcessorFailure, init, shouldExecute
destroy, execute, getFilteredChangeSet, isJumpToActive, isPostDeployment, setBeanName, setEnv, setSiteName, setTargetId, shouldIncludeFile, startJumpTo
protected static final String CONFIG_KEY_DISTRIBUTIONS
protected AwsClientBuilderConfigurer builderConfigurer
AmazonCloudFront
client.protected String[] distributions
protected void doInit(org.apache.commons.configuration2.Configuration config) throws org.craftercms.commons.config.ConfigurationException
doInit
in class AbstractDeploymentProcessor
config
- the bean's configurationorg.craftercms.commons.config.ConfigurationException
- if there's configuration related exceptionprotected ChangeSet doMainProcess(Deployment deployment, ProcessorExecution execution, ChangeSet filteredChangeSet, ChangeSet originalChangeSet) throws DeployerException
ChangeSet
, it is also possible to return a new
ChangeSet
to be used for the following processors in the pipelinedoMainProcess
in class AbstractMainDeploymentProcessor
deployment
- the current deploymentexecution
- the current executionfilteredChangeSet
- the filtered change set (as returned by AbstractDeploymentProcessor.getFilteredChangeSet(ChangeSet)
)originalChangeSet
- the original change set (as returned by the previous processors in the pipeline)ChangeSet
or nullDeployerException
- if there is any error processing the ChangeSet
protected com.amazonaws.services.cloudfront.AmazonCloudFront buildClient()
AmazonCloudFront
client.protected void doDestroy() throws DeployerException
doDestroy
in class AbstractDeploymentProcessor
DeployerException
- if an error occursCopyright © 2023. All rights reserved.