@Stability(value=Stable) public static final class CfnDistribution.CacheBehaviorPerPathProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnDistribution.CacheBehaviorPerPathProperty>
CfnDistribution.CacheBehaviorPerPathProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnDistribution.CacheBehaviorPerPathProperty.Builder |
behavior(String behavior)
Sets the value of
CfnDistribution.CacheBehaviorPerPathProperty.getBehavior() |
CfnDistribution.CacheBehaviorPerPathProperty |
build()
Builds the configured instance.
|
CfnDistribution.CacheBehaviorPerPathProperty.Builder |
path(String path)
Sets the value of
CfnDistribution.CacheBehaviorPerPathProperty.getPath() |
@Stability(value=Stable) public CfnDistribution.CacheBehaviorPerPathProperty.Builder behavior(String behavior)
CfnDistribution.CacheBehaviorPerPathProperty.getBehavior()behavior - The cache behavior for the specified path.
You can specify one of the following per-path cache behaviors:
cache - This behavior caches the specified path.dont-cache - This behavior doesn't cache the specified path.this@Stability(value=Stable) public CfnDistribution.CacheBehaviorPerPathProperty.Builder path(String path)
CfnDistribution.CacheBehaviorPerPathProperty.getPath()path - The path to a directory or file to cache, or not cache.
Use an asterisk symbol to specify wildcard directories ( path/to/assets/* ), and file types ( *.html , *jpg , *js ). Directories and file paths are case-sensitive.
Examples:
var/www/html/
var/www/html/index.html
var/www/html/*.html
var/www/html/images/*.jpg
var/www/html/images/*.png
var/www/html/images/*.gif
Specify the following to cache all files in the images subdirectory of the document root of an Apache web server.
var/www/html/images/
this@Stability(value=Stable) public CfnDistribution.CacheBehaviorPerPathProperty build()
build in interface software.amazon.jsii.Builder<CfnDistribution.CacheBehaviorPerPathProperty>CfnDistribution.CacheBehaviorPerPathPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.