| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public Behavior.Builder allowedMethods(CloudFrontAllowedMethods allowedMethods)
Behavior.getAllowedMethods()allowedMethods - The method this CloudFront distribution responds do.this@Stability(value=Experimental) public Behavior.Builder cachedMethods(CloudFrontAllowedCachedMethods cachedMethods)
Behavior.getCachedMethods()cachedMethods - Which methods are cached by CloudFront by default.this@Stability(value=Experimental) public Behavior.Builder compress(Boolean compress)
Behavior.getCompress()compress - If CloudFront should automatically compress some content types.this@Stability(value=Experimental) public Behavior.Builder defaultTtl(Duration defaultTtl)
Behavior.getDefaultTtl()defaultTtl - The default amount of time CloudFront will cache an object.
This value applies only when your custom origin does not add HTTP headers,
such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.this@Stability(value=Experimental) public Behavior.Builder forwardedValues(CfnDistribution.ForwardedValuesProperty forwardedValues)
Behavior.getForwardedValues()forwardedValues - The values CloudFront will forward to the origin when making a request.this@Stability(value=Experimental) public Behavior.Builder functionAssociations(List<? extends FunctionAssociation> functionAssociations)
Behavior.getFunctionAssociations()functionAssociations - The CloudFront functions to invoke before serving the contents.this@Stability(value=Experimental) public Behavior.Builder isDefaultBehavior(Boolean isDefaultBehavior)
Behavior.getIsDefaultBehavior()isDefaultBehavior - If this behavior is the default behavior for the distribution.
You must specify exactly one default distribution per CloudFront distribution.
The default behavior is allowed to omit the "path" property.this@Stability(value=Experimental) public Behavior.Builder lambdaFunctionAssociations(List<? extends LambdaFunctionAssociation> lambdaFunctionAssociations)
Behavior.getLambdaFunctionAssociations()lambdaFunctionAssociations - Declares associated lambda@edge functions for this distribution behaviour.this@Stability(value=Experimental) public Behavior.Builder maxTtl(Duration maxTtl)
Behavior.getMaxTtl()maxTtl - The max amount of time you want objects to stay in the cache before CloudFront queries your origin.this@Stability(value=Experimental) public Behavior.Builder minTtl(Duration minTtl)
Behavior.getMinTtl()minTtl - The minimum amount of time that you want objects to stay in the cache before CloudFront queries your origin.this@Stability(value=Experimental) public Behavior.Builder pathPattern(String pathPattern)
Behavior.getPathPattern()pathPattern - The path this behavior responds to.
Required for all non-default behaviors. (The default behavior implicitly has "*" as the path pattern. )this@Stability(value=Experimental) public Behavior.Builder trustedKeyGroups(List<? extends IKeyGroup> trustedKeyGroups)
Behavior.getTrustedKeyGroups()trustedKeyGroups - A list of Key Groups that CloudFront can use to validate signed URLs or signed cookies.this@Stability(value=Experimental) public Behavior build()
build in interface software.amazon.jsii.Builder<Behavior>BehaviorNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.