@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:50.264Z") @Stability(value=Experimental) public interface Behavior extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Behavior.Builder
A builder for
Behavior |
static class |
Behavior.Jsii$Proxy
An implementation for
Behavior |
| Modifier and Type | Method and Description |
|---|---|
static Behavior.Builder |
builder() |
default CloudFrontAllowedMethods |
getAllowedMethods()
(experimental) The method this CloudFront distribution responds do.
|
default CloudFrontAllowedCachedMethods |
getCachedMethods()
(experimental) Which methods are cached by CloudFront by default.
|
default Boolean |
getCompress()
(experimental) If CloudFront should automatically compress some content types.
|
default Duration |
getDefaultTtl()
(experimental) The default amount of time CloudFront will cache an object.
|
default CfnDistribution.ForwardedValuesProperty |
getForwardedValues()
(experimental) The values CloudFront will forward to the origin when making a request.
|
default List<FunctionAssociation> |
getFunctionAssociations()
(experimental) The CloudFront functions to invoke before serving the contents.
|
default Boolean |
getIsDefaultBehavior()
(experimental) If this behavior is the default behavior for the distribution.
|
default List<LambdaFunctionAssociation> |
getLambdaFunctionAssociations()
(experimental) Declares associated lambda@edge functions for this distribution behaviour.
|
default Duration |
getMaxTtl()
(experimental) The max amount of time you want objects to stay in the cache before CloudFront queries your origin.
|
default Duration |
getMinTtl()
(experimental) The minimum amount of time that you want objects to stay in the cache before CloudFront queries your origin.
|
default String |
getPathPattern()
(experimental) The path this behavior responds to.
|
default List<IKeyGroup> |
getTrustedKeyGroups()
(experimental) A list of Key Groups that CloudFront can use to validate signed URLs or signed cookies.
|
@Stability(value=Experimental) @Nullable default CloudFrontAllowedMethods getAllowedMethods()
Default: GET_HEAD
@Stability(value=Experimental) @Nullable default CloudFrontAllowedCachedMethods getCachedMethods()
Default: GET_HEAD
@Stability(value=Experimental) @Nullable default Boolean getCompress()
Default: true
@Stability(value=Experimental) @Nullable default Duration getDefaultTtl()
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.
Default: 86400 (1 day)
@Stability(value=Experimental) @Nullable default CfnDistribution.ForwardedValuesProperty getForwardedValues()
Default: none (no cookies - no headers)
@Stability(value=Experimental) @Nullable default List<FunctionAssociation> getFunctionAssociations()
Default: - no functions will be invoked
@Stability(value=Experimental) @Nullable default Boolean getIsDefaultBehavior()
You must specify exactly one default distribution per CloudFront distribution. The default behavior is allowed to omit the "path" property.
@Stability(value=Experimental) @Nullable default List<LambdaFunctionAssociation> getLambdaFunctionAssociations()
Default: No lambda function associated
@Stability(value=Experimental) @Nullable default Duration getMaxTtl()
Default: Duration.seconds(31536000) (one year)
@Stability(value=Experimental) @Nullable default Duration getMinTtl()
@Stability(value=Experimental) @Nullable default String getPathPattern()
Required for all non-default behaviors. (The default behavior implicitly has "*" as the path pattern. )
@Stability(value=Experimental) @Nullable default List<IKeyGroup> getTrustedKeyGroups()
Default: - no KeyGroups are associated with cache behavior
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html@Stability(value=Experimental) static Behavior.Builder builder()
Behavior.Builder of BehaviorCopyright © 2021. All rights reserved.